Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 7165328

Browse files
authored
Merge pull request #10 from mitre-attack/diff-stix
Add diff_stix script
2 parents 8513206 + 4738218 commit 7165328

10 files changed

Lines changed: 1068 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# V1.1 - 29 March 2019
22
## New Scripts
3-
- Added [techniques_from_data_src.py](scripts/techniques_from_data_src.py).
3+
- Added [techniques_from_data_source.py](scripts/techniques_from_data_source.py).
44

55
# V1.0 - 1 March 2019
66
## New Scripts

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Note: this repository is a work in progress. In the coming months we will be add
1313
2. Activate the environment: `source env/bin/activate`
1414
3. Install requirements into the virtual environment: `pip3 install -r requirements.txt`
1515

16+
## Training
17+
18+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/mitre-attack/attack-scripts/master)
19+
20+
This repository also contains Jupyter notebooks and other material for ATT&CK training. The `trainings` directory has that content, which can be launched via Binder. The `binder` directory has requirements for that notebook, per the Binder documentation.
21+
1622
## Related MITRE Work
1723
#### CTI
1824
[Cyber Threat Intelligence repository](https://github.com/mitre/cti) of the ATT&CK catalog expressed in STIX 2.0 JSON.

binder/requirements.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
altair==3.2.0
2+
antlr4-python3-runtime==4.7.2
3+
appnope==0.1.0
4+
attackcti==0.2.7
5+
attrs==19.2.0
6+
backcall==0.1.0
7+
bleach==3.1.0
8+
certifi==2019.9.11
9+
chardet==3.0.4
10+
decorator==4.4.0
11+
defusedxml==0.6.0
12+
entrypoints==0.3
13+
idna==2.8
14+
ipykernel==5.1.2
15+
ipython==7.8.0
16+
ipython-genutils==0.2.0
17+
jedi==0.15.1
18+
Jinja2==2.10.1
19+
jsonschema==3.0.2
20+
jupyter-client==5.3.3
21+
jupyter-core==4.5.0
22+
MarkupSafe==1.1.1
23+
mistune==0.8.4
24+
nbconvert==5.6.0
25+
nbformat==4.4.0
26+
notebook==6.0.1
27+
numpy==1.17.2
28+
pandas==0.25.1
29+
pandocfilters==1.4.2
30+
parso==0.5.1
31+
pexpect==4.7.0
32+
pickleshare==0.7.5
33+
prometheus-client==0.7.1
34+
prompt-toolkit==2.0.9
35+
ptyprocess==0.6.0
36+
Pygments==2.4.2
37+
pyrsistent==0.15.4
38+
python-dateutil==2.8.0
39+
pytz==2019.2
40+
pyzmq==18.1.0
41+
requests==2.22.0
42+
Send2Trash==1.5.0
43+
simplejson==3.16.0
44+
six==1.12.0
45+
stix2==1.2.0
46+
stix2-patterns==1.1.0
47+
taxii2-client==0.5.0
48+
terminado==0.8.2
49+
testpath==0.4.2
50+
toolz==0.10.0
51+
tornado==6.0.3
52+
traitlets==4.3.2
53+
urllib3==1.25.6
54+
vega==2.6.0
55+
wcwidth==0.1.7
56+
webencodings==0.5.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ stix2-patterns==1.1.0
1212
tabulate==0.8.3
1313
taxii2-client==0.5.0
1414
tqdm==4.31.1
15-
urllib3==1.24.1
15+
urllib3==1.24.2

scripts/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ This folder contains one-off scripts for working with ATT&CK content. These scri
44

55
| script | description |
66
|:-------|:------------|
7-
| [techniques_from_data_src.py](techniques_from_data_src.py) | Fetches the current ATT&CK STIX 2.0 objects from the ATT&CK TAXII server, prints all of the data sources listed in Enterprise ATT&CK, and then lists all the Enterprise techniques containing a given data source. Run `python3 techniques_from_data_source.py -h` for usage instructions. |
7+
| [techniques_from_data_source.py](techniques_from_data_source.py) | Fetches the current ATT&CK STIX 2.0 objects from the ATT&CK TAXII server, prints all of the data sources listed in Enterprise ATT&CK, and then lists all the Enterprise techniques containing a given data source. Run `python3 techniques_from_data_source.py -h` for usage instructions. |
88
| [techniques_data_sources_vis.py](techniques_data_sources_vis.py) | Generate the csv data used to create the "Techniques Mapped to Data Sources" visualization in the ATT&CK roadmap. Run `python3 techniques_data_sources_vis.py -h` for usage instructions. |
9+
| [diff_stix.py](diff_stix.py) | Create markdown and/or ATT&CK Navigator layers reporting on the changes between two versions of the STIX2 bundles representing the ATT&CK content. For default operation, put [enterprise-attack.json](https://github.com/mitre/cti/blob/master/enterprise-attack/enterprise-attack.json), [mobile-attack.json](https://github.com/mitre/cti/blob/master/mobile-attack/mobile-attack.json), and [pre-attack.json](https://github.com/mitre/cti/blob/master/pre-attack/pre-attack.json) bundles in 'old' and 'new' folders for the script to compare. Run `python3 diff_stix.py -h` for full usage instructions. |

0 commit comments

Comments
 (0)