-
Notifications
You must be signed in to change notification settings - Fork 3
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
Development: Create STIX data files #8
Merged
Merged
Conversation
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
…sensor-mappings-to-attack into mapping-pages
mehaase
requested changes
Oct 18, 2023
tleef42
force-pushed
the
mapping-pages
branch
from
October 25, 2023 14:29
f4d4ead
to
c8c57a4
Compare
Conflicts: poetry.lock pyproject.toml
Old comparison method did not take only ID into account and added dupes of STIX objects (due to differences in timestamp fields). Added a simple method to handle searching by ID before adding.
mehaase
approved these changes
Oct 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Creates 3 scripts to generate STIX bundles from sensor data. Organization of scripts is modeled from the VERIS Mappings to ATT&CK project such that:
parse/
util/
src/util/create_mappings.py
Summary
This intakes the Excel sheet for the mappings, converts it to a DataFrame and standardizes the fields.
Adds the ATT&CK Data Source ID as a new field to the DataFrame using an ATT&CK spreadsheets
The DataFrame is split by Sensor and saved as CSVs which are used to generate STIX objects in
generate_stix.py
src/parse/generate_stix.py
Summary
Utility script to generate and save STIX Bundles files from a corresponding CSV. The script creates custom STIX Objects when needed for:
and saves all new SDOs and SROs to
Reference-for-mappings-enterprise.json
in order to avoid overwriting STIX IDs.src/util/create_heatmap.py
Summary
Generates ATT&CK Navigator layers for the sensor from its STIX Bundle on disk. It builds out a layer for each Sensor Data Bundle on disk and consolidates all the techniques from all Sensor Navigator layers into a file called
sensor-comparison-heatmap.json
. The layers can be found in thelayers
folder of the attack type in the stix output folder.Related Tickets
Resolves the tickets SMAP70 & SMAP-83