mirror of
https://github.com/valitydev/atomic-threat-coverage.git
synced 2024-11-06 17:45:23 +00:00
Merge branch 'pivoting-and-fixes' of https://gitlab.com/krakow2600/atomic-threat-coverage into pivoting-and-fixes
This commit is contained in:
commit
192ce79be9
@ -51,6 +51,8 @@ def main(**kwargs):
|
||||
|
||||
# Iterate through alerts and pathes to them
|
||||
for alert, path in zip(alerts, path_to_alerts):
|
||||
if not isinstance(alert.get('tags'), list):
|
||||
continue
|
||||
threats = [tag for tag in alert['tags'] if tag.startswith('attack')]
|
||||
tactics = [f'{ta_mapping[threat][1]}: {ta_mapping[threat][0]}' for threat in threats if threat in ta_mapping.keys() ]
|
||||
techniques = [threat for threat in threats if threat.startswith('attack.t')]
|
||||
|
Loading…
Reference in New Issue
Block a user