-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Marketplace Contribution] ThreatGrid #21611
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
[Marketplace Contribution] ThreatGrid #21611
Conversation
Thank you for your contribution. Your generosity and caring are unrivaled! Rest assured - our content wizard @rshunim will very shortly look over your proposed changes. |
Usage example:
|
Hi, @amkoppad, thank you for contributing! |
Hi @amkoppad , any updates here? |
@JasBeilin I have added 2 commands as mentioned. You can find the functions in the code. def submit_urls() and def advanced_search() are the definitions you can check for in the integration. I just saw that the integration had some updates. I made the changes to the updated integration and have uploaded the .yml file again. Please let me know if you have any other questions. I am happy to answer or give you a demo of what exactly has been added. |
Hi @amkoppad, I have changed the code in the original integration. Please go through it and make sure I have added all the changes so I can actually review. |
Hi @JasBeilin, I have checked your changes. You have added all the things. I don't see anything being missed. I have also made changes to the .yml file as you suggested. Please let me know what you might need next. Thank you. |
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.
Looks good.
I added some comment that I would appreciate if you can address.
In addition, please add unit tests (you can check https://xsoar.pan.dev/docs/integrations/unit-testing for instructions) feel free to let me know if you need any assistance with it.
return_results({ | ||
'Type': entryTypes['note'], | ||
'EntryContext': {'ThreatGrid.URLs': res}, | ||
'HumanReadable': tableToMarkdown('ThreatGrid - URL Submission', res), | ||
'ContentsFormat': formats['json'], | ||
'Contents': res |
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.
Please change to ComandResult Object instead of the json.
… amkoppad-contrib-ThreatGrid
Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>
Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>
Hi, Please notice this comment you have not addressed yet- https://github.com/demisto/content/pull/21611/files#r1039259785 If you need my help in any of these fixes, let me know. |
Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>
Fixed the README issues.
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.
Great work!
Commenting here for documentation- |
32667ff
into
demisto:contrib/xsoar-contrib_amkoppad-contrib-ThreatGrid
* "contribution update to pack "Cisco Secure Malware Analytics"" * Update ThreatGridDev.yml * added commands in original integration * Update ThreatGridDev.yml * fixed RN * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Made the suggested changes to the advanced_search function and added the desciption for outputs in .yml file * Added a test function and addressed the previous build errors * Modified the test function * Modified the test function * Modified the test function v3 * Fixed the type errors * Fixed the submit_urls test function * Adding the test function for advanced search function * Fixed mocking the requests object * Fixed test_data path * Test function fix 2 * Test function fix 3 * Test function fix 4 * Test function fix 5 * Modified the yml file to exclude image tag * Modified python function for test function * Modified the mock_response object * Fixed the request typeerror * Modified the mock_data * TypeError fix 2 * Changed the mocker object * This should fix all the test functions * Fixed the image version issue * Fixed Readme * Fixed the lint errors * Update README.md Fixed the README issues. Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com> Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com>
* "contribution update to pack "Cisco Secure Malware Analytics"" * Update ThreatGridDev.yml * added commands in original integration * Update ThreatGridDev.yml * fixed RN * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Made the suggested changes to the advanced_search function and added the desciption for outputs in .yml file * Added a test function and addressed the previous build errors * Modified the test function * Modified the test function * Modified the test function v3 * Fixed the type errors * Fixed the submit_urls test function * Adding the test function for advanced search function * Fixed mocking the requests object * Fixed test_data path * Test function fix 2 * Test function fix 3 * Test function fix 4 * Test function fix 5 * Modified the yml file to exclude image tag * Modified python function for test function * Modified the mock_response object * Fixed the request typeerror * Modified the mock_data * TypeError fix 2 * Changed the mocker object * This should fix all the test functions * Fixed the image version issue * Fixed Readme * Fixed the lint errors * Update README.md Fixed the README issues. Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com> Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com>
* "contribution update to pack "Cisco Secure Malware Analytics"" * Update ThreatGridDev.yml * added commands in original integration * Update ThreatGridDev.yml * fixed RN * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Made the suggested changes to the advanced_search function and added the desciption for outputs in .yml file * Added a test function and addressed the previous build errors * Modified the test function * Modified the test function * Modified the test function v3 * Fixed the type errors * Fixed the submit_urls test function * Adding the test function for advanced search function * Fixed mocking the requests object * Fixed test_data path * Test function fix 2 * Test function fix 3 * Test function fix 4 * Test function fix 5 * Modified the yml file to exclude image tag * Modified python function for test function * Modified the mock_response object * Fixed the request typeerror * Modified the mock_data * TypeError fix 2 * Changed the mocker object * This should fix all the test functions * Fixed the image version issue * Fixed Readme * Fixed the lint errors * Update README.md Fixed the README issues. Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com> Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com>
* "contribution update to pack "Cisco Secure Malware Analytics"" * Update ThreatGridDev.yml * added commands in original integration * Update ThreatGridDev.yml * fixed RN * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Update Packs/ThreatGrid/Integrations/ThreatGrid/ThreatGrid.py Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> * Made the suggested changes to the advanced_search function and added the desciption for outputs in .yml file * Added a test function and addressed the previous build errors * Modified the test function * Modified the test function * Modified the test function v3 * Fixed the type errors * Fixed the submit_urls test function * Adding the test function for advanced search function * Fixed mocking the requests object * Fixed test_data path * Test function fix 2 * Test function fix 3 * Test function fix 4 * Test function fix 5 * Modified the yml file to exclude image tag * Modified python function for test function * Modified the mock_response object * Fixed the request typeerror * Modified the mock_data * TypeError fix 2 * Changed the mocker object * This should fix all the test functions * Fixed the image version issue * Fixed Readme * Fixed the lint errors * Update README.md Fixed the README issues. Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com> Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com> Co-authored-by: amkoppad <82898085+amkoppad@users.noreply.github.com> Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com> Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com> Co-authored-by: amkoppad <amit.koppad@paloaltonetworks.com>
Status
Contributor
@amkoppad
Notes
Added the two commands to the integration.
Adding these two commands to the integration make the implementation with XSOAR more efficient.
Without the !threat-grid-submit-urls command urls first have to be converted to files and then uploaded to ThreatGrid as samples.
!threat-grid-advanced-search command enables XSOAR to run the ThreatGrid query search.
Video Link
Short demo video of the Pack usage. Speeds up the review. Optional but recommended. Use a video sharing service such as Google Drive or YouTube.