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.4.0 (#1570)
Beenu Arora31ffd411689f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex feece4a0c..392169742 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+## [20.4.0] - 2026-10-30++### Security++- **Dependencies:** `graphql-core` floored at **3.3.1**+ ([CVE-2026-119286](https://nvd.nist.gov/vuln/detail/CVE-2026-119286),+ high) and `pyasn1` at **0.6.5**+ ([CVE-2026-119194](https://nvd.nist.gov/vuln/detail/CVE-2026-119194)+ / 119195 / 119196 / 119197, high) in `services/api`. Both are+ transitive — `graphql-core` via `strawberry-graphql`, `pyasn1` via the+ SAML/crypto stack — so the floors are declared directly in the manifest+ to keep the resolver off the vulnerable versions, and `poetry.lock` moves+ only those two packages. Published after `main`'s last `security-audit`+ pass, so they reddened every open pull request through no change of its+ own; cleared at the source here rather than suppressed per branch.+### Fixed- **Activating SSO OIDC no longer locks the administrator out** (reported indiff --git a/README.md b/README.mdindex eee0709bf..810995780 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 825f994b9..4286dc872 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.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.+> **TL;DR for first-time visitors:** AiSOC is on `v20.4.0`, released 2026-10-30. **A fix release closing two defects a self-hoster hit the moment they turned SSO on.** Activating SSO OIDC locked the administrator out of their own tenant — 403 on users, investigations and the alert queue all at once (reported in [discussion #1568](https://github.com/beenuar/AiSOC/discussions/1568)). The cause: permissions fall back to the static role map only while a tenant holds zero role *grants*, and the bootstrap admin carries `users.role = 'admin'` with no grant row (it is created after the seed that would have backfilled one). That is harmless until the first SSO sign-in grants the provisioned user a role — which flips the whole tenant to database-backed RBAC, and from that instant the grant-less admin resolves to zero permissions. `bootstrap_admin` now grants the admin its catalog role on every startup, in an isolated session, a no-op when the catalog is unseeded, and **self-healing: a deployment already locked out recovers on the next API restart**. The same report surfaced a second bug: the alert funnel's "events of interest" count queried `aisoc.raw_events.ingested_at`, a column the lake does not have (it has `event_time` and `ingest_time`), so the query failed with ClickHouse `Code: 47` on every call and the console silently served a Postgres estimate; it now reads `ingest_time`, with a test that checks the query's columns against the committed ClickHouse DDL. Both fixes are verified against a real Postgres with the full migration chain — the lockout is reproduced in a test and then shown fixed, and the deprovisioning semantics the resolver relies on are untouched and still separately pinned. **2 defects were fixed in this release, 22 across it and the two before** (2 here, 10 in v20.3.0, 10 in v20.2.1 — 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.13.0`** — an `appVersion`-only move mirrors the app's minor, as `7.10.0`/`7.12.0` did before it. Everything below describes v20.3.0 and earlier, which this release does not change.+>+> **Previously:** AiSOC was 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.>@@ -30,7 +32,27 @@ This file mirrors what used to live in the "What's new" section of [`README.md`]## What's new-`VERSION` is `20.3.0`. The **v20.3.0** release (2026-10-30) merges six+`VERSION` is `20.4.0`. The **v20.4.0** release (2026-10-30) closes two+defects a self-hoster hit when they enabled SSO (discussion #1568).+Activating SSO OIDC locked the administrator out — 403 on users,+investigations and the alert queue — because permissions fall back to+the static role map only while a tenant holds zero role grants, and the+bootstrap admin had no grant row until the first SSO sign-in flipped the+tenant to database-backed RBAC. `bootstrap_admin` now grants the admin+its catalog role on every startup, which also heals an already-locked+deployment on the next restart. The same report surfaced a funnel query+that filtered `aisoc.raw_events` on a non-existent `ingested_at` column,+failing with ClickHouse `Code: 47` every call and silently falling back+to a Postgres estimate; it now reads `ingest_time`. Both are verified+against a real Postgres with the full migration chain. No breaking+changes; neither `stable` channel moves; the chart publishes as+`7.13.0`. 2 defects fixed (22 across this release and the two before+it). See the TL;DR above and the `[20.4.0]` section of+[`CHANGELOG.md`](CHANGELOG.md) for the full inventory.++### Previously: v20.3.0++The **v20.3.0** release (2026-10-30) merges sixexternally contributed fixes in one pass and repairs the console'sfront door: a self-hosted install's `/` now lands on the console(redirecting to `/login`, which routes onward — setup wizard on firstdiff --git a/VERSION b/VERSIONindex 4adfbc353..bd45cd74a 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-20.3.0+20.4.0diff --git a/apps/docs/static/data/scoreboard.json b/apps/docs/static/data/scoreboard.jsonindex 9756fa4df..f2799ae95 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-29",- "agent_version": "v20.3.0",- "commit_sha": "34d6b1d4",+ "date": "2026-10-30",+ "agent_version": "v20.4.0",+ "commit_sha": "013ecd38","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 ff3a3a5c6..6f1505a23 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.3.0.+> licensed and maintained by the AiSOC community. Version 20.4.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.3.0.+including from this file, which is a snapshot of version 20.4.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 b4472aa38..952277fba 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.3.0.+> behind a verdict can be replayed step by step. MIT licensed. Current version 20.4.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 ada5c2954..fe850a704 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -1,6 +1,6 @@{"name": "@aisoc/web",- "version": "20.3.0",+ "version": "20.4.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 65e802b72..0d85091b3 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.12.0+version: 7.13.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.3.0"+appVersion: "v20.4.0"keywords:- securitydiff --git a/services/api/poetry.lock b/services/api/poetry.lockindex c7fc48e26..792f613f3 100644--- a/services/api/poetry.lock+++ b/services/api/poetry.lock@@ -1538,14 +1538,14 @@ woff = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "bro[[package]]name = "graphql-core"-version = "3.3.0"+version = "3.3.1"description = "GraphQL-core is a Python port of GraphQL.js, the JavaScript reference implementation for GraphQL."optional = falsepython-versions = ">=3.10"groups = ["main"]files = [- {file = "graphql_core-3.3.0-py3-none-any.whl", hash = "sha256:d37fac6ef4dfc3eaa5daa59dcb498d7cbb118439d240993c68fddc4cb1bade44"},- {file = "graphql_core-3.3.0.tar.gz", hash = "sha256:fd3424e88af3f3211931c6ff96350f1cd9069cf0f1a31b9972899e35d39136b5"},+ {file = "graphql_core-3.3.1-py3-none-any.whl", hash = "sha256:43ebcd0d9a0662a71b1a2f6562ba863d253057ec11cbc45835b2e2683a0a3770"},+ {file = "graphql_core-3.3.1.tar.gz", hash = "sha256:8d9b6f95fb66b58b260904cf9e191f422782620533ec8fa0c96ab941b6659a2a"},][[package]]@@ -2834,14 +2834,14 @@ twisted = ["twisted"][[package]]name = "pyasn1"-version = "0.6.4"+version = "0.6.5"description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)"optional = falsepython-versions = ">=3.8"groups = ["main"]files = [- {file = "pyasn1-0.6.4-py3-none-any.whl", hash = "sha256:deda9277cfd454080ec40b207fb6df82206a3a2688735233cdcd8d3d565f088b"},- {file = "pyasn1-0.6.4.tar.gz", hash = "sha256:9c447d8431c947fe4c8febc4ed9e760bc29011a5b01e5c74b67025bd9fb8ce81"},+ {file = "pyasn1-0.6.5-py3-none-any.whl", hash = "sha256:4017b0fce125096b8573b39c989fdb1a4b19cf761e683398184550fea0e66587"},+ {file = "pyasn1-0.6.5.tar.gz", hash = "sha256:6b11616a6bcf3a40e635f082bb232fa57b5e0dd7f517bd7ddd69ec3794508a47"},][[package]]@@ -4488,4 +4488,4 @@ test = ["pytest"][metadata]lock-version = "2.1"python-versions = "^3.11"-content-hash = "5b2b0cbff39918b1ce72a643ed630d29bd9393599852280f4b4b7d5d3d98ee02"+content-hash = "cb4a39b87cf558d76e3b5ac669be3edbb03626de7f8885846647b234790f15f7"diff --git a/services/api/pyproject.toml b/services/api/pyproject.tomlindex 1ffb3a161..97d3bbb43 100644--- a/services/api/pyproject.toml+++ b/services/api/pyproject.toml@@ -135,6 +135,14 @@ aiokafka = ">=0.10,<0.15"# consumer. The handler answers 501 now, and declaring this is what makes# that 501 clearable rather than permanent.python3-saml = ">=1.16,<2"+# Transitive floors for advisories published after main's last audit pass.+# graphql-core arrives through strawberry-graphql, pyasn1 through the+# SAML/crypto stack; neither is imported directly. Pinned here so the+# resolver cannot fall back to the vulnerable version.+# graphql-core: CVE-2026-119286 (fixed 3.3.1). pyasn1: CVE-2026-119194/5/6/7+# (fixed 0.6.5).+graphql-core = ">=3.3.1,<4"+pyasn1 = ">=0.6.5,<0.7"[tool.poetry.group.dev.dependencies]# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.