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(docs): repair dead links, stale counts, and a hydration error found by QA (#718)
Beenu Arora0437c1c870ca
diff --git a/apps/docs/docs/api/rest.md b/apps/docs/docs/api/rest.mdindex 70ab26174..f0c558f78 100644--- a/apps/docs/docs/api/rest.md+++ b/apps/docs/docs/api/rest.md@@ -72,7 +72,7 @@ The full spec is also committed at [`docs/openapi.yaml`](https://github.com/been| Method | Path | Description ||--------|------|-------------|| `GET/POST` | `/alerts` | List / ingest alerts |-| `POST` | `/alerts/submit` | **Founder-flow direct-write submit** — synthesises an `Alert` row directly from a batch of OCSF events, bypassing Kafka / `services/ingest` / `services/fusion`. Powers `aisoc submit` and the fresh-clone demo so the console at `/alerts` lights up immediately. See [`packages/aisoc-cli`](https://github.com/aisoc-community/aisoc/tree/main/packages/aisoc-cli) and [`examples/alerts/lateral-movement.json`](https://github.com/aisoc-community/aisoc/tree/main/examples/alerts/lateral-movement.json) for the canonical payload. |+| `POST` | `/alerts/submit` | **Founder-flow direct-write submit** — synthesises an `Alert` row directly from a batch of OCSF events, bypassing Kafka / `services/ingest` / `services/fusion`. Powers `aisoc submit` and the fresh-clone demo so the console at `/alerts` lights up immediately. See [`packages/aisoc-cli`](https://github.com/beenuar/AiSOC/tree/main/packages/aisoc-cli) and [`examples/alerts/lateral-movement.json`](https://github.com/beenuar/AiSOC/tree/main/examples/alerts/lateral-movement.json) for the canonical payload. || `GET/PATCH/DELETE` | `/alerts/{id}` | Alert detail / update / delete || `POST` | `/alerts/{id}/assign` | Assign to analyst || `GET/POST` | `/rules` | Detection rule catalog |diff --git a/apps/docs/docs/architecture/itsm-as-source-of-truth.md b/apps/docs/docs/architecture/itsm-as-source-of-truth.mdindex 95780f4bb..bc40f6298 100644--- a/apps/docs/docs/architecture/itsm-as-source-of-truth.md+++ b/apps/docs/docs/architecture/itsm-as-source-of-truth.md@@ -44,7 +44,7 @@ The principle is: **anything that informs detection, response, or audit lives inThe bridge is implemented across three layers:-1. **Outbound from connectors** — `push_case` and `push_status_change` methods on the [`Jira`](https://github.com/AiSOC-community/AiSOC/blob/main/services/connectors/app/connectors/jira_connector.py) and [`ServiceNow`](https://github.com/AiSOC-community/AiSOC/blob/main/services/connectors/app/connectors/servicenow.py) connectors. These are the verbs AiSOC uses to mint a ticket and to project a status transition onto an existing one. They are declared on the connector via the [`PUSH_CASE` / `PUSH_STATUS`](/docs/connectors/api-coverage) capabilities.+1. **Outbound from connectors** — `push_case` and `push_status_change` methods on the [`Jira`](https://github.com/beenuar/AiSOC/blob/main/services/connectors/app/connectors/jira_connector.py) and [`ServiceNow`](https://github.com/beenuar/AiSOC/blob/main/services/connectors/app/connectors/servicenow.py) connectors. These are the verbs AiSOC uses to mint a ticket and to project a status transition onto an existing one. They are declared on the connector via the [`PUSH_CASE` / `PUSH_STATUS`](/docs/connectors/api-coverage) capabilities.2. **Case fan-out service** — `services/api/app/services/case_fanout.py`. When a case is created or its status changes inside AiSOC, this service iterates every connector instance for the tenant that declares `PUSH_CASE` / `PUSH_STATUS` and calls them. Successful pushes are recorded in `case_external_refs`; failures are recorded with the error and retried on the next state change.3. **Inbound webhook** — `POST /v1/inbox/itsm`, implemented in `services/api/app/api/v1/endpoints/inbox_itsm.py`. ITSM systems call this with a signed payload when a ticket they are tracking transitions; the webhook verifies the HMAC, looks up the corresponding AiSOC case via `case_external_refs`, and applies the (filtered) status change idempotently to the canonical case.diff --git a/apps/docs/docs/benchmark-methodology.md b/apps/docs/docs/benchmark-methodology.mdindex 75eebecb6..f96119705 100644--- a/apps/docs/docs/benchmark-methodology.md+++ b/apps/docs/docs/benchmark-methodology.md@@ -130,13 +130,13 @@ network round trips.| Dataset | Same `synthetic_incidents.json` (deterministic) || LLMs | Configurable via env (`AISOC_BENCH_PROVIDER=openai\|anthropic\|ollama`) || Telemetry captured | Wall-clock latency p50/p95/p99, prompt + completion tokens, USD cost |-| CI gate | [`.github/workflows/wet-eval-weekly.yml`](https://github.com/beenuar/AiSOC/blob/main/.github/workflows/wet-eval-weekly.yml) (T5.5) |+| CI gate | [`.github/workflows/wet-eval.yml`](https://github.com/beenuar/AiSOC/blob/main/.github/workflows/wet-eval.yml) (T5.5) || Output | `eval_report.json -> wet_eval` block + render to `apps/docs/static/eval/` |The weekly job pushes its results into the same `eval-results` branch as thesubstrate run, so historical trend lines stay in one place.-Cross-link: [`wet-eval-weekly.yml`](https://github.com/beenuar/AiSOC/blob/main/.github/workflows/wet-eval-weekly.yml)+Cross-link: [`wet-eval.yml`](https://github.com/beenuar/AiSOC/blob/main/.github/workflows/wet-eval.yml)is added by **T5.5** in the v8.0 plan. Until that lands, the per-templatelatency / token / USD cells on the benchmark page are placeholders ratherthan imputed numbers.diff --git a/apps/docs/docs/benchmark-scoreboard.mdx b/apps/docs/docs/benchmark-scoreboard.mdxindex fd107707a..0619317b0 100644--- a/apps/docs/docs/benchmark-scoreboard.mdx+++ b/apps/docs/docs/benchmark-scoreboard.mdx@@ -19,10 +19,16 @@ Rows tagged `substrate` are the deterministic CI gate — they execute inmicroseconds with no LLM call, no money. Their token and USD figures are**budget projections** computed from the [4-chars/token estimator and theillustrative public rate card](./benchmark-methodology.md#rate-card),-not real bills. Wet-eval rows (real agent, real LLM) start arriving the-moment the [T5.5 weekly job](./benchmark-methodology.md#3-substrate-vs-wet-eval)-lands in CI. The two row types share the same columns so the table reads+not real bills. The two row types share the same columns so the table readsuniformly, but **never quote a substrate row as live agent performance**.++**There are no wet-eval rows yet.** The+[T5.5 weekly job](./benchmark-methodology.md#3-substrate-vs-wet-eval) has+landed and runs every Monday, but this repository has no `WET_EVAL_OPENAI_KEY`+configured, so every run exits cleanly at the credential gate without calling a+model. Until a funded key is in place, every row you see below is a substrate+row. We would rather publish an empty wet-eval history than fill it with+projections relabelled as measurements.::::::info Per-PR freshness gate (Phase E1)@@ -51,9 +57,9 @@ There are two ways a row reaches that file:tagging and committed by hand under `feat(eval): scoreboard substrate rowfor v<X.Y.Z>`.2. **Wet-eval rows (T5.5 weekly job).** The- [`wet-eval-weekly.yml`](./benchmark-methodology.md#3-substrate-vs-wet-eval)+ [`wet-eval.yml`](./benchmark-methodology.md#3-substrate-vs-wet-eval)GitHub Action runs the live agent against the same 200-incident corpus- on a Sunday cadence, captures real latency / token / USD telemetry,+ on a Monday 07:00 UTC cadence, captures real latency / token / USD telemetry,and opens an auto-PR appending one row to `scoreboard.json`. Wet-evalrows show up at the top of the table and on the trend chart.diff --git a/apps/docs/docs/benchmark.md b/apps/docs/docs/benchmark.mdindex adc82fdfa..a7a29ae27 100644--- a/apps/docs/docs/benchmark.md+++ b/apps/docs/docs/benchmark.md@@ -377,7 +377,7 @@ agent driving real LLM calls. Lower is better.| Application / SaaS | <!-- T2.4 populates --> | <!-- T2.4 populates --> | <!-- T2.4 populates --> | <!-- T2.4 populates --> |> **Target gates** — aggregate p50 ≤ 60 s, aggregate p95 ≤ 120 s.-> A weekly CI job (T5.5 — `wet-eval-weekly.yml`) regrades the corpus and+> A weekly CI job (T5.5 — `wet-eval.yml`) regrades the corpus and> fails if either gate regresses by more than 10 % week-over-week.### Wet eval — Table 2 — Tokens per investigation@@ -867,7 +867,7 @@ See [`CONTRIBUTING.md`](https://github.com/beenuar/AiSOC/blob/main/CONTRIBUTING.Every published number on this page comes from a single deterministic pipeline.The provenance footer below is regenerated by the weekly wet-eval CI job-(`.github/workflows/wet-eval-weekly.yml`, landed by T5.5) and the per-PR+(`.github/workflows/wet-eval.yml`, landed by T5.5) and the per-PRsubstrate run (`.github/workflows/ci.yml`). The fields are populated from`eval_report.json` so anyone can reproduce them.diff --git a/apps/docs/docs/concepts/detections.md b/apps/docs/docs/concepts/detections.mdindex 28bb9bf8a..3b447326f 100644--- a/apps/docs/docs/concepts/detections.md+++ b/apps/docs/docs/concepts/detections.md@@ -17,8 +17,12 @@ the AiSOC engine can run as-is.| Quarantined | `detections/<source>-imports/_quarantine/<category>/` | `enabled: false` | schema + provenance, plus a populated `quarantine_reason` || Community | `detections/community/<category>/` | `enabled: false` | schema only (provenance encouraged) |-The native tier is the strict-quality, AiSOC-authored layer (currently 800-fixture-tested rules with 1,200 positive/negative fixtures). Imported tiers are+The native tier is the strict-quality, AiSOC-authored layer: 877 rules on disk,+of which **833 are executable** — the count the detection engine actually loads —+backed by 1,756 positive/negative fixtures. The 44-rule gap is native rules that+ship YAML and fixtures but have no compiled spec, so the engine never loads them;+[`docs/detections/truth-table.md`](https://github.com/beenuar/AiSOC/blob/main/docs/detections/truth-table.md)+cross-checks these counts against the loaded ruleset. Imported tiers arenormalized into the AiSOC schema bythe source-specific importers under [`tools/detection_import/`](https://github.com/beenuar/AiSOC/blob/main/tools/detection_import/README.md)and remain empty in a fresh checkout until you run them.@@ -133,8 +137,8 @@ The summary line breaks the count down by tier and quarantine state so atypical green CI run looks like:```-Validated 6913 rules — 6913 passed, 0 failed, 0 fixture warnings- Tiers: native=800 imported=6113 (quarantined=5937)+Validated 6991 rules — 6991 passed, 0 failed, 0 fixture warnings+ Tiers: native=877 imported=6113 community=1 (quarantined=5937)```Counts move as importers refresh upstream sources; the line above is adiff --git a/apps/docs/docs/concepts/live-actions.md b/apps/docs/docs/concepts/live-actions.mdindex bcf12ce43..a9aaf3e4f 100644--- a/apps/docs/docs/concepts/live-actions.md+++ b/apps/docs/docs/concepts/live-actions.md@@ -164,7 +164,7 @@ makes it easier to wire up "Preview action" buttons in UIs that should## Writing a plugin executor-Plugin authors implement [`LiveActionExecutor`](https://github.com/aisoc-platform/aisoc/blob/main/services/actions/app/live_actions/executor.py)+Plugin authors implement [`LiveActionExecutor`](https://github.com/beenuar/AiSOC/blob/main/services/actions/app/live_actions/executor.py)and call `register_executor()` from their plugin's `setup()` hook:```pythondiff --git a/apps/docs/docs/connectors/api-coverage.md b/apps/docs/docs/connectors/api-coverage.mdindex 4560028a8..4532b8a31 100644--- a/apps/docs/docs/connectors/api-coverage.md+++ b/apps/docs/docs/connectors/api-coverage.md@@ -6,7 +6,7 @@ description: Per-connector capability coverage — which connectors can pull ale# Capability matrix-Every connector in AiSOC declares a set of **capabilities** — concrete verbs the orchestrator and agents are allowed to ask it to perform. Capabilities are not free text; they are members of the [`Capability` enum](https://github.com/AiSOC-community/AiSOC/blob/main/services/connectors/app/connectors/base.py) defined in `services/connectors/app/connectors/base.py`. The agent runtime, the federated-search planner, and the case-fanout service all consult this set before dispatching work; a connector that does not declare `PUSH_CASE`, for example, will simply be skipped when AiSOC tries to mint an ITSM ticket.+Every connector in AiSOC declares a set of **capabilities** — concrete verbs the orchestrator and agents are allowed to ask it to perform. Capabilities are not free text; they are members of the [`Capability` enum](https://github.com/beenuar/AiSOC/blob/main/services/connectors/app/connectors/base.py) defined in `services/connectors/app/connectors/base.py`. The agent runtime, the federated-search planner, and the case-fanout service all consult this set before dispatching work; a connector that does not declare `PUSH_CASE`, for example, will simply be skipped when AiSOC tries to mint an ITSM ticket.This page is the canonical "what works where" reference. It is generated from the connector source and is kept in sync with the registry in `services/connectors/app/connectors/__init__.py`.@@ -125,4 +125,4 @@ If you are extending an existing connector to do more (e.g. teaching SentinelOne3. Add a focused unit test under `services/connectors/tests/` — happy path, error path, and one vendor-specific edge case (status mapping, ID resolution, transitions).4. Update this page so the matrix stays honest. The capability column is the contract the rest of the system relies on; if the matrix says `ISOLATE_HOST`, the runtime will route isolation requests to that connector.-The full method signatures and contracts are in [`base.py`](https://github.com/AiSOC-community/AiSOC/blob/main/services/connectors/app/connectors/base.py); for end-to-end ITSM examples see the [Jira](/docs/connectors/) and [ServiceNow](/docs/connectors/) connector docs (per-vendor walkthroughs).+The full method signatures and contracts are in [`base.py`](https://github.com/beenuar/AiSOC/blob/main/services/connectors/app/connectors/base.py); for end-to-end ITSM examples see the [Jira](/docs/connectors/) and [ServiceNow](/docs/connectors/) connector docs (per-vendor walkthroughs).diff --git a/apps/docs/docs/console/funnel-kpis.md b/apps/docs/docs/console/funnel-kpis.mdindex 376d81505..e142a8de6 100644--- a/apps/docs/docs/console/funnel-kpis.md+++ b/apps/docs/docs/console/funnel-kpis.md@@ -194,7 +194,7 @@ A few design choices are worth calling out:1. **One endpoint, two widgets.** `FunnelKpiBar` and `EfficiencyReport` are split for layout reasons, not data-fetching reasons. Sharing the SWR key means the dashboard makes one network call for both. If we ever need to refresh the efficiency report independently, the cache key would split.2. **No mock data, anywhere.** The previous `34%` SNR in `NoiseTuningView` was the only mocked KPI left in v1.4. It now reads from this endpoint and falls back to a deterministic local computation only when the API is unreachable — never to a fixed constant.-3. **Stages, not connectors.** The reference SOC console renders pipeline health per-stage, not per-connector, because operators want to know "is fusion behind?" — not "which of 47 connectors is having a bad day." The connector health page (`/health`) still exists for the per-connector drill-down.+3. **Stages, not connectors.** The reference SOC console renders pipeline health per-stage, not per-connector, because operators want to know "is fusion behind?" — not "which of 84 connectors is having a bad day." The connector health page (`/health`) still exists for the per-connector drill-down.4. **Worst-status badge.** The top-of-rail status is intentionally pessimistic. A single red stage flips the rail to red, because in SOC operations the worst link defines the chain.## Operator playbookdiff --git a/apps/docs/docs/console/public-replay.md b/apps/docs/docs/console/public-replay.mdindex ca43ac0cb..f867bbd29 100644--- a/apps/docs/docs/console/public-replay.md+++ b/apps/docs/docs/console/public-replay.md@@ -6,12 +6,15 @@ sidebar_label: Public replays# Public investigation replaysTurn any investigation ledger into an **immutable, redacted, public share link**-at `tryaisoc.com/r/<slug>` so you can show how the agent reasoned through a case —-in a blog post, an incident write-up, or a talk — without exposing your+at `<your-console>/r/<slug>` so you can show how the agent reasoned through a+case — in a blog post, an incident write-up, or a talk — without exposing yourenvironment.-The canonical demo replay is the seeded LockBit 3.0 case:-[`tryaisoc.com/r/demo-lockbit`](https://tryaisoc.com/r/demo-lockbit).+Replays are served by your own deployment, so the host is whatever+`CONSOLE_PUBLIC_BASE_URL` points at. On a local stack that is+`http://localhost:3000/r/<slug>`. The seeded LockBit 3.0 case ships with the+demo data as slug `demo-lockbit`; there is no hosted public instance to link+to right now, so run the demo seed locally to see it.## What a viewer sees@@ -69,12 +72,13 @@ redacted snapshot is persisted; the alias map is returned in the preview and is## Badges-shields.io-compatible endpoint badges live at `tryaisoc.com/api/badge/<kind>`+shields.io-compatible endpoint badges live at `<your-console>/api/badge/<kind>`(`triaged`, `noise-suppressed`, `benchmark`, `verified-detection`, `self-play`).-Embed one in a README:+The endpoint must be publicly reachable for shields.io to render it. Embed one+in a README:```markdown-+```Callers can override the message/label/color via query params (e.g. the GitHubdiff --git a/apps/docs/docs/detections/coverage.md b/apps/docs/docs/detections/coverage.mdindex 38e6cee17..0e73dbb9b 100644--- a/apps/docs/docs/detections/coverage.md+++ b/apps/docs/docs/detections/coverage.md@@ -57,5 +57,5 @@ Generated: `2026-09-22T15:54:13Z`## How to audit-The curated rule IDs are listed in [`marketplace/curated.json`](https://github.com/aisoc-platform/aisoc/blob/main/marketplace/curated.json) under each family. Every entry has a `path` field pointing at the on-disk YAML. Run `pnpm marketplace:curate --check` in CI to enforce drift; run `python3 scripts/curate_detections.py` locally to regenerate.+The curated rule IDs are listed in [`marketplace/curated.json`](https://github.com/beenuar/AiSOC/blob/main/marketplace/curated.json) under each family. Every entry has a `path` field pointing at the on-disk YAML. Run `pnpm marketplace:curate --check` in CI to enforce drift; run `python3 scripts/curate_detections.py` locally to regenerate.diff --git a/apps/docs/src/components/Scoreboard/index.tsx b/apps/docs/src/components/Scoreboard/index.tsxindex 93bb09b01..3cbbd8de9 100644--- a/apps/docs/src/components/Scoreboard/index.tsx+++ b/apps/docs/src/components/Scoreboard/index.tsx@@ -147,9 +147,12 @@ function MitreSparkline({ rows }: { rows: ScoreboardRow[] }) {r={3.5}className={p.row.substrate ? styles.dotSubstrate : styles.dotWet}>+ {/* Single interpolation: multiple children make React emit+ comment separators that SVG <title> drops on hydration. */}<title>- {p.row.date} • {p.row.agent_version} • MITRE {pct(p.y)} •{" "}- {p.row.substrate ? "substrate" : "wet eval"}+ {`${p.row.date} • ${p.row.agent_version} • MITRE ${pct(p.y)} • ${+ p.row.substrate ? "substrate" : "wet eval"+ }`}</title></circle></g>diff --git a/scripts/curate_detections.py b/scripts/curate_detections.pyindex 7733a6f5b..fa341adbc 100644--- a/scripts/curate_detections.py+++ b/scripts/curate_detections.py@@ -859,7 +859,7 @@ def build_report(manifest: dict[str, Any]) -> str:lines.append("")lines.append("The curated rule IDs are listed in "- "[`marketplace/curated.json`](https://github.com/aisoc-platform/aisoc/blob/main/marketplace/curated.json) "+ "[`marketplace/curated.json`](https://github.com/beenuar/AiSOC/blob/main/marketplace/curated.json) ""under each family. Every entry has a `path` field pointing at the ""on-disk YAML. Run `pnpm marketplace:curate --check` in CI to enforce ""drift; run `python3 scripts/curate_detections.py` locally to regenerate."