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
Playbooks (solves #628) #1123
Merged
Playbooks (solves #628) #1123
Changes from all commits
Commits
Show all changes
224 commits
Select commit
Hold shift + click to select a range
98b4ed4
Initialising work on Playbooks
0x0elliot ead6745
Setting up playbook_config.json
0x0elliot 1ecb583
Setting up playbook_config.json
0x0elliot 5006db3
Debugging playbook dataclass file
0x0elliot f773eeb
Debugging playbook serializer file
0x0elliot 40b2390
Debugging playbook serializer file
0x0elliot e276dd2
Debugging playbook serializer file
0x0elliot bbf2da3
Debugging core serializer file for playbooks
0x0elliot 722f300
Debugging core serializer file for playbooks
0x0elliot 167412f
Setting up test cases, urls and views for playbooks
0x0elliot 34fc9e2
Fixing playbook tests
0x0elliot 326e4da
Adding playbooks urls
0x0elliot fc7047f
Fixing playbooks urls
0x0elliot 5cdcbad
Debugging playbooks python_module
0x0elliot 5097914
Saving progress
0x0elliot dada182
Analyze request update.
0x0elliot 24b0e16
Updated Job models
0x0elliot 2922df4
Cleaning playbooks_manager
0x0elliot b0687f7
Cleaning playbooks_manager
0x0elliot cfc99c9
Adding test playbook values
0x0elliot d59b94d
Cleaning playbooks dataclass
0x0elliot 47fe138
Updating playbook_config.json for testin
0x0elliot 6344144
Debugging controller file
0x0elliot e04d42a
Debugging controller file
0x0elliot 4d28516
Debugging controller file
0x0elliot 96750fb
Debugging controller file
0x0elliot 9d7a9be
Adding playbook specific responses
0x0elliot 7f25656
Debugging backend
0x0elliot cc9d67d
Optimising job reports for playbooks
0x0elliot 9987bf5
Adding frontend scanning support for IntelOwl.
0x0elliot c43c99d
Adding frontend scanning support for IntelOwl.
0x0elliot 552abf1
Adding scan all support for IntelOwl
0x0elliot 67b4a4b
Getting plugins page ready
0x0elliot cc2a52c
Setting up job results page
0x0elliot a00eac7
Refactoring playbook scanform
0x0elliot 9caaeff
Fixing runtime_configuration bug
0x0elliot 9ee68cd
Fixing job status update bug to set job status to running for Playbooks
0x0elliot 70f6fb6
Fixing job status update bug for playbooks
0x0elliot 0163803
Fixing job status update bug for playbooks using chords
0x0elliot b7fd866
populating analyzers_to_execute and connectors_to_execute in Playbook…
0x0elliot f1f583b
Adding proper logging to Playbooks
0x0elliot 11e2837
Taking care of conflicts
0x0elliot 35cbec8
Taking care of conflicts
0x0elliot 02d06d0
Making it work after taking care of conflicts.
0x0elliot d1a3bc4
Fixing scanform changes
0x0elliot bb0a89b
Fixing scanform changes
0x0elliot daae530
Fixing the frontend after merging Playbooks branch
0x0elliot 367c2b0
Removing grouping of Playbooks for now
0x0elliot c87daeb
Adding backend changes to support the additions of multiple observables
0x0elliot 1ec5814
Taking care of errors in adding Backend support
0x0elliot 0db6aa4
Fixing dataclass errors after merge
0x0elliot f1f7dd3
Fixing dataclass errors after merge [All parameters]
0x0elliot 4c99a02
Fixing the frontend after taking care of backend merge conflicts
0x0elliot 6696e39
Fixing frontend bugs
0x0elliot 45762ed
Acting on FFlake8 suggestions
0x0elliot f7de493
Making requested changes (cleaning up the code mostly)
0x0elliot c67603a
Fixing circular imports issue
0x0elliot 0a781b0
Fixing circular import issues by creating a utility.py file
0x0elliot 26154dd
Fixing circular import issues by creating a utility.py file and impor…
0x0elliot b620879
Fixing invalid arguments bug for filter_playbooks()
0x0elliot 09865ab
Fixing cleaning data in from_dict() for PlaybookConfig
0x0elliot 3fb1712
Fixing cleaning data in from_dict() for PlaybookConfig [1] (pop error)
0x0elliot 7a877d5
Fixing cleaning data in from_dict() for PlaybookConfig [2] (dictionar…
0x0elliot f63b1db
Fixing cleaning data in from_dict() for PlaybookConfig [3] (dictionar…
0x0elliot 5d1ff21
Fixing cleaning data in from_dict() for PlaybookConfig [4] (dictionar…
0x0elliot 4942529
Returning appropriate response for Playbook endpoints
0x0elliot 95e1ce8
Cleaning up API response for Playbook endpoints
0x0elliot 157a8ef
Fixing up the frontend to show jobIds and redirect accordingly.
0x0elliot 6688468
Fixing scanpage frontend and backend API bugs
0x0elliot 46ac8cd
Fixing package.json format
0x0elliot 3ea1154
Fixing up the frontend to show jobIds and redirect accordingly [1]
0x0elliot 87fe9e6
Fixing backend type errors
0x0elliot d78c520
Adding migrations
0x0elliot ac30a98
Merge pull request #29 from 0x0elliot/Migrations_Playbooks
0x0elliot e72a8a8
Adding migrations
0x0elliot 40ae296
Adding FREE_TO_USE_ANALYZERS Playbooks
0x0elliot 6adaec4
Adding Playbook tests.
0x0elliot 613d9c2
Adding Playbook tests and removing comments which were for me
0x0elliot 6fbedbe
Adding playbook test cases
0x0elliot 651ddac
Fixing frontend bugs
0x0elliot 0bf0ff4
Fixing frontend bugs [2]
0x0elliot 0777e0d
Fixing frontend bugs [3]
0x0elliot 5f5dae2
Fixing frontend bugs [4]
0x0elliot 260d7f5
Fixing frontend bugs [5]
0x0elliot 73e0de1
Fixing frontend bugs where plugins other than Playbooks weren't loading
0x0elliot 39dae3d
Merge branch 'upstream/develop' into Playbooks
0x0elliot 89d845e
Fixing import error for logging
0x0elliot 6395a7d
Removing utility.py and making all it's functions classmethods/static…
0x0elliot 5b58c7f
Fixing logging library's import error
0x0elliot 23daf91
Fixing backend API bugs [1]
0x0elliot 1002af1
fixing uuid import error
0x0elliot 8f91798
Adding pre-commit suggested changes
0x0elliot 17f91ba
Fixing frontend bug where requests for files were sent to observable …
0x0elliot e84c6f8
Fixing frontend bug where requests for files were sent to observable …
0x0elliot 7d6d8f6
Fixing frontend bug where requests for files were sent to observable …
0x0elliot 218f149
Fixing parent_playbook=null issue
0x0elliot de82f32
Fixing parent_playbook=null issue [1]
0x0elliot 7504b69
Adding free to use playbooks with all free analyzers, Fixing supports'
0x0elliot 8eaaa8c
Fixing ObservableTypeWithFile inheritence errors
0x0elliot 1a4db42
Adding 'AllTypes' as an ENUM for choices in Playbooks
0x0elliot 859b6b3
Fixing inheritence errors in AllTypes
0x0elliot 0417b3b
Fixing issue where backend runs any observable for playbooks whether …
0x0elliot bd1e69d
Fixing issue where backend runs any observable for playbooks whether …
0x0elliot b9aa4bc
Adding linting
0x0elliot e865dca
Enabling multiple observable job results in playbook analyze scan res…
0x0elliot 5befbc1
Fixing migrations
0x0elliot efe9ab3
Untracking yarn.lock
0x0elliot 6bfaafd
Adding test case for stack_analyzers and fixing AnalyzerActionViewSet…
0x0elliot bc1e649
Adding test cases and fixing frontend bugs
0x0elliot bb5c362
Adding linting
0x0elliot 73f25ab
Adding linting
0x0elliot 28e8fa2
Fixing test cases
0x0elliot 21194a8
Fixing test cases [1] and adding linting
0x0elliot 2a05a6b
Fixing test cases [2] and adding linting
0x0elliot 34ff6a9
Fixing test cases [3] and adding linting
0x0elliot 7ceed95
Fixing test cases [4] and adding linting
0x0elliot 30aab9b
Fixing test cases [5] and adding linting
0x0elliot a42d4ac
Fixing test cases [5] and adding linting
0x0elliot 6f079a7
Adding suggestions for the frontend.
0x0elliot 5896997
Adding suggestions for the frontend [1]
0x0elliot 9c1ac81
Adding suggestions for the frontend [2]
0x0elliot d1aede8
Reducing Description max length
0x0elliot b4cfedc
Reducing Description minWidth for Playbooks plugin page
0x0elliot d4e0265
Reducing Description minWidth for Playbooks plugin page [1]
0x0elliot 29fcbea
Reducing Description minWidth for Playbooks plugin page [2]
0x0elliot e53273d
Adding the handling of analyzer/connector report numbers differently …
0x0elliot 210692c
Fixing package.json changes
0x0elliot 3bcee2d
Fixing test case breaking changes
0x0elliot 3417212
Fixing test case breaking changes [1]
0x0elliot eadf0c2
Fixing the number of analyzers, connectors and playbooks that show up…
0x0elliot e13fc60
Adding analyzer/connector to playbook toggle through radio buttons
0x0elliot 97b2e7e
Removing frontend comments
0x0elliot c8d5758
Wrapping up frontend for Playbooks feature along with all known bugs …
0x0elliot 4b8c680
Fixing pre-commit errors
0x0elliot 0779584
Disabling run_all
0x0elliot 7da72ad
Adding frontend support for disabling run_all for playbooks
0x0elliot 70c2d51
improving UX for playbooks
0x0elliot fb222b1
Rewriting playbook serializers
0x0elliot 8e9c58b
Fixing Serializers
0x0elliot 1c71009
Fixing lint errors
0x0elliot 82868c8
Fixing status code 500 for playbook APIs
0x0elliot 68e3d14
Fixing bug in playbook serializers that led to no analyzers/connector…
0x0elliot d560192
Fixing 500 bugs in playbook run APIs
0x0elliot 8fada5e
Fixing start_playbook() related errors
0x0elliot dce0215
Fixing playbook file scan errors
0x0elliot 93e6d68
Fixing playbook file scan errors [1]
0x0elliot fffcb48
Fixing playbook file scan errors [2]
0x0elliot d091f51
Fixing playbook file scan errors [3]
0x0elliot 0208324
Fixing playbook file scan errors [4]
0x0elliot e7fc34b
Fixing serializers and frontend
0x0elliot 0d8af14
Fixing serializers [Analyzers and connectors] and frontend
0x0elliot 1b3a9af
Revert "Fixing serializers and frontend"
0x0elliot a371c41
Reverting
0x0elliot 7efb0a1
Fixing serializers
0x0elliot cfd4373
Fixing serializers
0x0elliot 1202584
Fixing serializers [1]
0x0elliot c8d1318
Fixing serializers [2]
0x0elliot b555e70
Fixing serializers validation
0x0elliot 15b43ab
Fixing serializers validation for connectors
0x0elliot 2f8f356
Adding playbook documentation
0x0elliot 9490ae2
Fixing bug where error led to parent_playbook remaining empty
0x0elliot df7ff31
Making it necessary for playbooks to be not empty
0x0elliot 099ac1b
Minor fix for the last commit
0x0elliot a0e6002
Making parent_playbook nullable
0x0elliot c0e770e
Adding new migrations and model changes
0x0elliot 426e1a8
Fixing multiple values for argument errors
0x0elliot ac46216
Adding support for playbooks and custom configs & fixing bugs
0x0elliot 3040cd1
Fixing response bugs
0x0elliot 03348e6
Fixing response serializer bugs [1]
0x0elliot e57a756
Fixing tasks for playbooks
0x0elliot aedf659
Removing unnecessary warnings from showing up on the UI
0x0elliot 8a0057a
Adding warning changes for all serializers and optimising filter_conn…
0x0elliot 470c48d
Fixing playbook related model values and optimising before_run() methods
0x0elliot f9d2687
Fixing not null errors due to parent_playbook value
0x0elliot eedb971
Adding better logging in test cases
0x0elliot 3b018cd
Adding debugging logs for test cases
0x0elliot ee5d410
Adding debugging logs for test cases [fixing linting]
0x0elliot d520d2b
Adding debugging logs for test cases [1]
0x0elliot 1ee5673
Fixing connector checks during CI checks
0x0elliot c3871f8
Fixing connector serializer
0x0elliot 2b841d5
Optimising connector support in playbooks
0x0elliot 42c38bd
Fixing CI related connector test case issues
0x0elliot e917904
Fixing before_run function for files
0x0elliot ce2ade7
Fixing typo in controller function start_playbook()
0x0elliot 9c7e619
Adding changes for playbooks
0x0elliot 0089909
Adding test cases for playbooks
0x0elliot d1df3f5
Updating tests for playbooks
0x0elliot 3c1a49a
Fixing tests
0x0elliot 7e80a99
Fixing auto-imports
0x0elliot 5adf26e
Fixing test_start_playbooks_observable
0x0elliot 320abbc
Adding TEST_PLAYBOOKS for ci
0x0elliot ec5d63c
Adding debugging logs for playbook tests
0x0elliot 7d8c676
Handling exceptions in playbook serializers
0x0elliot 49e7597
Fixing linting errors
0x0elliot 3e3810c
Moving playbooks up for a while
0x0elliot 1af40df
Covering edge cases for playbooks
0x0elliot 2b73be3
Moving playbook test workflow up and covering edge cases for playbooks
0x0elliot c259071
Debugging tests for playbooks
0x0elliot 5628800
Fixing playbook tests
0x0elliot 31a51c7
Making playbook tests for a single playbook
0x0elliot f80c94d
Fixing bugs in playbook tests
0x0elliot a39b8fe
Fixing bugs in playbook tests [1]
0x0elliot f09d482
Fixing bugs in playbook tests [2]
0x0elliot 5a333e9
Adding documentation and playbook test case for files
0x0elliot e4d92d3
Fixing tests for playbook files
0x0elliot 81241b9
Fixing tests for playbook files [adding querydict]
0x0elliot e39b037
Fixing bugs in tests for playbook files
0x0elliot 9dc40dc
Removing failing integrations
0x0elliot ff035a3
Removing failing integrations
0x0elliot 6d56dea
Removing useless f strings
0x0elliot ef3c153
Removing analyzers which took too long from free playbook provided
0x0elliot ada825d
Pushing playbooks down in github workflows
0x0elliot 9e08b88
Fixing frontend warnings
0x0elliot 03c7a7d
Bump django from 3.2.14 to 3.2.15 in /requirements (#1144)
dependabot[bot] 153857b
Adding PR suggested changes
0x0elliot 8b839f2
Adding instructions for contributors to add free analyzers in free an…
0x0elliot f2a3f0f
Adding instructions for contributors to add free analyzers in free an…
0x0elliot a13d4ae
Letting analyzers fail in playbook tests
0x0elliot 5d15bff
Fixing linting
0x0elliot 9055e56
fixing playbook tests
0x0elliot 411bcf9
fixing linting errors
0x0elliot ace29b3
Squashing migrations together
0x0elliot a8f098b
Adding instructions in PR templates
0x0elliot fc77fe1
adjusted migrations
mlodic File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
api_app/analyzers_manager/migrations/0002_analyzerreport_parent_playbook.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.14 on 2022-10-07 18:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("analyzers_manager", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="analyzerreport", | ||
name="parent_playbook", | ||
field=models.CharField(blank=True, default="", max_length=128), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ class Meta: | |
"end_time", | ||
"runtime_configuration", | ||
"type", | ||
"parent_playbook", | ||
) | ||
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parent_playbook should be treated like any other parameter here. I'll get into the
start
method tooThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't get this. it is being treated like any other parameter. do you mean, not like any other explicit parameter and instead with the help of kwargs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes