Reporting module for Cuckoo, which outputs STIX2 Observables (observed-data-objects).
- install python packages from requirements.txt
- integrate the directory
STIX2reporter/reportinginto the 'reporting' directory from Cuckoo (venv/lib/python2.7/site-packages/cuckoo/reporting). - insert the following into 'reporting' (
~/.cuckoo/conf/reporting.conf), adjust parameters to your liking:
[stix2reporter]
enabled = yes
username = DemoUser
use_env_variables = yes
include_src_addr = no
blacklist = /path/to/blacklist.yml
discard_terminated_processes = yes
include_all_artifacts = no- in Cuckoos config.py (
venv/lib/python2.7/site-packages/cuckoo/common/config.py) insert the following:
class Config(object):
configuration = {
reporting: {
----------- INSERT ONLY THE LINES BELOW ----------------------
"stix2reporter": {
"enabled": Boolean(True),
"username": String("cuckoo"),
"use_env_variables": Boolean(True),
"include_src_addr": Boolean(False),
"blacklist": Path(),
"discard_terminated_processes": Boolean(True),
"include_all_artifacts": Boolean(False),
},
--------------------------------------------------------------username: Username used within the Windows VM, where the sample is executed in. Ifuse_env_variablesis set toyes/True, the username will be replaced with%USERNAME%in the resulting STIX objects.use_env_variables: If set toyes/True, replace common paths with Windows env variables, e.g.%TEMP%,%APPDATA%, etc.include_src_addr: If set tono/False, source address information are excluded for network observables.blacklist: Specifies the path to a blacklist.discard_terminated_processes: If set toyes/True, processes which are not running at the end of analysis, as well as Mutexes attached to such processes, will be excluded.include_all_artifacts: From the analysis it is not clear if a write operation appends to or overwrites a specific file. If set toyes/True, every write operation on one file will be included within a resultingfile-observable as anartifact-object. If set tono/False, only oneartifact-object will be included if possible -- in the case of multiple write operations, noartifact-object will be included for this file.