-
Notifications
You must be signed in to change notification settings - Fork 334
Installation and requirements
The DeTT&CT framework consists of a Python tool, YAML administration files and a description on how to administrate and score the different aspects.
We provide a Docker image and file for DeTT&CT, or it can be installed locally.
First, make sure to have Docker available on your system.
You can choose to get the DeTT&CT docker image from Docker Hub or build it yourself.
- Download the image:
docker pull rabobankcdc/dettect:latest
- Clone the GitHub repository:
git clone https://github.com/rabobank-cdc/DeTTECT
- Go into the DeTT&CT directory:
cd DeTTECT
- Build the Docker image:
docker build -t dettect .
(this can take a while)
The below two directories are essential when using DeTT&CT with Docker. These are shared between your Docker container and the host system to allow easy exchange of files:
- input
Within this directory, you can put your data source, technique and group YAML administration files. - output
Within this directory, the output files from DeTT&CT are written. Such as ATT&CK Navigator layer files.
-
Execute the appropriate command to run the image and mount the input and output directories. The
-v
flag should create the "input" and "output" directories on the host they do not yet exist. If not, you have to create them manually. Make sure to remove the namespace "rabobankcdc" when you have built the image yourself.- Linux and MacOS:
docker run -v $(pwd)/output:/opt/DeTTECT/output -v $(pwd)/input:/opt/DeTTECT/input --name dettect -it rabobankcdc/dettect:latest /bin/bash
- Windows (cmd.exe):
docker run -v %cd%/output:/opt/DeTTECT/output -v %cd%/input:/opt/DeTTECT/input --name dettect -it rabobankcdc/dettect:latest /bin/bash
- PowerShell:
docker run -v ${PWD}/output:/opt/DeTTECT/output -v ${PWD}/input:/opt/DeTTECT/input --name dettect -it rabobankcdc/dettect:latest /bin/bash
- Linux and MacOS:
-
Start the container when it is no longer running:
docker start -i dettect
(this should bring you straight back into the container with an interactive Bash shell)
- Python 3.6 and higher
- Have the following Python packages installed with its appropriate version:
attackcti
,simplejson
,PyYAML
,plotly
,pandas
andxlsxwriter
. See below on how to perform the installation using therequirements.txt
file.
git clone https://github.com/rabobank-cdc/DeTTECT
pip install -r requirements.txt
- Home
- Introduction
- Installation and requirements
- Getting started / How to
- Changelog
- Future developments
- ICS - Inconsistencies
- Introduction
- DeTT&CT data sources
- Data sources per platform
- Data quality
- Scoring data quality
- Improvement graph