Add ATT&CK sub-technique support to CLI (#614)

* Add Mitre sub-technique support to CLI
* Add subtechnique enum to schema
* Add test to prevent duplicative tactics in mapping
This commit is contained in:
Justin Ibarra
2020-12-09 07:56:55 +01:00
committed by GitHub
parent b8d2f6fc96
commit e272800a5d
15 changed files with 108 additions and 107 deletions
+2 -2
View File
@@ -133,8 +133,8 @@ class PackageDocument(xlsxwriter.Workbook):
)
for row, rule in enumerate(rules, 1):
tactic_names, _, _, technique_ids = rule.get_flat_mitre()
rule_contents = {'tactics': tactic_names, 'techniques': technique_ids}
flat_mitre = rule.get_flat_mitre()
rule_contents = {'tactics': flat_mitre['tactic_names'], 'techniques': flat_mitre['technique_ids']}
rule_contents.update(rule.contents.copy())
for column, field in enumerate(metadata_fields):