Conversation
mlodic
left a comment
There was a problem hiding this comment.
great changes! It would be cool if you could add a sample example of a successful extraction for all the cases you implemented as a test/confirmation that they work as expected.
…cument_urls_extraction
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
…action # Conflicts: # requirements/project-requirements.txt
aa8cc25 to
7a977ec
Compare
51b8ce1 to
477638c
Compare
…action # Conflicts: # docs/source/Contribute.md # docs/source/Usage.md # requirements/project-requirements.txt
mlodic
left a comment
There was a problem hiding this comment.
before merging, you need to rebuild the test_files.zip cause these 2 PRs will be merged before yours: #2461 and https://github.com/intelowlproject/IntelOwl/pull/2454/files
tests/api_app/analyzers_manager/file_analyzers/test_lnk_info.py
Outdated
Show resolved
Hide resolved
api_app/pivots_manager/migrations/0028_pivot_config_resubmitdownloadedfile.py
Outdated
Show resolved
Hide resolved
…action # Conflicts: # api_app/analyzers_manager/models.py # tests/test_files.zip
…cument_urls_extraction
* document_urls_extraction * added tests and samples * fixed follina regex * fixed string delimiter in lnk files url extraction * fixed onenone test * fixed strings_info tests max chars * fixed migration number * added all test files * fixed XML attacks vuln * fixed deepsource warnings * removed subfolder zip test files * added missing supported filetypes Lnk_Info migration * added migration to lnk mimetype support * wrong tests names * fixed test_files path in CI * added --malware_tools_analyzers in CI for tests * removed CI malware analyzers because all_analyzers is present * added temporary --malware_tools_analyzers * added all analyzers just to make the tests pass * added all analyzers just to make the tests pass * added boxjs tests * disabled mockup connetions for boxjs and strings_info * fixed malware_analyzer_tools filename thug * fixed deepsource missing method * Manage missing directory Signed-off-by: 0ssigeno <[email protected]> * added missing pr contribution requirements * fixed typo * fixed typo * added test for iocextract analyzer * fixed pdf info without uris * fixed assertTrue member in list with assertIn * removed useless onenote playbook * added playbook uris extraction * Update pull_request_automation.yml * changed playbook to execute * reformatted * changed playbook to execute * added checks to load file data type * updated test files * made requested changes * fixed migration order * fixed migration order * fixed migration order * adjusted migrations, doc_info and others * linter * added conditional testing * added testif * added test for lnk file * trying adjusting CI * removed duplicated test * prevent test from failing when skipping unhealthy containers tests --------- Signed-off-by: 0ssigeno <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Matteo Lodi <[email protected]>
* document_urls_extraction * added tests and samples * fixed follina regex * fixed string delimiter in lnk files url extraction * fixed onenone test * fixed strings_info tests max chars * fixed migration number * added all test files * fixed XML attacks vuln * fixed deepsource warnings * removed subfolder zip test files * added missing supported filetypes Lnk_Info migration * added migration to lnk mimetype support * wrong tests names * fixed test_files path in CI * added --malware_tools_analyzers in CI for tests * removed CI malware analyzers because all_analyzers is present * added temporary --malware_tools_analyzers * added all analyzers just to make the tests pass * added all analyzers just to make the tests pass * added boxjs tests * disabled mockup connetions for boxjs and strings_info * fixed malware_analyzer_tools filename thug * fixed deepsource missing method * Manage missing directory Signed-off-by: 0ssigeno <[email protected]> * added missing pr contribution requirements * fixed typo * fixed typo * added test for iocextract analyzer * fixed pdf info without uris * fixed assertTrue member in list with assertIn * removed useless onenote playbook * added playbook uris extraction * Update pull_request_automation.yml * changed playbook to execute * reformatted * changed playbook to execute * added checks to load file data type * updated test files * made requested changes * fixed migration order * fixed migration order * fixed migration order * adjusted migrations, doc_info and others * linter * added conditional testing * added testif * added test for lnk file * trying adjusting CI * removed duplicated test * prevent test from failing when skipping unhealthy containers tests --------- Signed-off-by: 0ssigeno <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Matteo Lodi <[email protected]>
Description
Added URLs extraction and pivoting for each document downloaders file types.
Type of change
Please delete options that are not relevant.
Checklist
developdumpplugincommand and added it in the project as a data migration. ("How to share a plugin with the community")test_files.zipand you added the default tests for that mimetype in test_classes.py.FREE_TO_USE_ANALYZERSplaybook by following this guide.urlthat contains this information. This is required for Health Checks._monkeypatch()was used in its class to apply the necessary decorators.MockUpResponseof the_monkeypatch()method. This serves us to provide a valid sample for testing.Black,Flake,Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.testsfolder). All the tests (new and old ones) gave 0 errors.DeepSource,Django Doctorsor other third-party linters have triggered any alerts during the CI checks, I have solved those alerts.