Skip to content

Commit

Permalink
add assets to diffstix
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Sep 25, 2023
1 parent 7812b34 commit cf645e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions mitreattack/diffStix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ A brief explanation of key pieces can be found below.
"software": {},
"groups": {},
"campaigns": {},
"assets": {},
"mitigations": {},
"datasources": {},
"datacomponents": {}
Expand Down
4 changes: 3 additions & 1 deletion mitreattack/diffStix/changelog_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(
self.new = new
self.show_key = show_key
self.site_prefix = site_prefix
self.types = ["techniques", "software", "groups", "campaigns", "mitigations", "datasources", "datacomponents"]
self.types = ["techniques", "software", "groups", "campaigns", "assets", "mitigations", "datasources", "datacomponents"]
self.use_mitre_cti = use_mitre_cti
self.verbose = verbose
self.include_contributors = include_contributors
Expand All @@ -123,6 +123,7 @@ def __init__(
"software": "Software",
"groups": "Groups",
"campaigns": "Campaigns",
"assets": "Assets",
"mitigations": "Mitigations",
"datasources": "Data Sources",
"datacomponents": "Data Components",
Expand Down Expand Up @@ -582,6 +583,7 @@ def parse_extra_data(self, data_store: stix2.MemoryStore, domain: str, datastore
"software": [Filter("type", "=", "malware"), Filter("type", "=", "tool")],
"groups": [Filter("type", "=", "intrusion-set")],
"campaigns": [Filter("type", "=", "campaign")],
"assets": [Filter("type", "=", "x-mitre-asset")],
"mitigations": [Filter("type", "=", "course-of-action")],
"datasources": [Filter("type", "=", "x-mitre-data-source")],
"datacomponents": [Filter("type", "=", "x-mitre-data-component")],
Expand Down

0 comments on commit cf645e8

Please sign in to comment.