Name | pyattck JSON |
Version |
7.1.2
JSON |
| download |
home_page | https://github.com/swimlane/pyattck |
Summary | A Python package to interact with the Mitre ATT&CK Frameworks |
upload_time | 2023-05-16 02:54:02 |
maintainer | |
docs_url | None |
author | Swimlane |
requires_python | >=3.7,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
![pyattck](https://github.com/swimlane/pyattck/workflows/Testing%20pyattck/badge.svg)
![](./images/ubuntu_support.svg)
![](./images/macos_support.svg)
![](./images/windows_support.svg)
![](./images/code_coverage.svg)
# Welcome to pyattck's Documentation
```
.______ ____ ____ ___ .___________.___________. ______ __ ___
| _ \ \ \ / / / \ | | | / || |/ /
| |_) | \ \/ / / ^ \ `---| |----`---| |----`| ,----'| ' /
| ___/ \_ _/ / /_\ \ | | | | | | | <
| | | | / _____ \ | | | | | `----.| . \
| _| |__| /__/ \__\ |__| |__| \______||__|\__\
```
A Python package to interact with MITRE ATT&CK Frameworks
> Current Version is 7.1.1
**pyattck** is a light-weight framework for MITRE ATT&CK Frameworks. This package extracts details from the MITRE Enterprise, PRE-ATT&CK, Mobile, and ICS Frameworks.
## Why?
`pyattck` assist organizations and individuals with accessing MITRE ATT&CK Framework(s) in a programmatic way. Meaning, you can access all defined actors, malwares, mitigations, tactics, techniques, and tools defined by the Enterprise, Mobile, Pre-Attck, and ICS frameworks via a command-line utility or embedding into your own code base.
There are many reasons why you would want to access this data in an automated (scripted/coded) way but a few examples are:
* Generate reports with additional details about a technique (or any object defined in the framework)
* A build pipeline of detection rules with additional MITRE ATT&CK details for categorization
* Quickly searching for specific details about a technique without navigating a web page
There are other benefits that `pyattck` provide as well which includes the ability to provide additional contextual data. You can find more information about this data [here](https://github.com/swimlane/pyattck-data) but the basics are that `pyattck` utilizes multiple open-source repositories to gather additional contextual data like commands used to execute a technique, country and other details about a malicious actor, other variants of malware similar to a defined tool/malware, etc.
This additional context is what makes `pyattck` truly powerful and enables people to build more robust testing and validation of their detection rules, validates testing assumptions, etc. Truly there are countless ways that `pyattck` could be utilized to help blue, red, and purple teams defend organizations (and themselves).
## Features
The **pyattck** package retrieves all Tactics, Techniques, Actors, Malware, Tools, and Mitigations from the MITRE ATT&CK Frameworks as well as any defined relationships within the MITRE ATT&CK dataset (including sub-techniques).
In addition, Techniques, Actors, and Tools (if applicable) now have collected data from third-party resources that are accessible via different properties. For more detailed information about these features, see [External Datasets](https://github.com/swimlane/pyattck-data).
The **pyattck** package allows you to:
* Specify a URL or local file path for the MITRE ATT&CK Enterprise Framework json, generated dataset, and/or a config.yml file.
* Access data from the MITRE PRE-ATT&CK Framework
* Access data from the MITRE Mobile ATT&CK Framework
* Access data from the MITRE ICS ATT&CK Framework
* Access sub-techniques as nested objects or you can turn it off and access as normal technique
* Access compliance controls (currently NIST 800-53 v5) related to a MITRE ATT&CK Technique
* pyattck now utilizes structured data models. More information can be found at [pyattck-data](https://github.com/swimlane/pyattck-data)
* Run an interactive console menu system to access pyattck data
# Table of Contents
1. [Installation](#installation)
2. [Usage Example](#usage-example)
3. [Configuration](#configuration)
4. [Notes](#note)
## Installation
You can install **pyattck** on OS X, Linux, or Windows. You can also install it directly from the source. To install, see the commands under the relevant operating system heading, below.
### macOS, Linux and Windows:
```bash
pip install pyattck
```
### Installing from source
```bash
git clone https://github.com/swimlane/pyattck.git
cd pyattck
python setup.py install
```
## Usage example
To use **pyattck** you must instantiate an **Attck** object. Although you can interact directly with each class, the intended use is through a **Attck** object:
```python
from pyattck import Attck
attack = Attck()
```
By default, `sub-techniques` are accessible under each technique object. You can turn this behavior off by passing `nested_techniques=False` when creating your `Attck` object.
As an example, the default behavior looks like the following example:
```python
from pyattck import Attck
attack = Attck()
for technique in attack.enterprise.techniques:
print(technique.id)
print(technique.name)
for subtechnique in technique.techniques:
print(subtechnique.id)
print(subtechnique.name)
```
You can access the following `main` properties on your **Attck** object:
* enterprise
* preattack
* mobile
* ics
Once you specify the MITRE ATT&CK Framework, you can access additional properties.
Here are the accessible objects under the [Enterprise](docs/enterprise.md) property:
* [actors](docs/actor.md)
* [controls](docs/control.md)
* [malwares](docs/malware.md)
* [mitigations](docs/mitigation.md)
* [tactics](docs/tactic.md)
* [techniques](docs/technique.md)
* [tools](docs/tools.md)
For more information on object types under the `enterprise` property, see [Enterprise](docs/enterprise.md).
Here are the accessible objects under the [PreAttck](docs/preattck.md) property:
* [actors](docs/actor.md)
* [tactics](docs/tactic.md)
* [techniques](docs/technique.md)
For more information on object types under the `preattck` property, see [PreAttck](docs/preattck.md).
Here are the accessible objects under the [Mobile](docs/mobile.md) property:
* [actors](docs/actor.md)
* [malwares](docs/malware.md)
* [mitigations](docs/mitigation.md)
* [tactics](docs/tactic.md)
* [techniques](docs/technique.md)
* [tools](docs/tools.md)
For more information on object types under the `mobile` property, see [Mobile](docs/mobile.md).
Here are the accessible objects under the [ICS](docs/ics.md) property:
* [controls](docs/control.md)
* [malwares](docs/malware.md)
* [mitigations](docs/mitigation.md)
* [tactics](docs/tactic.md)
* [techniques](docs/technique.md)
For more information on object types under the `ics` property, see [ICS](docs/ics.md).
## Interactive Menu Usage
To utilize the new interactive menu system within pyattck, you must set `interactive` to `True`. By doing so, it will launch the interactive console menu system.
Using a script your can launch this by running:
```python
from pyattck import Attck
Attck(interactive=True)
```
Or you can also run interactive mode on the command line:
```bash
pyattck --interactive
```
Checkout a gif example below:
![](images/pyattck_interactive_menu.gif)
## Configuration
`pyattck` allows you to configure if you store external data and where it is stored.
```python
from pyattck import Attck
attck = Attck(
nested_techniques=True,
use_config=False,
save_config=False,
config_file_path='~/pyattck/config.yml',
data_path='~/pyattck/data',
enterprise_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_enterprise_attck_v1.json",
pre_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_pre_attck_v1.json",
mobile_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_mobile_attck_v1.json,
ics_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_ics_attck_v1.json",
nist_controls_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_nist_controls_v1.json",
generated_nist_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/attck_to_nist_controls.json",
**kwargs
)
```
By default, `pyattck` will (now) pull the latest external data from their respective locations using HTTP GET requests. `pyattck` currently pulls from the following locations:
* enterprise_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_enterprise_attck_v1.json"
* pre_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_pre_attck_v1.json"
* mobile_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_mobile_attck_v1.json"
* ics_attck_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_ics_attck_v1.json"
* nist_controls_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_nist_controls_v1.json"
* generated_nist_json="https://swimlane-pyattck.s3.us-west-2.amazonaws.com/attck_to_nist_controls.json"
You have several options when instantiating the `Attck` object. As of `4.0.0` you can now specify any of the following options:
* use_config - When you specify this argument as `True` pyattck will attempt to retrieve the configuration specified in the `config_file_path` location. If this file is corrupted or cannot be found, we will default to retrieving data from the specified `*_attck_json` locations.
* save_config - When you specify this argument as `True` pyattck will save the configuration file to the specified location set by `config_file_path`. Additionally, we will save all downloaded files to the `data_path` location specified. If you have specified a local path location instead of a download URL for any of the `*_attck_json` parameters we will save this location in our configuration and reference this location going forward.
* config_file_path - The path to store a configuration file. Default is `~/pyattck/config.yml`
* data_path - The path to store any data files downloaded to the local system. Default is `~/pyattck/data`
### JSON Locations
Additionally, you can specify the location for each individual `*_attck_json` files by passing in either a URI or a local file path. If you have passed in a local file path, we will simply read from this file.
If you have used the default values or specified an alternative URI location to retrieve these JSON files from, you can additionally pass in `**kwargs` that will be passed along to the `Requests` python package when performing any HTTP requests.
## Note
We understand that there are many different open-source projects being released, even on a daily basis, but we wanted to provide a straightforward Python package that allowed the user to identify known relationships between all verticals of the MITRE ATT&CK Framework.
If you are unfamiliar with the MITRE ATT&CK Framework, there are a few key components to ensure you have a firm grasp around. The first is Tactics & Techniques. When looking at the [MITRE ATT&CK Framework](https://attack.mitre.org/), the Tactics are the columns and represent the different phases of an attack.
> The MITRE ATT&CK Framework is NOT an all encompassing/defacto security coverage map - it is rather a FRAMEWORK and additional avenues should also be considered when assessing your security posture.
Techniques are the rows of the framework and are categorized underneath specific Tactics (columns). They are data points within the framework that provides guidance when assessing your security gaps. Additionally, (most) Techniques contain mitigation guidance in addition to information about their relationship to tools, malware, and even actors/groups that have used this technique during recorded attacks.
This means, if your organization is focused on TTPs (Tactics Techniques and Procedures) used by certain actors/groups then MITRE ATT&CK Framework is perfect for you. If you are not at this security maturing within your organization, no worries! The ATT&CK Framework still provides really good guidance in a simple and straightforward layout, but programmatically it is not straightforward--especially if you wanted to measure (or map) your security controls using the framework.
### Developing and Testing
You can add features or bugs or run the code in a development environment.
1. To get a development and testing environment up and running, use this [Dockerfile](https://github.com/swimlane/pyattck/blob/master/Dockerfile).
2. To use the `Dockerfile` run, cd to this repository directory and run:
```
docker build --force-rm -t pyattck .
```
3. Next, run the docker container:
```
docker run pyattck
```
Running this calls the test python file in [bin/test.py](https://github.com/swimlane/pyattck/blob/master/bin/test.py).
4. Modify the test python file for additional testing and development.
## Running the tests
Tests within this project should cover all available properties and methods. As this project grows the tests will become more robust but for now we are testing that they exist and return outputs.
## Contributing
Please read [CONTRIBUTING.md](https://github.com/swimlane/pyattck/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning.
## Change Log
For details on features for a specific version of `pyattck`, see the [CHANGELOG.md](https://github.com/swimlane/pyattck/blob/master/CHANGELOG.md).
## Authors
* Josh Rickard - *Initial work* - [MSAdministrator](https://github.com/msadministrator)
See also the list of [contributors](https://github.com/swimlane/pyattck/contributors).
## License
This project is licensed under the [MIT License](https://github.com/swimlane/pyattck/blob/master/LICENSE.md).
## Acknowledgments
First of all, I would like to thank everyone who contributes to open-source projects, especially the maintainers and creators of these projects. Without them, this capability would not be possible.
This data set is generated from many different sources. As we continue to add more sources, we will continue to add them here. Again thank you to all of these projects. In no particular order, `pyattck` utilizes data from the following projects:
* [Mitre ATT&CK APT3 Adversary Emulation Field Manual](https://attack.mitre.org/docs/APT3_Adversary_Emulation_Field_Manual.xlsx)
* [Atomic Red Team (by Red Canary)](https://github.com/redcanaryco/atomic-red-team)
* [Atomic Threat Coverage](https://github.com/atc-project/atomic-threat-coverage)
* [attck_empire (by dstepanic)](https://github.com/dstepanic/attck_empire)
* [sentinel-attack (by BlueTeamLabs)](https://github.com/BlueTeamLabs/sentinel-attack)
* [Litmus_test (by Kirtar22)](https://github.com/Kirtar22/Litmus_Test)
* [nsm-attack (by oxtf)](https://github.com/0xtf/nsm-attack)
* [osquery-attck (by teoseller)](https://github.com/teoseller/osquery-attck)
* [Mitre Stockpile](https://github.com/mitre/stockpile)
* [SysmonHunter (by baronpan)](https://github.com/baronpan/SysmonHunter)
* [ThreatHunting-Book (by 12306Bro)](https://github.com/12306Bro/Threathunting-book)
* [threat_hunting_tables (by dwestgard)](https://github.com/dwestgard/threat_hunting_tables)
* [APT Groups & Operations](https://docs.google.com/spreadsheets/d/1H9_xaxQHpWaa4O_Son4Gx0YOIzlcBWMsdvePFX68EKU/edit#gid=1864660085)
* [C2Matrix (by @jorgeorchilles, @brysonbort, @adam_mashinchi)](https://www.thec2matrix.com/)
* [Elemental](https://github.com/Elemental-attack/Elemental)
* [MalwareArchaeology - ATTACK](https://github.com/MalwareArchaeology/ATTACK)
* [Attack-Technique-Dataset](https://github.com/NewBee119/Attack-Technique-Dataset)
```eval_rst
.. toctree::
:titlesonly:
configuration
pyattck/attck
Dataset <https://github.com/swimlane/pyattck-data>
Data Models <https://github.com/swimlane/pyattck-data>
enterprise/enterprise
preattck/preattck
mobile/mobileattck
ics/icsattck
```
Raw data
{
"_id": null,
"home_page": "https://github.com/swimlane/pyattck",
"name": "pyattck",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Swimlane",
"author_email": "info@swimlane.com",
"download_url": "https://files.pythonhosted.org/packages/40/ed/f99679ce9c7608c24cb5651310185ea2a8bd554e5abd7122239de83f4d7a/pyattck-7.1.2.tar.gz",
"platform": null,
"description": "![pyattck](https://github.com/swimlane/pyattck/workflows/Testing%20pyattck/badge.svg)\n![](./images/ubuntu_support.svg)\n![](./images/macos_support.svg)\n![](./images/windows_support.svg)\n![](./images/code_coverage.svg)\n\n# Welcome to pyattck's Documentation\n\n```\n .______ ____ ____ ___ .___________.___________. ______ __ ___\n | _ \\ \\ \\ / / / \\ | | | / || |/ /\n | |_) | \\ \\/ / / ^ \\ `---| |----`---| |----`| ,----'| ' /\n | ___/ \\_ _/ / /_\\ \\ | | | | | | | <\n | | | | / _____ \\ | | | | | `----.| . \\\n | _| |__| /__/ \\__\\ |__| |__| \\______||__|\\__\\\n\n```\n\tA Python package to interact with MITRE ATT&CK Frameworks\n\n> Current Version is 7.1.1\n\n**pyattck** is a light-weight framework for MITRE ATT&CK Frameworks. This package extracts details from the MITRE Enterprise, PRE-ATT&CK, Mobile, and ICS Frameworks.\n\n## Why?\n\n`pyattck` assist organizations and individuals with accessing MITRE ATT&CK Framework(s) in a programmatic way. Meaning, you can access all defined actors, malwares, mitigations, tactics, techniques, and tools defined by the Enterprise, Mobile, Pre-Attck, and ICS frameworks via a command-line utility or embedding into your own code base.\n\nThere are many reasons why you would want to access this data in an automated (scripted/coded) way but a few examples are:\n\n* Generate reports with additional details about a technique (or any object defined in the framework) \n* A build pipeline of detection rules with additional MITRE ATT&CK details for categorization\n* Quickly searching for specific details about a technique without navigating a web page\n\nThere are other benefits that `pyattck` provide as well which includes the ability to provide additional contextual data. You can find more information about this data [here](https://github.com/swimlane/pyattck-data) but the basics are that `pyattck` utilizes multiple open-source repositories to gather additional contextual data like commands used to execute a technique, country and other details about a malicious actor, other variants of malware similar to a defined tool/malware, etc. \n\nThis additional context is what makes `pyattck` truly powerful and enables people to build more robust testing and validation of their detection rules, validates testing assumptions, etc. Truly there are countless ways that `pyattck` could be utilized to help blue, red, and purple teams defend organizations (and themselves).\n\n## Features\n\nThe **pyattck** package retrieves all Tactics, Techniques, Actors, Malware, Tools, and Mitigations from the MITRE ATT&CK Frameworks as well as any defined relationships within the MITRE ATT&CK dataset (including sub-techniques).\n\nIn addition, Techniques, Actors, and Tools (if applicable) now have collected data from third-party resources that are accessible via different properties. For more detailed information about these features, see [External Datasets](https://github.com/swimlane/pyattck-data).\n\nThe **pyattck** package allows you to:\n\n * Specify a URL or local file path for the MITRE ATT&CK Enterprise Framework json, generated dataset, and/or a config.yml file.\n * Access data from the MITRE PRE-ATT&CK Framework\n * Access data from the MITRE Mobile ATT&CK Framework\n * Access data from the MITRE ICS ATT&CK Framework\n * Access sub-techniques as nested objects or you can turn it off and access as normal technique\n * Access compliance controls (currently NIST 800-53 v5) related to a MITRE ATT&CK Technique\n * pyattck now utilizes structured data models. More information can be found at [pyattck-data](https://github.com/swimlane/pyattck-data)\n * Run an interactive console menu system to access pyattck data\n\n# Table of Contents\n\n1. [Installation](#installation)\n2. [Usage Example](#usage-example)\n3. [Configuration](#configuration)\n4. [Notes](#note)\n\n## Installation\n\nYou can install **pyattck** on OS X, Linux, or Windows. You can also install it directly from the source. To install, see the commands under the relevant operating system heading, below.\n\n### macOS, Linux and Windows:\n\n```bash\npip install pyattck\n```\n\n### Installing from source\n\n```bash\ngit clone https://github.com/swimlane/pyattck.git\ncd pyattck\npython setup.py install\n```\n\n## Usage example\n\nTo use **pyattck** you must instantiate an **Attck** object. Although you can interact directly with each class, the intended use is through a **Attck** object:\n\n```python\nfrom pyattck import Attck\n\nattack = Attck()\n```\n\nBy default, `sub-techniques` are accessible under each technique object. You can turn this behavior off by passing `nested_techniques=False` when creating your `Attck` object.\n\nAs an example, the default behavior looks like the following example:\n\n```python\nfrom pyattck import Attck\n\nattack = Attck()\n\nfor technique in attack.enterprise.techniques:\n print(technique.id)\n print(technique.name)\n for subtechnique in technique.techniques:\n print(subtechnique.id)\n print(subtechnique.name)\n```\n\nYou can access the following `main` properties on your **Attck** object:\n\n* enterprise\n* preattack\n* mobile\n* ics\n\nOnce you specify the MITRE ATT&CK Framework, you can access additional properties.\n\nHere are the accessible objects under the [Enterprise](docs/enterprise.md) property:\n\n* [actors](docs/actor.md)\n* [controls](docs/control.md)\n* [malwares](docs/malware.md)\n* [mitigations](docs/mitigation.md)\n* [tactics](docs/tactic.md)\n* [techniques](docs/technique.md)\n* [tools](docs/tools.md)\n\nFor more information on object types under the `enterprise` property, see [Enterprise](docs/enterprise.md).\n\nHere are the accessible objects under the [PreAttck](docs/preattck.md) property:\n\n* [actors](docs/actor.md)\n* [tactics](docs/tactic.md)\n* [techniques](docs/technique.md)\n\nFor more information on object types under the `preattck` property, see [PreAttck](docs/preattck.md).\n\nHere are the accessible objects under the [Mobile](docs/mobile.md) property:\n\n* [actors](docs/actor.md)\n* [malwares](docs/malware.md)\n* [mitigations](docs/mitigation.md)\n* [tactics](docs/tactic.md)\n* [techniques](docs/technique.md)\n* [tools](docs/tools.md)\n\nFor more information on object types under the `mobile` property, see [Mobile](docs/mobile.md).\n\nHere are the accessible objects under the [ICS](docs/ics.md) property:\n\n* [controls](docs/control.md)\n* [malwares](docs/malware.md)\n* [mitigations](docs/mitigation.md)\n* [tactics](docs/tactic.md)\n* [techniques](docs/technique.md)\n\nFor more information on object types under the `ics` property, see [ICS](docs/ics.md).\n\n## Interactive Menu Usage\n\nTo utilize the new interactive menu system within pyattck, you must set `interactive` to `True`. By doing so, it will launch the interactive console menu system.\n\nUsing a script your can launch this by running:\n\n```python\nfrom pyattck import Attck\n\nAttck(interactive=True)\n```\n\nOr you can also run interactive mode on the command line:\n\n```bash\npyattck --interactive\n```\n\nCheckout a gif example below:\n\n![](images/pyattck_interactive_menu.gif)\n\n## Configuration\n\n`pyattck` allows you to configure if you store external data and where it is stored. \n\n```python\nfrom pyattck import Attck\n\nattck = Attck(\n nested_techniques=True,\n use_config=False,\n save_config=False,\n config_file_path='~/pyattck/config.yml',\n data_path='~/pyattck/data',\n enterprise_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_enterprise_attck_v1.json\",\n pre_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_pre_attck_v1.json\",\n mobile_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_mobile_attck_v1.json,\n ics_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_ics_attck_v1.json\",\n nist_controls_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_nist_controls_v1.json\",\n generated_nist_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/attck_to_nist_controls.json\",\n **kwargs\n)\n```\n\nBy default, `pyattck` will (now) pull the latest external data from their respective locations using HTTP GET requests. `pyattck` currently pulls from the following locations:\n\n* enterprise_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_enterprise_attck_v1.json\"\n* pre_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_pre_attck_v1.json\"\n* mobile_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_mobile_attck_v1.json\"\n* ics_attck_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_ics_attck_v1.json\"\n* nist_controls_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/merged_nist_controls_v1.json\"\n* generated_nist_json=\"https://swimlane-pyattck.s3.us-west-2.amazonaws.com/attck_to_nist_controls.json\"\n\nYou have several options when instantiating the `Attck` object. As of `4.0.0` you can now specify any of the following options:\n\n* use_config - When you specify this argument as `True` pyattck will attempt to retrieve the configuration specified in the `config_file_path` location. If this file is corrupted or cannot be found, we will default to retrieving data from the specified `*_attck_json` locations.\n* save_config - When you specify this argument as `True` pyattck will save the configuration file to the specified location set by `config_file_path`. Additionally, we will save all downloaded files to the `data_path` location specified. If you have specified a local path location instead of a download URL for any of the `*_attck_json` parameters we will save this location in our configuration and reference this location going forward. \n* config_file_path - The path to store a configuration file. Default is `~/pyattck/config.yml`\n* data_path - The path to store any data files downloaded to the local system. Default is `~/pyattck/data`\n\n### JSON Locations\n\nAdditionally, you can specify the location for each individual `*_attck_json` files by passing in either a URI or a local file path. If you have passed in a local file path, we will simply read from this file. \n\nIf you have used the default values or specified an alternative URI location to retrieve these JSON files from, you can additionally pass in `**kwargs` that will be passed along to the `Requests` python package when performing any HTTP requests.\n\n## Note\n\nWe understand that there are many different open-source projects being released, even on a daily basis, but we wanted to provide a straightforward Python package that allowed the user to identify known relationships between all verticals of the MITRE ATT&CK Framework.\n\nIf you are unfamiliar with the MITRE ATT&CK Framework, there are a few key components to ensure you have a firm grasp around. The first is Tactics & Techniques. When looking at the [MITRE ATT&CK Framework](https://attack.mitre.org/), the Tactics are the columns and represent the different phases of an attack.\n\n > The MITRE ATT&CK Framework is NOT an all encompassing/defacto security coverage map - it is rather a FRAMEWORK and additional avenues should also be considered when assessing your security posture.\n\nTechniques are the rows of the framework and are categorized underneath specific Tactics (columns). They are data points within the framework that provides guidance when assessing your security gaps. Additionally, (most) Techniques contain mitigation guidance in addition to information about their relationship to tools, malware, and even actors/groups that have used this technique during recorded attacks.\n\nThis means, if your organization is focused on TTPs (Tactics Techniques and Procedures) used by certain actors/groups then MITRE ATT&CK Framework is perfect for you. If you are not at this security maturing within your organization, no worries! The ATT&CK Framework still provides really good guidance in a simple and straightforward layout, but programmatically it is not straightforward--especially if you wanted to measure (or map) your security controls using the framework.\n\n### Developing and Testing\n\nYou can add features or bugs or run the code in a development environment.\n\n1. To get a development and testing environment up and running, use this [Dockerfile](https://github.com/swimlane/pyattck/blob/master/Dockerfile).\n\n2. To use the `Dockerfile` run, cd to this repository directory and run:\n\n ```\n docker build --force-rm -t pyattck .\n ```\n\n3. Next, run the docker container:\n\n ```\n docker run pyattck\n ```\n\n Running this calls the test python file in [bin/test.py](https://github.com/swimlane/pyattck/blob/master/bin/test.py).\n\n4. Modify the test python file for additional testing and development.\n\n## Running the tests\n\nTests within this project should cover all available properties and methods. As this project grows the tests will become more robust but for now we are testing that they exist and return outputs.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/swimlane/pyattck/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning.\n\n## Change Log\n\nFor details on features for a specific version of `pyattck`, see the [CHANGELOG.md](https://github.com/swimlane/pyattck/blob/master/CHANGELOG.md).\n\n## Authors\n\n* Josh Rickard - *Initial work* - [MSAdministrator](https://github.com/msadministrator)\n\nSee also the list of [contributors](https://github.com/swimlane/pyattck/contributors).\n\n## License\n\nThis project is licensed under the [MIT License](https://github.com/swimlane/pyattck/blob/master/LICENSE.md).\n\n## Acknowledgments\n\nFirst of all, I would like to thank everyone who contributes to open-source projects, especially the maintainers and creators of these projects. Without them, this capability would not be possible.\n\nThis data set is generated from many different sources. As we continue to add more sources, we will continue to add them here. Again thank you to all of these projects. In no particular order, `pyattck` utilizes data from the following projects:\n\n* [Mitre ATT&CK APT3 Adversary Emulation Field Manual](https://attack.mitre.org/docs/APT3_Adversary_Emulation_Field_Manual.xlsx)\n* [Atomic Red Team (by Red Canary)](https://github.com/redcanaryco/atomic-red-team)\n* [Atomic Threat Coverage](https://github.com/atc-project/atomic-threat-coverage)\n* [attck_empire (by dstepanic)](https://github.com/dstepanic/attck_empire)\n* [sentinel-attack (by BlueTeamLabs)](https://github.com/BlueTeamLabs/sentinel-attack)\n* [Litmus_test (by Kirtar22)](https://github.com/Kirtar22/Litmus_Test)\n* [nsm-attack (by oxtf)](https://github.com/0xtf/nsm-attack)\n* [osquery-attck (by teoseller)](https://github.com/teoseller/osquery-attck)\n* [Mitre Stockpile](https://github.com/mitre/stockpile)\n* [SysmonHunter (by baronpan)](https://github.com/baronpan/SysmonHunter)\n* [ThreatHunting-Book (by 12306Bro)](https://github.com/12306Bro/Threathunting-book)\n* [threat_hunting_tables (by dwestgard)](https://github.com/dwestgard/threat_hunting_tables)\n* [APT Groups & Operations](https://docs.google.com/spreadsheets/d/1H9_xaxQHpWaa4O_Son4Gx0YOIzlcBWMsdvePFX68EKU/edit#gid=1864660085)\n* [C2Matrix (by @jorgeorchilles, @brysonbort, @adam_mashinchi)](https://www.thec2matrix.com/)\n* [Elemental](https://github.com/Elemental-attack/Elemental)\n* [MalwareArchaeology - ATTACK](https://github.com/MalwareArchaeology/ATTACK)\n* [Attack-Technique-Dataset](https://github.com/NewBee119/Attack-Technique-Dataset)\n\n\n```eval_rst\n.. toctree::\n :titlesonly:\n\n configuration\n pyattck/attck\n Dataset <https://github.com/swimlane/pyattck-data>\n Data Models <https://github.com/swimlane/pyattck-data>\n enterprise/enterprise\n preattck/preattck\n mobile/mobileattck\n ics/icsattck\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package to interact with the Mitre ATT&CK Frameworks",
"version": "7.1.2",
"project_urls": {
"Homepage": "https://github.com/swimlane/pyattck",
"Repository": "https://github.com/swimlane/pyattck"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "09bc9a2164fe0bf10ac291608fddf2b929176909ba9dc8af4dcf72dc23a95ba2",
"md5": "7af5ccc77b75dfc5d44726d9fcfd6fcd",
"sha256": "74f37dd3ed33e8708d93eb95ee253583803809f7120e1beacc8c2914d4b94e9f"
},
"downloads": -1,
"filename": "pyattck-7.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7af5ccc77b75dfc5d44726d9fcfd6fcd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 24647,
"upload_time": "2023-05-16T02:53:59",
"upload_time_iso_8601": "2023-05-16T02:53:59.847868Z",
"url": "https://files.pythonhosted.org/packages/09/bc/9a2164fe0bf10ac291608fddf2b929176909ba9dc8af4dcf72dc23a95ba2/pyattck-7.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "40edf99679ce9c7608c24cb5651310185ea2a8bd554e5abd7122239de83f4d7a",
"md5": "5a6166c8022bc3e5dbd52d95a1e45469",
"sha256": "48be8654f927c0a438b9e3bde0de68783d8888f6ba0e915c7e76e3b1f18a4287"
},
"downloads": -1,
"filename": "pyattck-7.1.2.tar.gz",
"has_sig": false,
"md5_digest": "5a6166c8022bc3e5dbd52d95a1e45469",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 24342,
"upload_time": "2023-05-16T02:54:02",
"upload_time_iso_8601": "2023-05-16T02:54:02.560401Z",
"url": "https://files.pythonhosted.org/packages/40/ed/f99679ce9c7608c24cb5651310185ea2a8bd554e5abd7122239de83f4d7a/pyattck-7.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-16 02:54:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "swimlane",
"github_project": "pyattck",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pyattck"
}