IDPS-ESCAPE (Intrusion Detection and Prevention System - Enhanced Security through a Cooperative Anomaly Prediction Engine) is a sub-project of CyFORT implementing a MAPE-K-based (Monitor, Analyze, Plan, Execute, Knowledge) Security Orchestration, Automation, and Response (SOAR) system. Developed in the context of IPCEI-CIS, it targets SMEs, CERT/CSIRT entities, SOC managers, system administrators, security engineers and cloud deployments.
Core components:
- RADAR - Risk-aware hybrid detection and automated response, deployed and managed end-to-end from a point-and-click web GUI (backed by an API — no manual config editing needed)
- SONAR - SIEM-oriented multivariate anomaly detection with pluggable detectors (deep learning by default), measured on labelled data
- ADBox - Legacy research framework
- Wazuh integration and management: all components integrate fully with Wazuh, with RADAR additionally providing Wazuh management and orchestration
Built on: Wazuh, OpenSearch, SATRAP-DL, PyFlowintel, Flowintel, MISP, Suricata
We adopt a hybrid detection approach for defense-in-depth against known and emerging threats, combining signature-based engines (Wazuh, Suricata) and machine learning (ML) algorithms for ML-based anomaly detection (AD) through RADAR and SONAR, relying respectively on random cut forests (RCF) for streaming data, and on pluggable multivariate detectors, by default a graph-attention deep model in the line of MTAD-GAT. Both can run on the same Wazuh data and be scored against the same labelled anomalies.
This repository contains complete documentation, user manual, interlinked technical specifications for traceability, and validation test results, all based on the C5-DEC method.
For a visual user-oriented tour of IDPS-ESCAPE, visit the product presentation page.
RADAR enhances Wazuh with hybrid detection and intelligent automated response through a fully API-based steering and management layer, following a scenario-based paradigm. Its browser-based GUI provides the complete deployment and operations experience on top of that API:
- Hybrid detection: Signature-based (Wazuh, Suricata) + ML-based anomaly detection (random cut forest, RCF), with signature and anomaly alerts for the same user combined in the risk score when they occur close in time (fusion, enabled for suspicious login)
- Risk-aware actions: Tiered response (low/medium/high risk) with email notification, incident case creation and automated mitigations: blocking the source IP (
firewall-drop), locking the implicated Linux account (lock_user_linux.sh) and terminating an allow-listed service (terminate_service.sh) - Automatic case creation: Incident case creation via integration with the DECIPHER subsystem of SATRAP-DL, PyFlowintel and Flowintel
- Flexible deployment: Local/remote manager and agent configurations
- Production scenarios: Default baseline detection, GeoIP detection, log volume monitoring, Linux resource utilization, suspicious login, web scanning detection
- Web-based GUI: provides a browser-based control panel covering the full deployment, orchestration and configuration lifecycle
See RADAR README, GUI user manual, scenarios, adversarial ML guidance and developer README.
SONAR provides a standalone SIEM-oriented anomaly detection solution for Wazuh data:
- Multivariate time-series AD with pluggable detectors:
mvad(default), a graph-attention deep model in the line of MTAD-GAT (Microsoft's multivariate anomaly detector);pca, a linear multivariate model that trains in under a second without torch; andewma, a per-feature baseline - Measured detection quality:
sonar evaluatereports event-level precision, recall, F1, detection delay and false alarms per day on labelled data, and calibrates each scenario's threshold andanomaly_confidence - Side by side with RADAR: the
radar_linux_resource_utilizationscenario reads the events and features of RADAR's Linux resource-utilization detector, with one model per host (--agent);sonar exportcaptures a labelled live window so both detectors are scored on the same data - Wazuh and RADAR integration: anomalies become Wazuh alerts (rules 100500–100519) that carry
anomaly_gradeandanomaly_confidence, so Wazuh active responses and RADAR can act on them; each anomaly is delivered once per sink - Scenario-based: YAML configuration for repeatable workflows, with realtime, batch and historical modes
- Debug mode: offline runs on packaged synthetic data (no infrastructure required)
- Standalone package: a wheel with the example scenarios and their debug data; models are plain directories (no pickles)
See SONAR README, scenario guide, architecture and developer README.
RADAR provides a browser-based control panel for production-ready deployment and ongoing management of the Wazuh Manager, Wazuh Agents, and the full RADAR stack — no manual config files or CLI orchestration required. The GUI covers scenario deployment, agent onboarding, configuration, anomaly-detector setup, health checks, and teardown, giving full control over the stack from one place. See the GUI user manual for details.
See our user manual for comprehensive documentation on RADAR, and SONAR. Visit our traceability page for interlinked requirements, technical specifications such as architecture diagrams, and test reports.
⚠️ Legacy System: maintained for research continuity only. Use SONAR for deployments requiring deep learning.
See the ADBox manual for documentation.
Prerequisites:
Ensure your environment meets the resource and network requirements specified below, and then proceed as follows:
- Create
radar/.envand update relevant fields (use a copy env.example):- OpenSearch URL, username, password
- Wazuh API credentials and manager address
- SMTP settings for email alerts
- FlowIntel API key (optional, for incident case creation)
- Webhook URL (default:
http://localhost:8080/notify; use this host's address instead when the indexer runs on another host)
- Start the RADAR GUI using the
radar.shscript from within theradar/directory (after making it executablechmod +x ./radar.sh):
./radar.sh guiThen open the displayed local URL and use the Deployment page to deploy the full stack, onboard agents, configure scenarios, start anomaly detection, run health checks, and manage teardown. See the RADAR GUI user manual and getting started page for full details.
Before deploying beyond a test machine, read RADAR's security assumptions and recommendations. It covers how to reach the GUI safely (through an SSH tunnel from your workstation), which ports to restrict by firewall, and the settings to review for your site.
Screenshots depicting the various stages in a Suspicious Login detection and response event flow are provided below.
Suspicious login detection shown on the Wazuh dashboard:
Email notification sent by RADAR automated response:
DECIPHER lookup in MISP to compute CTI score (used in RADAR risk score):
Automatic incident case created in Flowintel using DECIPHER (subsystem of SATRAP-DL):
SONAR provides scenario-based anomaly detection with flexible execution modes:
# Install
poetry install --with sonar
# Check the connection to the Wazuh indexer
poetry run sonar check --config sonar.yaml
# Load SONAR's rules into the Wazuh manager (once), so anomalies become Wazuh alerts
poetry run sonar wazuh install-rules --config sonar.yaml --restart
# Run a complete scenario (train + detect); anomalies go to the Wazuh manager
poetry run sonar scenario --use-case sonar/scenarios/brute_force_detection.yaml --config sonar.yaml
# Debug mode (offline, on the scenario's packaged synthetic data)
poetry run sonar scenario --use-case sonar/scenarios/linux_resource_monitoring.yaml --debug
# Also keep the anomalies in a data stream for dashboards
poetry run sonar scenario --use-case sonar/scenarios/brute_force_detection.yaml --config sonar.yaml --ship
# Measure detection quality on labelled data and calibrate the scenario
poetry run sonar evaluate --scenario linux_resource_monitoring --train-file F --validation-file F --validation-labels F --test-file F --test-labels FSee the SONAR documentation for details.
Where anomalies go:
- By default, the
wazuhsink sends one event per anomaly to the Wazuh manager, which raises it as an alert of SONAR's rules (100500–100519). RADAR and Wazuh active responses act on those alerts. --ship(orshipping.enabled) adds the scenario's data stream in the Wazuh indexer, with index templates and a retention policy, for dashboards and history.- Local files (
jsonl) and standard output are also available; debug runs print the events instead of delivering them.
See the anomaly output guide for configuration details and the dashboard tutorial for building a dashboard on the data stream (same process for SONAR and ADBox).
No infrastructure required — debug mode runs the full train → detect → report workflow offline with synthetic data:
poetry install --with sonar
poetry run sonar scenario --use-case sonar/scenarios/example_scenario.yaml --debugTo measure how well a scenario detects, rather than watch it run, see the evaluation guide.
On a deployment where RADAR's linux_resource_utilization scenario runs, SONAR can model the same CPU and memory events per host and both detectors can be scored on one labelled window:
poetry run sonar train --scenario radar_linux_resource_utilization --config sonar.yaml --agent web-01
poetry run sonar export --scenario radar_linux_resource_utilization --config sonar.yaml --agent web-01 \
--start 2026-11-19T00:00:00Z --end 2026-11-20T00:00:00Z --output-dir cmp/test \
--radar-results 'opensearch-ad-plugin-result-linux-resource-utilization*' \
--event cpu_load,2026-11-19T09:00:00Z,2026-11-19T09:05:00ZThe RADAR comparison guide covers the prerequisites, the simulation runs, the training export and both evaluations.
| Component | RAM | Storage | CPU |
|---|---|---|---|
| Wazuh Manager | 8 GB minimum | ~15 GB | 4 cores |
| SONAR | 4 GB | ~2 GB (models) | 2 cores |
| RADAR | 2 GB | ~1 GB | 2 cores |
| Wazuh Agents | 512 MB each | ~500 MB each | 1 core |
| Full Stack | 16 GB+ | ~26 GB total | 8+ cores |
See the custom deployment guides for optional network requirements and multi-node setups.
Build and run with convenience scripts:
# Build images
./build.sh all # All components
./build.sh sonar # SONAR only
# Run SONAR
./sonar/sonar.sh check # Check Wazuh connection
./sonar/sonar.sh scenario --use-case sonar/scenarios/example_scenario.yaml --debug
# Run ADBox (legacy, see the ADBox manual)
./adbox/adbox.sh -u 1Note: Docker-based execution requires building the images first with build.sh.
# Install dependencies
poetry install --with sonar,radar,adbox,test
# Run tests
poetry run pytest tests/sonartests/ # SONAR (-m "not slow" skips the real MVAD library)
poetry run pytest tests/ # All
./radar/test.sh # RADAR
# SONAR CLI
poetry run sonar check
poetry run sonar scenario --use-case sonar/scenarios/example_scenario.yaml --debug
# Docker builds
./build.sh allSee SONAR README and RADAR README for component-specific development guides.
See our test report (TRP) in the list of published documents on the technical specifications traceability page detailing the validation test campaign results. Unit tests are available in the tests folder.
RADAR has been validated in controlled environments and is released as stable. SONAR is at most at TRL 6. Conduct a thorough security assessment before deploying either component in production. Use at your own risk.
Copyright © itrust Abstractions Lab and itrust consulting. Licensed under GNU AGPL v3.0. See AUTHORS for contributors.
Co-funded by the Ministry of the Economy of Luxembourg in the context of the CyFORT project.
Abstractions Lab: info@abstractionslab.lu







