Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
depth 3.5: threat conditions paired with behavioural baselines, with hand-authored benign twins (#1320)
Beenu Arora263cb7889cf2
diff --git a/DEPTH_PROGRESS.md b/DEPTH_PROGRESS.mdindex da40ea80d..95817a39b 100644--- a/DEPTH_PROGRESS.md+++ b/DEPTH_PROGRESS.md@@ -416,6 +416,25 @@ All three are restored here verbatim from the merge commit rather thanrewritten from memory, which is why D11 keeps its original number and thisphase's own new deviations take D12 and D13.+### D14 -- A rule of this lane's own was a bare anomaly, and its own gate caught it++Depth plan 3.5 is explicit that an anomaly is *"a typed signal, not an alert+on its own"*. `ta-saas-oauth-app-volume-spike` was written with+`baseline_oauth_app_volume_z_gte` as its entire clause -- an alert on an+anomaly, which is the one thing the item says not to build. It passed+`generate_detections --check`, the truth table, the reachability gate and+the generic fixture replay, because every one of those asks whether a rule+is well-formed and can fire, and it was and it could.++What caught it was the family's own gate asserting that each rule reads a+threat condition *as well as* a baseline. The rule now also requires+`event_type: oauth_token_event`.++The reusable half is that the generic gates could not have caught it. A+corpus-wide gate checks the properties every rule shares; a property that+belongs to one family has to be asserted by that family, and writing that+assertion is part of adding the family rather than a later tidy-up.+## Phase 1: Verdict quality you can publish- [x] **1.1** Balanced, labelled verdict corpus@@ -482,7 +501,25 @@ phase's own new deviations take D12 and D13.lookup and reported both as blocked on a baseline that would never havehelped either (D12). `MAX_UNREACHABLE` stays at 2, now with accuratereasons.-- [ ] **3.5** Threat-and-anomaly condition rules+- [x] **3.5** Threat-and-anomaly condition rules — 24 in a new+ `threat-anomaly` category (`scripts/detection_specs_part4_threat_anomaly.py`),+ each pairing a threat condition with a 3.4 baseline score, across AWS 6,+ Okta 4, Workspace 3, Azure/Entra 2, GitHub 2, Kubernetes 2 and one each+ of M365, Slack, Salesforce, GitLab and generic identity. Executable+ 2,511 → **2,535** (`generate_corpus_stats.py --check`), on disk 6,991 →+ 7,015, counted as its own `make stats` line because the claim differs: a+ rule here also needs a warmed baseline, so a day-one install has the+ rule before it has the signal. **Every fixture is hand-authored** and+ every negative is the benign twin of its positive — the same threat+ action by a principal for whom it is routine — so the pair differs only+ in the clause the rule is about. `test_threat_anomaly_replay.py` (147+ assertions) drives the real `DetectionEngine` and holds four properties+ a synthesised fixture cannot: the twin moves a baseline field, no+ negative uses the `not-` sentinel, stripping the baseline from a+ positive silences the rule, and one rule fires **end to end in CORE on a+ baseline earned from replayed traffic** with no `full` service running —+ the phase's second "Done when", as an assertion. The decorative-clause+ control caught a rule of this lane's own that was a bare anomaly (D14).- [ ] **3.6** 395 → at least 800 cloud, identity, SaaS and code conditions- [ ] **3.7** Detection engineering agent (gap-closure Phase 9 / parity 6.2)diff --git a/README.md b/README.mdindex 1dc1c01f2..61fb67042 100644--- a/README.md+++ b/README.md@@ -112,7 +112,7 @@ rule is harder to find than a missing one: of the 2,005 Splunk rules bundled her## How it worksIngest normalizes to a common shape and stamps an **activity projection** on every event — actor, action, resource, location, outcome, with `actor.kind` read from each vendor's own documented field rather than inferred — then Kafka carries it.-Then fusion runs 2511 executable detection rules, of 6991 on disk, plus 72 sliding-window rules (70 count across events; 2 match a sequence), applies **your tenant's own tuning** on top — the disables, floors and suppressions the console writes, so a rule you turned off actually stops firing — and decides what becomes an alert.+Then fusion runs 2535 executable detection rules, of 6991 on disk, plus 72 sliding-window rules (70 count across events; 2 match a sequence), applies **your tenant's own tuning** on top — the disables, floors and suppressions the console writes, so a rule you turned off actually stops firing — and decides what becomes an alert.Correlation groups related alerts, an agent investigates and writes its reasoning to the Investigation Ledger, and a playbook may start from the result. Separately, new threat intelligence sweeps the lake for sightings you already collected, and a hypothesis becomes a hunt without anyone writing a query — the model fills a closed schema and every value is bound as a parameter, so it cannot express a query at all.**A playbook triggered by an alert previews before it acts.** Three switches must agree — the@@ -191,7 +191,7 @@ Agents triage alerts and investigate incidents. What they can and cannot do:| Capability | Status | Tested | Production ready ||---|---|---|---|| Ingest → detect → correlate → alert | Stable | E2E + unit | Yes |-| Detection engine (2511 executable rules) of 6991 | Stable | Replay proof | Yes |+| Detection engine (2535 executable rules) of 6991 | Stable | Replay proof | Yes || Alert correlation into incidents | Stable | Unit | Yes || REST API + web console | Stable | Unit + integration | Yes || AI triage + Investigation Ledger | Stable | Live Postgres ledger + a PR-gated local-model agent run. No hosted provider has been exercised | Yes, copilot mode |diff --git a/ROADMAP.md b/ROADMAP.mdindex 8e0bf2111..13d0a98cf 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -38,8 +38,8 @@ A proof-first, security-first program to make every README claim gate-backed, cl**Program status:** all 13 hardening phases (0–12) are landed. Building on them, the **Fully-Operational AI-SOC roadmap** (Phases A1–E1) is now complete — it wired the three end-to-end paths the reality audit found unwired and pushed the platform to competitive parity + beyond:-- **Phase A (SIEM foundation):** A1 ClickHouse lake writer · A2 live detection-evaluation worker (2511 executable rules on the stream) · A3 default-on one-command deploy (connectors + graph on) · A4 UEBA behavioral-model fusion.-- **Phase A (SIEM foundation):** A1 ClickHouse lake writer · A2 live detection-evaluation worker (2511 executable rules on the stream) · A3 default-on one-command deploy (connectors + graph on) · A4 UEBA behavioral-model fusion.+- **Phase A (SIEM foundation):** A1 ClickHouse lake writer · A2 live detection-evaluation worker (2535 executable rules on the stream) · A3 default-on one-command deploy (connectors + graph on) · A4 UEBA behavioral-model fusion.+- **Phase A (SIEM foundation):** A1 ClickHouse lake writer · A2 live detection-evaluation worker (2535 executable rules on the stream) · A3 default-on one-command deploy (connectors + graph on) · A4 UEBA behavioral-model fusion.- **Phase B (SOAR foundation):** B1 auto-triage worker (copilot default) · B2 credential resolver + `decide()`-governed live dispatch + 10 vendor adapters · B3 real rollback + post-action verification + durable approval-SLA timers · B4 Business Context Rules in the hot path.- **Phase C (parity differentiators):** C1 Advanced Data Explorer · C2 Effective-Permissions live posture loader · C3 autopilot/copilot posture scorecard · C4 fuse-time attack-chain auto-grouping.- **Phase D (breadth):** D1 eight connectors (QRadar/Exabeam/Securonix/Devo/Netskope/Windows-Sysmon/Zeek-Suricata/syslog-CEF) · D2 AI/LLM-usage audit connector + `llm-*` detections + hot/cold lake tiering · D3 live-vendor mock-server smoke.diff --git a/apps/web/public/marketplace/index.json b/apps/web/public/marketplace/index.jsonindex fa60978cf..9f7725923 100644--- a/apps/web/public/marketplace/index.json+++ b/apps/web/public/marketplace/index.json@@ -1,7 +1,7 @@{"$schema": "https://example.com/schemas/marketplace/v1.json","version": "1.0.0",- "generated": "2026-10-10T01:22:53Z",+ "generated": "2026-10-11T05:06:19Z","categories": [{"id": "playbooks",@@ -20,32 +20,32 @@}],"stats": {- "total": 7158,+ "total": 7182,"playbooks": 87,"playbook_packs": 62,- "detections": 6991,+ "detections": 7015,"plugins": 80,- "verified": 1037,+ "verified": 1061,"community": 1,"by_tier": {"beta": 7,"community": 1,"imported": 6113,- "stable": 1037+ "stable": 1061},"detections_by_tier": {"community": 1,"imported": 6113,- "stable": 877+ "stable": 901},- "executable": 2678,+ "executable": 2702,"quarantined": 4480,- "executable_detections": 2511,+ "executable_detections": 2535,"reference_only_detections": 4480,"not_a_detection": 167},"mitre_coverage": {- "unique_techniques": 387,+ "unique_techniques": 391,"techniques": {"T1001.003": 1,"T1003": 21,@@ -144,8 +144,8 @@"T1078": 49,"T1078.001": 5,"T1078.002": 7,- "T1078.003": 2,- "T1078.004": 45,+ "T1078.003": 3,+ "T1078.004": 49,"T1082": 13,"T1083": 9,"T1087": 10,@@ -158,10 +158,11 @@"T1090.003": 9,"T1091": 1,"T1095": 4,- "T1098": 44,- "T1098.001": 19,- "T1098.003": 6,+ "T1098": 48,+ "T1098.001": 21,+ "T1098.003": 8,"T1098.004": 6,+ "T1098.005": 1,"T1098.007": 1,"T1102": 5,"T1102.002": 1,@@ -170,14 +171,14 @@"T1110": 18,"T1110.001": 5,"T1110.002": 1,- "T1110.003": 1,+ "T1110.003": 2,"T1110.004": 3,"T1112": 58,"T1113": 7,"T1114": 1,"T1114.001": 1,"T1114.002": 1,- "T1114.003": 2,+ "T1114.003": 3,"T1115": 3,"T1119": 3,"T1120": 2,@@ -209,7 +210,7 @@"T1187": 3,"T1190": 39,"T1195": 3,- "T1195.001": 1,+ "T1195.001": 2,"T1195.002": 7,"T1197": 13,"T1199": 12,@@ -226,6 +227,7 @@"T1211": 4,"T1212": 4,"T1213": 2,+ "T1213.003": 1,"T1216": 8,"T1216.001": 2,"T1217": 3,@@ -250,7 +252,7 @@"T1482": 14,"T1484": 1,"T1484.001": 7,- "T1484.002": 2,+ "T1484.002": 3,"T1485": 29,"T1486": 11,"T1489": 10,@@ -273,7 +275,7 @@"T1526": 2,"T1528": 8,"T1529": 3,- "T1530": 27,+ "T1530": 31,"T1531": 7,"T1535": 1,"T1537": 7,@@ -311,8 +313,8 @@"T1548.002": 50,"T1548.003": 2,"T1548.004": 1,- "T1550": 5,- "T1550.001": 2,+ "T1550": 6,+ "T1550.001": 3,"T1550.002": 6,"T1550.003": 3,"T1550.004": 1,@@ -338,8 +340,9 @@"T1556.001": 1,"T1556.003": 1,"T1556.004": 1,- "T1556.006": 15,- "T1556.007": 1,+ "T1556.006": 16,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 2,"T1557.001": 12,"T1557.002": 3,@@ -367,7 +370,7 @@"T1564.003": 6,"T1564.004": 12,"T1564.006": 2,- "T1564.008": 1,+ "T1564.008": 2,"T1565": 2,"T1565.001": 3,"T1566": 5,@@ -395,6 +398,7 @@"T1578": 1,"T1578.002": 1,"T1578.003": 1,+ "T1580": 1,"T1583.001": 4,"T1584": 1,"T1586.003": 1,@@ -414,7 +418,7 @@"T1606.002": 1,"T1608": 2,"T1608.003": 1,- "T1609": 1,+ "T1609": 3,"T1610": 12,"T1611": 25,"T1612": 1,@@ -435,8 +439,8 @@"T1686.003": 10,"T1689": 1},- "total_with_mitre": 2380,- "unique_techniques_all_rules": 493,+ "total_with_mitre": 2404,+ "unique_techniques_all_rules": 494,"techniques_all_rules": {"T1001.003": 2,"T1003": 51,@@ -562,8 +566,8 @@"T1078": 132,"T1078.001": 10,"T1078.002": 14,- "T1078.003": 11,- "T1078.004": 98,+ "T1078.003": 12,+ "T1078.004": 102,"T1082": 49,"T1083": 28,"T1087": 21,@@ -576,12 +580,12 @@"T1090.003": 11,"T1091": 5,"T1095": 8,- "T1098": 91,- "T1098.001": 27,+ "T1098": 95,+ "T1098.001": 29,"T1098.002": 6,- "T1098.003": 35,+ "T1098.003": 37,"T1098.004": 12,- "T1098.005": 7,+ "T1098.005": 8,"T1098.007": 1,"T1102": 17,"T1102.001": 4,@@ -592,14 +596,14 @@"T1110": 57,"T1110.001": 18,"T1110.002": 1,- "T1110.003": 44,+ "T1110.003": 45,"T1110.004": 16,"T1112": 164,"T1113": 16,"T1114": 6,"T1114.001": 7,"T1114.002": 16,- "T1114.003": 12,+ "T1114.003": 13,"T1115": 11,"T1119": 8,"T1120": 2,@@ -634,7 +638,7 @@"T1189": 4,"T1190": 177,"T1195": 23,- "T1195.001": 2,+ "T1195.001": 3,"T1195.002": 17,"T1197": 23,"T1199": 16,@@ -653,7 +657,7 @@"T1212": 8,"T1213": 10,"T1213.002": 2,- "T1213.003": 5,+ "T1213.003": 6,"T1216": 14,"T1216.001": 2,"T1217": 4,@@ -683,7 +687,7 @@"T1482": 31,"T1484": 13,"T1484.001": 16,- "T1484.002": 6,+ "T1484.002": 7,"T1485": 84,"T1485.001": 2,"T1486": 27,@@ -715,7 +719,7 @@"T1526": 11,"T1528": 28,"T1529": 16,- "T1530": 46,+ "T1530": 50,"T1531": 20,"T1535": 6,"T1537": 23,@@ -762,8 +766,8 @@"T1548.002": 76,"T1548.003": 39,"T1548.004": 1,- "T1550": 13,- "T1550.001": 4,+ "T1550": 14,+ "T1550.001": 5,"T1550.002": 7,"T1550.003": 9,"T1550.004": 2,@@ -792,8 +796,9 @@"T1556.002": 3,"T1556.003": 1,"T1556.004": 3,- "T1556.006": 28,- "T1556.007": 1,+ "T1556.006": 29,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 13,"T1557.001": 19,"T1557.002": 6,@@ -826,7 +831,7 @@"T1564.003": 11,"T1564.004": 25,"T1564.006": 3,- "T1564.008": 4,+ "T1564.008": 5,"T1565": 3,"T1565.001": 11,"T1565.002": 3,@@ -863,7 +868,7 @@"T1578.002": 2,"T1578.003": 1,"T1578.005": 1,- "T1580": 6,+ "T1580": 7,"T1583.001": 4,"T1583.006": 1,"T1584": 3,@@ -902,7 +907,7 @@"T1606.002": 1,"T1608": 2,"T1608.003": 1,- "T1609": 4,+ "T1609": 6,"T1610": 12,"T1611": 29,"T1612": 1,@@ -994,8 +999,8 @@"T1078": 41,"T1078.001": 4,"T1078.002": 3,- "T1078.003": 1,- "T1078.004": 38,+ "T1078.003": 2,+ "T1078.004": 42,"T1083": 2,"T1087.001": 2,"T1087.002": 5,@@ -1003,20 +1008,21 @@"T1090": 3,"T1090.003": 6,"T1095": 3,- "T1098": 32,- "T1098.001": 22,- "T1098.003": 9,+ "T1098": 36,+ "T1098.001": 24,+ "T1098.003": 11,"T1098.004": 8,+ "T1098.005": 1,"T1098.007": 1,"T1105": 3,"T1110": 9,"T1110.001": 4,- "T1110.003": 4,+ "T1110.003": 5,"T1110.004": 4,"T1112": 1,"T1113": 2,"T1114.002": 5,- "T1114.003": 4,+ "T1114.003": 5,"T1127.001": 1,"T1133": 13,"T1134": 1,@@ -1029,6 +1035,7 @@"T1185": 1,"T1190": 30,"T1195": 2,+ "T1195.001": 1,"T1195.002": 10,"T1197": 1,"T1199": 15,@@ -1038,6 +1045,7 @@"T1212": 2,"T1213": 3,"T1213.002": 1,+ "T1213.003": 1,"T1218": 1,"T1218.003": 1,"T1218.004": 1,@@ -1050,7 +1058,7 @@"T1404": 2,"T1482": 1,"T1484.001": 2,- "T1484.002": 2,+ "T1484.002": 3,"T1485": 29,"T1486": 8,"T1489": 2,@@ -1063,7 +1071,7 @@"T1505.003": 3,"T1525": 8,"T1528": 6,- "T1530": 36,+ "T1530": 40,"T1531": 5,"T1535": 1,"T1537": 10,@@ -1094,7 +1102,8 @@"T1548.002": 4,"T1548.003": 3,"T1548.004": 1,- "T1550": 3,+ "T1550": 4,+ "T1550.001": 1,"T1550.002": 2,"T1550.003": 1,"T1550.004": 1,@@ -1117,8 +1126,9 @@"T1556.001": 1,"T1556.003": 1,"T1556.004": 1,- "T1556.006": 14,- "T1556.007": 1,+ "T1556.006": 15,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 2,"T1557.001": 5,"T1557.002": 3,@@ -1136,7 +1146,7 @@"T1562.008": 14,"T1562.012": 2,"T1564.001": 1,- "T1564.008": 1,+ "T1564.008": 2,"T1565.001": 4,"T1565.002": 1,"T1566": 3,@@ -1155,13 +1165,14 @@"T1574.002": 4,"T1574.006": 3,"T1578.002": 1,+ "T1580": 1,"T1583.001": 4,"T1592": 2,"T1595.002": 1,"T1599": 1,"T1600.001": 1,"T1606.002": 1,- "T1609": 1,+ "T1609": 3,"T1610": 12,"T1611": 25,"T1612": 1,@@ -52741,6 +52752,614 @@"path": "detections/network/net-stp-topology-change-from-edge.yaml","sha256": "9290467d3a6710e910c7c1405b10c903ecc05b8d60dadf1ba41bec54de83892c"},+ {+ "id": "det-threat-anomaly-001",+ "type": "detection",+ "name": "AWS Access Key Created From a Client This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Access Key Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.001",+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-credential-compromise",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-access-key-created-from-rare-client.yaml",+ "sha256": "7ca0b94403e6f50143727ac570bc6b9ddff8fa2dd0291b203d68cfeb11e8e07d"+ },+ {+ "id": "det-threat-anomaly-002",+ "type": "detection",+ "name": "AWS Policy Attached by a Principal Who Does Not Normally Attach Policies",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Policy Attached by a Principal Who Does Not Normally Attach Policies'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-policy-attached-by-rare-actor-action.yaml",+ "sha256": "7012dc5fcee7715194be2fb6c98bd3a035d45eb6490b78c19f5a749ac8407d87"+ },+ {+ "id": "det-threat-anomaly-003",+ "type": "detection",+ "name": "AWS Control-Plane Call From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Control-Plane Call From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-api-call-from-rare-country.yaml",+ "sha256": "dab481d16d2853a29b19dfbfb958ec2ab5210e6e9e08d3a70efde8cce2ef1b03"+ },+ {+ "id": "det-threat-anomaly-004",+ "type": "detection",+ "name": "AWS S3 Read Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS S3 Read Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-volume-spike-on-s3-reads.yaml",+ "sha256": "22aa2a94f4facde674e2bb325cf6b20ff069be2d5c437fc9303eb4a4bda716e0"+ },+ {+ "id": "det-threat-anomaly-005",+ "type": "detection",+ "name": "AWS Resource This Principal Has Never Touched",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Resource This Principal Has Never Touched'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1580"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-rare-resource-touched-by-principal.yaml",+ "sha256": "cb14029193505e8eccab5d16ef8c344e45b7837e74cf05f2b7e7eab9b3f2d3da"+ },+ {+ "id": "det-threat-anomaly-006",+ "type": "detection",+ "name": "AWS Privileged Call Volume Far Above This Principal's Peer Group",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Privileged Call Volume Far Above This Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-peer-deviation-on-privileged-call.yaml",+ "sha256": "75e00c3a07053cd324f0a9f88247fce5690745d21d7b949713d7043e74282262"+ },+ {+ "id": "det-threat-anomaly-007",+ "type": "detection",+ "name": "MFA Factor Reset From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'MFA Factor Reset From a Country This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.006",+ "T1098.005"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-mfa-reset-from-rare-country.yaml",+ "sha256": "b0dd0387f22b17959adedee45670b0e6f071ec6b5e40fbf9be86e7123771c4a0"+ },+ {+ "id": "det-threat-anomaly-008",+ "type": "detection",+ "name": "Admin Role Granted by a Principal Who Does Not Normally Grant Roles",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Admin Role Granted by a Principal Who Does Not Normally Grant Roles'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-admin-role-granted-rare-action.yaml",+ "sha256": "b04bbe4cd9f9cdc2ab0acb7204acc6b5309eab94ad2d0de0684be5ab2770df6a"+ },+ {+ "id": "det-threat-anomaly-009",+ "type": "detection",+ "name": "Sign-In From a Client Family This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Sign-In From a Client Family This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004",+ "T1550"+ ],+ "log_source": "okta",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-login-from-rare-client-family.yaml",+ "sha256": "0cb44beaf0b84fe6a6a258c2a675d42533566cea6d6d2c245a1e67efa16ced3b"+ },+ {+ "id": "det-threat-anomaly-010",+ "type": "detection",+ "name": "Identity-Provider Change by a Principal Who Does Not Normally Make Them",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Identity-Provider Change by a Principal Who Does Not Normally Make Them'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.007"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-rare-action-on-identity-provider.yaml",+ "sha256": "7cb391bdfa3b262f78a94b705690d131b5392e85a0f1f00f90149f13f9c4bc55"+ },+ {+ "id": "det-threat-anomaly-011",+ "type": "detection",+ "name": "Conditional Access Policy Changed by a Rare Actor",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Conditional Access Policy Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.009",+ "T1484.002"+ ],+ "log_source": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-entra-conditional-access-change-rare-action.yaml",+ "sha256": "6f84bba94cc7f12e157667061446978ebdf9c17d4652208848a4b7fd30049a94"+ },+ {+ "id": "det-threat-anomaly-012",+ "type": "detection",+ "name": "Entra Sign-In Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Entra Sign-In Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1110.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-entra-signin-volume-spike.yaml",+ "sha256": "f78e614c2a4941a605bd3758842dd256d0ca1c2eee58a9fe7dbb31c11f8078c6"+ },+ {+ "id": "det-threat-anomaly-013",+ "type": "detection",+ "name": "Group Membership Changes Far Above the Principal's Peer Group",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Group Membership Changes Far Above the Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "identity",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-identity-peer-deviation-on-group-change.yaml",+ "sha256": "2b41939658c8029e098fc06044fbfd3c924766628bf7d6c0a0a55424be07defa"+ },+ {+ "id": "det-threat-anomaly-014",+ "type": "detection",+ "name": "OAuth Application Activity Far Above Its Own Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'OAuth Application Activity Far Above Its Own Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1550.001",+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-saas-oauth-app-volume-spike.yaml",+ "sha256": "e35b253aa6d457f60fc9a953bb482832d8050fcab0f34e98b2753836b0db2d11"+ },+ {+ "id": "det-threat-anomaly-015",+ "type": "detection",+ "name": "Workspace Admin Action This Principal Has Never Performed",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Workspace Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-workspace-rare-admin-action.yaml",+ "sha256": "b8d316a1fbea56a90eb65b6cd3a4b4d019c6a92eefe118bc91b08bc5a1d4d939"+ },+ {+ "id": "det-threat-anomaly-016",+ "type": "detection",+ "name": "Drive Download Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Drive Download Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-workspace-drive-download-volume-spike.yaml",+ "sha256": "32889448b1e0e0779717b4f7145790c7f46739762ab66dd72c15b62a10dadef3"+ },+ {+ "id": "det-threat-anomaly-017",+ "type": "detection",+ "name": "Mailbox Rule Created From a Client This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Mailbox Rule Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1114.003",+ "T1564.008"+ ],+ "log_source": "m365",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-m365-mailbox-rule-from-rare-client.yaml",+ "sha256": "f885aa960e6945cb64b9d706f979b6a57f68a8c295ab1485407df4fa1e88dd98"+ },+ {+ "id": "det-threat-anomaly-018",+ "type": "detection",+ "name": "Slack Workspace Admin Action This Principal Has Never Performed",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Slack Workspace Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "slack",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-slack-rare-admin-action.yaml",+ "sha256": "0739f3715a5f5000398ba9b3c4b31dc28ec7d5e09e511beda37b51df3b987ef3"+ },+ {+ "id": "det-threat-anomaly-019",+ "type": "detection",+ "name": "Salesforce Export Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Salesforce Export Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "salesforce",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-salesforce-report-export-volume-spike.yaml",+ "sha256": "58fd5d049a03ebcfc47bb5997d195d53e88ec39f210d2aad555b611d179302aa"+ },+ {+ "id": "det-threat-anomaly-020",+ "type": "detection",+ "name": "GitHub Organisation Setting Changed by a Rare Actor",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitHub Organisation Setting Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098",+ "T1195.001"+ ],+ "log_source": "github",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-github-rare-action-on-org-settings.yaml",+ "sha256": "9d198aec8f66639696e411d2b07ba079c5e4993c162bbd73401114989f9a76c7"+ },+ {+ "id": "det-threat-anomaly-021",+ "type": "detection",+ "name": "Repository Clone Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Repository Clone Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1213.003"+ ],+ "log_source": "github",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-github-clone-volume-spike.yaml",+ "sha256": "d614dc221cc77dded330e7ddd2ac1bf882348a0326d7451e6a7d9b62c3ed7021"+ },+ {+ "id": "det-threat-anomaly-022",+ "type": "detection",+ "name": "GitLab Token Action From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitLab Token Action From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "gitlab",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-gitlab-token-action-from-rare-country.yaml",+ "sha256": "244e7a48ec5c9ade72482b1323861ec371e21f786e737f5b330e0b260bd91c94"+ },+ {+ "id": "det-threat-anomaly-023",+ "type": "detection",+ "name": "Kubernetes Verb This Service Account Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Kubernetes Verb This Service Account Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1609",+ "T1078.003"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-k8s-rare-verb-by-service-account.yaml",+ "sha256": "200a3b1651d66dfbc9e91e7fe04ff6d0ec8a01b2d70cca577c03c7251e1450dd"+ },+ {+ "id": "det-threat-anomaly-024",+ "type": "detection",+ "name": "Pod Exec Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Pod Exec Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1609"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-k8s-exec-volume-spike.yaml",+ "sha256": "b4bf5adbe45969b9ad405a27ddeee4809b6f6da8c7cab3081b4af51433215047"+ },{"id": "mitre-car-car-2013-01-003","type": "detection",diff --git a/apps/web/src/data/corpus-stats.json b/apps/web/src/data/corpus-stats.jsonindex e61dd390d..9be90862f 100644--- a/apps/web/src/data/corpus-stats.json+++ b/apps/web/src/data/corpus-stats.json@@ -1,19 +1,20 @@{- "executable": 2511,+ "executable": 2535,"windowed": 72,- "onDisk": 6991,+ "onDisk": 7015,"quarantined": 4480,"plugins": 80,"playbookPacks": 62,"playbooks": 87,- "marketplaceItems": 7158,+ "marketplaceItems": 7182,"categories": {"application": 76,"cloud": 235,"data-exfil": 13,"endpoint": 1978,"identity": 146,- "network": 63+ "network": 63,+ "threat-anomaly": 24},"generatedFrom": ["services/fusion/app/data/detection_ruleset.json",diff --git a/detections/fixtures/negative/ta-aws-access-key-created-from-rare-client.json b/detections/fixtures/negative/ta-aws-access-key-created-from-rare-client.jsonnew file mode 100644index 000000000..7ded61351--- /dev/null+++ b/detections/fixtures/negative/ta-aws-access-key-created-from-rare-client.json@@ -0,0 +1,8 @@+{+ "baseline_client_family_rarity": 0.04,+ "eventName": "CreateAccessKey",+ "eventSource": "iam.amazonaws.com",+ "src_ip": "198.51.100.17",+ "user": "[email protected]",+ "user_agent": "aws-cli/2.15.17 Python/3.11.6 Darwin/23.4.0"+}diff --git a/detections/fixtures/negative/ta-aws-api-call-from-rare-country.json b/detections/fixtures/negative/ta-aws-api-call-from-rare-country.jsonnew file mode 100644index 000000000..724bb5aa0--- /dev/null+++ b/detections/fixtures/negative/ta-aws-api-call-from-rare-country.json@@ -0,0 +1,7 @@+{+ "baseline_location_rarity": 0.01,+ "country": "US",+ "eventName": "ListAccessKeys",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-aws-peer-deviation-on-privileged-call.json b/detections/fixtures/negative/ta-aws-peer-deviation-on-privileged-call.jsonnew file mode 100644index 000000000..9d6dcfe7d--- /dev/null+++ b/detections/fixtures/negative/ta-aws-peer-deviation-on-privileged-call.json@@ -0,0 +1,7 @@+{+ "baseline_peer_deviation": 0.6,+ "eventName": "CreateUser",+ "eventSource": "iam.amazonaws.com",+ "group": "platform-engineering",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-aws-policy-attached-by-rare-actor-action.json b/detections/fixtures/negative/ta-aws-policy-attached-by-rare-actor-action.jsonnew file mode 100644index 000000000..ca2f25372--- /dev/null+++ b/detections/fixtures/negative/ta-aws-policy-attached-by-rare-actor-action.json@@ -0,0 +1,7 @@+{+ "baseline_action_rarity": 0.012,+ "eventName": "AttachUserPolicy",+ "eventSource": "iam.amazonaws.com",+ "policy_arn": "arn:aws:iam::aws:policy/ReadOnlyAccess",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-aws-rare-resource-touched-by-principal.json b/detections/fixtures/negative/ta-aws-rare-resource-touched-by-principal.jsonnew file mode 100644index 000000000..ac614a169--- /dev/null+++ b/detections/fixtures/negative/ta-aws-rare-resource-touched-by-principal.json@@ -0,0 +1,7 @@+{+ "baseline_resource_rarity": 0.07,+ "eventName": "PutObject",+ "eventSource": "s3.amazonaws.com",+ "resource": "arn:aws:s3:::mara-scratch",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-aws-volume-spike-on-s3-reads.json b/detections/fixtures/negative/ta-aws-volume-spike-on-s3-reads.jsonnew file mode 100644index 000000000..d1a335a62--- /dev/null+++ b/detections/fixtures/negative/ta-aws-volume-spike-on-s3-reads.json@@ -0,0 +1,7 @@+{+ "baseline_principal_volume_z": 0.3,+ "eventName": "GetObject",+ "eventSource": "s3.amazonaws.com",+ "resource": "arn:aws:s3:::finance-exports",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-entra-conditional-access-change-rare-action.json b/detections/fixtures/negative/ta-entra-conditional-access-change-rare-action.jsonnew file mode 100644index 000000000..d837455b3--- /dev/null+++ b/detections/fixtures/negative/ta-entra-conditional-access-change-rare-action.json@@ -0,0 +1,6 @@+{+ "baseline_action_rarity": 0.02,+ "operation": "Update conditional access policy",+ "result": "success",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-entra-signin-volume-spike.json b/detections/fixtures/negative/ta-entra-signin-volume-spike.jsonnew file mode 100644index 000000000..a78f11760--- /dev/null+++ b/detections/fixtures/negative/ta-entra-signin-volume-spike.json@@ -0,0 +1,6 @@+{+ "baseline_principal_volume_z": 0.8,+ "event_type": "signin",+ "result": "success",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-github-clone-volume-spike.json b/detections/fixtures/negative/ta-github-clone-volume-spike.jsonnew file mode 100644index 000000000..34abe8b04--- /dev/null+++ b/detections/fixtures/negative/ta-github-clone-volume-spike.json@@ -0,0 +1,6 @@+{+ "action": "git.clone",+ "baseline_principal_volume_z": 0.1,+ "resource": "example-org/payments-core",+ "user": "ci-runner-bot"+}diff --git a/detections/fixtures/negative/ta-github-rare-action-on-org-settings.json b/detections/fixtures/negative/ta-github-rare-action-on-org-settings.jsonnew file mode 100644index 000000000..1ded0dfa4--- /dev/null+++ b/detections/fixtures/negative/ta-github-rare-action-on-org-settings.json@@ -0,0 +1,5 @@+{+ "action": "org.add_member",+ "baseline_action_rarity": 0.04,+ "user": "platform-owner"+}diff --git a/detections/fixtures/negative/ta-gitlab-token-action-from-rare-country.json b/detections/fixtures/negative/ta-gitlab-token-action-from-rare-country.jsonnew file mode 100644index 000000000..04a6ef416--- /dev/null+++ b/detections/fixtures/negative/ta-gitlab-token-action-from-rare-country.json@@ -0,0 +1,6 @@+{+ "baseline_location_rarity": 0.02,+ "country": "DE",+ "event_type": "personal_access_token_created",+ "user": "rob.t"+}diff --git a/detections/fixtures/negative/ta-identity-peer-deviation-on-group-change.json b/detections/fixtures/negative/ta-identity-peer-deviation-on-group-change.jsonnew file mode 100644index 000000000..0fca7b587--- /dev/null+++ b/detections/fixtures/negative/ta-identity-peer-deviation-on-group-change.json@@ -0,0 +1,7 @@+{+ "baseline_peer_deviation": 0.4,+ "event_type": "group.user_membership.add",+ "group": "finance",+ "outcome": "SUCCESS",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-k8s-exec-volume-spike.json b/detections/fixtures/negative/ta-k8s-exec-volume-spike.jsonnew file mode 100644index 000000000..a4d79dba7--- /dev/null+++ b/detections/fixtures/negative/ta-k8s-exec-volume-spike.json@@ -0,0 +1,6 @@+{+ "action": "create",+ "baseline_principal_volume_z": 0.9,+ "resource": "pods/exec",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-k8s-rare-verb-by-service-account.json b/detections/fixtures/negative/ta-k8s-rare-verb-by-service-account.jsonnew file mode 100644index 000000000..f051ca381--- /dev/null+++ b/detections/fixtures/negative/ta-k8s-rare-verb-by-service-account.json@@ -0,0 +1,6 @@+{+ "action": "create",+ "baseline_action_rarity": 0.05,+ "resource": "rbac.authorization.k8s.io/clusterrolebindings",+ "user": "system:serviceaccount:kube-system:cluster-provisioner"+}diff --git a/detections/fixtures/negative/ta-m365-mailbox-rule-from-rare-client.json b/detections/fixtures/negative/ta-m365-mailbox-rule-from-rare-client.jsonnew file mode 100644index 000000000..71c250b24--- /dev/null+++ b/detections/fixtures/negative/ta-m365-mailbox-rule-from-rare-client.json@@ -0,0 +1,8 @@+{+ "baseline_client_family_rarity": 0.03,+ "clientAppUsed": "Browser",+ "operation": "New-InboxRule",+ "result": "success",+ "user": "[email protected]",+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/124.0"+}diff --git a/detections/fixtures/negative/ta-okta-admin-role-granted-rare-action.json b/detections/fixtures/negative/ta-okta-admin-role-granted-rare-action.jsonnew file mode 100644index 000000000..904f61a6f--- /dev/null+++ b/detections/fixtures/negative/ta-okta-admin-role-granted-rare-action.json@@ -0,0 +1,8 @@+{+ "baseline_action_rarity": 0.03,+ "event_type": "user.account.privilege.grant",+ "outcome": "SUCCESS",+ "role": "READ_ONLY_ADMIN",+ "target_user": "[email protected]",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-okta-login-from-rare-client-family.json b/detections/fixtures/negative/ta-okta-login-from-rare-client-family.jsonnew file mode 100644index 000000000..5f289a809--- /dev/null+++ b/detections/fixtures/negative/ta-okta-login-from-rare-client-family.json@@ -0,0 +1,7 @@+{+ "baseline_client_family_rarity": 0.05,+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "user": "[email protected]",+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Chrome/124.0"+}diff --git a/detections/fixtures/negative/ta-okta-mfa-reset-from-rare-country.json b/detections/fixtures/negative/ta-okta-mfa-reset-from-rare-country.jsonnew file mode 100644index 000000000..035bcb89c--- /dev/null+++ b/detections/fixtures/negative/ta-okta-mfa-reset-from-rare-country.json@@ -0,0 +1,8 @@+{+ "baseline_location_rarity": 0.02,+ "country": "GB",+ "event_type": "user.mfa.factor.reset_all",+ "outcome": "SUCCESS",+ "target_user": "[email protected]",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-okta-rare-action-on-identity-provider.json b/detections/fixtures/negative/ta-okta-rare-action-on-identity-provider.jsonnew file mode 100644index 000000000..d6fd980a5--- /dev/null+++ b/detections/fixtures/negative/ta-okta-rare-action-on-identity-provider.json@@ -0,0 +1,6 @@+{+ "baseline_action_rarity": 0.08,+ "event_type": "system.idp.lifecycle.update",+ "outcome": "SUCCESS",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-saas-oauth-app-volume-spike.json b/detections/fixtures/negative/ta-saas-oauth-app-volume-spike.jsonnew file mode 100644index 000000000..03b13de3a--- /dev/null+++ b/detections/fixtures/negative/ta-saas-oauth-app-volume-spike.json@@ -0,0 +1,6 @@+{+ "application": "Google Drive for Desktop",+ "baseline_oauth_app_volume_z": 0.5,+ "event_type": "oauth_token_event",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-salesforce-report-export-volume-spike.json b/detections/fixtures/negative/ta-salesforce-report-export-volume-spike.jsonnew file mode 100644index 000000000..757d2d825--- /dev/null+++ b/detections/fixtures/negative/ta-salesforce-report-export-volume-spike.json@@ -0,0 +1,6 @@+{+ "baseline_principal_volume_z": 0.2,+ "event_type": "ReportExport",+ "resource": "Nightly Pipeline Snapshot",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-slack-rare-admin-action.json b/detections/fixtures/negative/ta-slack-rare-admin-action.jsonnew file mode 100644index 000000000..95385a9d6--- /dev/null+++ b/detections/fixtures/negative/ta-slack-rare-admin-action.json@@ -0,0 +1,5 @@+{+ "action": "workspace_member_joined",+ "baseline_action_rarity": 0.02,+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-workspace-drive-download-volume-spike.json b/detections/fixtures/negative/ta-workspace-drive-download-volume-spike.jsonnew file mode 100644index 000000000..1ab48a685--- /dev/null+++ b/detections/fixtures/negative/ta-workspace-drive-download-volume-spike.json@@ -0,0 +1,7 @@+{+ "baseline_principal_volume_z": 0.7,+ "event_name": "download",+ "event_type": "drive",+ "resource": "Team-Offsite-Agenda.docx",+ "user": "[email protected]"+}diff --git a/detections/fixtures/negative/ta-workspace-rare-admin-action.json b/detections/fixtures/negative/ta-workspace-rare-admin-action.jsonnew file mode 100644index 000000000..61cd4b10b--- /dev/null+++ b/detections/fixtures/negative/ta-workspace-rare-admin-action.json@@ -0,0 +1,6 @@+{+ "baseline_action_rarity": 0.06,+ "event_name": "CHANGE_USER_ORGANIZATION_UNIT",+ "event_type": "admin",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-aws-access-key-created-from-rare-client.json b/detections/fixtures/positive/ta-aws-access-key-created-from-rare-client.jsonnew file mode 100644index 000000000..39e648742--- /dev/null+++ b/detections/fixtures/positive/ta-aws-access-key-created-from-rare-client.json@@ -0,0 +1,8 @@+{+ "baseline_client_family_rarity": 0.985,+ "eventName": "CreateAccessKey",+ "eventSource": "iam.amazonaws.com",+ "src_ip": "203.0.113.44",+ "user": "[email protected]",+ "user_agent": "python-requests/2.31.0"+}diff --git a/detections/fixtures/positive/ta-aws-api-call-from-rare-country.json b/detections/fixtures/positive/ta-aws-api-call-from-rare-country.jsonnew file mode 100644index 000000000..70a3893e5--- /dev/null+++ b/detections/fixtures/positive/ta-aws-api-call-from-rare-country.json@@ -0,0 +1,7 @@+{+ "baseline_location_rarity": 0.996,+ "country": "KZ",+ "eventName": "ListAccessKeys",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-aws-peer-deviation-on-privileged-call.json b/detections/fixtures/positive/ta-aws-peer-deviation-on-privileged-call.jsonnew file mode 100644index 000000000..2a0b7f58c--- /dev/null+++ b/detections/fixtures/positive/ta-aws-peer-deviation-on-privileged-call.json@@ -0,0 +1,7 @@+{+ "baseline_peer_deviation": 6.8,+ "eventName": "CreateUser",+ "eventSource": "iam.amazonaws.com",+ "group": "platform-engineering",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-aws-policy-attached-by-rare-actor-action.json b/detections/fixtures/positive/ta-aws-policy-attached-by-rare-actor-action.jsonnew file mode 100644index 000000000..f7ae21429--- /dev/null+++ b/detections/fixtures/positive/ta-aws-policy-attached-by-rare-actor-action.json@@ -0,0 +1,7 @@+{+ "baseline_action_rarity": 0.998,+ "eventName": "AttachUserPolicy",+ "eventSource": "iam.amazonaws.com",+ "policy_arn": "arn:aws:iam::aws:policy/AdministratorAccess",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-aws-rare-resource-touched-by-principal.json b/detections/fixtures/positive/ta-aws-rare-resource-touched-by-principal.jsonnew file mode 100644index 000000000..c9f99fba9--- /dev/null+++ b/detections/fixtures/positive/ta-aws-rare-resource-touched-by-principal.json@@ -0,0 +1,7 @@+{+ "baseline_resource_rarity": 0.991,+ "eventName": "DeleteBucketPolicy",+ "eventSource": "s3.amazonaws.com",+ "resource": "arn:aws:s3:::prod-audit-logs",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-aws-volume-spike-on-s3-reads.json b/detections/fixtures/positive/ta-aws-volume-spike-on-s3-reads.jsonnew file mode 100644index 000000000..49d569e7f--- /dev/null+++ b/detections/fixtures/positive/ta-aws-volume-spike-on-s3-reads.json@@ -0,0 +1,7 @@+{+ "baseline_principal_volume_z": 9.4,+ "eventName": "GetObject",+ "eventSource": "s3.amazonaws.com",+ "resource": "arn:aws:s3:::finance-exports",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-entra-conditional-access-change-rare-action.json b/detections/fixtures/positive/ta-entra-conditional-access-change-rare-action.jsonnew file mode 100644index 000000000..6e3252492--- /dev/null+++ b/detections/fixtures/positive/ta-entra-conditional-access-change-rare-action.json@@ -0,0 +1,6 @@+{+ "baseline_action_rarity": 0.997,+ "operation": "Update conditional access policy",+ "result": "success",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-entra-signin-volume-spike.json b/detections/fixtures/positive/ta-entra-signin-volume-spike.jsonnew file mode 100644index 000000000..c2e2ac68e--- /dev/null+++ b/detections/fixtures/positive/ta-entra-signin-volume-spike.json@@ -0,0 +1,6 @@+{+ "baseline_principal_volume_z": 12.1,+ "event_type": "signin",+ "result": "failure",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-github-clone-volume-spike.json b/detections/fixtures/positive/ta-github-clone-volume-spike.jsonnew file mode 100644index 000000000..492bb699d--- /dev/null+++ b/detections/fixtures/positive/ta-github-clone-volume-spike.json@@ -0,0 +1,6 @@+{+ "action": "git.clone",+ "baseline_principal_volume_z": 14.3,+ "resource": "example-org/payments-core",+ "user": "contractor-7"+}diff --git a/detections/fixtures/positive/ta-github-rare-action-on-org-settings.json b/detections/fixtures/positive/ta-github-rare-action-on-org-settings.jsonnew file mode 100644index 000000000..67370a459--- /dev/null+++ b/detections/fixtures/positive/ta-github-rare-action-on-org-settings.json@@ -0,0 +1,5 @@+{+ "action": "org.update_default_repository_permission",+ "baseline_action_rarity": 0.998,+ "user": "contractor-7"+}diff --git a/detections/fixtures/positive/ta-gitlab-token-action-from-rare-country.json b/detections/fixtures/positive/ta-gitlab-token-action-from-rare-country.jsonnew file mode 100644index 000000000..a0dd70734--- /dev/null+++ b/detections/fixtures/positive/ta-gitlab-token-action-from-rare-country.json@@ -0,0 +1,6 @@+{+ "baseline_location_rarity": 0.998,+ "country": "VN",+ "event_type": "personal_access_token_created",+ "user": "rob.t"+}diff --git a/detections/fixtures/positive/ta-identity-peer-deviation-on-group-change.json b/detections/fixtures/positive/ta-identity-peer-deviation-on-group-change.jsonnew file mode 100644index 000000000..e4edc34fd--- /dev/null+++ b/detections/fixtures/positive/ta-identity-peer-deviation-on-group-change.json@@ -0,0 +1,7 @@+{+ "baseline_peer_deviation": 7.2,+ "event_type": "group.user_membership.add",+ "group": "finance",+ "outcome": "SUCCESS",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-k8s-exec-volume-spike.json b/detections/fixtures/positive/ta-k8s-exec-volume-spike.jsonnew file mode 100644index 000000000..cf92165d5--- /dev/null+++ b/detections/fixtures/positive/ta-k8s-exec-volume-spike.json@@ -0,0 +1,6 @@+{+ "action": "create",+ "baseline_principal_volume_z": 7.6,+ "resource": "pods/exec",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-k8s-rare-verb-by-service-account.json b/detections/fixtures/positive/ta-k8s-rare-verb-by-service-account.jsonnew file mode 100644index 000000000..41d9671bb--- /dev/null+++ b/detections/fixtures/positive/ta-k8s-rare-verb-by-service-account.json@@ -0,0 +1,6 @@+{+ "action": "create",+ "baseline_action_rarity": 0.999,+ "resource": "rbac.authorization.k8s.io/clusterrolebindings",+ "user": "system:serviceaccount:default:metrics-reader"+}diff --git a/detections/fixtures/positive/ta-m365-mailbox-rule-from-rare-client.json b/detections/fixtures/positive/ta-m365-mailbox-rule-from-rare-client.jsonnew file mode 100644index 000000000..5800ef41a--- /dev/null+++ b/detections/fixtures/positive/ta-m365-mailbox-rule-from-rare-client.json@@ -0,0 +1,8 @@+{+ "baseline_client_family_rarity": 0.994,+ "clientAppUsed": "Exchange Web Services",+ "operation": "New-InboxRule",+ "result": "success",+ "user": "[email protected]",+ "user_agent": "Microsoft Office/16.0 (Windows NT 10.0; Microsoft Outlook 16.0; Pro)"+}diff --git a/detections/fixtures/positive/ta-okta-admin-role-granted-rare-action.json b/detections/fixtures/positive/ta-okta-admin-role-granted-rare-action.jsonnew file mode 100644index 000000000..aaadbe6b8--- /dev/null+++ b/detections/fixtures/positive/ta-okta-admin-role-granted-rare-action.json@@ -0,0 +1,8 @@+{+ "baseline_action_rarity": 0.999,+ "event_type": "user.account.privilege.grant",+ "outcome": "SUCCESS",+ "role": "SUPER_ADMIN",+ "target_user": "[email protected]",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-okta-login-from-rare-client-family.json b/detections/fixtures/positive/ta-okta-login-from-rare-client-family.jsonnew file mode 100644index 000000000..e0059b434--- /dev/null+++ b/detections/fixtures/positive/ta-okta-login-from-rare-client-family.json@@ -0,0 +1,7 @@+{+ "baseline_client_family_rarity": 0.993,+ "event_type": "user.session.start",+ "outcome": "SUCCESS",+ "user": "[email protected]",+ "user_agent": "okta-sdk-golang/2.18.0"+}diff --git a/detections/fixtures/positive/ta-okta-mfa-reset-from-rare-country.json b/detections/fixtures/positive/ta-okta-mfa-reset-from-rare-country.jsonnew file mode 100644index 000000000..5029e28b1--- /dev/null+++ b/detections/fixtures/positive/ta-okta-mfa-reset-from-rare-country.json@@ -0,0 +1,8 @@+{+ "baseline_location_rarity": 0.997,+ "country": "NG",+ "event_type": "user.mfa.factor.reset_all",+ "outcome": "SUCCESS",+ "target_user": "[email protected]",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-okta-rare-action-on-identity-provider.json b/detections/fixtures/positive/ta-okta-rare-action-on-identity-provider.jsonnew file mode 100644index 000000000..dc7aec84a--- /dev/null+++ b/detections/fixtures/positive/ta-okta-rare-action-on-identity-provider.json@@ -0,0 +1,6 @@+{+ "baseline_action_rarity": 0.999,+ "event_type": "system.idp.lifecycle.create",+ "outcome": "SUCCESS",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-saas-oauth-app-volume-spike.json b/detections/fixtures/positive/ta-saas-oauth-app-volume-spike.jsonnew file mode 100644index 000000000..eec64fba5--- /dev/null+++ b/detections/fixtures/positive/ta-saas-oauth-app-volume-spike.json@@ -0,0 +1,6 @@+{+ "application": "Third-Party Backup Helper",+ "baseline_oauth_app_volume_z": 11.7,+ "event_type": "oauth_token_event",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-salesforce-report-export-volume-spike.json b/detections/fixtures/positive/ta-salesforce-report-export-volume-spike.jsonnew file mode 100644index 000000000..80f5541cd--- /dev/null+++ b/detections/fixtures/positive/ta-salesforce-report-export-volume-spike.json@@ -0,0 +1,6 @@+{+ "baseline_principal_volume_z": 10.2,+ "event_type": "ReportExport",+ "resource": "All Accounts and Contacts",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-slack-rare-admin-action.json b/detections/fixtures/positive/ta-slack-rare-admin-action.jsonnew file mode 100644index 000000000..c3bc67ce4--- /dev/null+++ b/detections/fixtures/positive/ta-slack-rare-admin-action.json@@ -0,0 +1,5 @@+{+ "action": "organization_public_channel_export_enabled",+ "baseline_action_rarity": 0.999,+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-workspace-drive-download-volume-spike.json b/detections/fixtures/positive/ta-workspace-drive-download-volume-spike.jsonnew file mode 100644index 000000000..5e403780d--- /dev/null+++ b/detections/fixtures/positive/ta-workspace-drive-download-volume-spike.json@@ -0,0 +1,7 @@+{+ "baseline_principal_volume_z": 8.9,+ "event_name": "download",+ "event_type": "drive",+ "resource": "Q4-Pipeline-Export.xlsx",+ "user": "[email protected]"+}diff --git a/detections/fixtures/positive/ta-workspace-rare-admin-action.json b/detections/fixtures/positive/ta-workspace-rare-admin-action.jsonnew file mode 100644index 000000000..208ff1089--- /dev/null+++ b/detections/fixtures/positive/ta-workspace-rare-admin-action.json@@ -0,0 +1,6 @@+{+ "baseline_action_rarity": 0.998,+ "event_name": "CREATE_DATA_TRANSFER_REQUEST",+ "event_type": "admin",+ "user": "[email protected]"+}diff --git a/detections/rule-ids.lock.json b/detections/rule-ids.lock.jsonindex 243f07c1e..272dc27ec 100644--- a/detections/rule-ids.lock.json+++ b/detections/rule-ids.lock.json@@ -831,5 +831,29 @@"network/tls-ja3-anomaly": "det-network-014","network/tls-self-signed-cert-conn": "det-network-013","network/tor-traffic": "det-network-007",- "network/wmi-remote-execution": "det-network-030"+ "network/wmi-remote-execution": "det-network-030",+ "threat-anomaly/ta-aws-access-key-created-from-rare-client": "det-threat-anomaly-001",+ "threat-anomaly/ta-aws-api-call-from-rare-country": "det-threat-anomaly-003",+ "threat-anomaly/ta-aws-peer-deviation-on-privileged-call": "det-threat-anomaly-006",+ "threat-anomaly/ta-aws-policy-attached-by-rare-actor-action": "det-threat-anomaly-002",+ "threat-anomaly/ta-aws-rare-resource-touched-by-principal": "det-threat-anomaly-005",+ "threat-anomaly/ta-aws-volume-spike-on-s3-reads": "det-threat-anomaly-004",+ "threat-anomaly/ta-entra-conditional-access-change-rare-action": "det-threat-anomaly-011",+ "threat-anomaly/ta-entra-signin-volume-spike": "det-threat-anomaly-012",+ "threat-anomaly/ta-github-clone-volume-spike": "det-threat-anomaly-021",+ "threat-anomaly/ta-github-rare-action-on-org-settings": "det-threat-anomaly-020",+ "threat-anomaly/ta-gitlab-token-action-from-rare-country": "det-threat-anomaly-022",+ "threat-anomaly/ta-identity-peer-deviation-on-group-change": "det-threat-anomaly-013",+ "threat-anomaly/ta-k8s-exec-volume-spike": "det-threat-anomaly-024",+ "threat-anomaly/ta-k8s-rare-verb-by-service-account": "det-threat-anomaly-023",+ "threat-anomaly/ta-m365-mailbox-rule-from-rare-client": "det-threat-anomaly-017",+ "threat-anomaly/ta-okta-admin-role-granted-rare-action": "det-threat-anomaly-008",+ "threat-anomaly/ta-okta-login-from-rare-client-family": "det-threat-anomaly-009",+ "threat-anomaly/ta-okta-mfa-reset-from-rare-country": "det-threat-anomaly-007",+ "threat-anomaly/ta-okta-rare-action-on-identity-provider": "det-threat-anomaly-010",+ "threat-anomaly/ta-saas-oauth-app-volume-spike": "det-threat-anomaly-014",+ "threat-anomaly/ta-salesforce-report-export-volume-spike": "det-threat-anomaly-019",+ "threat-anomaly/ta-slack-rare-admin-action": "det-threat-anomaly-018",+ "threat-anomaly/ta-workspace-drive-download-volume-spike": "det-threat-anomaly-016",+ "threat-anomaly/ta-workspace-rare-admin-action": "det-threat-anomaly-015"}diff --git a/detections/threat-anomaly/ta-aws-access-key-created-from-rare-client.yaml b/detections/threat-anomaly/ta-aws-access-key-created-from-rare-client.yamlnew file mode 100644index 000000000..6048246c8--- /dev/null+++ b/detections/threat-anomaly/ta-aws-access-key-created-from-rare-client.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-001+name: AWS Access Key Created From a Client This Principal Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Access+ Key Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases+ before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- mitre.attack.t1078.004+- tlp.white+category: threat-anomaly+log_source:+ product: aws+ service: iam+detection:+ condition: |+ eventName == "CreateAccessKey"+ AND baseline_client_family_rarity >= 0.95+false_positives:+- A new build agent or CI runner adopting a different SDK will look novel once+- An engineer moving from the console to the CLI for the first time+playbook: tpl-credential-compromise+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-aws-api-call-from-rare-country.yaml b/detections/threat-anomaly/ta-aws-api-call-from-rare-country.yamlnew file mode 100644index 000000000..647777303--- /dev/null+++ b/detections/threat-anomaly/ta-aws-api-call-from-rare-country.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-003+name: AWS Control-Plane Call From a Country This Principal Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Control-Plane+ Call From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before+ tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078.004+- tlp.white+category: threat-anomaly+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ eventSource == "iam.amazonaws.com"+ AND baseline_location_rarity >= 0.95+false_positives:+- Travel+- A VPN egress or cloud NAT in another region+- A relocated contractor+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-aws-peer-deviation-on-privileged-call.yaml b/detections/threat-anomaly/ta-aws-peer-deviation-on-privileged-call.yamlnew file mode 100644index 000000000..8aa1f193b--- /dev/null+++ b/detections/threat-anomaly/ta-aws-peer-deviation-on-privileged-call.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-006+name: AWS Privileged Call Volume Far Above This Principal's Peer Group+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Privileged+ Call Volume Far Above This Principal's Peer Group'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078.004+- tlp.white+category: threat-anomaly+log_source:+ product: aws+ service: iam+detection:+ condition: |+ eventSource == "iam.amazonaws.com"+ AND baseline_peer_deviation >= 3.0+false_positives:+- A team of one, where the peer group is the principal+- An on-call week+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-aws-policy-attached-by-rare-actor-action.yaml b/detections/threat-anomaly/ta-aws-policy-attached-by-rare-actor-action.yamlnew file mode 100644index 000000000..f601b69dd--- /dev/null+++ b/detections/threat-anomaly/ta-aws-policy-attached-by-rare-actor-action.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-002+name: AWS Policy Attached by a Principal Who Does Not Normally Attach Policies+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Policy+ Attached by a Principal Who Does Not Normally Attach Policies'. Watch the 2 documented false-positive+ cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.003+- tlp.white+category: threat-anomaly+log_source:+ product: aws+ service: iam+detection:+ condition: |+ eventName IN ["AttachUserPolicy", "AttachRolePolicy", "AttachGroupPolicy"]+ AND baseline_action_rarity >= 0.95+false_positives:+- Account vending and IAM bootstrap runs+- A new provisioning service account's first week+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-aws-rare-resource-touched-by-principal.yaml b/detections/threat-anomaly/ta-aws-rare-resource-touched-by-principal.yamlnew file mode 100644index 000000000..13a28397c--- /dev/null+++ b/detections/threat-anomaly/ta-aws-rare-resource-touched-by-principal.yaml@@ -0,0 +1,25 @@+id: det-threat-anomaly-005+name: AWS Resource This Principal Has Never Touched+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Resource+ This Principal Has Never Touched'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1580+- tlp.white+category: threat-anomaly+log_source:+ product: aws+ service: cloudtrail+detection:+ condition: |+ eventName STARTSWITH_ANY ["Delete", "Put", "Modify"]+ AND baseline_resource_rarity >= 0.95+false_positives:+- A project handover+- An engineer joining a new service team+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-aws-volume-spike-on-s3-reads.yaml b/detections/threat-anomaly/ta-aws-volume-spike-on-s3-reads.yamlnew file mode 100644index 000000000..9e5445d00--- /dev/null+++ b/detections/threat-anomaly/ta-aws-volume-spike-on-s3-reads.yaml@@ -0,0 +1,25 @@+id: det-threat-anomaly-004+name: AWS S3 Read Volume Far Above This Principal's Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS S3 Read+ Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: threat-anomaly+log_source:+ product: aws+ service: s3+detection:+ condition: |+ eventSource == "s3.amazonaws.com"+ AND baseline_principal_volume_z >= 3.0+false_positives:+- A genuine bulk export or migration+- A first full backup after onboarding+playbook: tpl-data-exfiltration+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-entra-conditional-access-change-rare-action.yaml b/detections/threat-anomaly/ta-entra-conditional-access-change-rare-action.yamlnew file mode 100644index 000000000..fbc4c1847--- /dev/null+++ b/detections/threat-anomaly/ta-entra-conditional-access-change-rare-action.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-011+name: Conditional Access Policy Changed by a Rare Actor+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Conditional+ Access Policy Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1556.009+- mitre.attack.t1484.002+- tlp.white+category: threat-anomaly+log_source:+ product: azure+ service: entra+detection:+ condition: |+ operation CONTAINS "conditional access policy"+ AND baseline_action_rarity >= 0.95+false_positives:+- A planned policy rollout+- A delegated owner during a change freeze exception+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-entra-signin-volume-spike.yaml b/detections/threat-anomaly/ta-entra-signin-volume-spike.yamlnew file mode 100644index 000000000..bcdb85d7a--- /dev/null+++ b/detections/threat-anomaly/ta-entra-signin-volume-spike.yaml@@ -0,0 +1,25 @@+id: det-threat-anomaly-012+name: Entra Sign-In Volume Far Above This Principal's Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Entra Sign-In+ Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1110.003+- tlp.white+category: threat-anomaly+log_source:+ product: azure+ service: entra+detection:+ condition: |+ event_type == "signin"+ AND baseline_principal_volume_z >= 3.0+false_positives:+- A misconfigured client retrying+- A device re-enrolment loop+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-github-clone-volume-spike.yaml b/detections/threat-anomaly/ta-github-clone-volume-spike.yamlnew file mode 100644index 000000000..9914e82b7--- /dev/null+++ b/detections/threat-anomaly/ta-github-clone-volume-spike.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-021+name: Repository Clone Volume Far Above This Principal's Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Repository+ Clone Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1213.003+- tlp.white+category: threat-anomaly+log_source:+ product: github+ service: audit+detection:+ condition: |+ action IN ["git.clone", "repo.download_zip"]+ AND baseline_principal_volume_z >= 3.0+false_positives:+- A fresh developer workstation setup+- A CI fleet scaling up+playbook: tpl-data-exfiltration+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-github-rare-action-on-org-settings.yaml b/detections/threat-anomaly/ta-github-rare-action-on-org-settings.yamlnew file mode 100644index 000000000..8bca50154--- /dev/null+++ b/detections/threat-anomaly/ta-github-rare-action-on-org-settings.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-020+name: GitHub Organisation Setting Changed by a Rare Actor+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitHub Organisation+ Setting Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098+- mitre.attack.t1195.001+- tlp.white+category: threat-anomaly+log_source:+ product: github+ service: audit+detection:+ condition: |+ action STARTSWITH "org."+ AND baseline_action_rarity >= 0.95+false_positives:+- A new organisation owner+- A one-off policy change during onboarding+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-gitlab-token-action-from-rare-country.yaml b/detections/threat-anomaly/ta-gitlab-token-action-from-rare-country.yamlnew file mode 100644index 000000000..adbe637b9--- /dev/null+++ b/detections/threat-anomaly/ta-gitlab-token-action-from-rare-country.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-022+name: GitLab Token Action From a Country This Principal Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitLab Token+ Action From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before+ tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098.001+- tlp.white+category: threat-anomaly+log_source:+ product: gitlab+ service: audit+detection:+ condition: |+ event_type CONTAINS "token"+ AND baseline_location_rarity >= 0.95+false_positives:+- Travel+- A relocated contributor+- A VPN egress+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-identity-peer-deviation-on-group-change.yaml b/detections/threat-anomaly/ta-identity-peer-deviation-on-group-change.yamlnew file mode 100644index 000000000..52bbef44e--- /dev/null+++ b/detections/threat-anomaly/ta-identity-peer-deviation-on-group-change.yaml@@ -0,0 +1,25 @@+id: det-threat-anomaly-013+name: Group Membership Changes Far Above the Principal's Peer Group+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Group Membership+ Changes Far Above the Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1098+- tlp.white+category: threat-anomaly+log_source:+ product: identity+ service: directory+detection:+ condition: |+ event_type CONTAINS "group.user_membership"+ AND baseline_peer_deviation >= 3.0+false_positives:+- A reorganisation+- Bulk onboarding at the start of a quarter+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-k8s-exec-volume-spike.yaml b/detections/threat-anomaly/ta-k8s-exec-volume-spike.yamlnew file mode 100644index 000000000..e29bd2bf5--- /dev/null+++ b/detections/threat-anomaly/ta-k8s-exec-volume-spike.yaml@@ -0,0 +1,25 @@+id: det-threat-anomaly-024+name: Pod Exec Volume Far Above This Principal's Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Pod Exec+ Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1609+- tlp.white+category: threat-anomaly+log_source:+ product: kubernetes+ service: audit+detection:+ condition: |+ resource CONTAINS "pods/exec"+ AND baseline_principal_volume_z >= 3.0+false_positives:+- An incident response shift+- A debugging session on a failing deployment+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-k8s-rare-verb-by-service-account.yaml b/detections/threat-anomaly/ta-k8s-rare-verb-by-service-account.yamlnew file mode 100644index 000000000..dde4538b0--- /dev/null+++ b/detections/threat-anomaly/ta-k8s-rare-verb-by-service-account.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-023+name: Kubernetes Verb This Service Account Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Kubernetes+ Verb This Service Account Has Never Used'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1609+- mitre.attack.t1078.003+- tlp.white+category: threat-anomaly+log_source:+ product: kubernetes+ service: audit+detection:+ condition: |+ action IN ["create", "delete", "patch"]+ AND resource CONTAINS "clusterrolebinding"+ AND baseline_action_rarity >= 0.95+false_positives:+- A cluster bootstrap+- An operator installing its own RBAC on first run+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-m365-mailbox-rule-from-rare-client.yaml b/detections/threat-anomaly/ta-m365-mailbox-rule-from-rare-client.yamlnew file mode 100644index 000000000..c6b70c4a3--- /dev/null+++ b/detections/threat-anomaly/ta-m365-mailbox-rule-from-rare-client.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-017+name: Mailbox Rule Created From a Client This Principal Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Mailbox Rule+ Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1114.003+- mitre.attack.t1564.008+- tlp.white+category: threat-anomaly+log_source:+ product: m365+ service: exchange+detection:+ condition: |+ operation IN ["New-InboxRule", "Set-InboxRule"]+ AND baseline_client_family_rarity >= 0.95+false_positives:+- A newly installed desktop client+- A mobile mail app added to an account+playbook: tpl-account-takeover+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-okta-admin-role-granted-rare-action.yaml b/detections/threat-anomaly/ta-okta-admin-role-granted-rare-action.yamlnew file mode 100644index 000000000..874d5fb87--- /dev/null+++ b/detections/threat-anomaly/ta-okta-admin-role-granted-rare-action.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-008+name: Admin Role Granted by a Principal Who Does Not Normally Grant Roles+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Admin Role+ Granted by a Principal Who Does Not Normally Grant Roles'. Watch the 2 documented false-positive cases+ before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1098.003+- tlp.white+category: threat-anomaly+log_source:+ product: okta+ service: identity+detection:+ condition: |+ event_type IN ["user.account.privilege.grant", "group.privilege.grant"]+ AND baseline_action_rarity >= 0.95+false_positives:+- A delegated admin covering for the usual owner+- Quarterly access review remediation+playbook: tpl-privilege-escalation+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-okta-login-from-rare-client-family.yaml b/detections/threat-anomaly/ta-okta-login-from-rare-client-family.yamlnew file mode 100644index 000000000..cf6769be8--- /dev/null+++ b/detections/threat-anomaly/ta-okta-login-from-rare-client-family.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-009+name: Sign-In From a Client Family This Principal Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Sign-In From+ a Client Family This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1078.004+- mitre.attack.t1550+- tlp.white+category: threat-anomaly+log_source:+ product: okta+ service: identity+detection:+ condition: |+ event_type == "user.session.start"+ AND baseline_client_family_rarity >= 0.95+false_positives:+- A new laptop or phone+- A browser major-version bump+- A newly adopted SDK+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-okta-mfa-reset-from-rare-country.yaml b/detections/threat-anomaly/ta-okta-mfa-reset-from-rare-country.yamlnew file mode 100644index 000000000..05430c90e--- /dev/null+++ b/detections/threat-anomaly/ta-okta-mfa-reset-from-rare-country.yaml@@ -0,0 +1,27 @@+id: det-threat-anomaly-007+name: MFA Factor Reset From a Country This Principal Has Never Used+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'MFA Factor+ Reset From a Country This Principal Has Never Used'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1556.006+- mitre.attack.t1098.005+- tlp.white+category: threat-anomaly+log_source:+ product: okta+ service: identity+detection:+ condition: |+ event_type IN ["user.mfa.factor.reset_all", "user.mfa.factor.deactivate"]+ AND baseline_location_rarity >= 0.95+false_positives:+- A user travelling and locked out+- A help desk operating from a second region+playbook: tpl-account-takeover+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-okta-rare-action-on-identity-provider.yaml b/detections/threat-anomaly/ta-okta-rare-action-on-identity-provider.yamlnew file mode 100644index 000000000..da407d82d--- /dev/null+++ b/detections/threat-anomaly/ta-okta-rare-action-on-identity-provider.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-010+name: Identity-Provider Change by a Principal Who Does Not Normally Make Them+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Identity-Provider+ Change by a Principal Who Does Not Normally Make Them'. Watch the 2 documented false-positive cases+ before tuning.+version: 1.0.0+severity: critical+tags:+- mitre.attack.t1556.007+- tlp.white+category: threat-anomaly+log_source:+ product: okta+ service: identity+detection:+ condition: |+ event_type STARTSWITH "system.idp"+ AND baseline_action_rarity >= 0.95+false_positives:+- A federation migration+- An identity team member's first IdP change+playbook: tpl-account-takeover+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-saas-oauth-app-volume-spike.yaml b/detections/threat-anomaly/ta-saas-oauth-app-volume-spike.yamlnew file mode 100644index 000000000..63930fe69--- /dev/null+++ b/detections/threat-anomaly/ta-saas-oauth-app-volume-spike.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-014+name: OAuth Application Activity Far Above Its Own Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'OAuth Application+ Activity Far Above Its Own Normal'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1550.001+- mitre.attack.t1530+- tlp.white+category: threat-anomaly+log_source:+ product: google-workspace+ service: oauth+detection:+ condition: |+ event_type == "oauth_token_event"+ AND baseline_oauth_app_volume_z >= 3.0+false_positives:+- A legitimate integration's first sync+- A vendor rolling out a new feature+playbook: tpl-data-exfiltration+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-salesforce-report-export-volume-spike.yaml b/detections/threat-anomaly/ta-salesforce-report-export-volume-spike.yamlnew file mode 100644index 000000000..4ec8caa10--- /dev/null+++ b/detections/threat-anomaly/ta-salesforce-report-export-volume-spike.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-019+name: Salesforce Export Volume Far Above This Principal's Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Salesforce+ Export Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: threat-anomaly+log_source:+ product: salesforce+ service: audit+detection:+ condition: |+ event_type IN ["ReportExport", "BulkApi"]+ AND baseline_principal_volume_z >= 3.0+false_positives:+- Quarter-end reporting+- A sanctioned CRM migration+playbook: tpl-data-exfiltration+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-slack-rare-admin-action.yaml b/detections/threat-anomaly/ta-slack-rare-admin-action.yamlnew file mode 100644index 000000000..d2e8a8a5d--- /dev/null+++ b/detections/threat-anomaly/ta-slack-rare-admin-action.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-018+name: Slack Workspace Admin Action This Principal Has Never Performed+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Slack Workspace+ Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: medium+tags:+- mitre.attack.t1098+- tlp.white+category: threat-anomaly+log_source:+ product: slack+ service: audit+detection:+ condition: |+ action STARTSWITH_ANY ["workspace_", "organization_", "app_"]+ AND baseline_action_rarity >= 0.95+false_positives:+- A workspace migration+- A new workspace owner's first changes+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-workspace-drive-download-volume-spike.yaml b/detections/threat-anomaly/ta-workspace-drive-download-volume-spike.yamlnew file mode 100644index 000000000..34f9dd430--- /dev/null+++ b/detections/threat-anomaly/ta-workspace-drive-download-volume-spike.yaml@@ -0,0 +1,25 @@+id: det-threat-anomaly-016+name: Drive Download Volume Far Above This Principal's Normal+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Drive Download+ Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1530+- tlp.white+category: threat-anomaly+log_source:+ product: google-workspace+ service: drive+detection:+ condition: |+ event_type == "drive"+ AND baseline_principal_volume_z >= 3.0+false_positives:+- A departing employee's sanctioned export+- An offline-sync client's first pass+playbook: tpl-data-exfiltration+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/detections/threat-anomaly/ta-workspace-rare-admin-action.yaml b/detections/threat-anomaly/ta-workspace-rare-admin-action.yamlnew file mode 100644index 000000000..7c2a9ce36--- /dev/null+++ b/detections/threat-anomaly/ta-workspace-rare-admin-action.yaml@@ -0,0 +1,26 @@+id: det-threat-anomaly-015+name: Workspace Admin Action This Principal Has Never Performed+description: AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Workspace+ Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before+ tuning.+version: 1.0.0+severity: high+tags:+- mitre.attack.t1098+- tlp.white+category: threat-anomaly+log_source:+ product: google-workspace+ service: admin+detection:+ condition: |+ event_type == "admin"+ AND baseline_action_rarity >= 0.95+false_positives:+- A new administrator's first month+- A delegated admin covering leave+playbook: tpl-triage+enabled: true+author: AiSOC+created: '2026-05-03'+modified: '2026-05-03'diff --git a/docs/detections/truth-table.md b/docs/detections/truth-table.mdindex 33b3f5e2c..9ca3178d3 100644--- a/docs/detections/truth-table.md+++ b/docs/detections/truth-table.md@@ -19,8 +19,8 @@ lever that reaches the engine is adding a spec and re-running| metric | count ||--------|------:|-| rules on disk (total) | 6991 |-| **executable (loaded by the engine)** | **2511** |+| rules on disk (total) | 7015 |+| **executable (loaded by the engine)** | **2535** || non-executable (provenance/coverage only) | 4480 || — of which: enabled, but no compiled spec | 0 || windowed rules in `windowed_ruleset.json` | 72 |@@ -58,6 +58,7 @@ were hand-authored in the upstream format to give it one.| native | 877 | 741 | 0 || sigma (imported) | 3132 | 1770 | 0 || splunk (imported) | 2005 | 0 | 0 |+| threat-anomaly | 24 | 24 | 0 |## Why rules are non-executable@@ -68,9 +69,9 @@ were hand-authored in the upstream format to give it one.## How to read the README claim-The imported corpus is large (6991 rules on disk) and valuable as a+The imported corpus is large (7015 rules on disk) and valuable as aprovenance-tracked ATT&CK-mapped library, but the number that matters-operationally is **2511 executable rules** — the ones the engine+operationally is **2535 executable rules** — the ones the engineloads and fires against live telemetry. The README and marketplace must citethe executable figure when describing detection *coverage*, and may cite theon-disk figure only when explicitly describing the imported *library*.diff --git a/marketplace/index.json b/marketplace/index.jsonindex fa60978cf..9f7725923 100644--- a/marketplace/index.json+++ b/marketplace/index.json@@ -1,7 +1,7 @@{"$schema": "https://example.com/schemas/marketplace/v1.json","version": "1.0.0",- "generated": "2026-10-10T01:22:53Z",+ "generated": "2026-10-11T05:06:19Z","categories": [{"id": "playbooks",@@ -20,32 +20,32 @@}],"stats": {- "total": 7158,+ "total": 7182,"playbooks": 87,"playbook_packs": 62,- "detections": 6991,+ "detections": 7015,"plugins": 80,- "verified": 1037,+ "verified": 1061,"community": 1,"by_tier": {"beta": 7,"community": 1,"imported": 6113,- "stable": 1037+ "stable": 1061},"detections_by_tier": {"community": 1,"imported": 6113,- "stable": 877+ "stable": 901},- "executable": 2678,+ "executable": 2702,"quarantined": 4480,- "executable_detections": 2511,+ "executable_detections": 2535,"reference_only_detections": 4480,"not_a_detection": 167},"mitre_coverage": {- "unique_techniques": 387,+ "unique_techniques": 391,"techniques": {"T1001.003": 1,"T1003": 21,@@ -144,8 +144,8 @@"T1078": 49,"T1078.001": 5,"T1078.002": 7,- "T1078.003": 2,- "T1078.004": 45,+ "T1078.003": 3,+ "T1078.004": 49,"T1082": 13,"T1083": 9,"T1087": 10,@@ -158,10 +158,11 @@"T1090.003": 9,"T1091": 1,"T1095": 4,- "T1098": 44,- "T1098.001": 19,- "T1098.003": 6,+ "T1098": 48,+ "T1098.001": 21,+ "T1098.003": 8,"T1098.004": 6,+ "T1098.005": 1,"T1098.007": 1,"T1102": 5,"T1102.002": 1,@@ -170,14 +171,14 @@"T1110": 18,"T1110.001": 5,"T1110.002": 1,- "T1110.003": 1,+ "T1110.003": 2,"T1110.004": 3,"T1112": 58,"T1113": 7,"T1114": 1,"T1114.001": 1,"T1114.002": 1,- "T1114.003": 2,+ "T1114.003": 3,"T1115": 3,"T1119": 3,"T1120": 2,@@ -209,7 +210,7 @@"T1187": 3,"T1190": 39,"T1195": 3,- "T1195.001": 1,+ "T1195.001": 2,"T1195.002": 7,"T1197": 13,"T1199": 12,@@ -226,6 +227,7 @@"T1211": 4,"T1212": 4,"T1213": 2,+ "T1213.003": 1,"T1216": 8,"T1216.001": 2,"T1217": 3,@@ -250,7 +252,7 @@"T1482": 14,"T1484": 1,"T1484.001": 7,- "T1484.002": 2,+ "T1484.002": 3,"T1485": 29,"T1486": 11,"T1489": 10,@@ -273,7 +275,7 @@"T1526": 2,"T1528": 8,"T1529": 3,- "T1530": 27,+ "T1530": 31,"T1531": 7,"T1535": 1,"T1537": 7,@@ -311,8 +313,8 @@"T1548.002": 50,"T1548.003": 2,"T1548.004": 1,- "T1550": 5,- "T1550.001": 2,+ "T1550": 6,+ "T1550.001": 3,"T1550.002": 6,"T1550.003": 3,"T1550.004": 1,@@ -338,8 +340,9 @@"T1556.001": 1,"T1556.003": 1,"T1556.004": 1,- "T1556.006": 15,- "T1556.007": 1,+ "T1556.006": 16,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 2,"T1557.001": 12,"T1557.002": 3,@@ -367,7 +370,7 @@"T1564.003": 6,"T1564.004": 12,"T1564.006": 2,- "T1564.008": 1,+ "T1564.008": 2,"T1565": 2,"T1565.001": 3,"T1566": 5,@@ -395,6 +398,7 @@"T1578": 1,"T1578.002": 1,"T1578.003": 1,+ "T1580": 1,"T1583.001": 4,"T1584": 1,"T1586.003": 1,@@ -414,7 +418,7 @@"T1606.002": 1,"T1608": 2,"T1608.003": 1,- "T1609": 1,+ "T1609": 3,"T1610": 12,"T1611": 25,"T1612": 1,@@ -435,8 +439,8 @@"T1686.003": 10,"T1689": 1},- "total_with_mitre": 2380,- "unique_techniques_all_rules": 493,+ "total_with_mitre": 2404,+ "unique_techniques_all_rules": 494,"techniques_all_rules": {"T1001.003": 2,"T1003": 51,@@ -562,8 +566,8 @@"T1078": 132,"T1078.001": 10,"T1078.002": 14,- "T1078.003": 11,- "T1078.004": 98,+ "T1078.003": 12,+ "T1078.004": 102,"T1082": 49,"T1083": 28,"T1087": 21,@@ -576,12 +580,12 @@"T1090.003": 11,"T1091": 5,"T1095": 8,- "T1098": 91,- "T1098.001": 27,+ "T1098": 95,+ "T1098.001": 29,"T1098.002": 6,- "T1098.003": 35,+ "T1098.003": 37,"T1098.004": 12,- "T1098.005": 7,+ "T1098.005": 8,"T1098.007": 1,"T1102": 17,"T1102.001": 4,@@ -592,14 +596,14 @@"T1110": 57,"T1110.001": 18,"T1110.002": 1,- "T1110.003": 44,+ "T1110.003": 45,"T1110.004": 16,"T1112": 164,"T1113": 16,"T1114": 6,"T1114.001": 7,"T1114.002": 16,- "T1114.003": 12,+ "T1114.003": 13,"T1115": 11,"T1119": 8,"T1120": 2,@@ -634,7 +638,7 @@"T1189": 4,"T1190": 177,"T1195": 23,- "T1195.001": 2,+ "T1195.001": 3,"T1195.002": 17,"T1197": 23,"T1199": 16,@@ -653,7 +657,7 @@"T1212": 8,"T1213": 10,"T1213.002": 2,- "T1213.003": 5,+ "T1213.003": 6,"T1216": 14,"T1216.001": 2,"T1217": 4,@@ -683,7 +687,7 @@"T1482": 31,"T1484": 13,"T1484.001": 16,- "T1484.002": 6,+ "T1484.002": 7,"T1485": 84,"T1485.001": 2,"T1486": 27,@@ -715,7 +719,7 @@"T1526": 11,"T1528": 28,"T1529": 16,- "T1530": 46,+ "T1530": 50,"T1531": 20,"T1535": 6,"T1537": 23,@@ -762,8 +766,8 @@"T1548.002": 76,"T1548.003": 39,"T1548.004": 1,- "T1550": 13,- "T1550.001": 4,+ "T1550": 14,+ "T1550.001": 5,"T1550.002": 7,"T1550.003": 9,"T1550.004": 2,@@ -792,8 +796,9 @@"T1556.002": 3,"T1556.003": 1,"T1556.004": 3,- "T1556.006": 28,- "T1556.007": 1,+ "T1556.006": 29,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 13,"T1557.001": 19,"T1557.002": 6,@@ -826,7 +831,7 @@"T1564.003": 11,"T1564.004": 25,"T1564.006": 3,- "T1564.008": 4,+ "T1564.008": 5,"T1565": 3,"T1565.001": 11,"T1565.002": 3,@@ -863,7 +868,7 @@"T1578.002": 2,"T1578.003": 1,"T1578.005": 1,- "T1580": 6,+ "T1580": 7,"T1583.001": 4,"T1583.006": 1,"T1584": 3,@@ -902,7 +907,7 @@"T1606.002": 1,"T1608": 2,"T1608.003": 1,- "T1609": 4,+ "T1609": 6,"T1610": 12,"T1611": 29,"T1612": 1,@@ -994,8 +999,8 @@"T1078": 41,"T1078.001": 4,"T1078.002": 3,- "T1078.003": 1,- "T1078.004": 38,+ "T1078.003": 2,+ "T1078.004": 42,"T1083": 2,"T1087.001": 2,"T1087.002": 5,@@ -1003,20 +1008,21 @@"T1090": 3,"T1090.003": 6,"T1095": 3,- "T1098": 32,- "T1098.001": 22,- "T1098.003": 9,+ "T1098": 36,+ "T1098.001": 24,+ "T1098.003": 11,"T1098.004": 8,+ "T1098.005": 1,"T1098.007": 1,"T1105": 3,"T1110": 9,"T1110.001": 4,- "T1110.003": 4,+ "T1110.003": 5,"T1110.004": 4,"T1112": 1,"T1113": 2,"T1114.002": 5,- "T1114.003": 4,+ "T1114.003": 5,"T1127.001": 1,"T1133": 13,"T1134": 1,@@ -1029,6 +1035,7 @@"T1185": 1,"T1190": 30,"T1195": 2,+ "T1195.001": 1,"T1195.002": 10,"T1197": 1,"T1199": 15,@@ -1038,6 +1045,7 @@"T1212": 2,"T1213": 3,"T1213.002": 1,+ "T1213.003": 1,"T1218": 1,"T1218.003": 1,"T1218.004": 1,@@ -1050,7 +1058,7 @@"T1404": 2,"T1482": 1,"T1484.001": 2,- "T1484.002": 2,+ "T1484.002": 3,"T1485": 29,"T1486": 8,"T1489": 2,@@ -1063,7 +1071,7 @@"T1505.003": 3,"T1525": 8,"T1528": 6,- "T1530": 36,+ "T1530": 40,"T1531": 5,"T1535": 1,"T1537": 10,@@ -1094,7 +1102,8 @@"T1548.002": 4,"T1548.003": 3,"T1548.004": 1,- "T1550": 3,+ "T1550": 4,+ "T1550.001": 1,"T1550.002": 2,"T1550.003": 1,"T1550.004": 1,@@ -1117,8 +1126,9 @@"T1556.001": 1,"T1556.003": 1,"T1556.004": 1,- "T1556.006": 14,- "T1556.007": 1,+ "T1556.006": 15,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 2,"T1557.001": 5,"T1557.002": 3,@@ -1136,7 +1146,7 @@"T1562.008": 14,"T1562.012": 2,"T1564.001": 1,- "T1564.008": 1,+ "T1564.008": 2,"T1565.001": 4,"T1565.002": 1,"T1566": 3,@@ -1155,13 +1165,14 @@"T1574.002": 4,"T1574.006": 3,"T1578.002": 1,+ "T1580": 1,"T1583.001": 4,"T1592": 2,"T1595.002": 1,"T1599": 1,"T1600.001": 1,"T1606.002": 1,- "T1609": 1,+ "T1609": 3,"T1610": 12,"T1611": 25,"T1612": 1,@@ -52741,6 +52752,614 @@"path": "detections/network/net-stp-topology-change-from-edge.yaml","sha256": "9290467d3a6710e910c7c1405b10c903ecc05b8d60dadf1ba41bec54de83892c"},+ {+ "id": "det-threat-anomaly-001",+ "type": "detection",+ "name": "AWS Access Key Created From a Client This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Access Key Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.001",+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-credential-compromise",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-access-key-created-from-rare-client.yaml",+ "sha256": "7ca0b94403e6f50143727ac570bc6b9ddff8fa2dd0291b203d68cfeb11e8e07d"+ },+ {+ "id": "det-threat-anomaly-002",+ "type": "detection",+ "name": "AWS Policy Attached by a Principal Who Does Not Normally Attach Policies",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Policy Attached by a Principal Who Does Not Normally Attach Policies'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-policy-attached-by-rare-actor-action.yaml",+ "sha256": "7012dc5fcee7715194be2fb6c98bd3a035d45eb6490b78c19f5a749ac8407d87"+ },+ {+ "id": "det-threat-anomaly-003",+ "type": "detection",+ "name": "AWS Control-Plane Call From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Control-Plane Call From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-api-call-from-rare-country.yaml",+ "sha256": "dab481d16d2853a29b19dfbfb958ec2ab5210e6e9e08d3a70efde8cce2ef1b03"+ },+ {+ "id": "det-threat-anomaly-004",+ "type": "detection",+ "name": "AWS S3 Read Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS S3 Read Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-volume-spike-on-s3-reads.yaml",+ "sha256": "22aa2a94f4facde674e2bb325cf6b20ff069be2d5c437fc9303eb4a4bda716e0"+ },+ {+ "id": "det-threat-anomaly-005",+ "type": "detection",+ "name": "AWS Resource This Principal Has Never Touched",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Resource This Principal Has Never Touched'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1580"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-rare-resource-touched-by-principal.yaml",+ "sha256": "cb14029193505e8eccab5d16ef8c344e45b7837e74cf05f2b7e7eab9b3f2d3da"+ },+ {+ "id": "det-threat-anomaly-006",+ "type": "detection",+ "name": "AWS Privileged Call Volume Far Above This Principal's Peer Group",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Privileged Call Volume Far Above This Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-peer-deviation-on-privileged-call.yaml",+ "sha256": "75e00c3a07053cd324f0a9f88247fce5690745d21d7b949713d7043e74282262"+ },+ {+ "id": "det-threat-anomaly-007",+ "type": "detection",+ "name": "MFA Factor Reset From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'MFA Factor Reset From a Country This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.006",+ "T1098.005"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-mfa-reset-from-rare-country.yaml",+ "sha256": "b0dd0387f22b17959adedee45670b0e6f071ec6b5e40fbf9be86e7123771c4a0"+ },+ {+ "id": "det-threat-anomaly-008",+ "type": "detection",+ "name": "Admin Role Granted by a Principal Who Does Not Normally Grant Roles",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Admin Role Granted by a Principal Who Does Not Normally Grant Roles'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-admin-role-granted-rare-action.yaml",+ "sha256": "b04bbe4cd9f9cdc2ab0acb7204acc6b5309eab94ad2d0de0684be5ab2770df6a"+ },+ {+ "id": "det-threat-anomaly-009",+ "type": "detection",+ "name": "Sign-In From a Client Family This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Sign-In From a Client Family This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004",+ "T1550"+ ],+ "log_source": "okta",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-login-from-rare-client-family.yaml",+ "sha256": "0cb44beaf0b84fe6a6a258c2a675d42533566cea6d6d2c245a1e67efa16ced3b"+ },+ {+ "id": "det-threat-anomaly-010",+ "type": "detection",+ "name": "Identity-Provider Change by a Principal Who Does Not Normally Make Them",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Identity-Provider Change by a Principal Who Does Not Normally Make Them'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.007"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-rare-action-on-identity-provider.yaml",+ "sha256": "7cb391bdfa3b262f78a94b705690d131b5392e85a0f1f00f90149f13f9c4bc55"+ },+ {+ "id": "det-threat-anomaly-011",+ "type": "detection",+ "name": "Conditional Access Policy Changed by a Rare Actor",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Conditional Access Policy Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.009",+ "T1484.002"+ ],+ "log_source": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-entra-conditional-access-change-rare-action.yaml",+ "sha256": "6f84bba94cc7f12e157667061446978ebdf9c17d4652208848a4b7fd30049a94"+ },+ {+ "id": "det-threat-anomaly-012",+ "type": "detection",+ "name": "Entra Sign-In Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Entra Sign-In Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1110.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-entra-signin-volume-spike.yaml",+ "sha256": "f78e614c2a4941a605bd3758842dd256d0ca1c2eee58a9fe7dbb31c11f8078c6"+ },+ {+ "id": "det-threat-anomaly-013",+ "type": "detection",+ "name": "Group Membership Changes Far Above the Principal's Peer Group",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Group Membership Changes Far Above the Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "identity",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-identity-peer-deviation-on-group-change.yaml",+ "sha256": "2b41939658c8029e098fc06044fbfd3c924766628bf7d6c0a0a55424be07defa"+ },+ {+ "id": "det-threat-anomaly-014",+ "type": "detection",+ "name": "OAuth Application Activity Far Above Its Own Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'OAuth Application Activity Far Above Its Own Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1550.001",+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-saas-oauth-app-volume-spike.yaml",+ "sha256": "e35b253aa6d457f60fc9a953bb482832d8050fcab0f34e98b2753836b0db2d11"+ },+ {+ "id": "det-threat-anomaly-015",+ "type": "detection",+ "name": "Workspace Admin Action This Principal Has Never Performed",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Workspace Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-workspace-rare-admin-action.yaml",+ "sha256": "b8d316a1fbea56a90eb65b6cd3a4b4d019c6a92eefe118bc91b08bc5a1d4d939"+ },+ {+ "id": "det-threat-anomaly-016",+ "type": "detection",+ "name": "Drive Download Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Drive Download Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-workspace-drive-download-volume-spike.yaml",+ "sha256": "32889448b1e0e0779717b4f7145790c7f46739762ab66dd72c15b62a10dadef3"+ },+ {+ "id": "det-threat-anomaly-017",+ "type": "detection",+ "name": "Mailbox Rule Created From a Client This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Mailbox Rule Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1114.003",+ "T1564.008"+ ],+ "log_source": "m365",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-m365-mailbox-rule-from-rare-client.yaml",+ "sha256": "f885aa960e6945cb64b9d706f979b6a57f68a8c295ab1485407df4fa1e88dd98"+ },+ {+ "id": "det-threat-anomaly-018",+ "type": "detection",+ "name": "Slack Workspace Admin Action This Principal Has Never Performed",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Slack Workspace Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "slack",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-slack-rare-admin-action.yaml",+ "sha256": "0739f3715a5f5000398ba9b3c4b31dc28ec7d5e09e511beda37b51df3b987ef3"+ },+ {+ "id": "det-threat-anomaly-019",+ "type": "detection",+ "name": "Salesforce Export Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Salesforce Export Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "salesforce",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-salesforce-report-export-volume-spike.yaml",+ "sha256": "58fd5d049a03ebcfc47bb5997d195d53e88ec39f210d2aad555b611d179302aa"+ },+ {+ "id": "det-threat-anomaly-020",+ "type": "detection",+ "name": "GitHub Organisation Setting Changed by a Rare Actor",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitHub Organisation Setting Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098",+ "T1195.001"+ ],+ "log_source": "github",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-github-rare-action-on-org-settings.yaml",+ "sha256": "9d198aec8f66639696e411d2b07ba079c5e4993c162bbd73401114989f9a76c7"+ },+ {+ "id": "det-threat-anomaly-021",+ "type": "detection",+ "name": "Repository Clone Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Repository Clone Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1213.003"+ ],+ "log_source": "github",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-github-clone-volume-spike.yaml",+ "sha256": "d614dc221cc77dded330e7ddd2ac1bf882348a0326d7451e6a7d9b62c3ed7021"+ },+ {+ "id": "det-threat-anomaly-022",+ "type": "detection",+ "name": "GitLab Token Action From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitLab Token Action From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "gitlab",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-gitlab-token-action-from-rare-country.yaml",+ "sha256": "244e7a48ec5c9ade72482b1323861ec371e21f786e737f5b330e0b260bd91c94"+ },+ {+ "id": "det-threat-anomaly-023",+ "type": "detection",+ "name": "Kubernetes Verb This Service Account Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Kubernetes Verb This Service Account Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1609",+ "T1078.003"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-k8s-rare-verb-by-service-account.yaml",+ "sha256": "200a3b1651d66dfbc9e91e7fe04ff6d0ec8a01b2d70cca577c03c7251e1450dd"+ },+ {+ "id": "det-threat-anomaly-024",+ "type": "detection",+ "name": "Pod Exec Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Pod Exec Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1609"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-k8s-exec-volume-spike.yaml",+ "sha256": "b4bf5adbe45969b9ad405a27ddeee4809b6f6da8c7cab3081b4af51433215047"+ },{"id": "mitre-car-car-2013-01-003","type": "detection",diff --git a/scripts/detection_specs_index.py b/scripts/detection_specs_index.pyindex ff5ed406b..89c2fd1b4 100644--- a/scripts/detection_specs_index.py+++ b/scripts/detection_specs_index.py@@ -14,6 +14,11 @@ Tier mapping:* `detection_specs_part3_*.py` — 600 additional native specs generated throughthe compact `S()` builder (see `detection_specs_part3_helpers.py`). Thesefollow the same fixture + MITRE quality gate as the originals.+* `detection_specs_part4_threat_anomaly.py` — depth plan 3.5. Threat+ conditions paired with depth plan 3.4 baseline scores. Fixtures are+ hand-authored rather than synthesised, because the content of these+ rules is a relationship and a fixture copied from the clause cannot+ test it."""from __future__ import annotations@@ -33,6 +38,7 @@ from detection_specs_part3_cloud import CLOUD_EXTRA # type: ignore[import-not-ffrom detection_specs_part3_endpoint import ENDPOINT_EXTRA # type: ignore[import-not-found]from detection_specs_part3_identity import IDENTITY_EXTRA # type: ignore[import-not-found]from detection_specs_part3_network import NETWORK_EXTRA # type: ignore[import-not-found]+from detection_specs_part4_threat_anomaly import THREAT_ANOMALY # type: ignore[import-not-found]CATEGORIES: dict[str, list[dict]] = {"cloud": [*CLOUD, *CLOUD_EXTRA],@@ -41,6 +47,11 @@ CATEGORIES: dict[str, list[dict]] = {"network": [*NETWORK, *NETWORK_EXTRA],"application": [*APPLICATION, *APPLICATION_EXTRA],"data-exfil": DATA_EXFIL,+ # Depth plan 3.5. Its own category because the claim is different:+ # these pair a threat condition with a depth plan 3.4 baseline score,+ # so a fresh install has the rule before it has the signal. Counted+ # separately in scripts/project_stats.py for the same reason.+ "threat-anomaly": THREAT_ANOMALY,}diff --git a/scripts/detection_specs_part4_threat_anomaly.py b/scripts/detection_specs_part4_threat_anomaly.pynew file mode 100644index 000000000..723b5e503--- /dev/null+++ b/scripts/detection_specs_part4_threat_anomaly.py@@ -0,0 +1,778 @@+"""+Detection Pack — Threat-and-anomaly conditions+==============================================++Depth plan 3.5: *"Pair anomaly signals with threat conditions into rules,+for example a first-seen country with an MFA factor reset, or a rare client+family with access-key creation. They are ordinary rules that read baseline+fields, so they carry the same replay proof."*++What makes this family different, and why it is counted separately+------------------------------------------------------------------+Every other native rule answers "did this happen". These answer "did this+happen, **and is it unusual for this principal**". The second half comes+from the depth plan 3.4 baseline store+(`services/fusion/app/services/baselines.py`), which puts `baseline_*`+scores into the match namespace alongside the connector's own fields.++That pairing is the point. On its own, `CreateAccessKey` is a thing+platform engineers do several times a week, and alerting on it produces a+queue nobody reads. On its own, "this principal is using an unusual client"+is a curiosity. Together they describe a specific thing worth waking+someone for: *the credential-minting call arrived over a path this account+has never used*.++Counted as its own family in `scripts/project_stats.py` because the claim+is different. "2,511 executable detections" says a rule can fire on a+well-formed event; a threat-and-anomaly rule additionally needs a warmed+baseline for the principal, so a fresh install has the rule and not yet the+signal. Folding these into the headline would overstate what a day-one+deployment detects.++Fixtures are hand-authored, and the negative is the benign twin+---------------------------------------------------------------+The `S()` auto-fixture path is deliberately **not** used here. It+synthesises the positive from the rule's own clause, which makes replay+tautological, and it builds the negative by flipping one field to a+sentinel — 423 of the existing negatives invert by prefixing `not-` to the+expected value, so the rule passes its negative by failing to match a value+no log source would ever emit. That measures nothing about false positives.++Every fixture below is written by hand, and every negative is the **benign+twin of its positive**: the same threat action, by a principal for whom it+is routine. The pair differs only in the baseline score, which is exactly+the clause these rules are about. A rule that fired on both would be a rule+that is not really reading the baseline.++Thresholds+----------+`0.95` rarity means the principal has done this on under 5% of their+observed activity, over a history of at least `MIN_OBSERVATIONS` events.+`3.0` on a volume or peer z-score is three standard deviations from that+principal's — or that group's — own normal. Both are deliberately strict:+this family exists to be the half of a pair that makes a noisy threat+condition worth alerting on, and a loose anomaly threshold would hand the+noise straight back.+"""++from __future__ import annotations++from typing import Any++#: Rarity at or above which a value counts as unusual for the principal.+RARE = 0.95++#: Standard deviations at or above which a volume or peer figure counts as+#: a deviation.+DEVIATION = 3.0+++def TA(+ *,+ slug: str,+ name: str,+ severity: str,+ mitre: list[str],+ product: str,+ service: str,+ when: dict[str, Any],+ positive: dict[str, Any],+ negative: dict[str, Any],+ fp: list[str],+ playbook: str = "tpl-triage",+ description: str | None = None,+) -> dict[str, Any]:+ """A threat-and-anomaly spec. Fixtures are required, never synthesised.++ `S()` in `detection_specs_part3_helpers` defaults both fixtures from the+ clause. That is the right trade for a flat vendor-field rule and the+ wrong one here: the whole content of these rules is the relationship+ between a threat condition and a baseline score, and a fixture derived+ from the clause cannot test a relationship it was copied from.+ """+ if not positive or not negative:+ raise ValueError(f"{slug}: both fixtures must be hand-authored")+ return {+ "slug": slug,+ "name": name,+ "severity": severity,+ "mitre": [t.lower() for t in mitre],+ "log_source": {"product": product, "service": service},+ "fields": sorted(_fields_of(when)),+ "match_when": when,+ "fp": list(fp),+ "playbook": playbook,+ "positive": dict(positive),+ "negative": dict(negative),+ **({"description": description} if description else {}),+ }+++def _fields_of(clause: Any) -> set[str]:+ """Field names a clause reads, with the operator suffix stripped."""+ from detection_specs_part3_helpers import split_op # type: ignore[import-not-found] # noqa: PLC0415++ out: set[str] = set()+ if isinstance(clause, dict):+ for key, value in clause.items():+ if key in {"any_of", "all_of", "not"}:+ out |= _fields_of(value)+ continue+ out.add(split_op(key)[0])+ elif isinstance(clause, list):+ for item in clause:+ out |= _fields_of(item)+ return out+++THREAT_ANOMALY: list[dict] = [+ # ---------------------------------------------------------------+ # AWS — credential and policy actions over an unusual path (6)+ # ---------------------------------------------------------------+ TA(+ slug="ta-aws-access-key-created-from-rare-client",+ name="AWS Access Key Created From a Client This Principal Has Never Used",+ severity="high",+ mitre=["t1098.001", "t1078.004"],+ product="aws",+ service="iam",+ when={"eventName": "CreateAccessKey", "baseline_client_family_rarity_gte": RARE},+ positive={+ "eventName": "CreateAccessKey",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "user_agent": "python-requests/2.31.0",+ "src_ip": "203.0.113.44",+ "baseline_client_family_rarity": 0.985,+ },+ # The platform engineer who mints keys from the CLI every week. Same+ # call, same service, routine client — the pairing must not fire.+ negative={+ "eventName": "CreateAccessKey",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "user_agent": "aws-cli/2.15.17 Python/3.11.6 Darwin/23.4.0",+ "src_ip": "198.51.100.17",+ "baseline_client_family_rarity": 0.04,+ },+ fp=[+ "A new build agent or CI runner adopting a different SDK will look novel once",+ "An engineer moving from the console to the CLI for the first time",+ ],+ playbook="tpl-credential-compromise",+ ),+ TA(+ slug="ta-aws-policy-attached-by-rare-actor-action",+ name="AWS Policy Attached by a Principal Who Does Not Normally Attach Policies",+ severity="high",+ mitre=["t1098.003"],+ product="aws",+ service="iam",+ when={+ "eventName_in": ["AttachUserPolicy", "AttachRolePolicy", "AttachGroupPolicy"],+ "baseline_action_rarity_gte": RARE,+ },+ positive={+ "eventName": "AttachUserPolicy",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "policy_arn": "arn:aws:iam::aws:policy/AdministratorAccess",+ "baseline_action_rarity": 0.998,+ },+ # The identity team's own automation, which attaches policies all day.+ negative={+ "eventName": "AttachUserPolicy",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "policy_arn": "arn:aws:iam::aws:policy/ReadOnlyAccess",+ "baseline_action_rarity": 0.012,+ },+ fp=["Account vending and IAM bootstrap runs", "A new provisioning service account's first week"],+ playbook="tpl-privilege-escalation",+ ),+ TA(+ slug="ta-aws-api-call-from-rare-country",+ name="AWS Control-Plane Call From a Country This Principal Has Never Used",+ severity="medium",+ mitre=["t1078.004"],+ product="aws",+ service="cloudtrail",+ when={"eventSource": "iam.amazonaws.com", "baseline_location_rarity_gte": RARE},+ positive={+ "eventName": "ListAccessKeys",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "country": "KZ",+ "baseline_location_rarity": 0.996,+ },+ negative={+ "eventName": "ListAccessKeys",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "country": "US",+ "baseline_location_rarity": 0.01,+ },+ fp=["Travel", "A VPN egress or cloud NAT in another region", "A relocated contractor"],+ ),+ TA(+ slug="ta-aws-volume-spike-on-s3-reads",+ name="AWS S3 Read Volume Far Above This Principal's Normal",+ severity="high",+ mitre=["t1530"],+ product="aws",+ service="s3",+ when={"eventSource": "s3.amazonaws.com", "baseline_principal_volume_z_gte": DEVIATION},+ positive={+ "eventName": "GetObject",+ "eventSource": "s3.amazonaws.com",+ "user": "[email protected]",+ "resource": "arn:aws:s3:::finance-exports",+ "baseline_principal_volume_z": 9.4,+ },+ # The nightly ETL account, whose volume is high and entirely normal+ # *for it* — which is the distinction a per-principal baseline draws+ # and a global threshold cannot.+ negative={+ "eventName": "GetObject",+ "eventSource": "s3.amazonaws.com",+ "user": "[email protected]",+ "resource": "arn:aws:s3:::finance-exports",+ "baseline_principal_volume_z": 0.3,+ },+ fp=["A genuine bulk export or migration", "A first full backup after onboarding"],+ playbook="tpl-data-exfiltration",+ ),+ TA(+ slug="ta-aws-rare-resource-touched-by-principal",+ name="AWS Resource This Principal Has Never Touched",+ severity="medium",+ mitre=["t1580"],+ product="aws",+ service="cloudtrail",+ when={+ "eventName_startswith_any": ["Delete", "Put", "Modify"],+ "baseline_resource_rarity_gte": RARE,+ },+ positive={+ "eventName": "DeleteBucketPolicy",+ "eventSource": "s3.amazonaws.com",+ "user": "[email protected]",+ "resource": "arn:aws:s3:::prod-audit-logs",+ "baseline_resource_rarity": 0.991,+ },+ negative={+ "eventName": "PutObject",+ "eventSource": "s3.amazonaws.com",+ "user": "[email protected]",+ "resource": "arn:aws:s3:::mara-scratch",+ "baseline_resource_rarity": 0.07,+ },+ fp=["A project handover", "An engineer joining a new service team"],+ ),+ TA(+ slug="ta-aws-peer-deviation-on-privileged-call",+ name="AWS Privileged Call Volume Far Above This Principal's Peer Group",+ severity="medium",+ mitre=["t1078.004"],+ product="aws",+ service="iam",+ when={"eventSource": "iam.amazonaws.com", "baseline_peer_deviation_gte": DEVIATION},+ positive={+ "eventName": "CreateUser",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "group": "platform-engineering",+ "baseline_peer_deviation": 6.8,+ },+ negative={+ "eventName": "CreateUser",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "group": "platform-engineering",+ "baseline_peer_deviation": 0.6,+ },+ fp=["A team of one, where the peer group is the principal", "An on-call week"],+ ),+ # ---------------------------------------------------------------+ # Identity — Okta and Entra (7)+ # ---------------------------------------------------------------+ TA(+ slug="ta-okta-mfa-reset-from-rare-country",+ name="MFA Factor Reset From a Country This Principal Has Never Used",+ severity="critical",+ mitre=["t1556.006", "t1098.005"],+ product="okta",+ service="identity",+ # The plan's own first example. An MFA reset is the single most+ # useful thing an account-takeover does, and help desks do it daily+ # — so the location half is what separates the two.+ when={+ "event_type_in": ["user.mfa.factor.reset_all", "user.mfa.factor.deactivate"],+ "baseline_location_rarity_gte": RARE,+ },+ positive={+ "event_type": "user.mfa.factor.reset_all",+ "user": "[email protected]",+ "target_user": "[email protected]",+ "country": "NG",+ "outcome": "SUCCESS",+ "baseline_location_rarity": 0.997,+ },+ # The service desk in the office that resets factors every morning.+ negative={+ "event_type": "user.mfa.factor.reset_all",+ "user": "[email protected]",+ "target_user": "[email protected]",+ "country": "GB",+ "outcome": "SUCCESS",+ "baseline_location_rarity": 0.02,+ },+ fp=["A user travelling and locked out", "A help desk operating from a second region"],+ playbook="tpl-account-takeover",+ ),+ TA(+ slug="ta-okta-admin-role-granted-rare-action",+ name="Admin Role Granted by a Principal Who Does Not Normally Grant Roles",+ severity="critical",+ mitre=["t1098.003"],+ product="okta",+ service="identity",+ when={+ "event_type_in": ["user.account.privilege.grant", "group.privilege.grant"],+ "baseline_action_rarity_gte": RARE,+ },+ positive={+ "event_type": "user.account.privilege.grant",+ "user": "[email protected]",+ "target_user": "[email protected]",+ "role": "SUPER_ADMIN",+ "outcome": "SUCCESS",+ "baseline_action_rarity": 0.999,+ },+ negative={+ "event_type": "user.account.privilege.grant",+ "user": "[email protected]",+ "target_user": "[email protected]",+ "role": "READ_ONLY_ADMIN",+ "outcome": "SUCCESS",+ "baseline_action_rarity": 0.03,+ },+ fp=["A delegated admin covering for the usual owner", "Quarterly access review remediation"],+ playbook="tpl-privilege-escalation",+ ),+ TA(+ slug="ta-okta-login-from-rare-client-family",+ name="Sign-In From a Client Family This Principal Has Never Used",+ severity="medium",+ mitre=["t1078.004", "t1550"],+ product="okta",+ service="identity",+ when={"event_type": "user.session.start", "baseline_client_family_rarity_gte": RARE},+ positive={+ "event_type": "user.session.start",+ "user": "[email protected]",+ "user_agent": "okta-sdk-golang/2.18.0",+ "outcome": "SUCCESS",+ "baseline_client_family_rarity": 0.993,+ },+ negative={+ "event_type": "user.session.start",+ "user": "[email protected]",+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Chrome/124.0",+ "outcome": "SUCCESS",+ "baseline_client_family_rarity": 0.05,+ },+ fp=["A new laptop or phone", "A browser major-version bump", "A newly adopted SDK"],+ ),+ TA(+ slug="ta-okta-rare-action-on-identity-provider",+ name="Identity-Provider Change by a Principal Who Does Not Normally Make Them",+ severity="critical",+ mitre=["t1556.007"],+ product="okta",+ service="identity",+ when={+ "event_type_startswith": "system.idp",+ "baseline_action_rarity_gte": RARE,+ },+ positive={+ "event_type": "system.idp.lifecycle.create",+ "user": "[email protected]",+ "outcome": "SUCCESS",+ "baseline_action_rarity": 0.999,+ },+ negative={+ "event_type": "system.idp.lifecycle.update",+ "user": "[email protected]",+ "outcome": "SUCCESS",+ "baseline_action_rarity": 0.08,+ },+ fp=["A federation migration", "An identity team member's first IdP change"],+ playbook="tpl-account-takeover",+ ),+ TA(+ slug="ta-entra-conditional-access-change-rare-action",+ name="Conditional Access Policy Changed by a Rare Actor",+ severity="critical",+ mitre=["t1556.009", "t1484.002"],+ product="azure",+ service="entra",+ when={+ "operation_contains": "conditional access policy",+ "baseline_action_rarity_gte": RARE,+ },+ positive={+ "operation": "Update conditional access policy",+ "user": "[email protected]",+ "result": "success",+ "baseline_action_rarity": 0.997,+ },+ negative={+ "operation": "Update conditional access policy",+ "user": "[email protected]",+ "result": "success",+ "baseline_action_rarity": 0.02,+ },+ fp=["A planned policy rollout", "A delegated owner during a change freeze exception"],+ playbook="tpl-privilege-escalation",+ ),+ TA(+ slug="ta-entra-signin-volume-spike",+ name="Entra Sign-In Volume Far Above This Principal's Normal",+ severity="high",+ mitre=["t1110.003"],+ product="azure",+ service="entra",+ when={"event_type": "signin", "baseline_principal_volume_z_gte": DEVIATION},+ positive={+ "event_type": "signin",+ "user": "[email protected]",+ "result": "failure",+ "baseline_principal_volume_z": 12.1,+ },+ negative={+ "event_type": "signin",+ "user": "[email protected]",+ "result": "success",+ "baseline_principal_volume_z": 0.8,+ },+ fp=["A misconfigured client retrying", "A device re-enrolment loop"],+ ),+ TA(+ slug="ta-identity-peer-deviation-on-group-change",+ name="Group Membership Changes Far Above the Principal's Peer Group",+ severity="medium",+ mitre=["t1098"],+ product="identity",+ service="directory",+ when={+ "event_type_contains": "group.user_membership",+ "baseline_peer_deviation_gte": DEVIATION,+ },+ positive={+ "event_type": "group.user_membership.add",+ "user": "[email protected]",+ "group": "finance",+ "outcome": "SUCCESS",+ "baseline_peer_deviation": 7.2,+ },+ negative={+ "event_type": "group.user_membership.add",+ "user": "[email protected]",+ "group": "finance",+ "outcome": "SUCCESS",+ "baseline_peer_deviation": 0.4,+ },+ fp=["A reorganisation", "Bulk onboarding at the start of a quarter"],+ ),+ # ---------------------------------------------------------------+ # SaaS — Workspace, M365, Slack, Salesforce (6)+ # ---------------------------------------------------------------+ TA(+ slug="ta-saas-oauth-app-volume-spike",+ name="OAuth Application Activity Far Above Its Own Normal",+ severity="high",+ mitre=["t1550.001", "t1530"],+ product="google-workspace",+ service="oauth",+ # Keyed on the application rather than the user: a rogue grant acts+ # *as* a user, so the user's own volume stays unremarkable while the+ # application's does not.+ #+ # The `event_type` clause is not decoration. The first draft of this+ # rule carried the volume clause alone, which makes it a bare+ # anomaly — and the plan is explicit that an anomaly is a typed+ # signal and not an alert on its own. The family's own replay gate+ # caught it.+ when={"event_type": "oauth_token_event", "baseline_oauth_app_volume_z_gte": DEVIATION},+ positive={+ "event_type": "oauth_token_event",+ "user": "[email protected]",+ "application": "Third-Party Backup Helper",+ "baseline_oauth_app_volume_z": 11.7,+ },+ negative={+ "event_type": "oauth_token_event",+ "user": "[email protected]",+ "application": "Google Drive for Desktop",+ "baseline_oauth_app_volume_z": 0.5,+ },+ fp=["A legitimate integration's first sync", "A vendor rolling out a new feature"],+ playbook="tpl-data-exfiltration",+ ),+ TA(+ slug="ta-workspace-rare-admin-action",+ name="Workspace Admin Action This Principal Has Never Performed",+ severity="high",+ mitre=["t1098"],+ product="google-workspace",+ service="admin",+ when={"event_type": "admin", "baseline_action_rarity_gte": RARE},+ positive={+ "event_type": "admin",+ "event_name": "CREATE_DATA_TRANSFER_REQUEST",+ "user": "[email protected]",+ "baseline_action_rarity": 0.998,+ },+ negative={+ "event_type": "admin",+ "event_name": "CHANGE_USER_ORGANIZATION_UNIT",+ "user": "[email protected]",+ "baseline_action_rarity": 0.06,+ },+ fp=["A new administrator's first month", "A delegated admin covering leave"],+ ),+ TA(+ slug="ta-workspace-drive-download-volume-spike",+ name="Drive Download Volume Far Above This Principal's Normal",+ severity="high",+ mitre=["t1530"],+ product="google-workspace",+ service="drive",+ when={"event_type": "drive", "baseline_principal_volume_z_gte": DEVIATION},+ positive={+ "event_type": "drive",+ "event_name": "download",+ "user": "[email protected]",+ "resource": "Q4-Pipeline-Export.xlsx",+ "baseline_principal_volume_z": 8.9,+ },+ negative={+ "event_type": "drive",+ "event_name": "download",+ "user": "[email protected]",+ "resource": "Team-Offsite-Agenda.docx",+ "baseline_principal_volume_z": 0.7,+ },+ fp=["A departing employee's sanctioned export", "An offline-sync client's first pass"],+ playbook="tpl-data-exfiltration",+ ),+ TA(+ slug="ta-m365-mailbox-rule-from-rare-client",+ name="Mailbox Rule Created From a Client This Principal Has Never Used",+ severity="high",+ mitre=["t1114.003", "t1564.008"],+ product="m365",+ service="exchange",+ when={+ "operation_in": ["New-InboxRule", "Set-InboxRule"],+ "baseline_client_family_rarity_gte": RARE,+ },+ positive={+ "operation": "New-InboxRule",+ "user": "[email protected]",+ "user_agent": "Microsoft Office/16.0 (Windows NT 10.0; Microsoft Outlook 16.0; Pro)",+ "clientAppUsed": "Exchange Web Services",+ "result": "success",+ "baseline_client_family_rarity": 0.994,+ },+ negative={+ "operation": "New-InboxRule",+ "user": "[email protected]",+ "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/124.0",+ "clientAppUsed": "Browser",+ "result": "success",+ "baseline_client_family_rarity": 0.03,+ },+ fp=["A newly installed desktop client", "A mobile mail app added to an account"],+ playbook="tpl-account-takeover",+ ),+ TA(+ slug="ta-slack-rare-admin-action",+ name="Slack Workspace Admin Action This Principal Has Never Performed",+ severity="medium",+ mitre=["t1098"],+ product="slack",+ service="audit",+ when={+ "action_startswith_any": ["workspace_", "organization_", "app_"],+ "baseline_action_rarity_gte": RARE,+ },+ positive={+ "action": "organization_public_channel_export_enabled",+ "user": "[email protected]",+ "baseline_action_rarity": 0.999,+ },+ negative={+ "action": "workspace_member_joined",+ "user": "[email protected]",+ "baseline_action_rarity": 0.02,+ },+ fp=["A workspace migration", "A new workspace owner's first changes"],+ ),+ TA(+ slug="ta-salesforce-report-export-volume-spike",+ name="Salesforce Export Volume Far Above This Principal's Normal",+ severity="high",+ mitre=["t1530"],+ product="salesforce",+ service="audit",+ when={+ "event_type_in": ["ReportExport", "BulkApi"],+ "baseline_principal_volume_z_gte": DEVIATION,+ },+ positive={+ "event_type": "ReportExport",+ "user": "[email protected]",+ "resource": "All Accounts and Contacts",+ "baseline_principal_volume_z": 10.2,+ },+ negative={+ "event_type": "ReportExport",+ "user": "[email protected]",+ "resource": "Nightly Pipeline Snapshot",+ "baseline_principal_volume_z": 0.2,+ },+ fp=["Quarter-end reporting", "A sanctioned CRM migration"],+ playbook="tpl-data-exfiltration",+ ),+ # ---------------------------------------------------------------+ # Code — GitHub and GitLab (3)+ # ---------------------------------------------------------------+ TA(+ slug="ta-github-rare-action-on-org-settings",+ name="GitHub Organisation Setting Changed by a Rare Actor",+ severity="high",+ mitre=["t1098", "t1195.001"],+ product="github",+ service="audit",+ when={"action_startswith": "org.", "baseline_action_rarity_gte": RARE},+ positive={+ "action": "org.update_default_repository_permission",+ "user": "contractor-7",+ "baseline_action_rarity": 0.998,+ },+ negative={+ "action": "org.add_member",+ "user": "platform-owner",+ "baseline_action_rarity": 0.04,+ },+ fp=["A new organisation owner", "A one-off policy change during onboarding"],+ ),+ TA(+ slug="ta-github-clone-volume-spike",+ name="Repository Clone Volume Far Above This Principal's Normal",+ severity="high",+ mitre=["t1213.003"],+ product="github",+ service="audit",+ when={+ "action_in": ["git.clone", "repo.download_zip"],+ "baseline_principal_volume_z_gte": DEVIATION,+ },+ positive={+ "action": "git.clone",+ "user": "contractor-7",+ "resource": "example-org/payments-core",+ "baseline_principal_volume_z": 14.3,+ },+ negative={+ "action": "git.clone",+ "user": "ci-runner-bot",+ "resource": "example-org/payments-core",+ "baseline_principal_volume_z": 0.1,+ },+ fp=["A fresh developer workstation setup", "A CI fleet scaling up"],+ playbook="tpl-data-exfiltration",+ ),+ TA(+ slug="ta-gitlab-token-action-from-rare-country",+ name="GitLab Token Action From a Country This Principal Has Never Used",+ severity="high",+ mitre=["t1098.001"],+ product="gitlab",+ service="audit",+ when={+ "event_type_contains": "token",+ "baseline_location_rarity_gte": RARE,+ },+ positive={+ "event_type": "personal_access_token_created",+ "user": "rob.t",+ "country": "VN",+ "baseline_location_rarity": 0.998,+ },+ negative={+ "event_type": "personal_access_token_created",+ "user": "rob.t",+ "country": "DE",+ "baseline_location_rarity": 0.02,+ },+ fp=["Travel", "A relocated contributor", "A VPN egress"],+ ),+ # ---------------------------------------------------------------+ # Kubernetes (2)+ # ---------------------------------------------------------------+ TA(+ slug="ta-k8s-rare-verb-by-service-account",+ name="Kubernetes Verb This Service Account Has Never Used",+ severity="high",+ mitre=["t1609", "t1078.003"],+ product="kubernetes",+ service="audit",+ when={+ "action_in": ["create", "delete", "patch"],+ "resource_contains": "clusterrolebinding",+ "baseline_action_rarity_gte": RARE,+ },+ positive={+ "action": "create",+ "resource": "rbac.authorization.k8s.io/clusterrolebindings",+ "user": "system:serviceaccount:default:metrics-reader",+ "baseline_action_rarity": 0.999,+ },+ negative={+ "action": "create",+ "resource": "rbac.authorization.k8s.io/clusterrolebindings",+ "user": "system:serviceaccount:kube-system:cluster-provisioner",+ "baseline_action_rarity": 0.05,+ },+ fp=["A cluster bootstrap", "An operator installing its own RBAC on first run"],+ playbook="tpl-privilege-escalation",+ ),+ TA(+ slug="ta-k8s-exec-volume-spike",+ name="Pod Exec Volume Far Above This Principal's Normal",+ severity="medium",+ mitre=["t1609"],+ product="kubernetes",+ service="audit",+ when={+ "resource_contains": "pods/exec",+ "baseline_principal_volume_z_gte": DEVIATION,+ },+ positive={+ "action": "create",+ "resource": "pods/exec",+ "user": "[email protected]",+ "baseline_principal_volume_z": 7.6,+ },+ negative={+ "action": "create",+ "resource": "pods/exec",+ "user": "[email protected]",+ "baseline_principal_volume_z": 0.9,+ },+ fp=["An incident response shift", "A debugging session on a failing deployment"],+ ),+]diff --git a/scripts/project_stats.py b/scripts/project_stats.pyindex eb00ae573..6ec8d374d 100755--- a/scripts/project_stats.py+++ b/scripts/project_stats.py@@ -81,6 +81,31 @@ def _executable_detections() -> int | None:return total+def _threat_anomaly_detections() -> int | None:+ """Rules pairing a threat condition with a depth plan 3.4 baseline score.++ Depth plan 3.5 asks for these to be *"counted as their own family"*, and+ the reason is that the claim is genuinely different. An ordinary+ executable rule fires on a well-formed event of its log source. One of+ these additionally needs a warmed baseline for the principal — so a+ day-one install has the rule and does not yet have the signal, and+ folding them into the headline would overstate what it detects.++ They are a subset of `_executable_detections`, not an addition to it.+ """+ path = ROOT / "services" / "fusion" / "app" / "data" / "detection_ruleset.json"+ if not path.is_file():+ return None+ try:+ data = json.loads(path.read_text(encoding="utf-8"))+ except ValueError:+ return None+ rules = data.get("rules") if isinstance(data, dict) else data+ if not isinstance(rules, list):+ return None+ return sum(1 for r in rules if isinstance(r, dict) and r.get("category") == "threat-anomaly")++#: Directories under `detections/` holding YAML that is not a detection rule.#: Kept equal to `detection_truth_table.py`'s `SKIP_DIRS`, because a rule#: count and a file count published under the same words is how two surfaces@@ -189,6 +214,7 @@ def collect() -> dict:stats: dict = {"connectors": _connectors(),"detections_executable": _executable_detections(),+ "detections_threat_anomaly": _threat_anomaly_detections(),"detections_files_on_disk": _detection_files_on_disk(),"detections_yaml_files": _detection_yaml_files(),"services_in_repo": _python_services(),@@ -211,6 +237,8 @@ def _render(stats: dict) -> str:"",f" Connectors (registered) {stats['connectors']}",f" Detections (engine loads) {stats['detections_executable']}",+ f" … threat-and-anomaly family {stats['detections_threat_anomaly']}"+ " (a subset: each also needs a warmed baseline for the principal)",f" Detection rules on disk {stats['detections_files_on_disk']} (includes quarantined imports the engine never evaluates)",f" YAML files under detections/ {stats['detections_yaml_files']} (the extra {playbook_yaml} are response playbooks, not rules)",f" Services in repo {stats['services_in_repo']}",diff --git a/services/api/app/data/marketplace/index.json b/services/api/app/data/marketplace/index.jsonindex fa60978cf..9f7725923 100644--- a/services/api/app/data/marketplace/index.json+++ b/services/api/app/data/marketplace/index.json@@ -1,7 +1,7 @@{"$schema": "https://example.com/schemas/marketplace/v1.json","version": "1.0.0",- "generated": "2026-10-10T01:22:53Z",+ "generated": "2026-10-11T05:06:19Z","categories": [{"id": "playbooks",@@ -20,32 +20,32 @@}],"stats": {- "total": 7158,+ "total": 7182,"playbooks": 87,"playbook_packs": 62,- "detections": 6991,+ "detections": 7015,"plugins": 80,- "verified": 1037,+ "verified": 1061,"community": 1,"by_tier": {"beta": 7,"community": 1,"imported": 6113,- "stable": 1037+ "stable": 1061},"detections_by_tier": {"community": 1,"imported": 6113,- "stable": 877+ "stable": 901},- "executable": 2678,+ "executable": 2702,"quarantined": 4480,- "executable_detections": 2511,+ "executable_detections": 2535,"reference_only_detections": 4480,"not_a_detection": 167},"mitre_coverage": {- "unique_techniques": 387,+ "unique_techniques": 391,"techniques": {"T1001.003": 1,"T1003": 21,@@ -144,8 +144,8 @@"T1078": 49,"T1078.001": 5,"T1078.002": 7,- "T1078.003": 2,- "T1078.004": 45,+ "T1078.003": 3,+ "T1078.004": 49,"T1082": 13,"T1083": 9,"T1087": 10,@@ -158,10 +158,11 @@"T1090.003": 9,"T1091": 1,"T1095": 4,- "T1098": 44,- "T1098.001": 19,- "T1098.003": 6,+ "T1098": 48,+ "T1098.001": 21,+ "T1098.003": 8,"T1098.004": 6,+ "T1098.005": 1,"T1098.007": 1,"T1102": 5,"T1102.002": 1,@@ -170,14 +171,14 @@"T1110": 18,"T1110.001": 5,"T1110.002": 1,- "T1110.003": 1,+ "T1110.003": 2,"T1110.004": 3,"T1112": 58,"T1113": 7,"T1114": 1,"T1114.001": 1,"T1114.002": 1,- "T1114.003": 2,+ "T1114.003": 3,"T1115": 3,"T1119": 3,"T1120": 2,@@ -209,7 +210,7 @@"T1187": 3,"T1190": 39,"T1195": 3,- "T1195.001": 1,+ "T1195.001": 2,"T1195.002": 7,"T1197": 13,"T1199": 12,@@ -226,6 +227,7 @@"T1211": 4,"T1212": 4,"T1213": 2,+ "T1213.003": 1,"T1216": 8,"T1216.001": 2,"T1217": 3,@@ -250,7 +252,7 @@"T1482": 14,"T1484": 1,"T1484.001": 7,- "T1484.002": 2,+ "T1484.002": 3,"T1485": 29,"T1486": 11,"T1489": 10,@@ -273,7 +275,7 @@"T1526": 2,"T1528": 8,"T1529": 3,- "T1530": 27,+ "T1530": 31,"T1531": 7,"T1535": 1,"T1537": 7,@@ -311,8 +313,8 @@"T1548.002": 50,"T1548.003": 2,"T1548.004": 1,- "T1550": 5,- "T1550.001": 2,+ "T1550": 6,+ "T1550.001": 3,"T1550.002": 6,"T1550.003": 3,"T1550.004": 1,@@ -338,8 +340,9 @@"T1556.001": 1,"T1556.003": 1,"T1556.004": 1,- "T1556.006": 15,- "T1556.007": 1,+ "T1556.006": 16,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 2,"T1557.001": 12,"T1557.002": 3,@@ -367,7 +370,7 @@"T1564.003": 6,"T1564.004": 12,"T1564.006": 2,- "T1564.008": 1,+ "T1564.008": 2,"T1565": 2,"T1565.001": 3,"T1566": 5,@@ -395,6 +398,7 @@"T1578": 1,"T1578.002": 1,"T1578.003": 1,+ "T1580": 1,"T1583.001": 4,"T1584": 1,"T1586.003": 1,@@ -414,7 +418,7 @@"T1606.002": 1,"T1608": 2,"T1608.003": 1,- "T1609": 1,+ "T1609": 3,"T1610": 12,"T1611": 25,"T1612": 1,@@ -435,8 +439,8 @@"T1686.003": 10,"T1689": 1},- "total_with_mitre": 2380,- "unique_techniques_all_rules": 493,+ "total_with_mitre": 2404,+ "unique_techniques_all_rules": 494,"techniques_all_rules": {"T1001.003": 2,"T1003": 51,@@ -562,8 +566,8 @@"T1078": 132,"T1078.001": 10,"T1078.002": 14,- "T1078.003": 11,- "T1078.004": 98,+ "T1078.003": 12,+ "T1078.004": 102,"T1082": 49,"T1083": 28,"T1087": 21,@@ -576,12 +580,12 @@"T1090.003": 11,"T1091": 5,"T1095": 8,- "T1098": 91,- "T1098.001": 27,+ "T1098": 95,+ "T1098.001": 29,"T1098.002": 6,- "T1098.003": 35,+ "T1098.003": 37,"T1098.004": 12,- "T1098.005": 7,+ "T1098.005": 8,"T1098.007": 1,"T1102": 17,"T1102.001": 4,@@ -592,14 +596,14 @@"T1110": 57,"T1110.001": 18,"T1110.002": 1,- "T1110.003": 44,+ "T1110.003": 45,"T1110.004": 16,"T1112": 164,"T1113": 16,"T1114": 6,"T1114.001": 7,"T1114.002": 16,- "T1114.003": 12,+ "T1114.003": 13,"T1115": 11,"T1119": 8,"T1120": 2,@@ -634,7 +638,7 @@"T1189": 4,"T1190": 177,"T1195": 23,- "T1195.001": 2,+ "T1195.001": 3,"T1195.002": 17,"T1197": 23,"T1199": 16,@@ -653,7 +657,7 @@"T1212": 8,"T1213": 10,"T1213.002": 2,- "T1213.003": 5,+ "T1213.003": 6,"T1216": 14,"T1216.001": 2,"T1217": 4,@@ -683,7 +687,7 @@"T1482": 31,"T1484": 13,"T1484.001": 16,- "T1484.002": 6,+ "T1484.002": 7,"T1485": 84,"T1485.001": 2,"T1486": 27,@@ -715,7 +719,7 @@"T1526": 11,"T1528": 28,"T1529": 16,- "T1530": 46,+ "T1530": 50,"T1531": 20,"T1535": 6,"T1537": 23,@@ -762,8 +766,8 @@"T1548.002": 76,"T1548.003": 39,"T1548.004": 1,- "T1550": 13,- "T1550.001": 4,+ "T1550": 14,+ "T1550.001": 5,"T1550.002": 7,"T1550.003": 9,"T1550.004": 2,@@ -792,8 +796,9 @@"T1556.002": 3,"T1556.003": 1,"T1556.004": 3,- "T1556.006": 28,- "T1556.007": 1,+ "T1556.006": 29,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 13,"T1557.001": 19,"T1557.002": 6,@@ -826,7 +831,7 @@"T1564.003": 11,"T1564.004": 25,"T1564.006": 3,- "T1564.008": 4,+ "T1564.008": 5,"T1565": 3,"T1565.001": 11,"T1565.002": 3,@@ -863,7 +868,7 @@"T1578.002": 2,"T1578.003": 1,"T1578.005": 1,- "T1580": 6,+ "T1580": 7,"T1583.001": 4,"T1583.006": 1,"T1584": 3,@@ -902,7 +907,7 @@"T1606.002": 1,"T1608": 2,"T1608.003": 1,- "T1609": 4,+ "T1609": 6,"T1610": 12,"T1611": 29,"T1612": 1,@@ -994,8 +999,8 @@"T1078": 41,"T1078.001": 4,"T1078.002": 3,- "T1078.003": 1,- "T1078.004": 38,+ "T1078.003": 2,+ "T1078.004": 42,"T1083": 2,"T1087.001": 2,"T1087.002": 5,@@ -1003,20 +1008,21 @@"T1090": 3,"T1090.003": 6,"T1095": 3,- "T1098": 32,- "T1098.001": 22,- "T1098.003": 9,+ "T1098": 36,+ "T1098.001": 24,+ "T1098.003": 11,"T1098.004": 8,+ "T1098.005": 1,"T1098.007": 1,"T1105": 3,"T1110": 9,"T1110.001": 4,- "T1110.003": 4,+ "T1110.003": 5,"T1110.004": 4,"T1112": 1,"T1113": 2,"T1114.002": 5,- "T1114.003": 4,+ "T1114.003": 5,"T1127.001": 1,"T1133": 13,"T1134": 1,@@ -1029,6 +1035,7 @@"T1185": 1,"T1190": 30,"T1195": 2,+ "T1195.001": 1,"T1195.002": 10,"T1197": 1,"T1199": 15,@@ -1038,6 +1045,7 @@"T1212": 2,"T1213": 3,"T1213.002": 1,+ "T1213.003": 1,"T1218": 1,"T1218.003": 1,"T1218.004": 1,@@ -1050,7 +1058,7 @@"T1404": 2,"T1482": 1,"T1484.001": 2,- "T1484.002": 2,+ "T1484.002": 3,"T1485": 29,"T1486": 8,"T1489": 2,@@ -1063,7 +1071,7 @@"T1505.003": 3,"T1525": 8,"T1528": 6,- "T1530": 36,+ "T1530": 40,"T1531": 5,"T1535": 1,"T1537": 10,@@ -1094,7 +1102,8 @@"T1548.002": 4,"T1548.003": 3,"T1548.004": 1,- "T1550": 3,+ "T1550": 4,+ "T1550.001": 1,"T1550.002": 2,"T1550.003": 1,"T1550.004": 1,@@ -1117,8 +1126,9 @@"T1556.001": 1,"T1556.003": 1,"T1556.004": 1,- "T1556.006": 14,- "T1556.007": 1,+ "T1556.006": 15,+ "T1556.007": 2,+ "T1556.009": 1,"T1557": 2,"T1557.001": 5,"T1557.002": 3,@@ -1136,7 +1146,7 @@"T1562.008": 14,"T1562.012": 2,"T1564.001": 1,- "T1564.008": 1,+ "T1564.008": 2,"T1565.001": 4,"T1565.002": 1,"T1566": 3,@@ -1155,13 +1165,14 @@"T1574.002": 4,"T1574.006": 3,"T1578.002": 1,+ "T1580": 1,"T1583.001": 4,"T1592": 2,"T1595.002": 1,"T1599": 1,"T1600.001": 1,"T1606.002": 1,- "T1609": 1,+ "T1609": 3,"T1610": 12,"T1611": 25,"T1612": 1,@@ -52741,6 +52752,614 @@"path": "detections/network/net-stp-topology-change-from-edge.yaml","sha256": "9290467d3a6710e910c7c1405b10c903ecc05b8d60dadf1ba41bec54de83892c"},+ {+ "id": "det-threat-anomaly-001",+ "type": "detection",+ "name": "AWS Access Key Created From a Client This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Access Key Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.001",+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-credential-compromise",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-access-key-created-from-rare-client.yaml",+ "sha256": "7ca0b94403e6f50143727ac570bc6b9ddff8fa2dd0291b203d68cfeb11e8e07d"+ },+ {+ "id": "det-threat-anomaly-002",+ "type": "detection",+ "name": "AWS Policy Attached by a Principal Who Does Not Normally Attach Policies",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Policy Attached by a Principal Who Does Not Normally Attach Policies'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "aws",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-policy-attached-by-rare-actor-action.yaml",+ "sha256": "7012dc5fcee7715194be2fb6c98bd3a035d45eb6490b78c19f5a749ac8407d87"+ },+ {+ "id": "det-threat-anomaly-003",+ "type": "detection",+ "name": "AWS Control-Plane Call From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Control-Plane Call From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-api-call-from-rare-country.yaml",+ "sha256": "dab481d16d2853a29b19dfbfb958ec2ab5210e6e9e08d3a70efde8cce2ef1b03"+ },+ {+ "id": "det-threat-anomaly-004",+ "type": "detection",+ "name": "AWS S3 Read Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS S3 Read Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "aws",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-volume-spike-on-s3-reads.yaml",+ "sha256": "22aa2a94f4facde674e2bb325cf6b20ff069be2d5c437fc9303eb4a4bda716e0"+ },+ {+ "id": "det-threat-anomaly-005",+ "type": "detection",+ "name": "AWS Resource This Principal Has Never Touched",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Resource This Principal Has Never Touched'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1580"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-rare-resource-touched-by-principal.yaml",+ "sha256": "cb14029193505e8eccab5d16ef8c344e45b7837e74cf05f2b7e7eab9b3f2d3da"+ },+ {+ "id": "det-threat-anomaly-006",+ "type": "detection",+ "name": "AWS Privileged Call Volume Far Above This Principal's Peer Group",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'AWS Privileged Call Volume Far Above This Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004"+ ],+ "log_source": "aws",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-aws-peer-deviation-on-privileged-call.yaml",+ "sha256": "75e00c3a07053cd324f0a9f88247fce5690745d21d7b949713d7043e74282262"+ },+ {+ "id": "det-threat-anomaly-007",+ "type": "detection",+ "name": "MFA Factor Reset From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'MFA Factor Reset From a Country This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.006",+ "T1098.005"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-mfa-reset-from-rare-country.yaml",+ "sha256": "b0dd0387f22b17959adedee45670b0e6f071ec6b5e40fbf9be86e7123771c4a0"+ },+ {+ "id": "det-threat-anomaly-008",+ "type": "detection",+ "name": "Admin Role Granted by a Principal Who Does Not Normally Grant Roles",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Admin Role Granted by a Principal Who Does Not Normally Grant Roles'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.003"+ ],+ "log_source": "okta",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-admin-role-granted-rare-action.yaml",+ "sha256": "b04bbe4cd9f9cdc2ab0acb7204acc6b5309eab94ad2d0de0684be5ab2770df6a"+ },+ {+ "id": "det-threat-anomaly-009",+ "type": "detection",+ "name": "Sign-In From a Client Family This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Sign-In From a Client Family This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1078.004",+ "T1550"+ ],+ "log_source": "okta",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-login-from-rare-client-family.yaml",+ "sha256": "0cb44beaf0b84fe6a6a258c2a675d42533566cea6d6d2c245a1e67efa16ced3b"+ },+ {+ "id": "det-threat-anomaly-010",+ "type": "detection",+ "name": "Identity-Provider Change by a Principal Who Does Not Normally Make Them",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Identity-Provider Change by a Principal Who Does Not Normally Make Them'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.007"+ ],+ "log_source": "okta",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-okta-rare-action-on-identity-provider.yaml",+ "sha256": "7cb391bdfa3b262f78a94b705690d131b5392e85a0f1f00f90149f13f9c4bc55"+ },+ {+ "id": "det-threat-anomaly-011",+ "type": "detection",+ "name": "Conditional Access Policy Changed by a Rare Actor",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Conditional Access Policy Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "critical",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1556.009",+ "T1484.002"+ ],+ "log_source": "azure",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-entra-conditional-access-change-rare-action.yaml",+ "sha256": "6f84bba94cc7f12e157667061446978ebdf9c17d4652208848a4b7fd30049a94"+ },+ {+ "id": "det-threat-anomaly-012",+ "type": "detection",+ "name": "Entra Sign-In Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Entra Sign-In Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1110.003"+ ],+ "log_source": "azure",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-entra-signin-volume-spike.yaml",+ "sha256": "f78e614c2a4941a605bd3758842dd256d0ca1c2eee58a9fe7dbb31c11f8078c6"+ },+ {+ "id": "det-threat-anomaly-013",+ "type": "detection",+ "name": "Group Membership Changes Far Above the Principal's Peer Group",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Group Membership Changes Far Above the Principal's Peer Group'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "identity",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-identity-peer-deviation-on-group-change.yaml",+ "sha256": "2b41939658c8029e098fc06044fbfd3c924766628bf7d6c0a0a55424be07defa"+ },+ {+ "id": "det-threat-anomaly-014",+ "type": "detection",+ "name": "OAuth Application Activity Far Above Its Own Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'OAuth Application Activity Far Above Its Own Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1550.001",+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-saas-oauth-app-volume-spike.yaml",+ "sha256": "e35b253aa6d457f60fc9a953bb482832d8050fcab0f34e98b2753836b0db2d11"+ },+ {+ "id": "det-threat-anomaly-015",+ "type": "detection",+ "name": "Workspace Admin Action This Principal Has Never Performed",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Workspace Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-workspace-rare-admin-action.yaml",+ "sha256": "b8d316a1fbea56a90eb65b6cd3a4b4d019c6a92eefe118bc91b08bc5a1d4d939"+ },+ {+ "id": "det-threat-anomaly-016",+ "type": "detection",+ "name": "Drive Download Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Drive Download Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "google-workspace",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-workspace-drive-download-volume-spike.yaml",+ "sha256": "32889448b1e0e0779717b4f7145790c7f46739762ab66dd72c15b62a10dadef3"+ },+ {+ "id": "det-threat-anomaly-017",+ "type": "detection",+ "name": "Mailbox Rule Created From a Client This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Mailbox Rule Created From a Client This Principal Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1114.003",+ "T1564.008"+ ],+ "log_source": "m365",+ "playbook": "tpl-account-takeover",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-m365-mailbox-rule-from-rare-client.yaml",+ "sha256": "f885aa960e6945cb64b9d706f979b6a57f68a8c295ab1485407df4fa1e88dd98"+ },+ {+ "id": "det-threat-anomaly-018",+ "type": "detection",+ "name": "Slack Workspace Admin Action This Principal Has Never Performed",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Slack Workspace Admin Action This Principal Has Never Performed'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098"+ ],+ "log_source": "slack",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-slack-rare-admin-action.yaml",+ "sha256": "0739f3715a5f5000398ba9b3c4b31dc28ec7d5e09e511beda37b51df3b987ef3"+ },+ {+ "id": "det-threat-anomaly-019",+ "type": "detection",+ "name": "Salesforce Export Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Salesforce Export Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1530"+ ],+ "log_source": "salesforce",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-salesforce-report-export-volume-spike.yaml",+ "sha256": "58fd5d049a03ebcfc47bb5997d195d53e88ec39f210d2aad555b611d179302aa"+ },+ {+ "id": "det-threat-anomaly-020",+ "type": "detection",+ "name": "GitHub Organisation Setting Changed by a Rare Actor",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitHub Organisation Setting Changed by a Rare Actor'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098",+ "T1195.001"+ ],+ "log_source": "github",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-github-rare-action-on-org-settings.yaml",+ "sha256": "9d198aec8f66639696e411d2b07ba079c5e4993c162bbd73401114989f9a76c7"+ },+ {+ "id": "det-threat-anomaly-021",+ "type": "detection",+ "name": "Repository Clone Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Repository Clone Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1213.003"+ ],+ "log_source": "github",+ "playbook": "tpl-data-exfiltration",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-github-clone-volume-spike.yaml",+ "sha256": "d614dc221cc77dded330e7ddd2ac1bf882348a0326d7451e6a7d9b62c3ed7021"+ },+ {+ "id": "det-threat-anomaly-022",+ "type": "detection",+ "name": "GitLab Token Action From a Country This Principal Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'GitLab Token Action From a Country This Principal Has Never Used'. Watch the 3 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1098.001"+ ],+ "log_source": "gitlab",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-gitlab-token-action-from-rare-country.yaml",+ "sha256": "244e7a48ec5c9ade72482b1323861ec371e21f786e737f5b330e0b260bd91c94"+ },+ {+ "id": "det-threat-anomaly-023",+ "type": "detection",+ "name": "Kubernetes Verb This Service Account Has Never Used",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Kubernetes Verb This Service Account Has Never Used'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "high",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1609",+ "T1078.003"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-privilege-escalation",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-k8s-rare-verb-by-service-account.yaml",+ "sha256": "200a3b1651d66dfbc9e91e7fe04ff6d0ec8a01b2d70cca577c03c7251e1450dd"+ },+ {+ "id": "det-threat-anomaly-024",+ "type": "detection",+ "name": "Pod Exec Volume Far Above This Principal's Normal",+ "description": "AiSOC v1 curated detection. Triggers on the threat-anomaly signal described by 'Pod Exec Volume Far Above This Principal's Normal'. Watch the 2 documented false-positive cases before tuning.",+ "version": "1.0.0",+ "author": "AiSOC",+ "tags": [+ "tlp.white"+ ],+ "severity": "medium",+ "category": "threat-anomaly",+ "mitre_techniques": [+ "T1609"+ ],+ "log_source": "kubernetes",+ "playbook": "tpl-triage",+ "verified": true,+ "source": "core",+ "tier": "stable",+ "enabled": true,+ "executable": true,+ "path": "detections/threat-anomaly/ta-k8s-exec-volume-spike.yaml",+ "sha256": "b4bf5adbe45969b9ad405a27ddeee4809b6f6da8c7cab3081b4af51433215047"+ },{"id": "mitre-car-car-2013-01-003","type": "detection",diff --git a/services/fusion/app/data/detection_ruleset.json b/services/fusion/app/data/detection_ruleset.jsonindex 817b2b8d1..c9159bad4 100644--- a/services/fusion/app/data/detection_ruleset.json+++ b/services/fusion/app/data/detection_ruleset.json@@ -1,5 +1,5 @@{- "count": 741,+ "count": 765,"rules": [{"category": "application",@@ -13296,6 +13296,430 @@"service": "stp","severity": "medium","slug": "net-stp-topology-change-from-edge"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-001",+ "match_when": {+ "baseline_client_family_rarity_gte": 0.95,+ "eventName": "CreateAccessKey"+ },+ "mitre": [+ "T1098.001",+ "T1078.004"+ ],+ "name": "AWS Access Key Created From a Client This Principal Has Never Used",+ "product": "aws",+ "service": "iam",+ "severity": "high",+ "slug": "ta-aws-access-key-created-from-rare-client"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-002",+ "match_when": {+ "baseline_action_rarity_gte": 0.95,+ "eventName_in": [+ "AttachUserPolicy",+ "AttachRolePolicy",+ "AttachGroupPolicy"+ ]+ },+ "mitre": [+ "T1098.003"+ ],+ "name": "AWS Policy Attached by a Principal Who Does Not Normally Attach Policies",+ "product": "aws",+ "service": "iam",+ "severity": "high",+ "slug": "ta-aws-policy-attached-by-rare-actor-action"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-003",+ "match_when": {+ "baseline_location_rarity_gte": 0.95,+ "eventSource": "iam.amazonaws.com"+ },+ "mitre": [+ "T1078.004"+ ],+ "name": "AWS Control-Plane Call From a Country This Principal Has Never Used",+ "product": "aws",+ "service": "cloudtrail",+ "severity": "medium",+ "slug": "ta-aws-api-call-from-rare-country"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-004",+ "match_when": {+ "baseline_principal_volume_z_gte": 3.0,+ "eventSource": "s3.amazonaws.com"+ },+ "mitre": [+ "T1530"+ ],+ "name": "AWS S3 Read Volume Far Above This Principal's Normal",+ "product": "aws",+ "service": "s3",+ "severity": "high",+ "slug": "ta-aws-volume-spike-on-s3-reads"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-005",+ "match_when": {+ "baseline_resource_rarity_gte": 0.95,+ "eventName_startswith_any": [+ "Delete",+ "Put",+ "Modify"+ ]+ },+ "mitre": [+ "T1580"+ ],+ "name": "AWS Resource This Principal Has Never Touched",+ "product": "aws",+ "service": "cloudtrail",+ "severity": "medium",+ "slug": "ta-aws-rare-resource-touched-by-principal"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-006",+ "match_when": {+ "baseline_peer_deviation_gte": 3.0,+ "eventSource": "iam.amazonaws.com"+ },+ "mitre": [+ "T1078.004"+ ],+ "name": "AWS Privileged Call Volume Far Above This Principal's Peer Group",+ "product": "aws",+ "service": "iam",+ "severity": "medium",+ "slug": "ta-aws-peer-deviation-on-privileged-call"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-007",+ "match_when": {+ "baseline_location_rarity_gte": 0.95,+ "event_type_in": [+ "user.mfa.factor.reset_all",+ "user.mfa.factor.deactivate"+ ]+ },+ "mitre": [+ "T1556.006",+ "T1098.005"+ ],+ "name": "MFA Factor Reset From a Country This Principal Has Never Used",+ "product": "okta",+ "service": "identity",+ "severity": "critical",+ "slug": "ta-okta-mfa-reset-from-rare-country"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-008",+ "match_when": {+ "baseline_action_rarity_gte": 0.95,+ "event_type_in": [+ "user.account.privilege.grant",+ "group.privilege.grant"+ ]+ },+ "mitre": [+ "T1098.003"+ ],+ "name": "Admin Role Granted by a Principal Who Does Not Normally Grant Roles",+ "product": "okta",+ "service": "identity",+ "severity": "critical",+ "slug": "ta-okta-admin-role-granted-rare-action"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-009",+ "match_when": {+ "baseline_client_family_rarity_gte": 0.95,+ "event_type": "user.session.start"+ },+ "mitre": [+ "T1078.004",+ "T1550"+ ],+ "name": "Sign-In From a Client Family This Principal Has Never Used",+ "product": "okta",+ "service": "identity",+ "severity": "medium",+ "slug": "ta-okta-login-from-rare-client-family"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-010",+ "match_when": {+ "baseline_action_rarity_gte": 0.95,+ "event_type_startswith": "system.idp"+ },+ "mitre": [+ "T1556.007"+ ],+ "name": "Identity-Provider Change by a Principal Who Does Not Normally Make Them",+ "product": "okta",+ "service": "identity",+ "severity": "critical",+ "slug": "ta-okta-rare-action-on-identity-provider"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-011",+ "match_when": {+ "baseline_action_rarity_gte": 0.95,+ "operation_contains": "conditional access policy"+ },+ "mitre": [+ "T1556.009",+ "T1484.002"+ ],+ "name": "Conditional Access Policy Changed by a Rare Actor",+ "product": "azure",+ "service": "entra",+ "severity": "critical",+ "slug": "ta-entra-conditional-access-change-rare-action"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-012",+ "match_when": {+ "baseline_principal_volume_z_gte": 3.0,+ "event_type": "signin"+ },+ "mitre": [+ "T1110.003"+ ],+ "name": "Entra Sign-In Volume Far Above This Principal's Normal",+ "product": "azure",+ "service": "entra",+ "severity": "high",+ "slug": "ta-entra-signin-volume-spike"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-013",+ "match_when": {+ "baseline_peer_deviation_gte": 3.0,+ "event_type_contains": "group.user_membership"+ },+ "mitre": [+ "T1098"+ ],+ "name": "Group Membership Changes Far Above the Principal's Peer Group",+ "product": "identity",+ "service": "directory",+ "severity": "medium",+ "slug": "ta-identity-peer-deviation-on-group-change"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-014",+ "match_when": {+ "baseline_oauth_app_volume_z_gte": 3.0,+ "event_type": "oauth_token_event"+ },+ "mitre": [+ "T1550.001",+ "T1530"+ ],+ "name": "OAuth Application Activity Far Above Its Own Normal",+ "product": "google-workspace",+ "service": "oauth",+ "severity": "high",+ "slug": "ta-saas-oauth-app-volume-spike"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-015",+ "match_when": {+ "baseline_action_rarity_gte": 0.95,+ "event_type": "admin"+ },+ "mitre": [+ "T1098"+ ],+ "name": "Workspace Admin Action This Principal Has Never Performed",+ "product": "google-workspace",+ "service": "admin",+ "severity": "high",+ "slug": "ta-workspace-rare-admin-action"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-016",+ "match_when": {+ "baseline_principal_volume_z_gte": 3.0,+ "event_type": "drive"+ },+ "mitre": [+ "T1530"+ ],+ "name": "Drive Download Volume Far Above This Principal's Normal",+ "product": "google-workspace",+ "service": "drive",+ "severity": "high",+ "slug": "ta-workspace-drive-download-volume-spike"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-017",+ "match_when": {+ "baseline_client_family_rarity_gte": 0.95,+ "operation_in": [+ "New-InboxRule",+ "Set-InboxRule"+ ]+ },+ "mitre": [+ "T1114.003",+ "T1564.008"+ ],+ "name": "Mailbox Rule Created From a Client This Principal Has Never Used",+ "product": "m365",+ "service": "exchange",+ "severity": "high",+ "slug": "ta-m365-mailbox-rule-from-rare-client"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-018",+ "match_when": {+ "action_startswith_any": [+ "workspace_",+ "organization_",+ "app_"+ ],+ "baseline_action_rarity_gte": 0.95+ },+ "mitre": [+ "T1098"+ ],+ "name": "Slack Workspace Admin Action This Principal Has Never Performed",+ "product": "slack",+ "service": "audit",+ "severity": "medium",+ "slug": "ta-slack-rare-admin-action"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-019",+ "match_when": {+ "baseline_principal_volume_z_gte": 3.0,+ "event_type_in": [+ "ReportExport",+ "BulkApi"+ ]+ },+ "mitre": [+ "T1530"+ ],+ "name": "Salesforce Export Volume Far Above This Principal's Normal",+ "product": "salesforce",+ "service": "audit",+ "severity": "high",+ "slug": "ta-salesforce-report-export-volume-spike"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-020",+ "match_when": {+ "action_startswith": "org.",+ "baseline_action_rarity_gte": 0.95+ },+ "mitre": [+ "T1098",+ "T1195.001"+ ],+ "name": "GitHub Organisation Setting Changed by a Rare Actor",+ "product": "github",+ "service": "audit",+ "severity": "high",+ "slug": "ta-github-rare-action-on-org-settings"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-021",+ "match_when": {+ "action_in": [+ "git.clone",+ "repo.download_zip"+ ],+ "baseline_principal_volume_z_gte": 3.0+ },+ "mitre": [+ "T1213.003"+ ],+ "name": "Repository Clone Volume Far Above This Principal's Normal",+ "product": "github",+ "service": "audit",+ "severity": "high",+ "slug": "ta-github-clone-volume-spike"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-022",+ "match_when": {+ "baseline_location_rarity_gte": 0.95,+ "event_type_contains": "token"+ },+ "mitre": [+ "T1098.001"+ ],+ "name": "GitLab Token Action From a Country This Principal Has Never Used",+ "product": "gitlab",+ "service": "audit",+ "severity": "high",+ "slug": "ta-gitlab-token-action-from-rare-country"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-023",+ "match_when": {+ "action_in": [+ "create",+ "delete",+ "patch"+ ],+ "baseline_action_rarity_gte": 0.95,+ "resource_contains": "clusterrolebinding"+ },+ "mitre": [+ "T1609",+ "T1078.003"+ ],+ "name": "Kubernetes Verb This Service Account Has Never Used",+ "product": "kubernetes",+ "service": "audit",+ "severity": "high",+ "slug": "ta-k8s-rare-verb-by-service-account"+ },+ {+ "category": "threat-anomaly",+ "id": "det-threat-anomaly-024",+ "match_when": {+ "baseline_principal_volume_z_gte": 3.0,+ "resource_contains": "pods/exec"+ },+ "mitre": [+ "T1609"+ ],+ "name": "Pod Exec Volume Far Above This Principal's Normal",+ "product": "kubernetes",+ "service": "audit",+ "severity": "medium",+ "slug": "ta-k8s-exec-volume-spike"}],"version": 1diff --git a/services/fusion/tests/test_threat_anomaly_replay.py b/services/fusion/tests/test_threat_anomaly_replay.pynew file mode 100644index 000000000..a0c5124c5--- /dev/null+++ b/services/fusion/tests/test_threat_anomaly_replay.py@@ -0,0 +1,245 @@+"""Every threat-and-anomaly rule, replayed through the real engine.++Depth plan 3.5. These rules pair a threat condition with a depth plan 3.4+baseline score, and the pairing is the entire content of the rule — so the+proof has to be about the pairing and not about either half.++Why the generic fixture gate is not enough+------------------------------------------+`test_detection_matcher_parity.py` already replays every committed fixture+and asserts positives fire and negatives do not. It would pass for this+family even if every negative were a sentinel flip, and that is exactly the+measurement this repository has already found to be worthless: 423 of the+878 existing negatives invert by prefixing `not-` to the expected value, so+the rule passes its negative by failing to match a value no log source+would ever emit.++So this file asserts the properties that make the pair meaningful:++* every rule reads at least one `baseline_*` field, or it is not a+ threat-and-anomaly rule and does not belong in the family;+* every rule also reads a **threat** condition, or it is a bare anomaly+ wearing a detection's name;+* the negative is the **benign twin**: it keeps the positive's threat+ clause and differs in the baseline score — so a rule that ignored the+ baseline would fire on both and fail here;+* no negative uses the `not-` sentinel inversion;+* the event is driven through the real `DetectionEngine` with the committed+ ruleset and the engine's own enrichment, not against a bare matcher.+"""++from __future__ import annotations++import json+from pathlib import Path+from typing import Any++import pytest+from app.services.baselines import DERIVED_FIELDS+from app.services.detection_engine import DetectionEngine++_REPO = Path(__file__).resolve().parents[3]+_RULESET = _REPO / "services" / "fusion" / "app" / "data" / "detection_ruleset.json"+_FIXTURES = _REPO / "detections" / "fixtures"++TENANT = "11111111-1111-1111-1111-111111111111"+++def _family() -> list[dict[str, Any]]:+ rules = json.loads(_RULESET.read_text())["rules"]+ return [r for r in rules if str(r.get("slug", "")).startswith("ta-")]+++def _fixture(kind: str, slug: str) -> dict[str, Any]:+ path = _FIXTURES / kind / f"{slug}.json"+ assert path.exists(), f"{kind} fixture missing for {slug}"+ return json.loads(path.read_text())+++def _product(rule: dict[str, Any]) -> str:+ """The exporter flattens `log_source` into `product` / `service`."""+ return str(rule.get("product") or "aws")+++def _msg(raw_fields: dict[str, Any], product: str) -> dict[str, Any]:+ """The shape the fusion consumer hands the engine."""+ return {+ "id": "22222222-2222-2222-2222-222222222222",+ "tenant_id": TENANT,+ "ocsf_event": {+ "metadata": {"product": {"name": product}},+ "raw_data": json.dumps(raw_fields),+ },+ }+++def _fields_of(clause: Any) -> set[str]:+ from app.services.detection_matcher import _split_op # noqa: PLC0415++ out: set[str] = set()+ if isinstance(clause, dict):+ for key, value in clause.items():+ if key in {"any_of", "all_of", "not"}:+ out |= _fields_of(value)+ continue+ out.add(_split_op(key)[0])+ elif isinstance(clause, list):+ for item in clause:+ out |= _fields_of(item)+ return out+++FAMILY = _family()+++def test_the_family_is_present_and_not_empty() -> None:+ """A replay gate over an empty corpus is a gate that cannot fail."""+ assert len(FAMILY) >= 24, f"expected the 3.5 family in the ruleset, found {len(FAMILY)}"++[email protected]("rule", FAMILY, ids=lambda r: r["slug"])+def test_the_positive_fires_through_the_real_engine(rule: dict[str, Any]) -> None:+ engine = DetectionEngine(rules=[rule])+ product = _product(rule)+ hits = engine.evaluate(_msg(_fixture("positive", rule["slug"]), product))+ assert any(h.rule_id == rule["id"] for h in hits), f"positive did not fire: {rule['slug']}"++[email protected]("rule", FAMILY, ids=lambda r: r["slug"])+def test_the_benign_twin_does_not_fire(rule: dict[str, Any]) -> None:+ engine = DetectionEngine(rules=[rule])+ product = _product(rule)+ hits = engine.evaluate(_msg(_fixture("negative", rule["slug"]), product))+ assert all(h.rule_id != rule["id"] for h in hits), f"benign twin fired: {rule['slug']}"++[email protected]("rule", FAMILY, ids=lambda r: r["slug"])+def test_each_rule_reads_a_baseline_and_a_threat_condition(rule: dict[str, Any]) -> None:+ """Both halves, or it is not this family.++ A rule with no baseline field is an ordinary detection in the wrong+ directory; a rule with no threat condition is a bare anomaly, which the+ plan explicitly says is a signal and not an alert.+ """+ fields = _fields_of(rule["match_when"])+ baseline = fields & DERIVED_FIELDS+ assert baseline, f"{rule['slug']} reads no baseline field"+ assert fields - DERIVED_FIELDS, f"{rule['slug']} is a bare anomaly with no threat condition"++[email protected]("rule", FAMILY, ids=lambda r: r["slug"])+def test_the_twin_differs_only_in_the_baseline(rule: dict[str, Any]) -> None:+ """The negative must invert the clause the rule is *about*.++ A negative that changed the threat condition would prove nothing: the+ rule would not fire because the action is absent, not because the+ behaviour is normal. Requiring the baseline score to be the thing that+ moves is what makes the pair a measurement of the pairing.+ """+ slug = rule["slug"]+ positive = _fixture("positive", slug)+ negative = _fixture("negative", slug)+ baseline_fields = _fields_of(rule["match_when"]) & DERIVED_FIELDS++ moved = {f for f in baseline_fields if positive.get(f) != negative.get(f)}+ assert moved, f"{slug}: the twin does not move any baseline field"++ for field in moved:+ assert field in negative, f"{slug}: the twin drops {field} rather than making it benign"++[email protected]("rule", FAMILY, ids=lambda r: r["slug"])+def test_no_negative_uses_the_sentinel_inversion(rule: dict[str, Any]) -> None:+ """`not-<value>` and `__benign__` measure nothing about false positives.++ 423 of the 878 machine-generated negatives in the wider corpus invert+ that way. This family is hand-authored precisely so it does not, and+ the assertion is here so a later contributor reaching for `S()` is+ stopped rather than trusted.+ """+ negative = _fixture("negative", rule["slug"])+ for key, value in negative.items():+ if not isinstance(value, str):+ continue+ assert not value.startswith("not-"), f"{rule['slug']}: sentinel inversion on {key}"+ assert value != "__benign__", f"{rule['slug']}: sentinel inversion on {key}"++[email protected]("rule", FAMILY, ids=lambda r: r["slug"])+def test_the_threat_half_alone_does_not_fire(rule: dict[str, Any]) -> None:+ """Strip the baseline from the positive and the rule must go quiet.++ This is the negative control for the family as a whole. If a rule fires+ on the threat condition alone, the baseline clause is decorative and+ the rule is just a noisy detection with an anomaly field attached to+ its name.+ """+ engine = DetectionEngine(rules=[rule])+ product = _product(rule)+ event = dict(_fixture("positive", rule["slug"]))+ for field in _fields_of(rule["match_when"]) & DERIVED_FIELDS:+ event.pop(field, None)+ hits = engine.evaluate(_msg(event, product))+ assert all(h.rule_id != rule["id"] for h in hits), (+ f"{rule['slug']} fires without its baseline — the anomaly clause is decorative"+ )+++async def test_core_fires_one_end_to_end_with_no_full_service() -> None:+ """The Phase 3 "Done when", as an assertion rather than a claim.++ *"a CORE install fires a threat-and-anomaly rule on a replayed fixture+ with no `full` service running."*++ So this drives the whole CORE path and nothing else: the baseline store+ on a Redis, warmed by ordinary traffic, then the real engine's+ `evaluate_async` computing the baseline field itself rather than+ reading one planted in a fixture. Nothing imports `services/ueba`, and+ no `ueba.anomalies` message exists.++ The warm-up matters. The principal does `GetObject` forty times and+ `CreateAccessKey` once, which is what makes the key-creation rare — the+ rarity is *earned from the traffic*, not asserted.+ """+ from app.services.baselines import BaselineStore # noqa: PLC0415+ from tests.test_baselines import _FakeRedis # noqa: PLC0415++ rule = next(r for r in FAMILY if r["slug"] == "ta-aws-access-key-created-from-rare-client")+ engine = DetectionEngine(rules=[rule])+ store = BaselineStore(_FakeRedis(), min_observations=20)++ routine = {+ "eventName": "GetObject",+ "eventSource": "s3.amazonaws.com",+ "user": "[email protected]",+ "user_agent": "aws-cli/2.15.17 Python/3.11.6 Darwin/23.4.0",+ }+ for _ in range(40):+ await store.derived_fields(TENANT, routine)++ # The same engineer, the same account, over a client they have never+ # used, minting a credential.+ suspicious = {+ "eventName": "CreateAccessKey",+ "eventSource": "iam.amazonaws.com",+ "user": "[email protected]",+ "user_agent": "python-requests/2.31.0",+ }+ hits = await engine.evaluate_async(_msg(suspicious, "aws"), None, None, store)+ assert any(h.rule_id == rule["id"] for h in hits), "CORE did not fire the rule on an earned baseline"++ # The control: the same call over the client they always use. The+ # baseline is the only thing that differs, and it must be enough.+ familiar = dict(suspicious, user_agent=routine["user_agent"])+ quiet = await engine.evaluate_async(_msg(familiar, "aws"), None, None, store)+ assert all(h.rule_id != rule["id"] for h in quiet), "CORE fired on the principal's routine client"+++def test_the_family_covers_cloud_identity_saas_and_code() -> None:+ """The plan scopes 3.5 to the same surfaces as the rest of Phase 3."""+ products = {_product(r) for r in FAMILY}+ assert {"aws", "azure"} & products, "no cloud coverage"+ assert {"okta", "identity"} & products, "no identity coverage"+ assert {"google-workspace", "m365", "slack", "salesforce"} & products, "no SaaS coverage"+ assert {"github", "gitlab"} & products, "no code coverage"