If you're running in production, you should set these securely.
However, if you just want to experiment, set the following values
These are all Django settings, defined in stixify/settings.py
DJANGO_SECRET:insecure_django_secretDJANGO_DEBUG:TrueDJANGO_ALLOWED_HOSTS: BLANKDJANGO_CORS_ALLOW_ALL_ORIGINS:TrueDJANGO_CORS_ALLOWED_ORIGINS: LEAVE EMPTY
These are all Django settings, defined in stixify/settings.py
POSTGRES_HOST:pgdbPOSTGRES_PORT: BLANKPOSTGRES_DB:postgresPOSTGRES_USER:postgresPOSTGRES_PASSWORD:postgres
These define how the API behaves.
MAX_PAGE_SIZE:50- This is the maximum number of results the API will ever return before pagination
DEFAULT_PAGE_SIZE:50- The default page size of result returned by the API
DOWNLOAD_TIMEOUT_SECONDS:300- How long the server should wait before giving up downloading data from R2. Vulmatch will try 3 times when a download timeout happens, before giving up.
Note, this code will not install an ArangoDB instance.
If you're new to ArangoDB, you can install the community edition quickly by following the instructions here.
The script will automatically create a database called vulmatch_database when the container is spun up (if it does not exist).
Vulmatch will create the following collections for the CVE data to be stored:
- NVD CVE:
nvd_cve_vertex_collectionnvd_cve_edge_collection
The ArangoDB settings you need to configure are:
ARANGODB_HOST_URL:'http://host.docker.internal:8529'- If you are running ArangoDB locally, be sure to set
ARANGODB_HOST_URL:'http://host.docker.internal:8529'in the.envfile otherwise you will run into networking errors.
- If you are running ArangoDB locally, be sure to set
ARANGODB_USERNAME:root- Change this if neeed
ARANGODB_PASSWORD: USE PASSWORD OF ARANGODB_USERNAME
NVD_API_KEY: YOUR KEY- Get your API key here: https://nvd.nist.gov/developers/request-an-api-key
Arango CTI Processor requires ctibutler to lookup ATT&CK, CAPEC, and CWE relationships.
CTIBUTLER_BASE_URL:'http://api.ctibutler.com'(recommended)- If you are running CTI Butler locally, be sure to set
'http://host.docker.internal:8006/api/'in the.envfile otherwise you will run into networking errors.
- If you are running CTI Butler locally, be sure to set
CTIBUTLER_API_KEY:- If using
'http://api.ctibutler.com', get your API key here. Not required if running locally.
- If using
VULNCHECK_API_KEY- if using
cve-vulncheck-kevmode you need to add your API key from VulnCheck. Generated here.
- if using
All of the knowledgebases are stored on Cloudflare R2. The variables in this part of the config should not be changed.
CVE2STIX_BUCKET_ROOT_PATH:https://cve2stix.vulmatch.com/