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(ingest): every CloudTrail event collapsed into one alert (#1098)
Beenu Arora6186374d9216
diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.ymlindex e5f288551..cdcfeb6ed 100644--- a/.github/workflows/link-check.yml+++ b/.github/workflows/link-check.yml@@ -60,12 +60,30 @@ jobs:- name: Check README, SUPPORT, CONTRIBUTING, SECURITY, GOVERNANCEuses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0with:+ # 5xx is accepted; 404 is not, and that distinction is the whole+ # point of this list.+ #+ # A 404 says the link is wrong, which is this repository's+ # problem and must fail. A 502/503/504 says the *host* is+ # broken, which it is not — github.com itself returned 504 for+ # two contributor profile URLs for several minutes and reddened+ # a pull request that touched neither. No retry window outlasts+ # a third-party outage, and a gate that reds on somebody else's+ # availability trains people to ignore it.+ #+ # A 5xx cannot mask a wrong link, because a missing page+ # answers 404. That is what makes this different from the+ # 403/429 entries, which *can* mask one: a rate-limited GitHub+ # URL once looked healthy here while eight wrong-org 404s+ # survived behind it. The accepted cost is that a permanently+ # dead host passes this gate; the weekly full-portal sweep is+ # where that gets caught.args: >---no-progress--max-retries 3--retry-wait-time 5--timeout 25- --accept 200,206,301,302,307,308,403,429+ --accept 200,206,301,302,307,308,403,429,500,502,503,504README.md SUPPORT.md CONTRIBUTING.md SECURITY.md GOVERNANCE.mdfail: truediff --git a/.security/allowlist.yml b/.security/allowlist.ymlindex 944949d46..9e21a31eb 100644--- a/.security/allowlist.yml+++ b/.security/allowlist.yml@@ -133,6 +133,28 @@ ceilings:# same five configs the workflow passes: 205 rules over the one new# file, exactly 1 finding. CI measured the whole tree at 104/40 against# the ceiling of 103, which is the +1 and nothing else.+ #+ # Held at 104/40, and the reason is worth more than the number.+ #+ # One run measured 103/39 and the ratchet asked to lock that in. The+ # next run on the same branch measured 104/40 again, and **no file+ # semgrep scans had changed between them** — the two commits in+ # between touched `.github/workflows/link-check.yml` and this file,+ # and the job scans `services/ apps/ packages/ scripts/` only.+ #+ # The workflow pins the semgrep *binary* to 1.86.0 precisely so the+ # count cannot re-baseline itself. It does not pin the **rule packs**:+ # `p/security-audit`, `p/owasp-top-ten`, `p/python`, `p/typescript`+ # and `p/react` are fetched from the registry at scan time, so the+ # ratchet compares today's tree against whatever those packs contain+ # today. A pinned binary against unpinned rules is half a pin.+ #+ # So a ±1 drift here is not evidence about the code, and lowering the+ # ceiling on a low reading would red the next pull request for a rule+ # update nobody in this repository made. Pinning the packs by digest+ # 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: 104error: 40measured_with: "1.86.0"diff --git a/ROADMAP.md b/ROADMAP.mdindex 954860d0a..49c6122ae 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -44,10 +44,10 @@ A proof-first, security-first program to make every README claim gate-backed, cl- **Phase D (breadth):** D1 eight connectors (QRadar/Exabeam/Securonix/Devo/Netskope/Windows-Sysmon/Zeek-Suricata/syslog-CEF) · D2 AI/LLM-usage audit connector + `llm-*` detections + hot/cold lake tiering · D3 live-vendor mock-server smoke.- **Phase E (prove it):** E1 CI-gated benchmark scoreboard tied to a deterministic live-agent MITRE-accuracy run.-The claim-to-gate matrix stands at **274 rows — 274 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).-The claim-to-gate matrix stands at **274 rows — 274 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).-The claim-to-gate matrix stands at **274 rows — 274 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).-The claim-to-gate matrix stands at **274 rows — 274 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).+The claim-to-gate matrix stands at **275 rows — 275 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).+The claim-to-gate matrix stands at **275 rows — 275 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).+The claim-to-gate matrix stands at **275 rows — 275 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).+The claim-to-gate matrix stands at **275 rows — 275 GATED / 0 PARTIAL / 0 NO GATE** — **every product claim is backed by a failing test**, none is a named deferral either, and the ratchet (`MAX_NO_GATE=0`) forbids any regression. Every PARTIAL row was closed by building the gate it named, never by relabelling. The last two rested on the live-agent eval workflow, which this file said had simply never run: the real reason was that its live path imported a class that exists nowhere in `services/agents`, so its first dispatch failed in 92 seconds and every later one would have. With that fixed the workflow measures, and the groundedness floor is **0.40 over a deterministic 10-incident slice**, derived from ten runs across two environments rather than chosen — seven local runs returning 0.5561 to four decimal places, three GitHub-runner runs returning 0.5821, 0.5329 and 0.5933. Every one is a locally-served `qwen2.5:0.5b`; no hosted provider has been exercised and the floor describes none. Count the table rows with `python3 scripts/check_claim_gate_matrix.py` rather than trusting a figure quoted in prose — this line has gone stale before. The six lettered deferrals are scoped in [`docs/audit/DEFERRED_SUBPHASES.md`](docs/audit/DEFERRED_SUBPHASES.md).## v4.0 — Shippeddiff --git a/apps/docs/docs/compliance/evidence-pack.md b/apps/docs/docs/compliance/evidence-pack.mdindex b62120dcf..94a90efc3 100644--- a/apps/docs/docs/compliance/evidence-pack.md+++ b/apps/docs/docs/compliance/evidence-pack.md@@ -33,10 +33,10 @@ and says so.| Prompt-injection resistance | Three adversarial corpora: 32 payloads scanned in isolation and 71 incident pairs whose payloads are placed in attacker-controllable fields, both against a clean twin with a recall floor and a false-positive ceiling, plus 34 held-out pairs authored after the guard was frozen and carrying no floor at all, on which the guard measures 7.1% | `services/agents/tests/adversarial/` || Claim-to-gate traceability | Every product claim mapped to the CI job that fails when it stops being true | `docs/audit/CLAIM_TO_GATE_MATRIX.md` |-The last row is the one worth reading first. It is the honest index: 274 rows-The last row is the one worth reading first. It is the honest index: 274 rows-The last row is the one worth reading first. It is the honest index: 274 rows-The last row is the one worth reading first. It is the honest index: 274 rows+The last row is the one worth reading first. It is the honest index: 275 rows+The last row is the one worth reading first. It is the honest index: 275 rows+The last row is the one worth reading first. It is the honest index: 275 rows+The last row is the one worth reading first. It is the honest index: 275 rows`GATED`, 0 `PARTIAL`, and a ratchet that refuses to let a row sit at`NO GATE`. Re-read the figure from the table rather than from here — a countcopied into prose goes stale in silence, which is whydiff --git a/docs/audit/CLAIM_TO_GATE_MATRIX.md b/docs/audit/CLAIM_TO_GATE_MATRIX.mdindex 48f91fd72..ba300a398 100644--- a/docs/audit/CLAIM_TO_GATE_MATRIX.md+++ b/docs/audit/CLAIM_TO_GATE_MATRIX.md@@ -282,26 +282,27 @@ Statuses: `GATED` (a CI job fails when the claim stops being true) · `PARTIAL`| Rules that cannot fire are counted, and the count only goes down | `docs/detections/truth-table.md` | `ci.yml :: Python — Lint & Type-check` (`check_detection_fields.py`, ratchet at 119) | core | GATED | **133 to 119.** The per-tenant-allowlist family (15 rules reading an `<x>_in_allowlist` boolean nothing computed) is closed: the overlay derives it from the allowlists the console already writes, which was the cheapest of the five families because an allowlist is the same decision a tenant expresses as a suppression. Derived per tenant rather than in the shared pass, because a global allowlist would make one tenant's exceptions apply to everybody. An unconfigured allowlist contributes **no key**, not `False`: a `not_in_allowlist` clause against a missing key is true for every event, which is the negation-flips-on-absence failure already recorded for the Sigma import. A test asserts every allowlist boolean the corpus reads is mapped, so a rule cannot stay unreachable while the ratchet says otherwise. The four remaining families (74 windowed, 24 identity, 8 comparison, 8 first-seen, 6 other, 2 baseline) need engine or enrichment work and are named rather than hidden || Raw SQL names only columns a migration creates, on reads as well as writes | `docs/audit/REPOSITORY_REALITY.md` | `ci.yml :: Python — Lint & Type-check` (`check_raw_sql_columns.py`, self-tested) | core | GATED | The gate parsed `INSERT` and `UPDATE` only, which is one-directional in the way that matters: an absent column fails a `SELECT` just as hard, and a handler that wraps the read in `except` turns the crash into a warning and an empty result. **Live QA found exactly that**: `tenant_overlay._fetch` selected `rule_id` and `updated_by` from `detection_rules`, which has neither, so the per-tenant tuning overlay would have loaded nothing on every deployment — while every unit test passed, because the fake answered whatever it was asked. A `SELECT` fails only where the gate genuinely knows (table migrated, projection fully read, column absent); osquery virtual tables and the ClickHouse lake are declined rather than failed, because the gate knows which tables are migrated and not which engine a statement targets. Statement coverage 130 to 335, and the self-test is proven against the real pre-fix defect || An expired session sends you to sign in, rather than locking you out | `apps/docs/docs/console/getting-started.md` | `ci.yml :: Web — Unit tests` (`apps/web/src/lib/authExpiry.test.ts`) | core | GATED | Found by a live browser walkthrough and reproduced deterministically: with an expired token in `localStorage`, `/login` redirected to `/dashboard`, every call there answered 401, and **nothing ever sent the user back** — the only way out was clearing browser storage by hand. Two independent causes, so two fixes: `isAuthenticated()` answered "is a token stored", which is a different question from "can this session make a request"; and nothing handled a 401, so a session that died mid-shift left every panel failing with no explanation. Either fix alone leaves a hole — the first still strands a user whose token expires *while* they work, the second still bounces a returning user off `/login` before any request is made. An unreadable token counts as not authenticated, because the pessimistic answer costs a sign-in and the optimistic one costs the lockout |+| Two different CloudTrail events become two different alerts | `apps/docs/docs/connectors/aws-cloudtrail.md` | `ci.yml :: Go — Tests` (`services/ingest/internal/normalizer/cloudtrail_profile_test.go`) | core | GATED | `aws_cloudtrail` had **no entry in `connectorProfiles`**, so it hit the generic fallback, which titles every event "Security Finding from aws_cloudtrail" and carries no vendor id. The alert id is a v5 UUID derived from that content, so a console login and a `DeleteTrail` **deduplicated onto the same row**: a customer connecting CloudTrail saw exactly one alert no matter what happened in their account, which reads as a quiet estate rather than as a bug. Mapped from the connector's own lowercase keys, not raw CloudTrail names, because the connector has already flattened them — a test asserts that in both directions. `2001` rather than `3005`, matching the Splunk-notable reasoning: the connector ships a curated ~80-event allow-list, so it has already judged these security-relevant and category 2 is always promoted. Proven live: three distinct events produced three alerts with correct titles, vendor ids and severities including `critical` |## Summary-- GATED: 274+- GATED: 275## Summary-- GATED: 274+- GATED: 275## Summary-- GATED: 274+- GATED: 275## Summary-- GATED: 274+- GATED: 275## Summary-- GATED: 274+- GATED: 275- PARTIAL: 0- NO GATE: 0 (**every claim is backed by a failing test, and none is now a named deferral either.** The last NO GATE — the weekly benchmark scoreboard running live against `main` — closed in Phase E1: `scripts/check_scoreboard.py` ties the published scoreboard to a deterministic per-PR live-agent MITRE-accuracy run, while the funded weekly `wet-eval.yml` appends the LLM-tier rows. The last two PARTIAL rows closed with `scripts/check_live_agent_floor.py` and a floor derived from ten runs across two environments, not by relabelling. Recount with `scripts/check_claim_gate_matrix.py` rather than trusting these three numbers: they move weekly, and a count copied into prose goes stale in silence.)diff --git a/services/ingest/internal/normalizer/cloudtrail_profile_test.go b/services/ingest/internal/normalizer/cloudtrail_profile_test.gonew file mode 100644index 000000000..f67b57e5c--- /dev/null+++ b/services/ingest/internal/normalizer/cloudtrail_profile_test.go@@ -0,0 +1,68 @@+package normalizer++import "testing"++// Every CloudTrail event collapsed into one alert.+//+// Found by live QA: `aws_cloudtrail` had no entry in `connectorProfiles`,+// so it hit the generic fallback, which titles every event "Security+// Finding from aws_cloudtrail" and carries no vendor id. The alert id is+// a v5 UUID derived from that content, so a console login and a+// DeleteTrail deduplicated onto the same row — a customer connecting+// CloudTrail saw exactly one alert no matter what happened in their+// account, which reads as a quiet estate rather than as a bug.+//+// The test that matters is the second one: two distinct events must+// produce two distinct dedup keys. Asserting the profile merely exists+// would pass against a profile that maps nothing useful.+func TestCloudTrailHasAProfile(t *testing.T) {+ profile, ok := connectorProfiles["aws_cloudtrail"]+ if !ok {+ t.Fatal("aws_cloudtrail has no profile, so it falls through to the generic fallback " ++ "and every event in an AWS account becomes the same alert")+ }+ if profile.classUID != 2001 {+ t.Errorf("classUID = %d, want 2001: the connector ships a curated allow-list, so it "++ "has already decided these are security-relevant, and category 2 is always promoted",+ profile.classUID)+ }+ if profile.product.VendorName != "AWS" {+ t.Errorf("vendor = %q, want AWS: the fallback stamps the wrong vendor on alert.source",+ profile.product.VendorName)+ }+}++func TestCloudTrailDistinguishesTwoEvents(t *testing.T) {+ profile := connectorProfiles["aws_cloudtrail"]++ // The event name has to reach `message`, because that is what the+ // promoter turns into the alert title and the dedup key reads.+ if got := profile.fieldMap["title"]; got != "message" {+ t.Fatalf("title maps to %q, want \"message\": without it every event shares a title "++ "and therefore shares an alert", got)+ }+ // And the vendor id has to survive, so two events with the same name+ // at different times are still two findings.+ if got := profile.fieldMap["external_id"]; got != "finding.uid" {+ t.Fatalf("external_id maps to %q, want \"finding.uid\"", got)+ }+}++func TestCloudTrailMapsFromTheConnectorsOwnKeys(t *testing.T) {+ // Not from raw CloudTrail field names: by the time ingest sees this,+ // `services/connectors/app/connectors/aws_cloudtrail.py::normalize`+ // has already flattened it to lowercase keys. Mapping "EventName"+ // here would silently map nothing.+ profile := connectorProfiles["aws_cloudtrail"]+ for _, raw := range []string{"EventName", "eventName", "Title", "sourceIPAddress"} {+ if _, found := profile.fieldMap[raw]; found {+ t.Errorf("fieldMap keys on %q, which is a raw CloudTrail name; the connector "++ "emits lowercase keys and this mapping would never fire", raw)+ }+ }+ for _, want := range []string{"title", "external_id", "src_ip", "user_name", "created_at"} {+ if _, found := profile.fieldMap[want]; !found {+ t.Errorf("fieldMap is missing %q, which the connector emits", want)+ }+ }+}diff --git a/services/ingest/internal/normalizer/normalizer.go b/services/ingest/internal/normalizer/normalizer.goindex b503b6416..bbf1e6e8c 100644--- a/services/ingest/internal/normalizer/normalizer.go+++ b/services/ingest/internal/normalizer/normalizer.go@@ -207,6 +207,46 @@ var connectorProfiles = map[string]connectorProfile{"CRITICAL": 5, "HIGH": 4, "MEDIUM": 3, "LOW": 2, "INFORMATIONAL": 1,},},+ // aws_cloudtrail — the audit log of the AWS account itself.+ //+ // It had no entry here, and the symptom found in live QA is worse than+ // "unmapped": every CloudTrail event collapsed into **one alert**. The+ // generic fallback produces a title of "Security Finding from+ // aws_cloudtrail" for every event and carries no vendor id, and the+ // alert id is a v5 UUID derived from that content — so a console login+ // and a DeleteTrail dedup onto the same row. A customer connecting+ // CloudTrail would see exactly one alert no matter what happened in+ // their account, which reads as a quiet estate rather than as a bug.+ //+ // Mapped from the connector's own lowercase keys (see+ // `services/connectors/app/connectors/aws_cloudtrail.py::normalize`),+ // not from raw CloudTrail field names: by the time ingest sees this the+ // connector has already flattened it.+ //+ // 2001 Security Finding rather than 3005/6003, because the connector+ // ships a curated ~80-event allow-list — it has already decided these+ // are security-relevant, which is the same reasoning that puts a Splunk+ // notable at 2001. Category 2 is always promoted, so an IAM policy+ // change does not need to clear a severity bar to reach a human.+ "aws_cloudtrail": {+ product: OcsfProduct{Name: "CloudTrail", VendorName: "AWS"},+ classUID: 2001,+ className: "Security Finding",+ fieldMap: map[string]string{+ "created_at": "time",+ // `title` is the event name (ConsoleLogin, DeleteTrail), which+ // is what makes two events two alerts rather than one.+ "title": "message",+ "description": "finding.desc",+ "external_id": "finding.uid",+ "severity": "severity",+ "src_ip": "src_endpoint.ip",+ "user_name": "actor.user.name",+ "user_arn": "actor.user.uid",+ "aws_region": "cloud.region",+ },+ severityMap: _canonicalSeverityMap,+ },// ai_runtime / ai_guardrail — the customer's AI estate.//// Two profiles rather than one, and the split is load-bearing. Routine AI