Multi-platform security-data & attack-chain traffic generator, as a single Rust CLI. Emit steady-state noise or replay MITRE-tagged, multi-stage attack chains into a SIEM/monitoring platform — to produce realistic test data, drive detection rules, and give analysts something to investigate.
⚠️ LAB / DEV USE ONLY. This tool only sends synthetic traffic to a platform you are authorized to test. It never touches real hosts, credentials, or production systems. The attack chain is fiction: hostnames, IPs and users are lab fixtures. Do not point it at systems you don't own or aren't explicitly authorized to load.The
otendpoints (Modbus / DNP3 / OPC-UA / IEC-104) listen on network ports and accept unauthenticated control-protocol clients by design. Run them only on an isolated lab network, never on a host reachable from production OT/ICS or the internet. Use of this software is at your own risk and responsibility (GPL-3.0, no warranty).
Three decoupled layers (ported from the rst-attack-sim model):
- scenarios — platform-independent, data-driven (YAML/JSON, editable and
importable). A scenario is an ordered list of MITRE-tagged stages, each a
list of steps. A step is one atomic logical event or a macro
(
port_sweep,password_spray,ssh_brute,noise) the engine expands. - format-packs — render a logical event into a target's bytes:
qradar_dsm— QRadar-native DSM (Cisco ASA, PAN-OS, Windows Snare, Linux), ported verbatim fromrst-attack-sim/attack_sim.py, verified on QRadar 7.6 CE.splunk_cim— Splunk CIM sourcetypes (cisco:asa,pan:traffic,WinEventLog:Security,linux_secure) as HEC documents.metrics— Prometheus/Zabbix modality: attack steps become synthetic metric anomalies (a scan → connection-attempt surge, exfil → egress spike).
- emitters — delivery channels. Because this is a native CLI (not a webview),
UDP / raw TCP work directly with
std::net— no bridge needed.- Splunk HEC (HTTP) ✅
- QRadar syslog UDP/TCP ✅
- Elastic bulk API (ECS) ✅
- Prometheus remote-write (protobuf + snappy) ✅
- Zabbix trapper (TCP, ZBXD) ✅
Modality: SIEMs consume events; Prometheus/Zabbix consume metrics. An event with no representation in the target's modality is skipped.
apt-intrusion— 9-stage intrusion: recon → phishing → C2 → LSASS dump → spray → lateral movement → persistence → exfiltration → anti-forensics, plus a second unrelated actor. MITRE-tagged per stage.noise— steady-state benign background traffic.steady-metrics— fixed series reused across events (use a metrics pack):*_totalcounters climb, gauges random-walk.
Import your own: --scenario ./my-scenario.yaml (same schema).
cargo build --release # target/release/rst-traffic
rst-traffic list # scenarios, targets, format-packs
# Preview (renders, sends nothing):
rst-traffic run --dry-run
rst-traffic run --dry-run --stage 1 --target splunk
# Live to a lab QRadar (syslog UDP 514):
rst-traffic run --target qradar --host 172.19.170.10 --tui
rst-traffic run --target qradar --host 172.19.170.10 --proto tcp --port 514
# Live to Splunk HEC:
rst-traffic run --target splunk --url https://splunk:8088 --token <HEC> --insecure
# Connectivity tests:
rst-traffic test --target qradar --url https://172.19.170.10 --token <SEC> --insecure
rst-traffic test --target splunk --host splunk --token <REST-bearer> --insecureFlags: --speed <n> divides every real pause (default real-time), --stage <id>
runs one stage, --seed <n> for deterministic output, --tui for a live
stage-progress + MITRE panel.
Verified end-to-end on QRadar 7.6 CE. Windows log sources should exist before
events arrive (Snare auto-discovery needs 25+ lines). See
rst-attack-sim/attack_sim.py header for the log-source pre-creation notes and
the rules that fire on CE defaults.
New platform = a new format-pack (encoding) and/or a new emitter (transport), ~1 file each.
- Format-packs (
--pack):qradar_dsm,splunk_cim,cef(universal SIEM),leef(IBM/QRadar),gelf(Graylog),ecs(Elastic/JSON),metrics(Prometheus/Zabbix),statsd,influx(line protocol). - Dedicated emitters: Splunk HEC, QRadar syslog, Elastic bulk, Prometheus remote-write, Zabbix trapper.
- Generic emitters (adapt to almost anything with no new code):
--target syslog— plain RFC3164 syslog to any SIEM/collector. With--pack cef/leefit lands in essentially any SIEM (ArcSight, Sentinel, Graylog, rsyslog, ...).--target http— POST newline-JSON to any HTTP intake (Loki push, custom webhook).--target stdout/--target file— write wire text to pipe into any shipper (Fluent Bit, Vector, Filebeat,logger).
Example — same attack chain into three different platforms:
rst-traffic run --target syslog --host graylog --pack cef # any SIEM via CEF
rst-traffic run --target http --url http://loki:3100/loki/api/v1/push
rst-traffic run --target file --url ./chain.log --pack leef # replay later- MQTT publish (
rumqttc), Kafka (rdkafka/rskafka), SNMP trap (hand-rolled v2c BER orcsnmp), NetFlow v5/v9/IPFIX (hand-rolled binary) — one emitter each. - GELF, StatsD and InfluxDB line protocol are done (format-packs above; use with
--target syslog/http/file). - OT / ICS (Modbus, DNP3, OPC-UA, IEC-104) and legacy sensor protocols — a different modality: an industrial-protocol conversation, not log lines. Larger lift (a protocol layer + an
otmodality), out of the current event/metric model.
cargo test — unit tests cover DSM byte-fidelity, scenario load + %%PSENC%% expansion, CEF output, Zabbix ZBXD framing, and Prometheus protobuf/snappy encoding. Wire transports (syslog UDP, Zabbix trapper, Prometheus remote-write) were additionally verified against loopback listeners.
GPL-3.0-or-later — see LICENSE. (Relicensed from MIT to allow porting GPL sources such as Conpot/OpenPLC.) Third-party attributions: THIRD-PARTY-NOTICES.md.