← Back to the overview

Real-data findings

Generated by scripts/make_results.py on 2026-11-23 08:32 UTC from reports/real_data.json (produced by scripts/validate_real.py). Do not edit by hand.

Everything else in this project was measured on synthetic data written by the same author as the detectors. This page is the first contact with logs the project did not generate.

1. Sources and integrity

2. Stratus Red Team: rule coverage per technique

Each file is a real CloudTrail capture of one Stratus Red Team technique detonation (duplicate aliases counted once). Technique-specific coverage means at least one rule other than the two generic ones (user agent, AccessDenied burst) fired on the technique's own events.

Rules Techniques Technique-specific hit Any hit
Before (measured at commit 18f7504, rules written without seeing real data) 24 35 12/35 (34%) 14/35
After (post-hoc, see caveat) 41 35 33/35 (94%) 33/35

What changed. Two shipped rules had real bugs that synthetic data could not reveal: R017 (security group open to the world) understood one request shape and missed real records (top-level cidrIp, a /0 mask that the anonymizer wrote with a random address, IPv6 ::/0, and the response's rule set), and R009 (role trust policy opened to an external account) ignored CreateRole's assumeRolePolicyDocument field. Seventeen new rules (R025-R041) were then added for techniques with no coverage. That new coverage is post-hoc: those rules were written after looking at these very samples, so it is a regression check, not an independent measurement. The honest real-data number is the before row.

Note on credit: a hit means a rule fired on one of the technique's own events, not that the rule recognizes the technique. For example ec2-steal-instance-credentials is credited to R032, which flags the SSM SendCommand used to read the instance metadata service; nothing here detects the credential theft itself.

Still not covered: aws.persistence.lambda-layer-extension (UpdateFunctionConfiguration20150331v2); aws.persistence.lambda-overwrite-code (UpdateFunctionCode20150331v2). These are Lambda code or configuration overwrites, which are indistinguishable from ordinary deployments without per-function baselines, so no rule was added.

Tactic Technique Events Before After
credential access credential-access.ec2-get-password-data 34 R023 R023, R028
credential access credential-access.ec2-steal-instance-credentials 45 miss R032
credential access credential-access.secretsmanager-batch-retrieve-secrets 5 miss R029
credential access credential-access.secretsmanager-retrieve-secrets 21 miss R030
credential access credential-access.ssm-retrieve-securestring-parameters 10 miss R031
defense evasion AttemptToLeaveAWSOrganization 3 miss R036
defense evasion defense-evasion.cloudtrail-delete 1 R001 R001
defense evasion defense-evasion.cloudtrail-event-selectors 1 R002 R002
defense evasion defense-evasion.cloudtrail-stop 1 R001 R001
defense evasion defense-evasion.dns-delete-logs 1 miss R037
defense evasion defense-evasion.vpc-remove-flow-logs 1 R004 R004
discovery discovery.ec2-download-user-data 19 R023 R023, R035
execution execution.ec2-launch-unusual-instances 3 R015 R015
execution execution.ec2-user-data 35 miss R034
execution execution.ssm-send-command 56 miss R032
execution execution.ssm-start-session 29 miss R032
exfiltration exfiltration.ec2-security-group-open-port-22-ingress 1 miss R017
exfiltration exfiltration.ec2-share-ami 1 miss R025
exfiltration exfiltration.ec2-share-ebs-snapshot 1 R014 R014
exfiltration exfiltration.rds-share-snapshot 1 miss R026
impact impact.bedrock-invoke-model 15 miss R041
initial access initial-access.console-login-without-mfa 1 R019 R019
lateral movement lateral-movement.ec2-instance-connect 3 miss R033
lateral movement lateral-movement.ec2-serial-console-send-ssh-public-key 4 miss R033
persistence persistence.iam-backdoor-role 1 R009 R009
persistence persistence.iam-backdoor-user 1 R007 R007
persistence persistence.iam-create-admin-user 3 R005, R007, R010 R005, R007, R010
persistence persistence.iam-create-backdoor-role 2 R005 R005, R009
persistence persistence.iam-create-user-login-profile 3 R008 R008
persistence persistence.lambda-backdoor-function 1 miss R027
persistence persistence.lambda-layer-extension 1 miss miss
persistence persistence.lambda-overwrite-code 1 miss miss
persistence persistence.rolesanywhere-create-trust-anchor 2 miss R039
persistence persistence.sts-federation-token 2 miss R038
privilege escalation privilege-escalation.iam-update-user-login-profile 1 miss R040

3. Invictus-IR: 32 Stratus attacks in one account

2,900 unique events (2,900 records read, 0 exact duplicates dropped), 19 identities, 2023-07-10 11:42:18 → 2023-07-10 12:37:50. Rules produced 31 alerts covering 102 events (the dataset's most common region, us-east-1, is treated as home).

Rule Title Severity Alerts Identities Top identity
R035 EC2 user data read LOW 3 2 bert-jan
R023 Burst of AccessDenied errors (enumeration) MEDIUM 2 2 stratus-red-team-ec2-get-password-data-role
R032 Remote command or session on instances via SSM MEDIUM 2 1 bert-jan
R001 CloudTrail logging stopped or trail deleted CRITICAL 2 1 bert-jan
R002 CloudTrail configuration weakened HIGH 2 1 bert-jan
R015 Large or GPU instance launched MEDIUM 2 2 stratus-red-team-ec2lui-role-pcccexdthk
R028 EC2 Windows password data retrieved MEDIUM 1 1 stratus-red-team-ec2-get-password-data-role
R030 Burst of secret reads by a human user MEDIUM 1 1 bert-jan
R031 SSM parameters read in bulk MEDIUM 1 1 bert-jan
R036 Attempt to leave the AWS Organization HIGH 1 1 stratus-red-team-leave-org-role
R004 VPC flow logs deleted HIGH 1 1 bert-jan
R017 Security group opened to the world MEDIUM 1 1 bert-jan
R025 AMI shared with an external account or publicly HIGH 1 1 bert-jan
R014 EBS snapshot shared with an external account HIGH 1 1 bert-jan

High-risk APIs seen but not alerted (candidate gaps, or benign activity):

API Events Alerted
CreateRole 13 0
DeleteBucket 8 0
RunInstances 8 2
AttachRolePolicy 6 1
PutRolePolicy 5 0
PutBucketPolicy 3 0
DeleteAccessKey 2 0
UpdateAssumeRolePolicy 2 1
ModifySnapshotAttribute 2 1
TerminateInstances 2 0

4. SANS-504 S3 ransomware lab

23,981 unique events (30,477 records read, 6,496 exact duplicates dropped), 6 identities, 2021-07-28 15:28:12 → 2021-08-02 09:50:03. Rules produced 13 alerts covering 373 events (the dataset's most common region, us-west-1, is treated as home).

Rule Title Severity Alerts Identities Top identity
R018 Root account used HIGH 7 1 root
R019 Console login without MFA MEDIUM 3 1 root
R006 Inline policy granting full admin (Action * on Resource *) HIGH 1 1 jmerckle
R002 CloudTrail configuration weakened HIGH 1 1 root
R024 Mass S3 object download by a human user HIGH 1 1 FalsimentisRoot

High-risk APIs seen but not alerted (candidate gaps, or benign activity):

API Events Alerted
AttachRolePolicy 1 0
PutBucketPolicy 1 0
CreateAccessKey 1 0
CreateRole 1 0

Reading it: most PutObject volume in this lab is S3/CloudTrail service delivery (an AWSService identity), not the attacker. The attacker activity is a root principal and an IAM user performing a burst of object reads (caught by R024) plus root usage (R018, deduplicated to one alert per root IP per hour after the first run of this lab produced one alert per root event). The ransomware-style re-encryption itself is not visible as management events in this export, so nothing here detects it directly.

5. flaws.cloud: about 1.2 million real events from real attackers

1,225,784 unique events (1,939,207 records read; 713,423 (37%) were exact duplicates by eventID and were dropped, so the commonly quoted figure of about 1.9M is records, not unique events), 88 identities, 9,402 source IPs, 2017-02-12 → 2020-10-07. There are no labels, so this section is qualitative apart from the one independent check below.

Top identities: backup (580,860), Level6 (537,329), ec2.amazonaws.com (40,230), flaws (16,725), SecurityMonkey (16,347). Top events: RunInstances (708,270), DescribeSnapshots (84,814), AssumeRole (72,438), GetBucketAcl (41,641), DescribeInstances (15,302).

5a. Rules over the whole timeline (7,078 alerts)

Home region assumed to be us-west-2 (where the training site is hosted); this affects R016 only.

Deduplication matters on real traffic: with it off, the same rules over the same events produce 847,927 alerts (120× more than the 7,078 shown below), because one automated burst repeats the same call hundreds of thousands of times. Repeats within five minutes for the same rule, identity and source IP are folded into one alert that still lists every matched event.

Rule Title Sev Alerts Identities Top identity First Last
R016 Compute launched in a region the organization does not use HIGH 2,576 2 backup 2018-04-16 2020-10-03
R022 Offensive-tooling user agent MEDIUM 1,779 17 backup 2017-02-27 2020-10-07
R015 Large or GPU instance launched MEDIUM 1,610 2 backup 2018-04-16 2020-09-20
R023 Burst of AccessDenied errors (enumeration) MEDIUM 686 11 backup 2017-03-01 2020-10-07
R018 Root account used HIGH 204 1 root 2017-02-12 2020-10-07
R035 EC2 user data read LOW 72 4 backup 2017-03-11 2020-10-07
R010 IAM user created LOW 35 5 Level6 2017-02-12 2020-08-21
R014 EBS snapshot shared with an external account HIGH 29 2 backup 2017-02-12 2020-07-14
R028 EC2 Windows password data retrieved MEDIUM 28 3 backup 2017-03-02 2020-09-21
R038 Federation token requested by an IAM user MEDIUM 14 2 backup 2017-03-09 2020-09-15
R007 Access key created for a different user MEDIUM 9 2 root 2017-02-12 2018-10-02
R032 Remote command or session on instances via SSM MEDIUM 9 4 backup 2019-09-19 2020-08-06
R017 Security group opened to the world MEDIUM 7 2 backup 2017-02-12 2020-07-20
R019 Console login without MFA MEDIUM 5 2 flaws 2017-05-16 2019-09-18
R008 Console login profile created MEDIUM 4 3 backup 2017-05-16 2020-03-24
R009 Role trust policy opened to an external account HIGH 4 1 root 2017-05-26 2020-10-06

5b. An independent check: the 2019-08 volume surge

Found from raw monthly counts only (no labels): 710,859 events in 2019-08, 66.7× the median month (10,665), dominated by Level6 calling RunInstances (684,377 calls across 15 regions), starting 2019-08-21 07:41:29. 100% of those calls returned an error, so this is a burst of automated-looking instance-launch attempts across regions that were being refused, not successful abuse. The identities are named after the flaws.cloud challenge levels (Level6, backup), the IAM users that the challenge hands to players, so this is activity by players or scripts using those credentials (an inference from the names, not something the logs prove).

The anomaly model was trained only on the history before the surge (2017-02-12 -> 2019-03-19, 29,260 windows), with the threshold calibrated to about 0.5 flagged windows/day on the last 15% of that history, then run over 2019-08-01 -> 2020-10-07 (434 days, 67,407 windows, 2,023 flagged).

Layer Alerts Incidents Incidents/day Surge events covered Surge detected Onset → first alert (min)
rules 5297 578 1.33 658,873 (96.3%) yes 0.0
anomaly 168 145 0.33 682,967 (99.8%) yes 3.5
ip 66 62 0.14 0 (0.0%) no n/a
combined 5531 591 1.36 684,377 (100.0%) yes 0.0

5c. Highest-risk incidents in the scored period (combined layers)

Severity Risk Identities First seen Tactics Layers Alerts
CRITICAL 100 Level6, backup 2019-08-21T07:41 Persistence → Impact → Discovery → Credential Access → Initial Access anomaly, rule 2893
CRITICAL 100 root 2019-08-23T15:47 Initial Access → Defense Impairment → Discovery anomaly, rule 6
CRITICAL 100 backup 2020-05-16T04:54 Impact → Initial Access → Discovery → Persistence anomaly, ip, rule 70
CRITICAL 100 backup 2020-06-02T14:25 Initial Access → Impact → Discovery anomaly, ip, rule 63
CRITICAL 100 backup 2020-08-30T11:26 Impact → Initial Access → Discovery → Persistence anomaly, ip, rule 511
CRITICAL 100 backup 2020-09-05T03:06 Impact → Initial Access → Discovery → Persistence anomaly, ip, rule 306
CRITICAL 100 backup 2020-09-20T10:00 Impact → Initial Access → Discovery → Persistence anomaly, ip, rule 266
CRITICAL 88 Level6, backup 2019-09-30T06:36 Persistence → Impact → Discovery anomaly, rule 58
HIGH 84 Level6 2020-08-06T12:16 Initial Access → Discovery → Credential Access → Impact rule 4
HIGH 83 Level6, backup, flaws 2019-11-17T02:05 Initial Access → Credential Access → Execution → Discovery anomaly, ip, rule 24

The model flagged 2,023 windows over 434 days (4.7/day) against the 0.5/day it was calibrated to on the last stretch of its own history. That headline overstates the problem: most of those windows are the genuine surge month itself. Outside the surge month the rate is 1.37/day (552 windows over 402 days; 1,471 fall in the surge month). Window scores do drift upward (median 0.414 at calibration vs 0.578 later) because the per-identity baseline goes stale, but I tried five recalibration strategies (scripts/recalibration_experiment.py) and none helps much: the best, a trailing-quantile threshold with a storm guard, gives 1.15/day (-16%) while keeping 96% of the surge detections; a median+MAD threshold is worse (4.6/day), and an unguarded trailing quantile adapts to the surge and masks it. The remaining flagged windows are mostly unusual-but-benign inventory sweeps, not drift. Adaptive thresholding therefore ships as an optional, off-by-default library (src/detection/calibration.py).

5d. Strongest anomaly windows outside the surge month (19 flagged windows fell inside it)

10 of the top 10 are led by volume/breadth features (log_n, n_distinct_names, volume_z, n_services), i.e. large inventory-style sweeps by one identity rather than rare actions. Unusual, but not necessarily malicious: this is the typical false-positive type for this layer.

Identity When Score Events in window Why (top SHAP reasons)
flaws 2020-05-24T15:21 0.786 2206 log_n=7.296 (+1.63), n_distinct_names=577.0 (+1.60), volume_z=10.0 (+1.54), n_services=105.0 (+1.29), type_role=1.0 (+1.17)
flaws 2020-04-18T10:44 0.786 743 n_distinct_names=567.0 (+1.59), log_n=6.612 (+1.54), volume_z=9.154 (+1.53), n_services=103.0 (+1.28), type_role=1.0 (+1.17)
aws:ec2-instance 2020-10-06T16:39 0.784 1121 volume_z=10.0 (+1.62), n_distinct_names=222.0 (+1.56), log_n=5.889 (+1.52), n_services=78.0 (+1.27), type_role=1.0 (+1.16)
flaws 2020-06-11T21:37 0.781 3457 log_n=7.296 (+1.74), n_distinct_names=578.0 (+1.67), volume_z=10.0 (+1.65), n_services=105.0 (+1.34), type_role=1.0 (+1.20)
flaws 2020-06-10T22:27 0.78 1498 log_n=7.302 (+1.73), n_distinct_names=579.0 (+1.68), volume_z=10.0 (+1.65), n_services=105.0 (+1.34), type_role=1.0 (+1.19)
flaws 2020-02-25T16:11 0.78 1544 log_n=7.265 (+1.74), n_distinct_names=564.0 (+1.68), volume_z=10.0 (+1.65), n_services=102.0 (+1.35), type_role=1.0 (+1.19)
aws:ec2-instance 2020-06-10T23:36 0.778 735 n_distinct_names=572.0 (+1.66), volume_z=10.0 (+1.65), log_n=6.601 (+1.64), n_services=104.0 (+1.35), type_role=1.0 (+1.19)
flaws 2020-06-11T00:34 0.778 738 n_distinct_names=574.0 (+1.68), log_n=6.604 (+1.65), volume_z=9.14 (+1.65), n_services=105.0 (+1.36), type_role=1.0 (+1.19)
flaws 2020-07-09T17:07 0.777 1497 log_n=7.312 (+1.74), n_distinct_names=587.0 (+1.69), volume_z=10.0 (+1.63), n_services=106.0 (+1.32), type_role=1.0 (+1.13)
backup 2020-07-05T17:12 0.773 1490 n_distinct_names=588.0 (+1.77), log_n=7.307 (+1.68), volume_z=4.419 (+1.53), n_services=106.0 (+1.41), err_ratio=0.868 (+1.21)

5e. Reading the flaws.cloud numbers

6. What real data taught

  1. Synthetic recall does not transfer. The rules caught everything the generator produced and a minority of real techniques; the difference is the generator author's blind spots, which is why this check exists.
  2. Schema fidelity matters. Two shipped rules were wrong on real record shapes. Real exports also contain top-level JSON arrays, missing fields, AWSAccount identities, IPv6 and empty source IPs, anonymized fake regions and leading-zero IPs; fuzz tests now cover these and the ingestor handles them.
  3. Alert floods. Per-event rules flooded on real bursts (root usage on the SANS lab; instance launches on flaws.cloud). The engine now folds repeats per rule, identity and source IP within five minutes into one alert, and root usage is deduplicated per IP per hour. 3b. AWS service principals look like attackers to naive rules. On the SANS lab the AccessDenied-burst rule (R023) fired 164 times on delivery.logs.amazonaws.com, an AWS service delivering logs. Service principals are now excluded from that rule.
  4. Identity type is not a reliable human/service signal. Many Stratus steps run as an assumed role, so rules that exclude AssumedRole to avoid service noise would miss an attacker holding stolen role credentials. That trade-off is deliberate and visible in R024 and R030.
  5. Duplicates are common in real exports and must be dropped by eventID.