A tool to work with MITRE D3FEND, a knowledge graph of cybersecurity countermeasures.
NOTE: Rows 41, 42 and 43 don't have d3fend-id as they are in experimental state.
To run this script you need python 3.8+.
Clone this repository:
git clone https://github.com/InternetNZ/d3fend.gitCreate a python virtual environment (Optional):
cd d3fend
python3 -m venv d3fend-venv
. d3fend-venv/bin/activateInstall the dependencies:
pip3 install -r requirements.txtThe script at the moment has only one functionality which is generating a CSV.
To see the help run:
./d3fend.py -husage: d3fend.py [-h] {csv} ...
This script is used to load MITER D3FEND ontology and work with it.
optional arguments:
-h, --help show this help message and exit
Commands:
{csv} Available commands
csv Generates CSV file
To see the help for csv command run:
./d3fend.py csv -husage: d3fend.py csv [-h] [-o OUTPUT] [-v]
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Output csv file name. Default 'd3fend.csv'
-v, --verbose More verbose
To run the script with default values use below command:
./d3fend.py csvThis generates d3fend.csv file in the current directory.
Install development dependencies:
python3 -n venv d3fend-venv
. d3fend-venv/bin/activate
pip install -r requirements.dev.txtTo run the liner:
./scripts/linter.shTo audit the dependencies:
./scripts/package-audit.shTo run a security check on the code:
./scripts/security-check.shFor contributing in project please see CONTRIBUTING.md file.