Generated by
scripts/make_results.pyon 2026-11-23 08:32 UTC fromreports/*.json. Do not edit by hand: every number below comes from a script run.
| Metric | Value |
|---|---|
| Injected attacks detected (incident level) | 100.0% (84/84) |
| Incident precision (test week) | 79.8% |
| False-positive incidents per day (benign week) | 3.29 |
| False-positive HIGH/CRITICAL incidents per day | 0 |
| Kill chains consolidated into ONE incident | 6/6 |
| Event-level precision / recall | 90.1% / 99.8% |
| Time to detect p50 / p95 (simulated s) | 0 / 18.4 |
| Layers | Incident recall | Incident precision | FP incidents/day | FP HIGH+CRIT/day | Event P | Event R | TTD p50 (s) | TTD p95 (s) |
|---|---|---|---|---|---|---|---|---|
| Rules only | 92.9% | 89.7% | 1.14 | 0 | 99.7% | 44.1% | 0 | 346 |
| IsolationForest only | 95.2% | 81.5% | 2.14 | 0 | 90.7% | 99.7% | 77.5 | 273.6 |
| IP layer only | 53.6% | 100.0% | 0 | 0 | 57.9% | 0.9% | 0 | 29357.8 |
| Rules + IP | 100.0% | 91.9% | 1.14 | 0 | 98.2% | 44.4% | 0 | 342.25 |
| Rules + IsolationForest | 96.4% | 75.0% | 3.29 | 0 | 90.6% | 99.7% | 0 | 43 |
| Combined (rules + IsolationForest + IP) | 100.0% | 79.8% | 3.29 | 0 | 90.1% | 99.8% | 0 | 18.4 |
Incident-level recall per scenario and layer:
| Layers | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 |
|---|---|---|---|---|---|---|---|---|---|
| Rules only | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 0.0% |
| IsolationForest only | 91.7% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 50.0% |
| IP layer only | 58.3% | 41.7% | 41.7% | 50.0% | 25.0% | 66.7% | 100.0% | 50.0% | 100.0% |
| Rules + IP | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| Rules + IsolationForest | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 50.0% |
| Combined (rules + IsolationForest + IP) | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
Scenarios: S1 Leaked access key used from attacker infrastructure; S2 Reconnaissance / enumeration; S3 IAM privilege escalation; S4 Defense evasion (disable logging/detection); S5 Data exfiltration; S6 Persistence (backdoor identities); S7 Crypto-mining (resource hijacking); S8 Console brute force / risky login; S9 Impossible travel.
| Scenario | Injections | Incident P | Incident R | Incident F1 | Event P | Event R | Event F1 |
|---|---|---|---|---|---|---|---|
| S1: Leaked access key used from attacker infrastructure | 12 | 46.9% | 100.0% | 63.8% | 6.6% | 93.9% | 12.3% |
| S2: Reconnaissance / enumeration | 12 | 43.3% | 100.0% | 60.5% | 76.3% | 100.0% | 86.6% |
| S3: IAM privilege escalation | 12 | 41.4% | 100.0% | 58.5% | 13.1% | 100.0% | 23.2% |
| S4: Defense evasion (disable logging/detection) | 12 | 45.2% | 100.0% | 62.2% | 8.9% | 100.0% | 16.3% |
| S5: Data exfiltration | 12 | 41.4% | 100.0% | 58.5% | 83.6% | 100.0% | 91.1% |
| S6: Persistence (backdoor identities) | 6 | 37.0% | 100.0% | 54.1% | 5.2% | 100.0% | 9.9% |
| S7: Crypto-mining (resource hijacking) | 6 | 29.2% | 100.0% | 45.2% | 7.3% | 100.0% | 13.7% |
| S8: Console brute force / risky login | 6 | 26.1% | 100.0% | 41.4% | 23.1% | 100.0% | 37.5% |
| S9: Impossible travel | 6 | 29.2% | 100.0% | 45.2% | 3.0% | 69.0% | 5.7% |
Precision is one-vs-rest against the benign background: every scenario is charged all of the test week's false-positive incidents/events. It therefore depends on how many attacks were injected relative to benign activity (synthetic prevalence) and should be read together with the prevalence-independent false-positives-per-day figure above.
| Variant | Anomaly-only incident recall | Combined incident recall | FP incidents/day (combined) | Anomaly-only event precision |
|---|---|---|---|---|
| Global (identity type as features) | 95.2% | 100.0% | 3.29 | 90.7% |
| Per group (human vs service role) | 90.5% | 100.0% | 3.14 | 88.2% |
The global model is the default because it scored at least as well on anomaly-only recall (the layer the choice affects); per-group splits the small human population further.
| p10 | p50 | p75 | p90 | p95 | max | n |
|---|---|---|---|---|---|---|
| 18 | 45 | 84 |
Rules and the IP layer alert on the triggering event (near-zero TTD); the long tail is attacks first caught by the anomaly layer, which alerts when its 15-minute window completes.
Same benign traffic at every level; only the attacks change. Each level adds to the previous one, and attacker pace is slowed by 1 + 20×stealth at every level.
| Stealth | What the attacker does | Rules only | IsolationForest only | IP layer only | Combined (rules + IsolationForest + IP) |
|---|---|---|---|---|---|
| 0.0 | noisy attacker | 92.9% | 95.2% | 53.6% | 100.0% |
| 0.3 | + victim's user agent | 78.6% | 96.4% | 56.0% | 100.0% |
| 0.6 | + victim's region & same-country IP | 78.6% | 84.5% | 9.5% | 91.7% |
| 0.9 | + business hours | 78.6% | 85.7% | 8.3% | 86.9% |
Per-scenario incident recall of the combined detector as stealth rises:
| Stealth | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 |
|---|---|---|---|---|---|---|---|---|---|
| 0.0 | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| 0.3 | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| 0.6 | 41.7% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| 0.9 | 8.3% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
At stealth 0.9 the combined detector detects 86.9% of attacks (from 100.0% at stealth 0.0); rules alone fall to 78.6%. Median time-to-detect for the combined detector at that level is 216 s.
Per layer at the highest stealth level (0.9):
| Layers | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 |
|---|---|---|---|---|---|---|---|---|---|
| Rules only | 0.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 0.0% |
| IsolationForest only | 8.3% | 100.0% | 100.0% | 91.7% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| IP layer only | 0.0% | 0.0% | 0.0% | 8.3% | 0.0% | 0.0% | 0.0% | 0.0% | 100.0% |
| Combined (rules + IsolationForest + IP) | 8.3% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
Reading it. Scenarios the combined detector no longer reliably catches at that level: S1 (Leaked access key used from attacker infrastructure, 8.3%). Detection that depends on where/how the attacker connects (user agent, country, region, network, hours) is what erodes; detection that depends on what the attacker does (e.g. stopping CloudTrail, attaching admin policies) is much more durable, because the attacker still has to perform those actions. S9 (impossible travel) is unaffected by the stealth setting because its geography is the attack itself, so its flat line is not evidence of robustness. An attacker who stays read-only and low-volume is not modeled here and would be harder still.
| Metric | Value |
|---|---|
| Injections detected | 5/5 |
| Events processed | 3,991 |
| Wall time (s) | 9.4 |
| Time to detect p50 / p95 (simulated s) | 1229 / 1662.8 |
| Event-to-alert pipeline latency p50 / p95 (ms) | 4553 / 4554 |
Measured headless at real-time replay speed. Latency rises when the dashboard is rendering in the same process.
Synthetic flow logs are generated from the CloudTrail events and labels (scripts/generate_flows.py), then three correlation rules join them back to CloudTrail: FL001 mining-port traffic from an instance an identity launched, FL002 a deleted flow log that stops reporting, FL003 a world-open security group that the internet then reaches.
| Rule | Alerts | Precision | Attack events caught | Recall |
|---|---|---|---|---|
| FL001 | 64 | 100.0% | 14/17 | 82.4% |
| FL002 | 3 | 100.0% | 3/7 | 42.9% |
| FL003 | 9 | 100.0% | 9/10 | 90.0% |
Benign validation week: 0 flow alerts (0.0/day) over 39,953 flow records.
Read this carefully: the flow logs and the attacks come from the same generator, so FL001 and FL003 are close to circular (the generator emits exactly the traffic the rule looks for). They show the correlation machinery works end to end; they are not evidence of real-world detection quality. FL002 recall is below 100% by construction: only the first DeleteFlowLogs of a log can produce silence, repeated deletes of an already-silent log cannot.
A second synthetic organisation (config/variants/held_out/: other regions, time zones, headcount, API mixes, heavy-S3 analysts, attackers with ordinary user agents and unlisted instance sizes). Detector code and config are unchanged; only the per-identity baselines, the IsolationForest and its threshold are re-learned from that organisation's own benign data (scripts/run_variant.py).
| Organisation | Rules-only recall | Combined recall | Incident precision | FP incidents/day (test week) | FP incidents/day (benign week) | Event precision | Chains in one incident |
|---|---|---|---|---|---|---|---|
| Tuned-on (main) | 92.9% | 100.0% | 79.8% | 2.43 | 3.29 | 90.1% | 6/6 |
| Held-out variant | 75.0% | 100.0% | 82.7% | 1.86 | 4.86 | 69.2% | 5/6 |
Rules-only recall falls on the variant (the rules were written against the main organisation) and the learned layers recover it. Both organisations come from the same generator, so this tests robustness to configuration differences, not to real-world traffic. It is a fairer test than reusing the organisation the rules were written against, not a proof of generalisation.
Same 13,774 benign training windows, same validation-week calibration to ~6 flagged windows/day, same 19,925-window test week (241 overlap an injected attack). AUROC and average precision are threshold-free; the other columns use the calibrated threshold. LOF is fit on distinct windows (it is degenerate on exact duplicates). The autoencoder is a small scikit-learn MLP (no deep-learning dependency).
| Model | AUROC | Avg precision | Anomaly-only recall | Anomaly-only precision | Combined recall | Combined FP incidents/day | Explanations | Train s |
|---|---|---|---|---|---|---|---|---|
| IsolationForest | 0.9996 | 0.974 | 95.2% | 81.5% | 100.0% | 3.29 | SHAP top reasons | (pre-trained) |
| LOF | 0.9922 | 0.486 | 100.0% | 56.0% | 100.0% | 4.86 | none (no tree structure) | 0.6 |
| Autoencoder | 0.9981 | 0.910 | 100.0% | 59.6% | 100.0% | 3.14 | none (no tree structure) | 6.3 |
IsolationForest ranks attacks best (AUROC/AP). The other two reach higher anomaly-only recall only because they flag more test windows at the same validation budget. IsolationForest is also the only one with SHAP explanations, which the dashboard and incident reports rely on, so it stays the default. The autoencoder is close but flags more windows (and raises HIGH/CRITICAL false positives when combined); LOF ranks worst. Synthetic attacks are an easy target for all three.
docs/REAL_DATA_FINDINGS.md.