-
Notifications
You must be signed in to change notification settings - Fork 451
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
[malwarebazaar-recent-additions] Allow optional storage of malware samples #3503
base: master
Are you sure you want to change the base?
[malwarebazaar-recent-additions] Allow optional storage of malware samples #3503
Conversation
8426772
to
4179485
Compare
- CONNECTOR_CONFIDENCE_LEVEL=40 # From 0 (Unknown) to 100 (Fully trusted); ENV or can be set in config.yml | ||
- CONNECTOR_UPDATE_EXISTING_DATA=false # ENV or can be set in config.yml |
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.
@ParamConstructor Thank you for your contribution!
Some remarks here: CONFIDENCE_LEVEL
and UPDATE_EXISTING_DATA
for connector are deprecated now.
You can find a full detailed explanation by @Powlinett from our team here: #3316 (review)
I see that are using it later as score, I suggest to remove those parameters and add for example MALWAREBAZAAR_RECENT_ADDITIONS_SCORE=40
- CONNECTOR_CONFIDENCE_LEVEL=40 # From 0 (Unknown) to 100 (Fully trusted); ENV or can be set in config.yml | |
- CONNECTOR_UPDATE_EXISTING_DATA=false # ENV or can be set in config.yml |
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.
@helene-nguyen - I made suggested corrections and moved them down to the local connector level as MALWAREBAZAAR vars.
Based on this (#3526) - maybe I should just remove it and let the connector user (account connector runs as) default the score
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.
@ParamConstructor I saw that you have rebased master, I assume everything is good now for this ?
…el setting to local connector level
4179485
to
298ac3b
Compare
…elationship feature; Fixed OpenCTI variables to not be duplicative that were recently added.
After rebase - two new capabilities had been added to create relationships and indicators via (bc63dde). This had some slight issues where OpenCTI URL and OpenCTI Token had been duplicated down to the MALWAREBAZAAR level (They are available via the config.yml or docker-compose.yml at the top level). I do not believe this duplication was the author's Intent? (@Noxurge - tagged to verify). Additionally, the new Indicators and Relationships should have a Marking for TLP:CLEAR. These issues/corrections are incorporated in the commit - (8a4d4ce) on this PR. |
Hello @ParamConstructor! It wasn't my intention to do this duplication. My focus is to use OpenCTIApiClient to create the relationship and indicators with SHA256. Thanks for add TLP:CLEAR for this two capabilities. If you have any question for my features, feel free to ping me again. |
Proposed changes
The core intent of this update is to support the "optional" storage of the malware files related to the Malware Bazaar data fetches. Some users may not wish to "actually" store the "real" malware files on their system disk. This could be due to security requirements, or could be because they never use the actual file and it is needlessly increasing their S3/MinIO storage requirements. This update allows for access to the Artifact entries and metadata about the malware artifacts - but removes the storage of the "real" malware when enabled. The malware is replaced with a file that is 85 bytes in size and when downloaded within OpenCTI states:
"This would normally be Malware, but we have disabled the saving of the real malware."
Changes:
Cleaned up code for autopep8/black/isort/pylint compliance.
Added the following in the
docker-compose.yml
to show connector values could be in theconfig.yml
or here and added the missing Auth-Key token reference that is required for the connector to function properly.docker-compose.yml
andconfig.yml.sample
in order to support NOT actually storing the real malware in S3/MinIO storage.Related issues
Checklist
Further comments
N/A