A package containing the stix definitions for custom objects used at dogesec
Project description
Arango CTI Processor
A small script that creates relationships between common CTI knowledge-bases in STIX 2.1 format.
tl;dr
Overview
Here at DOGESEC we have many repositories that generate STIX objects for different knowledge-bases. Many of these knowledgebases often have some link to another.
For example, MITRE ATT&CK objects have references to MITRE CAPEC objects.
Arango CTI Processor is a script that;
- reads the ingested CTI from the supported sources in ArangoDB
- creates STIX Relationships and Grouping objects to represent the relationships between them
Arango CTI Processor is designed to work with the following data sources:
- MITRE ATT&CK
- Enterprise
- ICS
- Mobile
- MITRE CWE
- MITRE CAPEC
Usage
Install the script
# clone the latest code
git clone https://github.com/muchdogesec/arango_cti_processor
# create a venv
cd arango_cti_processor
python3 -m venv arango_cti_processor-venv
source arango_cti_processor-venv/bin/activate
# install requirements
pip3 install -r requirements.txt
Configuration options
Arango CTI Processor has various settings that are defined in an .env file.
To create a template for the file:
cp .env.example .env
To see more information about how to set the variables, and what they do, read the .env.markdown file.
Run
python3 arango_cti_processor.py \
--database DATABASE \
--relationship RELATIONSHIP \
--ignore_embedded_relationships BOOLEAN \
--stix2arango_note STRING \
--modified_min DATETIME
Where;
--database(required): the arangoDB database name where the objects you want to link are found. It must contain the collections required for the--relationshipoption(s) selected (see.env.markdownfor more)--relationship(optional, dictionary): you can apply updates to certain relationships at run time. Default is all. Note, you should ensure yourdatabasecontains all the required seeded data. User can select from;capec-attackcwe-capec
--ignore_embedded_relationships(optional, boolean). Default is false. iftruepassed, this will stop any embedded relationships from being generated. This is a stix2arango feature where STIX SROs will also be created for_refand_refsproperties inside each object (e.g. if_refproperty =identity--1234and SRO between the object with the_refproperty andidentity--1234will be created). See stix2arango docs for more detail if required, essentially this a wrapper for the same--ignore_embedded_relationshipssetting implemented by stix2arango--modified_min(optional, date). By default arango_cti_processor will consider all objects in the database specified with the property_is_latest==true(that is; the latest version of the object). Using this flag with a modified time value will further filter the results processed by arango_cti_processor to STIX objects with amodifiedtime >= to the value specified.--created_min(optional, date). Same asmodified_minbut considerscreateddate.
On each run, only the _is_latest==true version of objects will be considered by the script.
Examples
python3 arango_cti_processor.py \
--database arango_cti_processor_standard_tests_database \
--relationship capec-attack \
--ignore_embedded_relationships false
How it works
If you would like to know how the logic of this script works in detail, please consult the /docs directory.
Useful supporting tools
- To generate STIX 2.1 extensions: stix2 Python Lib
- STIX 2.1 specifications for objects: STIX 2.1 docs
- ArangoDB docs
Support
Minimal support provided via the DOGESEC community.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arango_cti_processor-0.0.3.tar.gz.
File metadata
- Download URL: arango_cti_processor-0.0.3.tar.gz
- Upload date:
- Size: 9.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3600cbbdf7c8eccd98c0ad8d8f2c4e742bc3c18f8b45ff35f2cc3a0057d2aa7e
|
|
| MD5 |
daa938b3c5b799de030b958df19aab05
|
|
| BLAKE2b-256 |
48d4c33a66720faa605d0f6acdb130bf8772a52355bcf9249224ad568878399f
|
Provenance
The following attestation bundles were made for arango_cti_processor-0.0.3.tar.gz:
Publisher:
create-release.yml on muchdogesec/arango_cti_processor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arango_cti_processor-0.0.3.tar.gz -
Subject digest:
3600cbbdf7c8eccd98c0ad8d8f2c4e742bc3c18f8b45ff35f2cc3a0057d2aa7e - Sigstore transparency entry: 257617289
- Sigstore integration time:
-
Permalink:
muchdogesec/arango_cti_processor@4010655253abc8902c46b156dd8930176d84622d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/muchdogesec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
create-release.yml@4010655253abc8902c46b156dd8930176d84622d -
Trigger Event:
push
-
Statement type:
File details
Details for the file arango_cti_processor-0.0.3-py3-none-any.whl.
File metadata
- Download URL: arango_cti_processor-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a26e7fa8ff96c92f47309d309e3f142d73163fbf96378fd6a6a14afd8c9a381a
|
|
| MD5 |
468439dc7aa42c0eb52171c816682d4e
|
|
| BLAKE2b-256 |
486c37079357df9562ec4f235e3a9fe6767e560ec55a8dbe048e191615cd1848
|
Provenance
The following attestation bundles were made for arango_cti_processor-0.0.3-py3-none-any.whl:
Publisher:
create-release.yml on muchdogesec/arango_cti_processor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arango_cti_processor-0.0.3-py3-none-any.whl -
Subject digest:
a26e7fa8ff96c92f47309d309e3f142d73163fbf96378fd6a6a14afd8c9a381a - Sigstore transparency entry: 257617293
- Sigstore integration time:
-
Permalink:
muchdogesec/arango_cti_processor@4010655253abc8902c46b156dd8930176d84622d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/muchdogesec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
create-release.yml@4010655253abc8902c46b156dd8930176d84622d -
Trigger Event:
push
-
Statement type: