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
chore(release): v20.3.0 (#1565)
Beenu Arorae3edeb857ddd
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ca0a4e497..74f39e4a3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,8 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+## [20.3.0] - 2026-10-30++### Added++- **The BYOK selector can ask a custom endpoint what it serves** (#1543,+ externally contributed by [vito-bush](https://github.com/vito-bush)).+ `POST /api/v1/llm/credentials/models` lists the chat-capable models an+ OpenAI-compatible endpoint publishes at `GET {base}/models`, so the+ `custom` provider's model no longer has to be a hand-typed id — closing+ the gap the #1481 review named. Bounded (10 s whole-exchange deadline,+ 2 MB decoded cap, 500 models returned), redirects refused, the air-gap+ and SSRF guards applied before anything is dialled, and the stored key+ is sent only to the stored base URL — a form pointing at a changed URL+ makes a keyless request. Discovery filters a dropdown; the Test button+ stays the proof a model answers, and the typed id remains for endpoints+ that publish no list.+- **Prompt bytes are capped at the egress chokepoint** (#1554, externally+ contributed by [alexmateescu](https://github.com/alexmateescu)).+ `AISOC_LLM_MAX_PROMPT_BYTES` (default 240,000) bounds every gateway+ call inside the same `safe_*` functions the LLM contract already owns:+ oversized prompts are truncated by water-filling across the non-system+ messages — largest contributors clipped to a fair share, the system+ prompt preserved verbatim, every cut marked in the text — instead of+ being rejected wholesale by the provider's own guard and retried+ forever.+### Changed+- **Auto-triage's output ceiling moves 512 → 2,048 tokens** (#1558,+ externally contributed): verdicts carrying a long rationale were+ clipped mid-JSON, forcing re-asks or the deterministic fallback. The+ reliability harness's `MAX_TOKENS` moves with it — the parity test that+ went red on the one-line bump is the drift guard doing its job — and+ the published 44/50 → 50/50 figures stay true as statements about the+ 512-era run they measured; the next harness run grades 2,048.- **The console's root URL now lands an operator on their console.** On aclean self-hosted install, `/` rendered the project's marketing landingpage — neither the dashboard nor the login page the operator was looking@@ -23,6 +56,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0answer comes from the container's environment on every request, and thedecision is pinned in both directions by `apps/web/src/app/page.test.tsx`.+### Fixed++- **Five GitHub detection rules could not fire and five more claused on+ evidence the org audit log cannot carry** (#1547, closing #1545; the+ external report was substantially correct — measured before coding,+ 1 of 12 GitHub rules fired on real connector output). Four rules+ expected an unprefixed event type the connector has never emitted; the+ deploy-key rule matched `deploy_key.create`, an action that does not+ exist in GitHub's vocabulary (deploy keys log as `public_key.create`,+ now matched with a repo-qualifier and a negative fixture); wrong action+ values were re-claused to GitHub's documented audit vocabulary+ (`repo.access`, `org./repo.register_self_hosted_runner`); the windowed+ deploy-key rule's `distinct_by` named a key the entries do not carry;+ and two actions in the connector's severity list do not exist. Five+ rules whose evidence the audit log cannot carry are quarantined with+ recorded reasons; one (`ip_is_internal`) became real instead, derived+ from `src_ip`. A new CI gate replays every GitHub rule through the real+ connector and real engine — it failed with 11 findings on the pre-fix+ tree — and the executable count honestly moves **2,535 → 2,530** across+ every pinned surface, including the technical guide (#1550).+- **A saved connector that had polled once answered 422 to every+ test-connection** (#1555, externally contributed): the route merged the+ stored `connector_config` verbatim into the constructor, and the first+ recorded `checkpoint` became an unexpected keyword argument. The route+ now strips scheduler-owned keys through the same `_connector_kwargs`+ exclusion every other construction site uses — one set, so the next+ scheduler-only key cannot drift past it — with a route-level regression+ test that answers 422 on the pre-fix tree.+- **Fresh chatops deploys crash-looped** (#1556, externally contributed):+ teams-bot cross-loads slack-bot source at `/slack-bot`, which neither+ its image nor compose provided — `ModuleNotFoundError` at startup.+ Compose now mounts the sibling read-only. The published image still+ cannot boot standalone outside this compose file; #1563 tracks the+ vendored-copy fix that removes the mount.+- **Deterministic 400s from the inference gateway are terminal for the+ fused-alert consumer** (#1554): a request rejected as invalid is+ rejected because of its bytes, so replaying identical bytes burned+ retries and pinned the inference machine for every other alert — a+ live-observed retry storm. Such failures now dead-letter on first+ sight under their own `triage-terminal` stage, while transient errors+ keep their full retry ladder (both directions tested).+- **Playbook agent-event delivery dialled a dead port on every compose+ deployment** (#1557, externally contributed): the agents service never+ received `REALTIME_URL`, and its code default names `realtime:3001` —+ a port the realtime service has never served (compose runs it on+ 4000). Compose now passes `REALTIME_URL` and+ `AISOC_INVESTIGATION_MAX_SECONDS` through, so `.env` tuning of the+ investigation wall-clock budget stops being inert; #1564 tracks the+ code-default correction.+- The technical guide moved to v1.1 (#1546): the Windows section told+ operators to run `install.ps1` from an elevated PowerShell, which the+ installer's own help contradicts; counted figures re-derived; the+ model-discovery feature documented with its credential scoping.+### Security- **Dependencies (archived prototype):** the historical connector-ts SDK underdiff --git a/README.md b/README.mdindex ac69f3944..eee0709bf 100644--- a/README.md+++ b/README.md@@ -6,7 +6,7 @@**An open-source, self-hostable AI Security Operations Center.** It ingests your security telemetry, detects and correlates threats, investigates them with AI agents whose reasoning is fully auditable, and proposes responses a human approves.-[](https://opensource.org/licenses/MIT) [](CHANGELOG.md) [](https://github.com/beenuar/AiSOC/actions/workflows/ci.yml)+[](https://opensource.org/licenses/MIT) [](CHANGELOG.md) [](https://github.com/beenuar/AiSOC/actions/workflows/ci.yml)[](https://github.com/beenuar/AiSOC/actions/workflows/codeql.yml) [](https://securityscorecards.dev/viewer/?uri=github.com/beenuar/AiSOC) [](https://raw.githubusercontent.com/beenuar/AiSOC/main/apps/web/public/papers/aisoc-technical-guide.pdf)**[Technical Guide (PDF)](https://raw.githubusercontent.com/beenuar/AiSOC/main/apps/web/public/papers/aisoc-technical-guide.pdf)** · [Docs](https://beenuar.github.io/AiSOC/) · [Architecture](docs/architecture/README.md) · [What actually works](docs/audit/REPOSITORY_REALITY.md) · [Discussions](https://github.com/beenuar/AiSOC/discussions)diff --git a/RELEASES.md b/RELEASES.mdindex e545adb54..825f994b9 100644--- a/RELEASES.md+++ b/RELEASES.md@@ -2,7 +2,9 @@This file mirrors what used to live in the "What's new" section of [`README.md`](README.md). The complete, machine-readable inventory (with file paths, env-var diffs, and per-release test counts) lives in [`CHANGELOG.md`](CHANGELOG.md).-> **TL;DR for first-time visitors:** AiSOC is on `v20.2.1`, released 2026-10-28. **A security release, no breaking changes.** It closes [GHSA-9m2j-23jf-gg3p](https://github.com/beenuar/AiSOC/security/advisories/GHSA-9m2j-23jf-gg3p), a medium-severity denial of service reported by [q7256](https://github.com/q7256): the phishing header analysis scanned a reported message's `From` display name with an unanchored regex, so a long display name containing no address-like substring was re-consumed from every interior position — quadratic, measured at 33 s for 128 KB on maintainer hardware (71 s in the reporter's measurement) — and `POST /api/v1/phishing/reports`, reachable by the default analyst role via `cases:write`, runs that scan synchronously on the event loop, so **one crafted phishing report stalled every other request on the API process**, including unauthenticated health checks. The fix applies two independent bounds: a lookbehind pins each match attempt to the start of a local-part run (interior starts now fail in O(1), match set unchanged), and the display name is analysed on its first kilobyte only (RFC 5322 caps a header line at 998 octets), which also keeps the finding's stored `evidence` out of the megabyte range. 128 KB now completes in 26 ms — ~1,270× faster, and linear. The regression test was demonstrated failing on the pre-fix tree and failing again under a reverted-fix negative control; every other regex in the phishing package was audited for the same class, and the one suspicious-looking sibling was *measured* linear and deliberately left unchanged. **If you run v19.0.0 through v20.2.0 and provision analyst accounts, upgrade.** 1 defect was fixed in this release, 23 across it and the two before (1 here, 11 in v20.2.0, 11 in v20.1.0 — counting distinct product or CI defects named in each release's Fixed and Security sections, dependency-version advisories excluded). The chart publishes as **`7.11.1`**, a patch because only `appVersion` moves. Neither `stable` channel moves. Everything below describes v20.2.0 and earlier, which this release does not change.+> **TL;DR for first-time visitors:** AiSOC is on `v20.3.0`, released 2026-10-30. **The community-contributions release: six externally contributed fixes merged in one pass, the console's front door fixed, and the detection corpus made more honest again.** A clean self-hosted install's `/` rendered the project's *marketing page* — neither the dashboard nor the login page an operator expects (reported in discussion #1549); it now redirects to `/login`, which routes onward by itself (first run → setup wizard, signed in → dashboard), and a deployment that *is* the public site opts back in with the runtime `AISOC_MARKETING_HOME`. The `custom` LLM provider's model id no longer has to be typed by hand: **`POST /api/v1/llm/credentials/models` asks any OpenAI-compatible endpoint what chat models it serves** (externally contributed — the exact vendor-neutral gap the #1481 review offered), bounded, SSRF/air-gap-guarded, and the stored key goes only to the stored base URL. An external report that **1 of 12 GitHub detection rules fired on real connector output was substantially correct**: five rules re-claused to GitHub's documented audit vocabulary (the deploy-key rule matched an action that does not exist — deploy keys log as `public_key.create`), five quarantined with recorded reasons, one claim refuted with measurement, a CI gate now replays every GitHub rule through the real connector (11 findings on the pre-fix tree), and the executable count honestly moves **2,535 → 2,530**. Community fixes from [alexmateescu](https://github.com/alexmateescu) close a retry storm (deterministic gateway 400s now dead-letter on first sight; prompt bytes capped at the egress chokepoint with water-filling truncation), a saved connector 422-ing every test-connection once it had polled, fresh chatops deploys crash-looping on a missing sibling mount, playbook agent-events dialling a port realtime never served, and triage verdicts clipped mid-JSON at 512 output tokens (now 2,048, with the reliability harness moving in lockstep — its parity test going red on the one-line bump is the drift guard working). Three dependency advisories cleared (`@hono/node-server` 2.1.5, `decode-uri-component` 0.5.1, archived-SDK `zod` 4.6.6). **10 defects were fixed in this release, 22 across it and the two before** (10 here, 1 in v20.2.1, 11 in v20.2.0 — counting distinct product or CI defects named in each release's Fixed and Security sections, dependency-version advisories excluded). No breaking changes; **neither `stable` channel moves**. The chart publishes as **`7.12.0`** — nothing inside the chart directory moves except `appVersion`, and the chart's step mirrors the app's, exactly as `7.10.0` shipped v20.1.0's minor on an `appVersion`-only change (a chart *patch* is reserved for shipping an app patch, as `7.11.1` did for v20.2.1). Everything below describes v20.2.1 and earlier, which this release does not change.+>+> **Previously:** AiSOC was on `v20.2.1`, released 2026-10-28. **A security release, no breaking changes.** It closes [GHSA-9m2j-23jf-gg3p](https://github.com/beenuar/AiSOC/security/advisories/GHSA-9m2j-23jf-gg3p), a medium-severity denial of service reported by [q7256](https://github.com/q7256): the phishing header analysis scanned a reported message's `From` display name with an unanchored regex, so a long display name containing no address-like substring was re-consumed from every interior position — quadratic, measured at 33 s for 128 KB on maintainer hardware (71 s in the reporter's measurement) — and `POST /api/v1/phishing/reports`, reachable by the default analyst role via `cases:write`, runs that scan synchronously on the event loop, so **one crafted phishing report stalled every other request on the API process**, including unauthenticated health checks. The fix applies two independent bounds: a lookbehind pins each match attempt to the start of a local-part run (interior starts now fail in O(1), match set unchanged), and the display name is analysed on its first kilobyte only (RFC 5322 caps a header line at 998 octets), which also keeps the finding's stored `evidence` out of the megabyte range. 128 KB now completes in 26 ms — ~1,270× faster, and linear. The regression test was demonstrated failing on the pre-fix tree and failing again under a reverted-fix negative control; every other regex in the phishing package was audited for the same class, and the one suspicious-looking sibling was *measured* linear and deliberately left unchanged. **If you run v19.0.0 through v20.2.0 and provision analyst accounts, upgrade.** 1 defect was fixed in this release, 23 across it and the two before (1 here, 11 in v20.2.0, 11 in v20.1.0 — counting distinct product or CI defects named in each release's Fixed and Security sections, dependency-version advisories excluded). The chart publishes as **`7.11.1`**, a patch because only `appVersion` moves. Neither `stable` channel moves. Everything below describes v20.2.0 and earlier, which this release does not change.>> **Previously:** AiSOC was on `v20.2.0`, released 2026-10-28. **The first-run-truth release: a fresh Windows install could not boot — and nothing could see it — and the install documentation described a different product; both are fixed, with gates so neither drifts back.** `install.ps1` initialised `.env` with a plain copy of the template, which provisions an environment no real deployment would boot (`ENVIRONMENT=production` with four empty secrets is exactly what `enforce_secure_defaults` refuses), and a Postgres already on 5432 or an Ollama on 11434 — the two conflicts most likely in this audience's environment — ended the install with advice to hand-edit `docker-compose.yml`, while `README.md` promised the opposite. Both paths now run the same generators `make up` runs (`scripts/ensure_env.py`, `scripts/resolve_port_conflicts.py`), a `windows-latest` CI job proves every generated secret lands non-empty, and the installer-parity gate reads the installer's action lines rather than its help text — three of its assertions had been passing on a script that merely *mentioned* the commands. The docs sweep corrected a quickstart advertising a machine 1.5 GB smaller than the measured requirement, an installation page saying "fourteen" CORE containers (sixteen — the number word survived every digit-based check, so the profile-count gate now reads words too), and four surfaces advertising Swagger at an address the production-class stack answers 404 on. The on-ramps consolidated to ones that can prove themselves: `render.yaml` is removed (a paid one-click path to a populated console that cannot answer whether the pipeline works — no ingest, no fusion, Kafka disabled), and the devcontainer attach banner and sandbox README stopped pointing at the demo compose file whose own header says not to evaluate with it. The Jira connector moved to `GET /rest/api/3/search/jql` after Jira Cloud removed the old endpoint (410 Gone on every poll); the nightly reproducible-builds aggregator stopped reading its own matrix's designed skip as lost coverage. The image `stable`-channel guard that had **failed open** across the v19 → v20 application major — a buildx read came back empty, and "empty" was read as "first release" — now reads the registry HTTP API with three states, where a tag that is present but unreadable **blocks** the channel; the channel itself was restored to v19.0.0 by the dispatchable repair workflow, the recorded owner decision. `qs` moves to **6.17.0** via the repo-wide override ([GHSA-6pq8-jhm2-2vcw](https://github.com/advisories/GHSA-6pq8-jhm2-2vcw), medium), and the two unpatchable `deepmerge` alerts (LOW; the latest published release is inside the vulnerable range) are dismissed on recorded evidence — their only dependents are dev/build tooling merging repo-authored configs. **11 defects were fixed in this release, 34 across it and the two before** (11 here, 11 in v20.1.0, 12 in v20.0.0 — counting distinct product or CI defects named in each release's Fixed and Security sections, dependency-version advisories excluded). No breaking changes, and **neither `stable` channel moves**. The chart publishes as **`7.11.0`**. Everything below describes v20.1.0 and earlier, which this release does not change.>@@ -28,7 +30,33 @@ This file mirrors what used to live in the "What's new" section of [`README.md`]## What's new-`VERSION` is `20.2.1`. The **v20.2.1** release (2026-10-28) is a+`VERSION` is `20.3.0`. The **v20.3.0** release (2026-10-30) merges six+externally contributed fixes in one pass and repairs the console's+front door: a self-hosted install's `/` now lands on the console+(redirecting to `/login`, which routes onward — setup wizard on first+run, dashboard when signed in) instead of the project's marketing page,+with `AISOC_MARKETING_HOME` as the runtime opt-in for deployments that+are the public site. The `custom` LLM provider gains model discovery+(`POST /api/v1/llm/credentials/models`, externally contributed):+bounded, guarded, stored-key-scoped-to-stored-URL, and the hand-typed+id remains. The GitHub detection rules were re-claused to the vendor's+documented audit vocabulary after an external report — measured+substantially correct — that almost none fired on real connector+output; a new CI gate replays every GitHub rule through the real+connector, and the executable count honestly moves 2,535 → 2,530.+Community fixes close an inference retry storm (terminal 400s now+dead-letter; prompt bytes capped at egress), a saved-connector 422 on+every test after its first poll, a chatops crash-loop, playbook events+dialling a dead port, and 512-token verdict clipping (now 2,048, the+reliability harness moving in lockstep). Three dependency advisories+cleared. No breaking changes; neither `stable` channel moves; the+chart publishes as `7.12.0`. 10 defects fixed (22 across this release+and the two before it). See the TL;DR above and the `[20.3.0]` section+of [`CHANGELOG.md`](CHANGELOG.md) for the full inventory.++### Previously: v20.2.1++The **v20.2.1** release (2026-10-28) is asecurity patch closing[GHSA-9m2j-23jf-gg3p](https://github.com/beenuar/AiSOC/security/advisories/GHSA-9m2j-23jf-gg3p)(medium, reported by [q7256](https://github.com/q7256)): a quadraticdiff --git a/VERSION b/VERSIONindex 22eaaae7d..4adfbc353 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-20.2.1+20.3.0diff --git a/apps/docs/static/data/scoreboard.json b/apps/docs/static/data/scoreboard.jsonindex bd9ee09c7..9756fa4df 100644--- a/apps/docs/static/data/scoreboard.json+++ b/apps/docs/static/data/scoreboard.json@@ -3,9 +3,9 @@"_readme": "Append-only public benchmark scoreboard. Each row is one eval run. Substrate rows (no LLM, deterministic) are marked substrate:true and MUST NOT be quoted as live agent performance. Wet-eval rows (substrate:false) are appended by the T5.5 weekly CI workflow once it lands. Newest row first.","rows": [{- "date": "2026-10-28",- "agent_version": "v20.2.1",- "commit_sha": "a0a6ac3d",+ "date": "2026-10-29",+ "agent_version": "v20.3.0",+ "commit_sha": "34d6b1d4","substrate": true,"eval_mode": "substrate-only","mitre_accuracy": 0.97,diff --git a/apps/docs/static/llms-full.txt b/apps/docs/static/llms-full.txtindex ac0af9194..ff3a3a5c6 100644--- a/apps/docs/static/llms-full.txt+++ b/apps/docs/static/llms-full.txt@@ -3,7 +3,7 @@<!-- Generated by scripts/generate_llms_txt.py. Do not edit by hand; run the script and commit the result. -->> AiSOC is an open-source, self-hostable AI Security Operations Center, MIT-> licensed and maintained by the AiSOC community. Version 20.2.1.+> licensed and maintained by the AiSOC community. Version 20.3.0.> Repository: https://github.com/beenuar/AiSOC. Documentation: https://beenuar.github.io/AiSOC/.This file exists so an automated reader can answer questions about AiSOC@@ -127,7 +127,7 @@ plans/ Historical prototype subtree — reference only, never editedEvery number in this file is generated from the artefact that owns it. If youneed to state one, re-derive it rather than quoting a figure from prose —-including from this file, which is a snapshot of version 20.2.1.+including from this file, which is a snapshot of version 20.3.0.```python3 scripts/generate_corpus_stats.py --check # executable + on-disk rulesdiff --git a/apps/docs/static/llms.txt b/apps/docs/static/llms.txtindex 640119aaa..b4472aa38 100644--- a/apps/docs/static/llms.txt+++ b/apps/docs/static/llms.txt@@ -6,7 +6,7 @@> security telemetry from 87 first-party connectors, normalises it to OCSF,> correlates it into alerts, and runs LLM agents that triage and investigate them.> Every agent decision is written to an investigation ledger, so the reasoning-> behind a verdict can be replayed step by step. MIT licensed. Current version 20.2.1.+> behind a verdict can be replayed step by step. MIT licensed. Current version 20.3.0.AiSOC is built and maintained by the AiSOC community. It is a complete SOCplatform rather than a single tool: ingestion, detection, correlation, agentdiff --git a/apps/web/package.json b/apps/web/package.jsonindex 7502a1814..ada5c2954 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -1,6 +1,6 @@{"name": "@aisoc/web",- "version": "20.2.1",+ "version": "20.3.0","private": true,"description": "AiSOC SOC Console - Next.js 14 Frontend","license": "MIT",diff --git a/infra/helm/aisoc/Chart.yaml b/infra/helm/aisoc/Chart.yamlindex 4cbfd6763..65e802b72 100644--- a/infra/helm/aisoc/Chart.yaml+++ b/infra/helm/aisoc/Chart.yaml@@ -25,13 +25,13 @@ type: application# the chart refuses grants it used to accept (see the v14.0.0 BREAKING# section), and the chart's major is the only coordinate a consumer pulling# `oci://ghcr.io/beenuar/charts/aisoc` sees before they install it.-version: 7.11.1+version: 7.12.0# Used as the image tag wherever a `tag:` in values.yaml is left empty, so# it has to be a tag the registry actually holds — it read "5.2.0", which# exists for no image, so every pod of a default install would have gone to# ImagePullBackOff. scripts/check_published_images.py resolves it the same# way the templates do and fails when it names nothing.-appVersion: "v20.2.1"+appVersion: "v20.3.0"keywords:- security