-
-
Notifications
You must be signed in to change notification settings - Fork 529
fixes #1699 Permhash analyzer #2258
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
Conversation
|
Hey @mlodic I have added new mimetypes for .crx and .json but migration shows error. |
| CRX = "application/x-chrome-extension" | ||
| JSON = "application/json" | ||
|
|
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.
you are changing a model, you need to do a migration for this change too
|
|
||
| hash_val = "" | ||
|
|
||
| if file_extension == "apk": |
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.
why check the file extension when you can use the mimetype?
| elif file_extension == "json": | ||
| hash_val = permhash.permhash_crx_manifest(self.filepath) | ||
| else: | ||
| result["error"] = "Invalid file extension." |
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.
you should raise the AnalyzerRunException
| if hash_val: | ||
| result["hash"] = hash_val | ||
| else: | ||
| result["error"] = "Could not find permissions in the file." |
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.
you should raise the AnalyzerRunException
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.
======================================================================
FAIL: test_subclasses (tests.api_app.analyzers_manager.test_classes.FileAnalyzerTestCase.test_subclasses)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/deploy/intel_owl/tests/api_app/analyzers_manager/test_classes.py", line 133, in test_subclasses
sub.start(job.pk, {}, uuid())
File "/usr/local/lib/python3.11/unittest/mock.py", line 1375, in patched
return func(*newargs, **newkeywargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/deploy/intel_owl/api_app/classes.py", line 208, in start
self.after_run_failed(e)
File "/opt/deploy/intel_owl/api_app/classes.py", line 153, in after_run_failed
raise e
File "/opt/deploy/intel_owl/api_app/classes.py", line 206, in start
_result = self.run()
^^^^^^^^^^
File "/opt/deploy/intel_owl/api_app/analyzers_manager/file_analyzers/perm_hash.py", line 52, in run
raise AnalyzerRunException("Could not find permissions in the file.")
api_app.analyzers_manager.exceptions.AnalyzerRunException: Could not find permissions in the file.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/deploy/intel_owl/tests/api_app/analyzers_manager/test_classes.py", line 135, in test_subclasses
self.fail(
AssertionError: Analyzer Permhash with config Permhash and mimetype application/vnd.android.package-archive failed Could not find permissions in the file.
----------------------------------------------------------------------
Ran 312 tests in 210.989s
FAILED (failures=1, skipped=1)
Preserving test database for alias 'default'...
Error: Process completed with exit code 1.
I think we should not raise the exception here as it fails the test cases
OR
we can replace the sample.apk in the test_files.zip with an apk that has an AndroidManifest.xml with permissions included as the current sample.apk's manifest file has no such thing. But replacing that apk may led to some test failures in other file analyzers. What are your thoughts @mlodic ?
|
if you don't show the logs I don't know how to help. Also, please pull from develop that you have conflicts |
| size=None, | ||
| ), | ||
| ), | ||
| ] |
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 write also a reverse_migrate function. That helps to recover in case of mistakes
| @@ -0,0 +1,128 @@ | |||
| from django.db import migrations | |||
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 also add this analyzer to the freely available playbook + to the static analyzer playbook
|
you also need to change the |
|
|
Actually, I solved it myself. There was some issue with the latest version of permhash library (v0.1.4.2). I used v0.1.4 and it worked perfectly fine. |
=> added AndroidManifest.xml, manifest.json and sample.crx to test_files.zip => added test cases for xml, json and crx in tests/api_app/analyzers_manager/test_classes.py
* Fix migration signal Signed-off-by: 0ssigeno <[email protected]> * Fix kwargs Signed-off-by: 0ssigeno <[email protected]> * Fail if in production mode Signed-off-by: 0ssigeno <[email protected]> * Validated disable with 429 Signed-off-by: 0ssigeno <[email protected]> * Fix is_from_org information Signed-off-by: 0ssigeno <[email protected]> * Fix greynoise api requirement Signed-off-by: 0ssigeno <[email protected]> * fixes #1758 - greynoise labs analyzer (#2225) * greynoise labs analyzer * fix * update migration numbers * update maximum tlp * fix --------- Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> * removed scanner issue template * fixes #1663 - Abusix analyzer (#2233) * fixes #1663 - abusix analyzer * fix * updated migration numbers --------- Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> * Bump uwsgitop from 0.11 to 0.12 in /requirements (#2237) Bumps [uwsgitop](https://github.com/xrmx/uwsgitop) from 0.11 to 0.12. - [Commits](xrmx/uwsgitop@v0.11...v0.12) --- updated-dependencies: - dependency-name: uwsgitop dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix ses email Signed-off-by: 0ssigeno <[email protected]> * Jobs now requires both analyzers AND connectors to be empty Signed-off-by: 0ssigeno <[email protected]> * Fixes for quad9 Signed-off-by: 0ssigeno <[email protected]> * Removed comment on enable back Signed-off-by: 0ssigeno <[email protected]> * HTTPerror should not have the entire traceback Signed-off-by: 0ssigeno <[email protected]> * Trying to unlock the git process deleting the lock file Signed-off-by: 0ssigeno <[email protected]> * Fix ingestor periodic task Signed-off-by: 0ssigeno <[email protected]> * Fix retrieval of the task Signed-off-by: 0ssigeno <[email protected]> * Fix ingestor python class retrieval Signed-off-by: 0ssigeno <[email protected]> * Fix test Signed-off-by: 0ssigeno <[email protected]> * Fix tests Signed-off-by: 0ssigeno <[email protected]> * Fixes Signed-off-by: 0ssigeno <[email protected]> * specified version of nginx * Priority mgmt (#2242) * Priority mgmt Signed-off-by: 0ssigeno <[email protected]> * Blake Signed-off-by: 0ssigeno <[email protected]> * Docs Signed-off-by: 0ssigeno <[email protected]> * Changed order of cache table Signed-off-by: 0ssigeno <[email protected]> * Manage case where cache it is not initialized Signed-off-by: 0ssigeno <[email protected]> * Fixes Signed-off-by: 0ssigeno <[email protected]> * Blake Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> * Bump pillow from 10.2.0 to 10.3.0 in /requirements (#2240) Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.2.0 to 10.3.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@10.2.0...10.3.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production ... Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> * fixed rescan observable (#2243) * Added pivot buttons (#2239) * added pivot buttons * fixes * linter * docs * updated doc * changes --------- Co-authored-by: Matteo Lodi <[email protected]> * added tlp info icon (#2246) * adjusted 'Investigation Overview' button (#2244) * adjusted investigation button * fix * Allow filtering for disabled boolean Signed-off-by: 0ssigeno <[email protected]> * Fix cache Signed-off-by: 0ssigeno <[email protected]> * Fix env variables + healthcheck Signed-off-by: 0ssigeno <[email protected]> * Fix visualizable table (#2249) * Fix images url * Fixed table images using absolute url * improved frontend validation in visualizer framework * modified JobIsRunningAlert component (#2256) * changed JobIsRunningAlert * prettier * mocked flow * adjusts to default domain reputation visualizer + analyzers urls and abstractmethods (#2250) * little adjusts * adjust * refactored base_url in url to enable healthchecks * adjust * added update abstract method * added logging of intel_owl package * adjusted containers dependencies * Fix Signed-off-by: 0ssigeno <[email protected]> * support for Elastic8 and removal of support for older versions (#2262) * support for elastic 8 * elastic8 * elastic8 * removed elasticsearch sniffing * Update migration guide from postgres 12 to 16 (#2260) * Improved migration from postgres 12 to postgres 16 * Trimmed extra whitespaces * Fix volume Signed-off-by: 0ssigeno <[email protected]> * fixes #1698 - hfinger analyzer (#2241) * hfinger analyzer * dependency for hfinger analyzer * migrations for hfinger analyzer * overridden update method * default config fix * modified usage.md * fix * fix * Fix phoneinfo Signed-off-by: 0ssigeno <[email protected]> * Minor fix Signed-off-by: 0ssigeno <[email protected]> * Fixes Signed-off-by: 0ssigeno <[email protected]> * Fixing logs Signed-off-by: 0ssigeno <[email protected]> * Bump channels from 4.0.0 to 4.1.0 in /requirements (#2255) Bumps [channels](https://github.com/django/channels) from 4.0.0 to 4.1.0. - [Changelog](https://github.com/django/channels/blob/main/CHANGELOG.txt) - [Commits](django/channels@4.0.0...4.1.0) --- updated-dependencies: - dependency-name: channels dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump quark-engine from 24.2.1 to 24.4.1 in /requirements (#2254) Bumps [quark-engine](https://github.com/quark-engine/quark-engine) from 24.2.1 to 24.4.1. - [Release notes](https://github.com/quark-engine/quark-engine/releases) - [Commits](ev-flow/quark-engine@v24.2.1...v24.4.1) --- updated-dependencies: - dependency-name: quark-engine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * adjusted guide (#2264) * Fix docs Signed-off-by: 0ssigeno <[email protected]> * Little adjusts (#2263) * little adjusts * adjust * refactored base_url in url to enable healthchecks * adjust * added update abstract method * added logging of intel_owl package * adjusted threatfox * threatfox analyzer fix * threatfox analyzer fix * threatfox analyzer fix * threatfox analyzer fix * threatfox analyzer fix * elastic shards/replicas reduced * Fix Signed-off-by: 0ssigeno <[email protected]> * typo * fix Signed-off-by: 0ssigeno <[email protected]> * adjusted NodeToolbar (#2273) * Fix migration Signed-off-by: 0ssigeno <[email protected]> * Cache are adjusted through celery Signed-off-by: 0ssigeno <[email protected]> * fix Signed-off-by: 0ssigeno <[email protected]> * Added stop step for intermediate container (#2266) * create_or_update Signed-off-by: 0ssigeno <[email protected]> * Typo Signed-off-by: 0ssigeno <[email protected]> * Fix Signed-off-by: 0ssigeno <[email protected]> * Fixes Signed-off-by: 0ssigeno <[email protected]> * Remove dns0 analyzers (#2274) * Added migrations to remove analyzers and playbook * Removed analyzers sources * Removed dns0 analyzer from docs * Fix Signed-off-by: 0ssigeno <[email protected]> * Fix black * Added if conditions for saver migrations --------- Signed-off-by: 0ssigeno <[email protected]> Co-authored-by: 0ssigeno <[email protected]> * Frontend - adjusted job metadata section (#2272) * adjusted JobInfoCard * fixed fitView in chrome * Frontend - improvements (#2278) * improvements * fixed test * Fix_ci (#2284) * Fix_ci Signed-off-by: 0ssigeno <[email protected]> * Typo Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> * Optimization Signed-off-by: 0ssigeno <[email protected]> * Optimization Signed-off-by: 0ssigeno <[email protected]> * ASN maxmind integration (#2282) * Changed library from maxminddb to geoip2 * Refactoring maxmind not finished * Refactoring maxmind analyzer * Added methods for query db * Made a method 'private' * Renamed method * Made attributes 'private' * Added return type * Improved log message * Renamed back to update() because of updating cron * Fixed media_root settings * Added log to tar extraction * Removed unnecessary variable * Improved log messages * Readded maxminddb library * Update api_app/analyzers_manager/observable_analyzers/maxmind.py Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> * Fix_ci (#2284) * Fix_ci Signed-off-by: 0ssigeno <[email protected]> * Typo Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> * Changed library from maxminddb to geoip2 * Refactoring maxmind not finished * Refactoring maxmind analyzer * Added methods for query db * Made a method 'private' * Renamed method * Made attributes 'private' * Added return type * Improved log message * Renamed back to update() because of updating cron * Fixed media_root settings * Added log to tar extraction * Removed unnecessary variable * Improved log messages * Readded maxminddb library * Moved functions and improved logs * Changed error handling * Fixed deepsource warning --------- Signed-off-by: 0ssigeno <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> * Abusix send email (#2283) * Added AbuseSubmitter connector * Renamed and updated connector EmailSender * Added monkeypatch to email sender connector * Updated EmailSender parameters * Added AbuseDomainToAbuseIp pivot * Updated AbuseDomainToAbuseIp pivot * Updated pivots * Changed health_check_status to editable * Changed health_check_status back to not editable * receiver update * subject and body update * added abusix update migration * fix investigation creation * updated AbuseDomainToIp should_run * updated AbuseIpToSubmission should_run * added plugin migrations * fix migrations * Changed email sender body * fixed migrations dependencies * updates email sender and abuse submitter * Fix migrations * Fix * Fix * Fix playbooks migrations * Update api_app/connectors_manager/connectors/abuse_submitter.py Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> * Added AbuseSubmitter connector * Renamed and updated connector EmailSender * Added monkeypatch to email sender connector * Updated EmailSender parameters * Added AbuseDomainToAbuseIp pivot * Updated AbuseDomainToAbuseIp pivot * Updated pivots * Changed health_check_status to editable * Changed health_check_status back to not editable * receiver update * subject and body update * added abusix update migration * fix investigation creation * updated AbuseDomainToIp should_run * updated AbuseIpToSubmission should_run * added plugin migrations * fix migrations * Changed email sender body * fixed migrations dependencies * updates email sender and abuse submitter * Fix migrations * Fix * Fix * Fix playbooks migrations * added update method * added update method * removed AbuseSubmitter values Co-authored-by: Simone Berni <[email protected]> * removed EmailSender values * Update should_run Co-authored-by: Simone Berni <[email protected]> * changed AbuseDomainToAbuseIp to AnyCompare * update compare * added update * removed AbuseIpToSubmission * Added AbuseSubmitter connector * Renamed and updated connector EmailSender * Added monkeypatch to email sender connector * Updated EmailSender parameters * Added AbuseDomainToAbuseIp pivot * Updated AbuseDomainToAbuseIp pivot * Updated pivots * Changed health_check_status to editable * Changed health_check_status back to not editable * receiver update * subject and body update * added abusix update migration * fix investigation creation * updated AbuseDomainToIp should_run * updated AbuseIpToSubmission should_run * added plugin migrations * fix migrations * Changed email sender body * fixed migrations dependencies * updates email sender and abuse submitter * Fix migrations * Fix * Fix * Fix playbooks migrations * added update method * Added AbuseSubmitter connector * Changed health_check_status to editable * Changed health_check_status back to not editable * added abusix update migration * added plugin migrations * fix migrations * fixed migrations dependencies * Fix migrations * removed AbuseSubmitter values Co-authored-by: Simone Berni <[email protected]> * removed EmailSender values * Update should_run Co-authored-by: Simone Berni <[email protected]> * changed AbuseDomainToAbuseIp to AnyCompare * update compare * added update * removed AbuseIpToSubmission * Fix pivot migrations * Renamed playbook Abuse_Domain to Takedown_Request * Update api_app/connectors_manager/connectors/abuse_submitter.py Co-authored-by: Matteo Lodi <[email protected]> * Update api_app/connectors_manager/connectors/abuse_submitter.py Co-authored-by: Matteo Lodi <[email protected]> * Added EmailSender header and footer * Fix linters * Fix test Signed-off-by: 0ssigeno <[email protected]> * Fix pivot test * Fix Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: 0ssigeno <[email protected]> * Fixed EmailSender output and plugin descriptions (#2290) * Updated EmailSender output * Updated plugin descriptions * Update authentication/models.py Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> * Update authentication/models.py Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> * deepsource adjusts * bump and changelog * fixes for Yara * removing Yara visualizer from Static Analysis Playbook and updated and fixed Floss Analyzer * Removed mkdir Signed-off-by: 0ssigeno <[email protected]> * blake post merge * Yara already made in dockerfile Signed-off-by: 0ssigeno <[email protected]> * Removed import Signed-off-by: 0ssigeno <[email protected]> * update yara visualizer * Docs update (#2293) * Added list of pre-built pivots * Added list of pre-built connectors * Added list of pre-built playbooks * Added already implemented modules for pivots * Added running a plugin * tried adjust * Adjust field_to_compare description --------- Co-authored-by: Matteo Lodi <[email protected]> * Fix dependencies Signed-off-by: 0ssigeno <[email protected]> * Typo Signed-off-by: 0ssigeno <[email protected]> * Upgrade docs Signed-off-by: 0ssigeno <[email protected]> * Fixed update with None token (#2287) * Bump django-ses from 3.5.0 to 4.0.0 in /requirements (#2280) Bumps [django-ses](https://github.com/django-ses/django-ses) from 3.5.0 to 4.0.0. - [Release notes](https://github.com/django-ses/django-ses/releases) - [Changelog](https://github.com/django-ses/django-ses/blob/main/CHANGES.md) - [Commits](django-ses/django-ses@v3.5.0...v4.0.0) --- updated-dependencies: - dependency-name: django-ses dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump djangorestframework from 3.14.0 to 3.15.1 in /requirements (#2219) Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.14.0 to 3.15.1. - [Release notes](https://github.com/encode/django-rest-framework/releases) - [Commits](encode/django-rest-framework@3.14.0...3.15.1) --- updated-dependencies: - dependency-name: djangorestframework dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump library/nginx from 1.25.4-alpine to 1.26.0-alpine in /docker (#2285) Bumps library/nginx from 1.25.4-alpine to 1.26.0-alpine. --- updated-dependencies: - dependency-name: library/nginx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Starting playbooks (#2297) * starting playbooks Signed-off-by: 0ssigeno <[email protected]> * Not starting Signed-off-by: 0ssigeno <[email protected]> * Fix migration Signed-off-by: 0ssigeno <[email protected]> * Prettier Signed-off-by: 0ssigeno <[email protected]> * Fix Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> * Add IP2WHOIS (#2288) * Add IP2WHOIS * Update Usage.md * Update ip2whois.py - Add an example JSON result to showcase the fields in the result. - Attempt to fix an error reported by DeepSource: Python. * Update ip2whois.py Fix formatting error. * Update ip2whois.py Fix the E501 line too long error by changed to another JSON example. * Update ip2whois.py * fixed migration --------- Co-authored-by: Matteo Lodi <[email protected]> * Bump gunicorn from 20.1.0 to 22.0.0 in /integrations/pcap_analyzers (#2276) Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 20.1.0 to 22.0.0. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](benoitc/gunicorn@20.1.0...22.0.0) --- updated-dependencies: - dependency-name: gunicorn dependency-type: direct:production ... Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> * Bump gunicorn from 20.1.0 to 22.0.0 in /integrations/tor_analyzers (#2277) Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 20.1.0 to 22.0.0. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](benoitc/gunicorn@20.1.0...22.0.0) --- updated-dependencies: - dependency-name: gunicorn dependency-type: direct:production ... Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> * Bump django-auth-ldap from 4.7.0 to 4.8.0 in /requirements (#2270) Bumps [django-auth-ldap](https://github.com/django-auth-ldap/django-auth-ldap) from 4.7.0 to 4.8.0. - [Release notes](https://github.com/django-auth-ldap/django-auth-ldap/releases) - [Changelog](https://github.com/django-auth-ldap/django-auth-ldap/blob/master/docs/changes.rst) - [Commits](django-auth-ldap/django-auth-ldap@4.7.0...4.8.0) --- updated-dependencies: - dependency-name: django-auth-ldap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump gunicorn in /integrations/malware_tools_analyzers/requirements (#2275) Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 20.1.0 to 22.0.0. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](benoitc/gunicorn@20.1.0...22.0.0) --- updated-dependencies: - dependency-name: gunicorn dependency-type: direct:production ... Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> * updated frontend dependencies * Fix serializer Signed-off-by: 0ssigeno <[email protected]> * added linkedin button (#2299) * Fixed tests and fixed maxmind update (#2298) * added plugin info icon in raw data report (#2296) * added plugin info icon * fix test * adjusted tests * refactor pluginReportTables * Change investigation default name (#2301) * Change investigation default name Signed-off-by: 0ssigeno <[email protected]> * Blake Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> * adjusted old job removal * Graph prevention with scan_mode check_previous_analysis (#2302) * Graph prevention with scan_mode check_previous_analysis Signed-off-by: 0ssigeno <[email protected]> * Wops Signed-off-by: 0ssigeno <[email protected]> --------- Signed-off-by: 0ssigeno <[email protected]> * Fix + test for runtime config Signed-off-by: 0ssigeno <[email protected]> * Fixes Signed-off-by: 0ssigeno <[email protected]> * domain playbook adjusts (#2304) * domain playbook adjusts * black * Added few Docstrings in authentication\views.py (#2236) * Added few Docstrings * Updated with few changes. * linter --------- Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> Co-authored-by: Your Name <[email protected]> * fixes #1699 Permhash analyzer (#2258) * added permhash analyzer and updated project-requirements.txt * name change * migrations * changes * update mimetypes and migration file * update permhash * fix migration issues * raise AnalyzerRunException in perm_hash.py * use mimetype instead of file extension * added monkeypatch patches and changed permhash version from 0.1.4.2 to 0.1.4 * add permhash to free analyzers * updated test_classes => added AndroidManifest.xml, manifest.json and sample.crx to test_files.zip => added test cases for xml, json and crx in tests/api_app/analyzers_manager/test_classes.py * updated perm_hash.py * added permhash to both free analyzers and static analyzers * updated Usage.md * updated migrations * fix * migration * migrations * migrations --------- Co-authored-by: Matteo Lodi <[email protected]> * Bump pywatchman from 1.4.1 to 2.0.0 in /requirements (#2169) Bumps [pywatchman](https://github.com/facebook/watchman) from 1.4.1 to 2.0.0. - [Release notes](https://github.com/facebook/watchman/releases) - [Commits](https://github.com/facebook/watchman/commits/v2.0) --- updated-dependencies: - dependency-name: pywatchman dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Added traefik switch to script (#2307) * Removed depends on Signed-off-by: 0ssigeno <[email protected]> * Fixes Blint#2232 (#2257) * blint * report directory, code quality, docs adjusts to default domain reputation visualizer + analyzers urls and abstractmethods (#2250) * little adjusts * adjust * refactored base_url in url to enable healthchecks * adjust * added update abstract method * added logging of intel_owl package adjusted containers dependencies Fix Signed-off-by: 0ssigeno <[email protected]> report directory, code quality, docs adjusts to default domain reputation visualizer + analyzers urls and abstractmethods (#2250) * little adjusts * adjust * refactored base_url in url to enable healthchecks * adjust * added update abstract method * added logging of intel_owl package adjusted containers dependencies Fix Signed-off-by: 0ssigeno <[email protected]> RED tlp * dict response, log remove * cleanup * migratiuons * migrations * code quality * supportfiles * updated blint * updated python in ci * repo_downloader_fix * codeql * fix migrations * fix migrations * cleaned code * cleaned code * fix * try fix repo downloader * don't work --------- Co-authored-by: g4ze <[email protected]> Co-authored-by: Matteo Lodi <[email protected]> * adjusted JobIsRunningFlow (#2300) * adjusted JobIsRunningFlow * refactor * deepsource * adjusted test + permission edge case * adjusted Update view --------- Signed-off-by: 0ssigeno <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shivam Purohit <[email protected]> Co-authored-by: 0ssigeno <[email protected]> Co-authored-by: Moon Patel <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: Martina Carella <[email protected]> Co-authored-by: Daniele Rosetti <[email protected]> Co-authored-by: fgibertoni <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simone Berni <[email protected]> Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com> Co-authored-by: Shivam Purohit <[email protected]> Co-authored-by: Cristina Ascari <[email protected]> Co-authored-by: IP2Location <[email protected]> Co-authored-by: suryapavan1611 <[email protected]> Co-authored-by: Your Name <[email protected]> Co-authored-by: Nilay Gupta <[email protected]> Co-authored-by: g4ze <[email protected]>


(Please add to the PR name the issue/s that this PR would close if merged by using a Github keyword. Example:
<feature name>. Closes #999. If your PR is made by a single commit, please add that clause in the commit too. This is all required to automate the closure of related issues.)Description
Closes #1699
New analyzer: Permhash
Type of change
New analyzer
Please delete options that are not relevant.
Checklist
develop_monkeypatch()was used in its class to apply the necessary decorators.dumpplugincommand 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.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.Important Rules
Output screenshot
JSON output