swimlane / pyattck

A Python package to interact with the Mitre ATT&CK Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

groups linkage to techniques

robomotic opened this issue · comments

Is your feature request related to a problem? Please describe.
I want an interface to pull the relationships between Groups and Techniques.

Describe the solution you'd like
For example on the MITRE website: https://attack.mitre.org/groups/G0016/
For each group there is a list of the techniques used.
I am not sure where those relationships are stored in STIX but would be nice to have an object or a utility that given a technique ID or an actor ID returns the corresponding linked objects.

Describe alternatives you've considered
Right now I webscrape the webpage with pandas.

Additional context
Add any other context or screenshots about the feature request here.

Actually my bad, looking at the data model this is perfect.

from pyattck import Attck

attack = Attck()

for actor in attack.enterprise.actors:
  print(f'Actor Name {actor.name} Total techniques {len(actor.techniques)}')

Closing now.