Generated by
scripts/make_results.pyfromrules/*.yaml,config/detector.yamland the feature definitions.
MITRE mappings follow ATT&CK enterprise v20.1 (a test checks them against config/attack_snapshot.json). attack_coverage_layer.json is an ATT&CK Navigator layer of what the rules are written to detect: open it at https://mitre-attack.github.io/attack-navigator/ via Open Existing Layer, Upload from local. It shows intended coverage, not measured quality.
| ID | Severity | MITRE | Title | What it detects | Known false positives |
|---|---|---|---|---|---|
| R018 | HIGH | Initial Access / T1078.004 | Root account used | Any activity by the root principal. Root should only appear for break-glass tasks. | Documented break-glass procedures, billing changes. |
| R019 | MEDIUM | Initial Access / T1078.004 | Console login without MFA | A successful ConsoleLogin where MFA was not used. | Accounts exempt from MFA by policy (should be none). |
| R020 | MEDIUM | Credential Access / T1110 | Repeated failed console logins | Five or more failed ConsoleLogin events from one source IP within ten minutes (password guessing / spraying). | A user who forgot their password, usually 2-3 failures. NAT'd offices can aggregate several users. |
| R021 | HIGH | Credential Access / T1110 | Successful console login after repeated failures | A ConsoleLogin succeeded from an IP that had five or more recent failures, so the guessing worked. | A user who finally remembered the password; check the IP is a known one. |
| R022 | MEDIUM | Initial Access / T1078.004 | Offensive-tooling user agent | User agent matches Kali/Pacu/curl/python-requests, which legitimate AWS tooling does not use against AWS APIs. | Security team scripts; internal tooling written with requests/curl against signed APIs. |
| R023 | MEDIUM | Discovery / T1580 | Burst of AccessDenied errors (enumeration) | A principal produced 15+ authorization failures in ten minutes, the footprint of permission brute-forcing tools. | Misconfigured automation retrying a forbidden call; look at distinct event names. |
| R024 | HIGH | Collection / T1530 | Mass S3 object download by a human user | An IAM user performed 250+ GetObject calls in ten minutes. Service roles are excluded because bulk reads are normal for them. | Data migrations or analysts exporting large datasets. |
| R001 | CRITICAL | Defense Impairment / T1685.002 | CloudTrail logging stopped or trail deleted | An identity stopped logging on, or deleted, a CloudTrail trail. Attackers do this to blind investigators before acting. | Planned trail migrations by the platform team. Should always be ticketed; treat unticketed as an incident. |
| R002 | HIGH | Defense Impairment / T1685.002 | CloudTrail configuration weakened | UpdateTrail or PutEventSelectors changed what the trail records (single-region, no validation, management events off). | Legitimate cost-tuning of event selectors. Compare the new selectors against the previous ones. |
| R003 | HIGH | Defense Impairment / T1685 | GuardDuty detector deleted or disabled | A GuardDuty detector was deleted or disabled, removing a managed threat detection service. | Account decommissioning or region clean-up. |
| R004 | HIGH | Defense Impairment / T1685.002 | VPC flow logs deleted | Flow logs were deleted, removing network visibility. | VPC teardown by infrastructure automation (usually a CI/CD role, not a person). |
| R005 | HIGH | Privilege Escalation / T1098.003 | AdministratorAccess policy attached | The AWS-managed AdministratorAccess policy was attached to a user, role or group. | Onboarding of a new admin; break-glass role set-up. |
| R006 | HIGH | Privilege Escalation / T1098.003 | Inline policy granting full admin (Action * on Resource *) | An inline policy allows all actions on all resources, equivalent to admin access but harder to audit. | Rare. Some legacy automation uses wildcard inline policies. |
| R007 | MEDIUM | Persistence / T1098.001 | Access key created for a different user | CreateAccessKey was called for a user other than the caller, a common way to mint durable credentials for a target identity. | Admins rotating keys for service accounts and onboarding new hires (both occur in normal operation). |
| R008 | MEDIUM | Persistence / T1098 | Console login profile created | CreateLoginProfile gives an IAM user console access, which an attacker can add to a user that only had API keys. | Onboarding a new employee. |
| R009 | HIGH | Persistence / T1098 | Role trust policy opened to an external account | UpdateAssumeRolePolicy now trusts a principal outside this account (or "*"), creating a cross-account backdoor. | Approved partner or vendor integrations; verify the external account ID against an allowlist. |
| R010 | LOW | Persistence / T1136.003 | IAM user created | A new IAM user was created. Low on its own; interesting in combination with key creation and policy attachment. | Onboarding. |
| R011 | LOW | Privilege Escalation / T1546 | Lambda function created | A function was created (iam:PassRole privilege escalation and Lambda backdoors both start here). | Normal development; matters when the caller never created functions before or passes an admin role. |
| R025 | HIGH | Exfiltration / T1537 | AMI shared with an external account or publicly | ModifyImageAttribute added a launch permission for another AWS account (or group "all"), exposing the image contents. | Sharing golden images with a known partner or DR account; verify the account ID against an allowlist. |
| R026 | HIGH | Exfiltration / T1537 | RDS snapshot shared with an external account | A DB snapshot's restore attribute was opened to another account (or "all"), letting them restore a copy of the database. | Cross-account backup or migration to an account you own; confirm the destination account. |
| R027 | HIGH | Persistence / T1098 | Lambda function invokable by anyone | AddPermission granted lambda:InvokeFunction to Principal "*" with no source restriction, creating an unauthenticated entry point. | Intentionally public function URLs/webhooks (should use a function URL with auth or an API gateway instead). |
| R028 | MEDIUM | Credential Access / T1552 | EC2 Windows password data retrieved | GetPasswordData returns the (encrypted) Administrator password of a Windows instance. | Administrators launching a Windows instance for the first time; rare in most estates. |
| R029 | MEDIUM | Credential Access / T1555 | Secrets Manager secrets retrieved in bulk | BatchGetSecretValue retrieves many secrets in a single call. | Application start-up code that loads its secrets in one call (usually a service role). |
| R030 | MEDIUM | Credential Access / T1555 | Burst of secret reads by a human user | An IAM user read 10+ secrets within ten minutes. Service roles are excluded because they read secrets constantly. | A migration script run by an engineer; confirm with the user. |
| R031 | MEDIUM | Credential Access / T1552 | SSM parameters read in bulk | GetParameters named ten or more parameters in a single call, the pattern of harvesting SecureString credentials. | Application bootstrap code (typically a service role). |
| R032 | MEDIUM | Execution / T1651 | Remote command or session on instances via SSM | SendCommand or StartSession ran commands or opened an interactive session on EC2 instances without SSH. | Routine operations by admins and automation; matters when the caller never did this before. |
| R033 | MEDIUM | Lateral Movement / T1021 | EC2 Instance Connect or serial console access used | A temporary SSH key was pushed (SendSSHPublicKey / serial console) or serial console access was enabled for the account. | Break-glass access to a broken instance. |
| R034 | MEDIUM | Execution / T1059 | EC2 user data modified | ModifyInstanceAttribute changed an instance's user data, which runs as root at next boot. | Infrastructure changes by the platform team (usually via IaC, not by hand). |
| R035 | LOW | Credential Access / T1552 | EC2 user data read | DescribeInstanceAttribute requested userData, which often holds bootstrap secrets. | Debugging a launch configuration. |
| R036 | HIGH | Defense Impairment / T1666 | Attempt to leave the AWS Organization | LeaveOrganization would detach the account from organization-level guardrails (SCPs, org trails). | Account divestiture, which is a planned and ticketed event. |
| R037 | HIGH | Defense Impairment / T1685.002 | DNS query logging removed | A Route 53 Resolver query log configuration was deleted or disassociated, blinding DNS-based detection. | VPC teardown. |
| R038 | MEDIUM | Persistence / T1098 | Federation token requested by an IAM user | GetFederationToken mints temporary credentials (up to 36 h) that survive deletion of the access key that requested them. | Legacy broker applications; rare in modern accounts. |
| R039 | HIGH | Persistence / T1098 | IAM Roles Anywhere trust anchor or profile created | A new Roles Anywhere trust anchor/profile lets an external certificate authority obtain AWS role credentials. | Planned hybrid-workload onboarding. |
| R040 | MEDIUM | Persistence / T1098 | Console password reset for another user | UpdateLoginProfile changed the console password of a user other than the caller. | Help-desk password resets by admins. |
| R041 | LOW | Impact / T1496 | Bedrock model invoked | A foundation model was invoked. Stolen credentials are used to run expensive model inference (LLMjacking); alone this is low severity. | Any legitimate use of Bedrock. Meaningful only for identities that never invoked models before or in unusual regions. |
| R012 | HIGH | Exfiltration / T1537 | S3 bucket policy allows public access | PutBucketPolicy contains an Allow statement for Principal "*" without conditions. | Intentionally public static-website buckets. |
| R013 | HIGH | Exfiltration / T1537 | S3 bucket ACL made public | PutBucketAcl grants public-read or public-read-write. | Intentionally public asset buckets. |
| R014 | HIGH | Exfiltration / T1537 | EBS snapshot shared with an external account | ModifySnapshotAttribute added another AWS account (or all) to a snapshot's createVolumePermission. | Sharing golden images with a known partner or a DR account. |
| R015 | MEDIUM | Impact / T1496 | Large or GPU instance launched | RunInstances / RequestSpotInstances for GPU families or very large sizes, the signature of crypto-mining abuse. | ML training jobs. Check the requester's history and the region. |
| R016 | HIGH | Impact / T1496 | Compute launched in a region the organization does not use | Instances launched outside the organization's home regions. Attackers pick unmonitored regions. | New region roll-out; update org home regions when it happens. |
| R017 | MEDIUM | Defense Impairment / T1686.001 | Security group opened to the world | AuthorizeSecurityGroupIngress allows 0.0.0.0/0. | Public web/load-balancer security groups on 80/443. |
| ID | Severity | MITRE | Title | What it detects |
|---|---|---|---|---|
| IP001 | HIGH | Initial Access / T1078.004 | Impossible travel | The same identity appeared from two locations too far apart to travel between in the elapsed time. |
| IP002 | MEDIUM | Initial Access / T1078.004 | One IP new to many identities | An IP address that none of these identities had used before touched several identities (credential stuffing / pivoting). |
| IP003 | MEDIUM | Initial Access / T1078.004 | Identity active from many IPs | A single identity was used from an unusually large number of distinct IPs in a short period. |
| IP004 | MEDIUM | Command and Control / T1090 | Blocklisted or anonymizing network | Traffic came from an IP/ASN on the threat-intel blocklist (Tor exit / anonymizing VPN). |
Thresholds (config/detector.yaml):
ip:
impossible_travel:
min_speed_kmh: 900
min_km: 500
cooldown_s: 1800
shared_ip:
min_identities: 3
window_s: 3600
cooldown_s: 3600
widely_shared_min_ips: 50
many_ips:
min_ips: 4
window_s: 1800
cooldown_s: 3600
baseline_multiplier: 1.5
blocked_asns:
- AS9009
blocked_cidr_file: config/ip_blocklist.txt
Identity × 15-minute windows sliding every 5 minutes. Features are computed against the identity's own baseline (known IPs, networks, countries, user agents, regions, active hours, typical volume). Trained on benign windows only; the alert threshold is calibrated on a benign validation week. Each flagged window carries SHAP reasons.
| Feature | Meaning |
|---|---|
log_n |
log(1 + events in the window) |
n_distinct_names |
distinct API names called |
n_services |
distinct AWS services touched |
read_ratio |
share of read-only calls |
err_ratio |
share of AccessDenied/Unauthorized errors |
high_risk_share |
share of high-risk APIs (IAM writes, logging/detection changes, sharing/permission changes, compute launch) |
recon_ratio |
share of List/Describe/Get management calls (enumeration signature) |
new_ip |
share of events from an IP never seen for this identity |
new_asn |
... from a network (ASN) never seen |
new_country |
... from a country never seen |
new_ua |
... with a user agent never seen |
new_region |
... in a region never used by the identity |
hour_rarity |
how unusual the hour of day is for this identity (1 = never active then) |
is_weekend |
window contains a weekend event |
log_max_dist |
log km between consecutive events' locations |
log_max_speed |
log implied travel speed (km/h) between consecutive events |
bytes_z |
S3 bytes read vs the identity's baseline (z-score) |
volume_z |
event count vs the identity's baseline (z-score) |
log_n_ips |
log distinct source IPs |
login_fail |
log failed console logins |
type_user |
identity is an IAM user |
type_role |
identity is an assumed role |
type_root |
identity is root |
High-risk API set used by high_risk_share: CreateUser, CreateAccessKey, DeleteAccessKey, AttachUserPolicy, PutUserPolicy, AttachRolePolicy, PutRolePolicy, CreateLoginProfile, UpdateAssumeRolePolicy, CreateRole, StopLogging, DeleteTrail, UpdateTrail, PutEventSelectors, DeleteDetector, UpdateDetector, DeleteFlowLogs, PutBucketPolicy, PutBucketAcl, ModifySnapshotAttribute, AuthorizeSecurityGroupIngress, CreateFunction20150331, RunInstances, RequestSpotInstances, DeleteBucket, TerminateInstances.
scoring:
severity_points:
LOW: 15
MEDIUM: 35
HIGH: 60
CRITICAL: 90
weights:
rule: 1.0
anomaly: 1.0
ip: 1.0
anomaly:
margin_low: 0.03
margin_high: 0.08
margin_full: 0.15
max_points: 60
corroboration_bonus: 12
tactic_bonus: 8
severity_from_risk:
MEDIUM: 30
HIGH: 55
CRITICAL: 85
escalate_min_tactics: 3
anomaly_feature_tactics:
new_country: Initial Access
new_ip: Initial Access
new_asn: Initial Access
log_max_speed: Initial Access
recon_ratio: Discovery
err_ratio: Discovery
n_distinct_names: Discovery
high_risk_share: Persistence
bytes_z: Exfiltration
login_fail: Credential Access
incidents:
gap_s: 3600
high_severity_gap_s: 21600
Alerts get a 0-100 risk (rule severity points, anomaly margin over the threshold, or IP signal points). Alerts for the same identity or non-organisation IP within the gap join one incident; an identity tied to a HIGH+ alert stays linked for the longer gap. Incident severity is the max alert severity, escalated by tactic count and risk. The MITRE chain is ordered by detection time.