mitre-attack / mitreattack-python

A python module for working with ATT&CK
https://mitreattack-python.readthedocs.io/
Apache License 2.0
447 stars 103 forks source link

[Request] Build a layer from a list of techniques #157

Open 3isenHeiM opened 10 months ago

3isenHeiM commented 10 months ago

Is your feature request related to a problem?

I would find it very useful to be able to build a NavLayer based on a Techniques list.

Describe the solution you'd like

As input, this script would take techniques (and some annotations or scoring), and it would then build a json from them.|

Describe alternatives you've considered

I'm experiencing the possibilities within the library but I fear it will requires crafting the JSON myself based on this : https://github.com/mitre-attack/attack-navigator/blob/develop/layers/LAYERFORMATv4_1.md#example

jondricek commented 10 months ago

Thanks for the suggestion! This sounds like something that would be useful to multiple people, but is a lower priority at the moment. Hopefully we should be able to get to it in the next few months!

markmackensen commented 5 months ago

Hello everyone,

I developed a Python script named "attack_layer_builder" that might align well with what’s being discussed here. The script allows users to input a list of technique IDs (from a CSV or manually) and generates a NavLayer JSON file ready for the MITRE ATT&CK Navigator. This seems to address the core functionality desired in this issue.

You can find the script and more details here: https://github.com/markmackensen/attack_layer_builder

I'd be thrilled to get your thoughts on this and discuss how it might be integrated or refined to better serve the community's needs.

Thanks!