From f4cea19023c331c052d1585e45ec76cc4f7fcab7 Mon Sep 17 00:00:00 2001 From: beenuar Date: Sun, 22 Nov 2026 14:13:14 -0800 Subject: [PATCH] fix(docs): the vendor-door row cites the intake worker by its full path --- docs/audit/CLAIM_TO_GATE_MATRIX.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/audit/CLAIM_TO_GATE_MATRIX.md b/docs/audit/CLAIM_TO_GATE_MATRIX.md index ba3b91447..ab60aff40 100644 --- a/docs/audit/CLAIM_TO_GATE_MATRIX.md +++ b/docs/audit/CLAIM_TO_GATE_MATRIX.md @@ -14,6 +14,7 @@ Statuses: `GATED` (a CI job fails when the claim stops being true) · `PARTIAL` | Re-observing a REFUSED AI asset **no longer silently downgrades its judged score** — the recorder's upsert preserved-by-CASE what the sanction route wrote (the defect was the SQL: `_score()` is sanction-blind by design and `EXCLUDED.risk_score` overwrote the +30 "Reviewed and refused, and still running" with "Not declared" on every flush) — and it now **raises a high-severity triage alert citing the sanction decision**, once per flush, through the ordinary fusion path; containment stays a governed playbook step | `services/fusion/app/services/ai_asset_recorder.py`; `services/fusion/app/workers/consumer.py` | `integration.yml :: The AI recorder preserves judgements and versions MCP manifests (live Postgres)` (the judged score survives re-observation for refused AND approved — a judgement is a judgement — while an unjudged score is refreshed; the refused notice surfaces exactly once per flush; fails on the pre-change tree where the overwrite was the upsert's behaviour) + `ci.yml :: Python — Tests` (fusion `test_refused_asset_alerts.py`: each notice becomes one HIGH alert with the decision cited, a malformed notice is skipped not wedging) | core | GATED | Negative control recorded in the PR: the pre-fix SQL fails the judgement-survival cases | | MCP manifests are **versioned per (tenant, server) from hashes computed in the customer's process** — the SDK ships tool name + description SHA-256 + annotations, never description text, with at most one ≤80-char snippet and only for a description that already tripped an instruction pattern — and drift is a triage alert naming what moved: a hash that changed on an existing tool, a newly added state-changing tool, instruction-shaped text (HIGH — that is the poisoning shape itself); **shadow AI** is sighted from SWG/DNS telemetry against a shipped catalog whose every row is a vendor's own documented product domain with per-row provenance, and the sighting states `cannot_see_prompts` outright; **prompt sensitive-class counts** are opt-in, local regex, counts only — off by default means the field is ABSENT, and the standing prompt-content-never-leaves claim stays exactly true | `packages/aisoc-ai-sdk/aisoc_ai/{manifest,classes}.py`; migration 176; `services/fusion/app/data/ai_app_catalog.json` | `integration.yml :: The AI recorder preserves judgements and versions MCP manifests (live Postgres)` (same manifest touches not duplicates, changed manifest versions with `description_drift` and `new_state_changing_tool` named, a first manifest's flagged description IS a finding) + `ci.yml :: Python — Tests` (sdk `test_ai_sdk.py`: descriptions hashed never shipped, bounded snippet only-when-tripped, counts-only classifier, off-by-default means absent; fusion `test_ai_session_rules.py`'s template pin covers the new `mcp_tools`/`prompt_class_counts` mappings; the catalog's non-member domain produces no sighting) | core | GATED | Negative control recorded in the PR: disabling the hash comparison fails the live drift case | | Email-security vendor alerts are a **fourth phishing-intake door**: a Proofpoint TAP, Mimecast TTP, Abnormal, Sublime or Defender-for-O365 alert whose PUBLISHED fields name a message becomes a `vendor_alert` intake record and joins **the same campaigns user reports join** (same `record_report`, same grouping, same recipient rows, same purge scaling) — each mapper names the vendor payload keys it reads, a field the vendor did not publish stays empty rather than guessed, an alert naming no message is refused (`None`, never invented identity), and Defender alerts from the non-email products are refused by `serviceSource`; the worker's daily sweep is idempotent through `record_report`'s own upsert/ON-CONFLICT shape, so there is no cursor to corrupt | `services/api/app/services/phishing/vendor_intake.py`; the sweep arm in `workers/phishing_report_intake.py` | `ci.yml :: Python — Tests` (api `test_phishing_ws3.py::TestVendorIntake`: published-fields-only incl. url-type threat filtering, the no-identity refusal across two vendors, the Defender email-product gate, the unknown-connector refusal) + `scripts/check_tenant_query_predicates.py` (the sweep's enumeration recorded with the shape rationale, ratchet 80 → 81) | core | GATED | - | +| Email-security vendor alerts are a **fourth phishing-intake door**: a Proofpoint TAP, Mimecast TTP, Abnormal, Sublime or Defender-for-O365 alert whose PUBLISHED fields name a message becomes a `vendor_alert` intake record and joins **the same campaigns user reports join** (same `record_report`, same grouping, same recipient rows, same purge scaling) — each mapper names the vendor payload keys it reads, a field the vendor did not publish stays empty rather than guessed, an alert naming no message is refused (`None`, never invented identity), and Defender alerts from the non-email products are refused by `serviceSource`; the worker's daily sweep is idempotent through `record_report`'s own upsert/ON-CONFLICT shape, so there is no cursor to corrupt | `services/api/app/services/phishing/vendor_intake.py`; the sweep arm in `services/api/app/workers/phishing_report_intake.py` | `ci.yml :: Python — Tests` (api `test_phishing_ws3.py::TestVendorIntake`: published-fields-only incl. url-type threat filtering, the no-identity refusal across two vendors, the Defender email-product gate, the unknown-connector refusal) + `scripts/check_tenant_query_predicates.py` (the sweep's enumeration recorded with the shape rationale, ratchet 80 → 81) | core | GATED | - | | Campaign **recipient scoping** answers clicked / replied-or-forwarded / credential-submitted per recipient with the three-outcome discipline PER CHECK: `no` requires connected telemetry that answered (zscaler-connected-zero-events is `no` WITH the source named; absent mail audit on the same recipient stays `could_not_check`), absent telemetry names the missing sources, an unreachable lake is `could_not_check` everywhere, and `credential_submitted: yes` means precisely "a sign-in from an address this account had not used in the prior 14 days followed the click" — and the response proposals scale **revocation and reset with established credential risk only** while purge scales with the whole list (proposals, on the governed path, never auto-dispatched) | `services/api/app/services/phishing/recipient_scoping.py`; `GET /phishing/campaigns/{id}/recipient-scoping` | `ci.yml :: Python — Tests` (api `test_phishing_ws3.py::TestRecipientScoping`, 4 cases: missing-sources-named; no-requires-connected-telemetry with the mail-audit contrast on the same recipient; credential-risk-scales-revocation with the new-address detail asserted; unreachable-lake honesty incl. the empty-lists-are-honesty note) | core | GATED | Negative control recorded in the PR: making absent telemetry read as 'no' fails the discipline case | | **BEC signals are evidence, never a verdict**, each carrying its source: lookalike domains by one-edit/homoglyph/punycode string analysis against the tenant's own domains; **VIP display-name borrowing** against the tenant's VIP list (migration 177 — the VIP's own address is NOT impersonation, pinned); **first-seen sender scoped honestly to the pipeline's own history** (the caveat is part of the signal text, the full mail-flow baseline is a recorded follow-up); Reply-To mismatch from the message's own headers (absent header = no signal, never a mismatch); **domain-age is refused with its reason** (no WHOIS/RDAP source configured — a registration date would be invented) and the campaign endpoint publishes the `not_computed` list; **reporter feedback** is OFF by default, policy-gated 409 when off, a FIXED template whose only variables are the neutralized subject and disposition, delivered through the outbound-webhook queue so every delivery is recorded; and the **org-level gateway block** exists as the real vendor verb — a Mimecast Blocked Senders policy (`create-policy`/`get-policy`/`delete-policy`, OAuth2 client-credentials API 2.0) behind new governed capabilities `block_sender_org`/`unblock_sender_org` (MODERATE impact, analyst approval, readback verification probes both ways, rollback by the policy id the action returned), refused BY NAME for vendors publishing only per-mailbox blocks, and PROPOSED from scoping only when the tenant's policy switch is on | `services/api/app/services/phishing/bec_signals.py`; migration 177; `services/actions/app/clients/mimecast_client.py` + executors/contracts/probes | `ci.yml :: Python — Tests` (api `test_phishing_ws3.py::TestBecSignals`, 7 cases; actions `test_capability_reachability.py`'s existing parametrized gates now cover the two new capabilities: vocabulary membership, contract presence, executor delegation) | core | GATED | - | | A DLP alert normalizes into one finding whatever vendor raised it — policy, rule, data classes, file name/hash/size, channel, destination and its class, the enforcement the DLP product itself applied (`blocked` / `warned` / `allowed` / `audited`), user and device — with per-source profiles mapping only vendor-documented fields: an absent fact stays empty, a destination class is derived only from explicit vendor facts, an unstated enforcement stays null, and a source without a profile yields no finding rather than a best-effort parse | `services/api/app/services/dlp_finding.py`; `GET /alerts/{id}/dlp-finding` | `ci.yml :: Python — Tests` (api, `test_dlp_finding.py`, 15 cases over the vendors' own published shapes — Netskope's DLP alert export sample, the O365 Management Activity DLP schema with its 1–5 EnforcementMode ladder, Graph `alerts_v2` evidence objects — including absent-stays-empty, the managed_app-only destination-class rule, and the honest `finding: null` route answer) | core | GATED | Negative control recorded in the PR: corrupting one enforcement mapping fails two cases |