https://github.com/knightchaser/mitreattackscrapper
A simple scrapper for MITRE ATT&CK information written in Python3.
https://github.com/knightchaser/mitreattackscrapper
cti data json package pypi scrapper
Last synced: about 1 year ago
JSON representation
A simple scrapper for MITRE ATT&CK information written in Python3.
- Host: GitHub
- URL: https://github.com/knightchaser/mitreattackscrapper
- Owner: KnightChaser
- Created: 2024-07-08T04:54:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T05:12:02.000Z (almost 2 years ago)
- Last Synced: 2025-04-09T05:04:17.490Z (about 1 year ago)
- Topics: cti, data, json, package, pypi, scrapper
- Language: Python
- Homepage: https://knightchaser.github.io/MITREAttackScrapper/
- Size: 4.84 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MITREAttackScrapper
### A simple and easy data scrapper for **MITRE ATT&CK** information for threat intelligence and knowledge bases, written in Python3.
> Un scrapper de datos simple y fácil para la información de **MITRE ATT&CK** para inteligencia de amenazas y bases de conocimiento, escrito en Python3.
```py
# Need to MITRE ATT&CK data? How about using my package?
from MITREAttackScrapper.techniques.enterprise import MITREAttackEnterpriseTechniques
if __name__ == '__main__':
detail = MITREAttackEnterpriseTechniques.get("T1548.001")
print(f"Technique: {detail['name']}")
print(f"Platforms affected by this technique: {detail['platforms']}")
print(f"Number of mitigation suggested: {len(detail['mitigations'])}")
# Technique: Abuse Elevation Control Mechanism
# Platforms affected by this technique: ['Azure AD', 'Google Workspace', 'IaaS', 'Linux', 'Office 365', 'Windows', 'macOS']
# Number of mitigation suggested: 1
```
### Note: Currently under development, not stable!!!
## How to use?
- Download the package via PyPI. You can visit the PyPI webpage of this package at: **https://pypi.org/project/MITREAttackScrapper**
```sh
pip install MITREAttackScraper
```
Refer to the **[documentation](https://knightchaser.github.io/MITREAttackScrapper/)**! >_<
- The documentation is based on **`sphinx-apidoc`**, which is an automated documentation tool for lazy Python and other language-based programmers.
- Locally build the Sphinx document if there are some changes on the codebase. The GitHub page action will read the refreshed page built results and the GitHub page will be updated accordingly.
```powershell
sphinx-apidoc -f -o docs/source .\MITREAttackScrapper\
./docs/make.bat html
```
## Coverage
- **TECHNIQUES**
- [x] MITRE ATT&CK Enterprise Techniques
- [ ] MITRE ATT&CK Mobile Techniques
- [ ] MITRE ATT&CK ICS Techniques
- **TACTICS**
- [x] MITRE ATT&CK Enterprise Tactics
- [ ] MITRE ATT&CK Mobile Tactics
- [ ] MITRE ATT&CK ICS Tactics
- **CTI**
- [x] MITRE ATT&CK CTI Groups
- [x] MITRE ATT&CK CTI Software
- [x] MITRE ATT&CK CTI Campaigns
- **Defenses/Mitigations**
- [x] MITRE ATT&CK Enterprise Mitigations(Defenses)
- [ ] MITRE ATT&CK Mobile Mitigations(Defenses)
- [ ] MITRE ATT&CK ICS Mitigations(Defenses)
- **ATT&CK MATRICES**
- [x] MITRE ATT&CK Enterprise Matrices
- [ ] MITRE ATT&CK Mobile Matrices
- [ ] MITRE ATT&CK ICS Matrices