mirror of
https://github.com/mandiant/capa.git
synced 2025-12-23 07:28:34 -08:00
Update ATT&CK and MBC lint data (#1297)
* sort by ID * update ATT&CK/MBC lint data via script
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
- dotnet: extract dotnet and pe format #1187 @mr-tz
|
- dotnet: extract dotnet and pe format #1187 @mr-tz
|
||||||
- don't render all library rule matches in vverbose output #1174 @mr-tz
|
- don't render all library rule matches in vverbose output #1174 @mr-tz
|
||||||
- cache the rule set across invocations for better performance #1212 @williballenthin
|
- cache the rule set across invocations for better performance #1212 @williballenthin
|
||||||
|
- update ATT&CK/MBC data for linting #1297 @mr-tz
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
- remove SMDA backend #1062 @williballenthin
|
- remove SMDA backend #1062 @williballenthin
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -125,7 +125,10 @@ class MitreExtractor:
|
|||||||
data: Dict[str, Dict[str, str]] = {}
|
data: Dict[str, Dict[str, str]] = {}
|
||||||
for tactic in self._get_tactics():
|
for tactic in self._get_tactics():
|
||||||
data[tactic["name"]] = {}
|
data[tactic["name"]] = {}
|
||||||
for technique in self._get_techniques_from_tactic(tactic["x_mitre_shortname"]):
|
for technique in sorted(
|
||||||
|
self._get_techniques_from_tactic(tactic["x_mitre_shortname"]),
|
||||||
|
key=lambda x: x["external_references"][0]["external_id"],
|
||||||
|
):
|
||||||
tid = technique["external_references"][0]["external_id"]
|
tid = technique["external_references"][0]["external_id"]
|
||||||
technique_name = technique["name"].split("::")[0]
|
technique_name = technique["name"].split("::")[0]
|
||||||
if technique["x_mitre_is_subtechnique"]:
|
if technique["x_mitre_is_subtechnique"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user