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): v17.0.0 (#1127)
Beenu Arora783dcb726c28
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2f8fab05f..3a7a47a3f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+## [17.0.0] - 2026-10-05+### Documentation- **Documented the model-placement and metrics work**, and corrected threediff --git a/README.md b/README.mdindex c74b71b6d..6ba257603 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://github.com/beenuar/AiSOC/blob/main/apps/web/public/papers/aisoc-technical-guide.pdf)**[Technical Guide (PDF)](https://github.com/beenuar/AiSOC/blob/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 f5756cb84..de138d53e 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 `v16.0.1`, released 2026-10-04. **A security release, no breaking changes.** It closes **GHSA-4gx4-x7gm-4xq8**, a high-severity privilege escalation reported by [HaiND](https://github.com/Haind03): the check that decides whether a caller may *confer* authority read the caller's static role, while the check that admits a caller to the route read its database-resolved permissions. Those are two different answers whenever a tenant uses database-backed RBAC — which is the configuration where it matters, since narrowing an account is what those tables are for. A `tenant_admin` deliberately restricted to `users:write` still carried 28 permissions statically and could grant itself the other 27. **If you use the `roles` and `user_roles` tables to restrict accounts, upgrade.** Deployments with no RBAC rows were never exposed, because the static map was already the correct answer for them. The report named one route; the resolver is shared, so five more had it — authoring a role, re-permissioning one, creating a user, delegating to a child tenant, and minting an API key, that last needing no target user and yielding a durable credential. `scripts/check_role_grant_scope.py` gains a direction that fails CI when a grant is measured against the wrong authority; its previous directions passed on the vulnerable tree because they asked only whether a route *reached* the chokepoint, and all six did. Also raises `serialize-javascript` to `>=7.1.2` and `http-cache-semantics` to `>=4.3.0`. The chart publishes as **`7.3.1`**. Everything below describes v16.0.0 and earlier, which this release does not change.+> **TL;DR for first-time visitors:** AiSOC is on `v17.0.0`, released 2026-10-05. **One breaking change and one number that changes meaning without erroring** — the second is the one to read twice. `POST /api/v1/detection-loop/suggest` and its two `GET /detection-loop/suggestions` reads are removed with their three schemas; no migration is needed because none of them ever worked, since they queried `aisoc_alerts`, `aisoc_detection_rules` and `alerts.evidence`, none of which any migration creates. The governed equivalent is `POST /api/v1/detection-proposals`. The quieter change: **`alerts.total` on `/metrics/dashboard` now counts open work** — `new`, `triaging`, `in_progress` — rather than every alert ever received, and the severity counts beside it are scoped the same way, because the console labels them *Active Alerts* and *Critical — Require immediate action*. A tenant who had resolved everything was still shown their entire historical intake as outstanding, and the number only ever rose. Closed work is now reported separately as `alerts.resolved`. **Every approval was failing**: the dispatch built its principal from two attributes `CurrentUser` has never defined, so the actions service received an empty permission list and refused, while the approval row recorded the decision — the action never ran, for any role, including platform admin. **You can now choose where the model runs**: `make up` is unchanged (CPU, no account, no key), `make up-gpu` layers an NVIDIA device reservation onto the bundled Ollama, and `make up-host-llm` uses an Ollama you already run — the only route to a GPU on Apple Silicon, since Docker Desktop cannot pass Metal into a Linux container. `GET /api/v1/llm/runtime` reports where the model *actually* is by asking Ollama rather than reading the compose file back, because a reservation is a request and a model can still land on the CPU; it answers `unknown` for an idle instance rather than guessing. `POST /api/v1/llm/credentials/test` places one real one-token call, so a revoked key is found at the moment you save it instead of surfacing later as triage quietly falling back. Closed cases can be reopened through `POST /api/v1/cases/{id}/reopen` with a recorded reason; `PATCH` stays forward-only, which is what makes "this case was closed" mean something. Investigations now reason over the alerts' real `raw_event` payloads instead of a restated title, and the groundedness gate covers that path too — refusing to score an empty evidence set rather than demoting everything and appearing to catch hallucination. A period-over-period delta of `-93.75` rendered as `-9375%`; the global time-window selector drove no fetch at all. The chart publishes as **`7.4.0`**. Everything below describes v16.0.1 and earlier, which this release does not change.+>+> **Previously:** AiSOC was on `v16.0.1`, released 2026-10-04. **A security release, no breaking changes.** It closes **GHSA-4gx4-x7gm-4xq8**, a high-severity privilege escalation reported by [HaiND](https://github.com/Haind03): the check that decides whether a caller may *confer* authority read the caller's static role, while the check that admits a caller to the route read its database-resolved permissions. Those are two different answers whenever a tenant uses database-backed RBAC — which is the configuration where it matters, since narrowing an account is what those tables are for. A `tenant_admin` deliberately restricted to `users:write` still carried 28 permissions statically and could grant itself the other 27. **If you use the `roles` and `user_roles` tables to restrict accounts, upgrade.** Deployments with no RBAC rows were never exposed, because the static map was already the correct answer for them. The report named one route; the resolver is shared, so five more had it — authoring a role, re-permissioning one, creating a user, delegating to a child tenant, and minting an API key, that last needing no target user and yielding a durable credential. `scripts/check_role_grant_scope.py` gains a direction that fails CI when a grant is measured against the wrong authority; its previous directions passed on the vulnerable tree because they asked only whether a route *reached* the chokepoint, and all six did. Also raises `serialize-javascript` to `>=7.1.2` and `http-cache-semantics` to `>=4.3.0`. The chart publishes as **`7.3.1`**. Everything below describes v16.0.0 and earlier, which this release does not change.>> **Previously:** AiSOC was on `v16.0.0`, released 2026-10-03. **One breaking change:** the `cases` table is gone and its rows live in `aisoc_cases`. Any SQL of your own against `cases` — a Grafana panel, a scheduled export — now fails with "relation does not exist" rather than returning stale rows, which is the intended behaviour. The theme is a single shape repeated seventeen times: **a mechanism that is complete, tested, and has no caller**, so it passes CI forever while doing nothing. SSO could not sign anyone in — `aisoc_sso_connections` was written by nothing, so every SAML and OIDC callback returned 403 on every deployment, while both handlers were fully tested. MTTA published a confident `0.0` because `alerts.first_seen_at` had no writer. The evidence chain an auditor exports was always `[]`. SLA reporting ran 350 lines of correct arithmetic over an empty table. The console's rule-Approve button could not succeed. The live agent evaluation imported a class that exists only in the historical prototype. And the two case tables never synchronised, so **every case an analyst created was invisible to every case metric** — which is the break above. Measured, not asserted: an agent answering "true positive" to everything scored **1.000** on the detection corpus and now scores **0.727**, because the benign class was derived from `response_class == "monitor"` and those incidents are BloodHound enumeration tagged T1087.002. The first live behavioural run published "unsafe action proposal rate 0.0%", which meant the agent proposed no actions at all; it now reports **not measured** and the verdict flip rate is **9.3%** from one manual run of the 200-incident synthetic corpus against a locally-served `llama3.2:3b`, which is not the model a hosted deployment resolves. New: detection lifecycle with rollback and separation of duties, content packs, alert prioritisation, case queues and escalation, legal hold and residency, workload identity and time-boxed elevation, restore paths for Neo4j/Qdrant/Redis, and inbound translation from Splunk SPL, Sentinel KQL and Elastic EQL — on the 2,005 rules bundled here, 1,734 translate and **1,711 of those only partially**. A 22-page technical guide ships as a PDF with real console screenshots. The chart publishes as **`7.3.0`**. Everything below describes v15.1.0 and earlier, which this release does not change.>@@ -12,7 +14,29 @@ This file mirrors what used to live in the "What's new" section of [`README.md`]## What's new-`VERSION` is `16.0.1`. The **v16.0.1** release (2026-10-04) is a security+`VERSION` is `17.0.0`. The **v17.0.0** release (2026-10-05) removes three+`/detection-loop/suggest*` routes that never worked — they queried three+relations no migration creates, so every caller was already receiving an+error — and changes one number's meaning without erroring, which is the+change to read twice: **`alerts.total` on `/metrics/dashboard` now counts+open work rather than every alert ever received**, with the severity counts+beside it scoped the same way. A panel charting cumulative intake from that+field will drop to the size of your queue; closed work moved to+`alerts.resolved`.++It also fixes an approval path that had never once succeeded — the dispatch+read two attributes the principal class does not define, so the actions+service received an empty permission list and refused while the approval row+recorded the decision — and adds a choice of **where the model runs**:+`make up` unchanged on CPU, `make up-gpu` for an NVIDIA device, or+`make up-host-llm` for an Ollama you already run, which is the only route to a+GPU on Apple Silicon. `GET /api/v1/llm/runtime` reports where the model+actually is by asking Ollama rather than reading the compose file back, and+`POST /api/v1/llm/credentials/test` finds a bad provider key at the moment you+save it. Closed cases can be reopened with a recorded reason. The full entry+is in [`CHANGELOG.md`](CHANGELOG.md).++The **v16.0.1** release (2026-10-04) was a securityrelease closing one high-severity privilege escalation(**GHSA-4gx4-x7gm-4xq8**): a grant was measured against the caller's staticrole rather than the permissions it was admitted on, so an account narroweddiff --git a/VERSION b/VERSIONindex 7141108f1..aac58983e 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-16.0.1+17.0.0diff --git a/apps/docs/docs/operations/upgrades.md b/apps/docs/docs/operations/upgrades.mdindex ab39c7a1b..1dba47dad 100644--- a/apps/docs/docs/operations/upgrades.md+++ b/apps/docs/docs/operations/upgrades.md@@ -143,6 +143,7 @@ this table says what an operator has to **do**.| v15.0.0, **v15.1.0** | Nothing breaks — two routes are added and none removed. Two behaviours change noticeably all the same: **CloudTrail deployments will see more alerts**, because every event previously collapsed onto a single one; and alert-triggered playbooks now actually run, where `find_matching()` had no production caller before. | No action required to upgrade. Expect the CloudTrail alert volume you should have been getting all along, and review which playbooks are enabled before upgrading, since a playbook that never fired will now fire — in preview by default, with three opt-ins needed before it can act. || v15.1.0, **v16.0.0** | **The `cases` table is gone.** Migration 083 moves its rows into `aisoc_cases`, repoints the child foreign keys, and renames the old table to `cases_pre_consolidation` so nothing is lost. The two tables never synchronised: the console wrote one and every case metric read the other, so MTTR and the case counts were blind to every case an analyst created. Separately, SAML and OIDC sign-in now works — it returned 403 on every deployment because the connection table had no writer. | **Check your own SQL.** Anything querying `cases` — a Grafana panel, a scheduled export, a report — must read `aisoc_cases`. It will fail loudly with "relation does not exist" rather than returning stale rows, which is deliberate. The archive table is readable if you need to compare. Expect case metrics to change the moment you upgrade: they were under-reporting, not over-reporting. If you use SSO, create a connection at `POST /api/v1/sso-connections` before pointing users at it. || v16.0.0, **v16.0.1** | **Nothing breaks.** A security release closing a high-severity privilege escalation (GHSA-4gx4-x7gm-4xq8): the check deciding whether a caller may *confer* authority read the caller's static role, while the check admitting it to the route read its database-resolved permissions. Where a tenant uses the `roles` and `user_roles` tables to narrow an account, those are different answers, and the narrowed account could grant itself anything its unnarrowed role carried. | **Upgrade if you restrict accounts through database-backed RBAC.** A deployment with no RBAC rows was never exposed — the static map was already the correct answer for it. After upgrading, a grant is refused when it exceeds what the caller actually holds, so an operator who had been relying on the wider static role to assign roles will now get HTTP 403; grant that operator the permissions through RBAC rather than widening its static role. |+| v16.0.1, **v17.0.0** | **Three routes are removed**: `POST /detection-loop/suggest` and the two `GET /detection-loop/suggestions` reads, with their three schemas. No migration is needed because none of them ever worked — they queried `aisoc_alerts`, `aisoc_detection_rules` and `alerts.evidence`, none of which any migration creates, so every caller was already receiving an error. The governed equivalent is `POST /api/v1/detection-proposals`. **One number changes meaning without erroring, which is the one to read twice:** `alerts.total` on `/api/v1/metrics/dashboard` now counts *open* work — `new`, `triaging`, `in_progress` — rather than every alert ever received, and the severity counts beside it are scoped the same way. A panel charting cumulative intake from that field will drop to the size of your queue. Closed work is reported separately as `alerts.resolved`. Migration `090` adds three nullable columns to `aisoc_cases`; it is additive and runs automatically. |Upgrading more than one major at a time is supported but untested as a singlestep. Do them one at a time, running migrations between each, so that adiff --git a/apps/docs/static/data/scoreboard.json b/apps/docs/static/data/scoreboard.jsonindex ca57661fd..0744e5870 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-03",- "agent_version": "v16.0.1",- "commit_sha": "b1c6925a",+ "date": "2026-10-04",+ "agent_version": "v17.0.0",+ "commit_sha": "641f1b0f","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 b89aec214..794b11521 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 16.0.1.+> licensed and maintained by the AiSOC community. Version 17.0.0.> Repository: https://github.com/beenuar/AiSOC. Documentation: https://beenuar.github.io/AiSOC/.This file exists so an automated reader can answer questions about AiSOCdiff --git a/apps/docs/static/llms.txt b/apps/docs/static/llms.txtindex 5b6a914b1..4e8698e04 100644--- a/apps/docs/static/llms.txt+++ b/apps/docs/static/llms.txt@@ -6,7 +6,7 @@> security telemetry from 84 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 16.0.1.+> behind a verdict can be replayed step by step. MIT licensed. Current version 17.0.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 cd271b8a4..fd79522fa 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -1,6 +1,6 @@{"name": "@aisoc/web",- "version": "16.0.1",+ "version": "17.0.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 2b670504b..93c854e30 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.3.1+version: 7.4.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: "v16.0.1"+appVersion: "v17.0.0"keywords:- security