Skip to content

IRIS Extension for interactive Webhook execution #801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 98 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
b123299
docker and flask setup
Mahamkeyani Oct 17, 2024
1d6a741
local setup changes
Oct 18, 2024
46aa119
webhooks-route added to advance
Mahamkeyani Oct 23, 2024
a28fc85
added action buttons and tiggers and actions card
Mahamkeyani Oct 31, 2024
635812a
webhooks information ui implemented
Mahamkeyani Nov 1, 2024
1699813
Merge branch 'initial-changes' into feature/ID-5
Nov 6, 2024
bf11f3c
Content copy button added
Mahamkeyani Nov 6, 2024
d784006
Trigger response table created
Mahamkeyani Nov 14, 2024
bd64f85
delete nodejs code
Mahamkeyani Nov 14, 2024
ba38a10
discarded manage webhooks code
Mahamkeyani Nov 14, 2024
119557b
Merge branch 'feature/ID-6' into feature/ID-7
Mahamkeyani Nov 14, 2024
f627cf6
webhooks BE and FE implemented
Nov 14, 2024
4483c7e
marshables update
Nov 14, 2024
9051580
case template modification & check on property type
Nov 15, 2024
10126f6
actions and triggers adjusted
Nov 15, 2024
105a1e3
before the merge
Nov 18, 2024
86e22c7
removed modal_case_template code
Mahamkeyani Nov 18, 2024
611df04
Removed webhooks code
Mahamkeyani Nov 18, 2024
a6b70d3
Merge pull request #2 from Idoubles-Cybersecurity/initial-changes
MuhammadDaniyal-idoubles Nov 18, 2024
53bc18e
Merge pull request #1 from Idoubles-Cybersecurity/feature/ID-5
MuhammadDaniyal-idoubles Nov 18, 2024
90a2787
manage webhooks route removed
Mahamkeyani Nov 18, 2024
0c5d7c9
front-end designed for actions in task
Mahamkeyani Nov 18, 2024
9f23350
saved file
Mahamkeyani Nov 18, 2024
becf156
id-5 and id-7 merged
Mahamkeyani Nov 18, 2024
909036c
Merge branch 'master' of https://github.com/Idoubles-Cybersecurity/ir…
Mahamkeyani Nov 18, 2024
4760397
Merge branch 'feature/ID-7' of https://github.com/Idoubles-Cybersecur…
Mahamkeyani Nov 18, 2024
306d678
Merge branch 'master' of https://github.com/Idoubles-Cybersecurity/ir…
Mahamkeyani Nov 18, 2024
fff50d5
docker duplication removed
Mahamkeyani Nov 18, 2024
78250d4
Merge pull request #3 from Idoubles-Cybersecurity/feature/ID-7
MuhammadDaniyal-idoubles Nov 18, 2024
ce18a88
fixed case_template name.
Mahamkeyani Nov 18, 2024
59e0d6b
Merge branch 'master' of https://github.com/Idoubles-Cybersecurity/ir…
Mahamkeyani Nov 19, 2024
fea32d5
JSON Schema validation, input params etc
Nov 19, 2024
4917ac4
upadtes modal_case_template
Mahamkeyani Nov 19, 2024
246f5bc
Merge branch 'feature/ID-5' of https://github.com/Idoubles-Cybersecur…
Mahamkeyani Nov 19, 2024
42c3903
removed junk code
Mahamkeyani Nov 19, 2024
2c2a105
case template updated
Mahamkeyani Nov 19, 2024
719bfc2
webhooks list loaded
Mahamkeyani Nov 20, 2024
7fce7fd
jsoncrack embedded
Mahamkeyani Nov 20, 2024
c88f45d
removed cors
Mahamkeyani Nov 20, 2024
8f48089
BE implementation of Task and Case Responses
Nov 21, 2024
a2ceaaf
id's adjusted
Nov 21, 2024
f7cfe5f
triggers execution implemented
Nov 21, 2024
913d039
updated action trigger response
Mahamkeyani Nov 21, 2024
5c346d1
Merge branch 'feature/ID-5' of https://github.com/Idoubles-Cybersecur…
Mahamkeyani Nov 23, 2024
68c8317
Id-10 merged with id-5
Mahamkeyani Nov 25, 2024
f855d45
endpoint fixed
Nov 26, 2024
88d6286
case triggers implemented
Mahamkeyani Nov 28, 2024
1e8045d
implemented json editor in expand view
Mahamkeyani Nov 29, 2024
160b8ca
added case_id and action_id to execute button
Mahamkeyani Dec 2, 2024
09c382c
updated edit_task method
Mahamkeyani Dec 3, 2024
7c2015e
added add_task methods
Mahamkeyani Dec 3, 2024
afa5714
action excute function
Dec 3, 2024
0ff4ca7
updated case_task_routes
Mahamkeyani Dec 3, 2024
64a7534
save data method updated
Dec 3, 2024
d0d6ca4
save data function fixed
Dec 3, 2024
220d720
tasks action response visualized
Mahamkeyani Dec 6, 2024
0375217
fixed button double button click and form styling
Mahamkeyani Dec 10, 2024
188e094
action response table execute action and refresh table complete
Mahamkeyani Dec 10, 2024
66a9dd0
Error Messages fixed for Webhooks and Case Templates
Mahamkeyani Jan 2, 2025
185c7d3
3 seconds refetch response for actions.
Mahamkeyani Jan 2, 2025
dc89470
Upadted Examples for Webhooks and Case templates
Mahamkeyani Jan 2, 2025
5f93510
Moved triggers execution from case template creation to case creation
Mahamkeyani Jan 3, 2025
a4bd40a
View Action Response Close button fixed
Mahamkeyani Jan 3, 2025
71ddb47
case triggers and action working
Mahamkeyani Jan 9, 2025
960ef31
get_task_responses_list
Mahamkeyani Jan 9, 2025
15ebeab
actions response list fixed
Mahamkeyani Jan 10, 2025
6d85824
icon updated
Mahamkeyani Jan 13, 2025
709643d
async operations
Jan 14, 2025
9515fe4
added timer to swal for action
Mahamkeyani Jan 16, 2025
4279faf
changed webhook icon
Mahamkeyani Jan 17, 2025
8cff1a8
db table added case template
Jan 21, 2025
4ba6a03
Merge branch 'feature/ID-10' of https://github.com/Idoubles-Cybersecu…
Mahamkeyani Jan 21, 2025
f631b2d
Merge branch 'feature/ID-10' of https://github.com/Idoubles-Cybersecu…
Mahamkeyani Jan 21, 2025
16442f1
Merge branch 'feature/ID-10' of https://github.com/Idoubles-Cybersecu…
Mahamkeyani Jan 21, 2025
75a5b6a
added actions by case and task
Mahamkeyani Jan 21, 2025
2e3e07d
Merge pull request #4 from Idoubles-Cybersecurity/feature/ID-10
HanzilaDev Jan 21, 2025
b43c6bb
code clean up and formatted
Mahamkeyani Jan 22, 2025
1fb1396
manage webhooks table display updated and clean up routes
Mahamkeyani Jan 22, 2025
df1aef7
Merge pull request #5 from Idoubles-Cybersecurity/feature/ID-10
Mahamkeyani Jan 22, 2025
f0e7305
mixed save button styling for this add task modal
Mahamkeyani Jan 22, 2025
ce6f024
Merge branch 'master' of https://github.com/Idoubles-Cybersecurity/ir…
Mahamkeyani Jan 22, 2025
2b46531
Merge pull request #6 from Idoubles-Cybersecurity/feature/ID-10
Mahamkeyani Jan 22, 2025
c6ee60d
Validation
Jan 23, 2025
4023c0e
fixed ini file paths and renamed docker-copmpose.dev file
MuhammadDaniyal-idoubles Jan 27, 2025
3d3d99b
changes
Jan 29, 2025
bbbbe3e
Working example
Jan 29, 2025
7f7a6ae
Merge pull request #7 from Idoubles-Cybersecurity/validation1
yukh1402 Jan 29, 2025
4c47ad6
Merge remote-tracking branch 'upstream/master' into rebase_master
azali34 Apr 7, 2025
3caa1f2
duplicate function entries removed
azali34 Apr 7, 2025
b497dce
all import issues fix
azali34 Apr 8, 2025
209165d
all fixes related to webhooks, case, tasks and triggers
azali34 Apr 10, 2025
c947d8e
fixed the case templates route issue
azali34 Apr 15, 2025
018dfbc
Case template updated json
azali34 Apr 15, 2025
a85c532
CodeRabbitAI PR fixes during merge
azali34 May 9, 2025
cd0599c
Unexpected keyword arguments in function call fix for get_task
azali34 May 9, 2025
88d0686
PR further major/minor issue fixes
azali34 May 13, 2025
e1f50fd
PR all comments resolved
azali34 May 15, 2025
c59b791
implementation of celery worker for triggers inside create case endpoint
azali34 May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ services:
- POSTGRES_ADMIN_USER
- POSTGRES_ADMIN_PASSWORD
- POSTGRES_DB
env_file:
- .env
networks:
- iris_backend
volumes:
Expand Down
29 changes: 21 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,42 @@ services:
extends:
file: docker-compose.base.yml
service: db
image: ${DB_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_db}:${DB_IMAGE_TAG:-v2.4.20}

build:
context: docker/db
image: iriswebapp_db:v2.4.7
ports:
- "0.0.0.0:5432:5432"

app:
extends:
file: docker-compose.base.yml
service: app
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.20}
build:
context: .
dockerfile: docker/webApp/Dockerfile
image: iriswebapp_app:v2.4.7
ports:
- "0.0.0.0:8000:8000"

worker:
extends:
file: docker-compose.base.yml
service: worker
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.20}

build:
context: .
dockerfile: docker/webApp/Dockerfile
image: iriswebapp_app:v2.4.7

nginx:
extends:
file: docker-compose.base.yml
service: nginx
image: ${NGINX_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_nginx}:${NGINX_IMAGE_TAG:-v2.4.20}

build:
context: ./docker/nginx
args:
NGINX_CONF_GID: 1234
NGINX_CONF_FILE: nginx.conf
image: iriswebapp_nginx:v2.4.7

volumes:
iris-downloads:
Expand All @@ -59,4 +73,3 @@ networks:
name: iris_backend
iris_frontend:
name: iris_frontend

2 changes: 1 addition & 1 deletion docker/nginx/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash

# IRIS Source Code
# Copyright (C) 2021 - Airbus CyberSecurity (SAS)
Expand Down
6 changes: 5 additions & 1 deletion docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ events {

http {
map $request_uri $csp_header {
default "default-src 'self' https://analytics.dfir-iris.org; script-src 'self' 'unsafe-inline' https://analytics.dfir-iris.org; style-src 'self' 'unsafe-inline'; img-src 'self' data:;";
default "default-src 'self' https://analytics.dfir-iris.org https://cdn.jsdelivr.net https://jsoncrack.com https://stackpath.bootstrapcdn.com;
script-src 'self' 'unsafe-inline' https://analytics.dfir-iris.org https://cdn.jsdelivr.net https://stackpath.bootstrapcdn.com;
style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net;
img-src 'self' data:;
frame-src 'self' https://jsoncrack.com;";
}
include /etc/nginx/mime.types;

Expand Down
4 changes: 3 additions & 1 deletion docker/webApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ COPY --from=compile-js-image /ui/dist/ /iriswebapp/static/
RUN chmod +x /iriswebapp/dependencies/evtxdump_binaries/linux/x64/fd
RUN chmod +x /iriswebapp/dependencies/evtxdump_binaries/linux/x64/evtx_dump

# RUN chmod +x iris-entrypoint.sh wait-for-iriswebapp.sh entrypoint.sh

RUN chmod +x iris-entrypoint.sh
RUN chmod +x wait-for-iriswebapp.sh
#ENTRYPOINT [ "./iris-entrypoint.sh" ]
#ENTRYPOINT ["./iris-entrypoint.sh"]
Empty file modified docker/webApp/iris-entrypoint.sh
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""Add case_template_id to Case model

Revision ID: bf5eab0b7ace
Revises: d5a720d1b99b
Create Date: 2025-05-15 03:28:27.999462

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy import String
from app.alembic.alembic_utils import _table_has_column

# revision identifiers, used by Alembic.
revision = 'bf5eab0b7ace'
down_revision = 'd5a720d1b99b'
branch_labels = None
depends_on = None


def upgrade():
# Check if the column doesn't exist before adding it
if not _table_has_column('cases', 'case_template_id'):
op.add_column('cases', sa.Column('case_template_id', String(length=256), nullable=True))


def downgrade():
pass
Loading