Attack Simulation & Testbench
Aegis includes an automated security testbench empowering security engineers, CTOs, and independent auditors to test the system’s defenses against common exploits in real conditions—both inbound (Ingress PEP / WAF) and outbound (Egress DNS Gateway & Local AI).
🚀 Run the Automated Test Suite
A complete verification script is available in the monorepo root to trigger 8 real-world exploitation scenarios:
# 1. Test local stack by default (:8000 and :5053)./scripts/run-pentest-demo.sh
# 2. Or test a specific remote VPS./scripts/run-pentest-demo.sh http://vps-ip:8000 5053 vps-ip🔍 The 8 Exploitation Scenarios Tested
The testbench sequentially validates 8 critical inspection mechanisms:
| # | Attack / Traffic Scenario | Threat Category | Test Vector | Expected Code | Aegis Verdict |
|---|---|---|---|---|---|
| 1 | Nikto Scanner | Scanners & Reconnaissance | User-Agent: Nikto/2.1.6 on /admin/setup.php |
403 Forbidden |
PENTEST_SCANNER_DETECTED (High Severity) |
| 2 | SQL Injection (SQLi) | Database Exfiltration | UNION SELECT username,password FROM users-- |
403 Forbidden |
SQL_INJECTION (Critical Severity) |
| 3 | Path Traversal / LFI | System File Disclosure | Download probe ../../../../etc/passwd |
403 Forbidden |
PATH_TRAVERSAL (High Severity) |
| 4 | Command Injection (RCE) | Server Takeover | Shell breakout ; cat /etc/shadow |
403 Forbidden |
COMMAND_INJECTION (Critical Severity) |
| 5 | Cross-Site Scripting (XSS) | Client Payload Injection | Reflected <script>alert('pwned')</script> |
403 Forbidden |
XSS_ATTACK (Medium Severity) |
| 6 | Compliant Business Traffic | Legitimate API Request | Normal API request with standard browser User-Agent | 200 OK |
COMPLIANT (Allowed & Logged) |
| 7 | CrowdSec C2 Exfiltration | Malicious Communication | Outbound DNS lookup to c2-beacon.random-domain.top |
0.0.0.0 |
SINKHOLE_C2 (Blocked & Alerted) |
| 8 | High-Entropy DGA Detection | Algorithmic Exfiltration | DGA domain a8f93bc01d9f4e2a.xyz (> 3.8 Shannon) |
Refused / Quarantined | DGA_ENTROPY_NIMBLE9B (Local AI Inspection) |
🛠️ Manual Reproduction with Standard Tools
You can also reproduce these test cases manually using standard pentesting utilities:
1. Test with Nikto Web Scanner
nikto -h http://localhost:8000- Result : In-line mitigation in under 1.2 ms, returns
HTTP 403 Forbidden.
2. Test with SQLmap
sqlmap -u "http://localhost:8000/api/v1/search?q=test" --batch- Result : Immediate drop upon first injection probe.
3. Test Path Traversal with cURL
curl -i "http://localhost:8000/documents/download?file=../../../../etc/passwd"4. Test DNS Exfiltration with dig
# Verify C2 sinkhole via Egress Gatewaydig @localhost -p 5053 c2-beacon.random-domain.top
# Verify DGA entropy detection via local Nimble 9B AIdig @localhost -p 5053 a8f93bc01d9f4e2a.xyz🗂️ Real-Time Observability in the Triage Kanban
Upon executing tests, open your Cockpit on the triage board:
👉 http://localhost:4321/app/triage
You can inspect:
- Kanban columns categorized by severity : Critical, High, Medium, Low, and Compliant.
- Live GeoIP Map : Origin IPs geolocated on OpenStreetMap with country of origin and Autonomous System Number (ASN).
- Audit trail for compliant traffic : Healthy requests (Test 6) are indexed for regulatory traceability without degrading throughput.
- 1-click remediation actions : Instantly block offending source IPs at the firewall level, export hardened WAF rules, or record the incident for ANSSI NIS 2 compliance.
⚔️ “Anti-Artex” Posture: Defending Against Autonomous AI Pentesting Orchestrators (v1.3)
To counter LLM-driven multi-agent offensive frameworks (ARTEX, Hexstrike, CyberStrikeAI) capable of chaining reconnaissance, payload mutation, and business-logic exploitation at machine speed (< 3h), Aegis introduces a dedicated defensive architecture in v1.3 (Lock #5-Bis):
- Anti-LLM Cognitive Deception (
STEALTH_BLOCK, Adaptive Tarpit & Canary Honeypot):- Strips internal rule names and matched regex patterns from external
403responses, depriving ARTEX’s LLM Planner of its feedback learning oracle. - Adaptive Tarpit (
3sto25s) stalls synchronous Agent Worker loops and exhausts orchestration timeouts. - Canary Traps (Booby-trapped
/.env) trigger an immediate permanent ban (CANARY_TOKEN_TRIPWIRE_TRIGGERED) the moment an autonomous agent replays a decoy credential.
- Strips internal rule names and matched regex patterns from external
- Egress Blinding of OAST & LOTC Relays (
:5053):- Native blocking in
egress-gatewayof out-of-band callback infrastructures (*.interact.sh,*.oast.*,*.burpcollaborator.net,*.oastify.com,*.webhook.site) and exfiltration tunnels (*.ngrok-free.app,*.trycloudflare.com).
- Native blocking in
- API Business Logic Shield & Browser Fingerprint Verification:
- Automatic production lockdown of
/swagger*,/openapi.json, and GraphQL introspection (__schema). - Sliding-window Anti-BOLA / IDOR enumeration detection, Anti-Mass Assignment filtering (
role,is_admin,__proto__), and detection of Go/Python workers spoofing browserUser-Agentstrings without structuralSec-Ch-Ua/Sec-Fetch-*headers.
- Automatic production lockdown of
- Cryptographic Pure BFF Context-Binding & Rust Kill-Switch (
SIGKILL < 10 ms):- Binds the
AES-256-GCMaegis_sessioncookie to client network/UA fingerprints to prevent stolen token replay, paired with sub-second activeSIGKILLcontainment of unauthorized web-worker shell spawns.
- Binds the