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): v18.0.0 (#1232)
Beenu Arora3b9bf2423024
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 098aa596d..3489248a0 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]+## [18.0.0] - 2026-10-09+### BREAKING- **Three tables that had no reader now change authorization outcomes.**@@ -311,50 +313,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0because a pack statement is most often falsified by a change nowhere near`docs/security/`. (#PR)-### Fixed--- **A permission the module declared but no migration seeded could not be- granted from the console.** `test_rbac_catalog_seed.py` pinned the- vocabulary against `092_rbac_catalog_seed.sql` alone, which has already run- on every deployment — so the only correct way to add a permission, a new- migration, failed the test, and the tempting fix (editing an applied- migration) seeds the row on fresh installs and on nobody else. The pin now- reads every migration that seeds the catalog, derived from the tree. Doing- so immediately surfaced `playbooks:delete`, seeded by `003_rbac.sql` before- `rbac_catalog.py` existed and enforced by no route in the tree: recorded in- the test with its reason rather than adopted, because absorbing it would- make the catalog claim a permission the product does not enforce. (#PR)--- **`docs/trust/data-flows.md` told a reader the opposite of the truth, twice- in one paragraph.** It said hosted egress is "**not** pseudonymized before- egress today ... a planned control rather than a shipped one" and then, in- the same paragraph, "Restored by parity 2.4" — a correction appended without- removing what it corrected. Parity 2.4 did wire the pseudonymizer at the- contract layer (`services/agents/app/llm/contract.py` calls- `egress_privacy.open_session`), so the page understated a shipped control on- the single question a buyer cares most about. Two further statements were- stale in the same direction: the Helm default-deny `NetworkPolicy` is- described as pending when `infra/helm/aisoc/templates/networkpolicy.yaml`- ships it, and the air-gapped CI proof is described as planned when- `container-egress.yml` runs it with a canary and a red run. All three- corrected, each now naming its gate, and each carrying the limit that goes- with it — the NetworkPolicy is opt-in because a CNI that does not enforce it- ignores it silently, and the sinkhole cannot observe a dial straight to an IP- literal. The matching "still outstanding" note in- `docs/audit/REALITY_REPORT.md` is closed with the same evidence. (#PR)--- **ADR-0002 asserts a CI gate that has never existed**, and the security pack- repeated it before the new link gate caught it on its first run.- `scripts/audit_compliance_claims.py` is cited twice in- `docs/decisions/0002-compliance-claims.md` as already shipped and guarding- the "controls aligned to" framing; no such script is in the tree and no- workflow references it, a finding `docs/audit/REALITY_REPORT.md` already- recorded. The pack now states that the framing is a convention rather than a- gate, lists it as a gap, and the script is recorded in the link gate's- `KNOWN_ABSENT` table so that building it will fail the gate until the prose- is corrected. (#PR)--### Added- **An event classification catalogue, read by ingest at boot.**`schemas/event_catalog/<source>.yaml` maps each vendor's own event type@@ -406,8 +364,62 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0both classified and excused, and any drift between `schemas/` and thevendored copy the binary carries.++- `scripts/check_ocsf_class_coverage.py`, wired into `ci.yml` with its+ self-test ahead of it. A declared connector with neither a class nor a+ recorded reason fails, as does an entry carrying both, a class uid whose+ declared category disagrees with `uid/1000`, a non-finding class whose+ severity map cannot reach the promote floor of 4, and a profile whose class+ name contradicts its uid. It reports the number of connector types on the+ generic mapping and holds it at a ceiling that may shrink but not grow. The+ self-test injects each of those eleven defects and requires the gate to+ catch each one, and requires an empty tree to be refused rather than+ reported clean.+### Fixed+- **A permission the module declared but no migration seeded could not be+ granted from the console.** `test_rbac_catalog_seed.py` pinned the+ vocabulary against `092_rbac_catalog_seed.sql` alone, which has already run+ on every deployment — so the only correct way to add a permission, a new+ migration, failed the test, and the tempting fix (editing an applied+ migration) seeds the row on fresh installs and on nobody else. The pin now+ reads every migration that seeds the catalog, derived from the tree. Doing+ so immediately surfaced `playbooks:delete`, seeded by `003_rbac.sql` before+ `rbac_catalog.py` existed and enforced by no route in the tree: recorded in+ the test with its reason rather than adopted, because absorbing it would+ make the catalog claim a permission the product does not enforce. (#PR)++- **`docs/trust/data-flows.md` told a reader the opposite of the truth, twice+ in one paragraph.** It said hosted egress is "**not** pseudonymized before+ egress today ... a planned control rather than a shipped one" and then, in+ the same paragraph, "Restored by parity 2.4" — a correction appended without+ removing what it corrected. Parity 2.4 did wire the pseudonymizer at the+ contract layer (`services/agents/app/llm/contract.py` calls+ `egress_privacy.open_session`), so the page understated a shipped control on+ the single question a buyer cares most about. Two further statements were+ stale in the same direction: the Helm default-deny `NetworkPolicy` is+ described as pending when `infra/helm/aisoc/templates/networkpolicy.yaml`+ ships it, and the air-gapped CI proof is described as planned when+ `container-egress.yml` runs it with a canary and a red run. All three+ corrected, each now naming its gate, and each carrying the limit that goes+ with it — the NetworkPolicy is opt-in because a CNI that does not enforce it+ ignores it silently, and the sinkhole cannot observe a dial straight to an IP+ literal. The matching "still outstanding" note in+ `docs/audit/REALITY_REPORT.md` is closed with the same evidence. (#PR)++- **ADR-0002 asserts a CI gate that has never existed**, and the security pack+ repeated it before the new link gate caught it on its first run.+ `scripts/audit_compliance_claims.py` is cited twice in+ `docs/decisions/0002-compliance-claims.md` as already shipped and guarding+ the "controls aligned to" framing; no such script is in the tree and no+ workflow references it, a finding `docs/audit/REALITY_REPORT.md` already+ recorded. The pack now states that the framing is a convention rather than a+ gate, lists it as a gap, and the script is recorded in the link gate's+ `KNOWN_ABSENT` table so that building it will fail the gate until the prose+ is corrected. (#PR)++- **Routine telemetry was promoted to an alert as though a vendor had judgedit.** Ingest mapped 78 of the 84 declared connector types onto OCSF class2001 Security Finding, because `canonicalProfile()` used it as the default@@ -449,21 +461,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0Found by the new gate, which fails on a profile whose class name contradictsits own uid.-### Added--- `scripts/check_ocsf_class_coverage.py`, wired into `ci.yml` with its- self-test ahead of it. A declared connector with neither a class nor a- recorded reason fails, as does an entry carrying both, a class uid whose- declared category disagrees with `uid/1000`, a non-finding class whose- severity map cannot reach the promote floor of 4, and a profile whose class- name contradicts its uid. It reports the number of connector types on the- generic mapping and holds it at a ceiling that may shrink but not grow. The- self-test injects each of those eleven defects and requires the gate to- catch each one, and requires an empty tree to be refused rather than- reported clean.---## [17.1.0] - 2026-10-07### Securitydiff --git a/README.md b/README.mdindex 39b9db8af..dfe2ad1c8 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 4ba05d25b..8b50eb558 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 `v17.1.0`, released 2026-10-07. **A security release plus the first community-built console surface; no breaking changes.** It closes **[GHSA-w4r8-969c-67p2](https://github.com/beenuar/AiSOC/security/advisories/GHSA-w4r8-969c-67p2)**, a high-severity audit-trail forgery reported by [cqliuke](https://github.com/cqliuke): the audit middleware decoded the request's Bearer token with signature verification **off** and wrote its claims into the per-tenant tamper-evident audit chain before authentication ran — so an unauthenticated caller with a self-crafted JWT got 401 from the route and still planted any actor and any known tenant id into that tenant's chain. Reproduced against a production-mode stack (forged entry at `chain_index` 0; a no-credential control wrote nothing); the middleware now audits only the verified principal, and a failed authentication writes no row. **If your deployment's audit chain feeds compliance evidence, upgrade** — entries written by unauthenticated requests before this release are indistinguishable from real ones by content alone, so treat chain position and request logs as the tie-breaker. The feature half is the reviewed scope of a community PR by [alexmateescu](https://github.com/alexmateescu): an admin-only **Settings → Users** screen (server-side pagination/search, multi-role assignment with a live effective-permissions preview, enable/disable with session revocation, audited permanent delete guarded against self-delete and last-admin lockout), an editable Roles & Permissions catalog, and a feature-flagged enterprise SSO wave (off by default; JIT lands as `viewer`, admin is unreachable from SSO without an explicit allowlisted group mapping). Migration `091` no longer bulk-seeds a role row into every tenant — the write that could resolve a fresh install's every user, break-glass admin included, to **zero permissions** — and `093` repairs deployments the old seed already touched. Also in: threat-intel enrichment no longer drops WHOIS from non-top-scoring sources and now union-merges DNS records; the grading-integrity gate can no longer lock itself out after a merge burst (it read "no recent successful run" as a stale API read, which its own failures then perpetuated for two days); and the release step that moves the `stable` chart channel ran for the first time ever (`--version` takes a semver constraint, so `--version stable` had failed client-side on every release since the step existed). The chart publishes as **`7.5.0`**. Everything below describes v17.0.0 and earlier, which this release does not change.+> **TL;DR for first-time visitors:** AiSOC is on `v18.0.0`, released 2026-10-09. **The release where the platform learned what it is looking at.** Until now every event from 78 of 87 connector types arrived as a generic OCSF Security Finding, and fusion promotes that class unconditionally — so a permitted DNS lookup, an allowed proxy request and a routine Windows event each became an alert indistinguishable from a real one. Ingest now carries a recorded decision for **every one of the 87 connector types**: the class its stream actually is, or the reason it stays a finding. **This is the breaking change**: `permission_conditions`, `privilege_grants` and `workload_identities` shipped as tables with no reader, and now change authorization outcomes in both directions — a condition that was inert begins denying, and an approved grant that was inert begins conferring. If you wrote rows into those tables directly, read the BREAKING section before upgrading. **Everything else is new capability.** Every event carries an activity projection — who acted, what kind of actor they were, what they did, to which resource, from where, with what outcome — with `actor.kind` derived from each vendor's own documented field rather than guessed. A 44-type event catalogue across ten sources classifies vendor event types by sensitivity, and deliberately changes neither severity nor promotion, so a one-line data edit cannot flood a queue. Detection gained a **72-rule windowed corpus** with ordered and unordered sequences and Sigma correlations: the 74 rules that needed a sliding window are all decided, 50 translated with their thresholds derived from each original's own clauses, 24 refused with a recorded reason. Rules that cannot fire fell from **119 to 2**. Collection now meets an estate the way it actually emits — an organisation CloudTrail over S3 and SQS, GCP Pub/Sub, Azure Event Hubs, and a syslog listener for appliances that speak nothing else. Playbooks gained `wait`, `parallel` and `loop` with idempotency keys, and `notify` and `osquery_live_query` became governed verbs — which is also how we found that every dry run had been reporting a completed send. Retention is the window the tenant chooses up to a 400-day ceiling, and a legal hold now outranks it in the worker rather than only in a function nothing called. Console MFA ships: TOTP against RFC 6238's own vectors, single-use recovery codes, enforceable per tenant. **64 defects were fixed across this release and the two before it** (8 in v17.0.0, 40 in v17.1.0, 16 here). The published executable-rule figure moves **down**, 2,603 to 2,511, and that is the correction rather than a regression: rules that could not fire stopped being counted as capable of it. The chart publishes as **`7.6.0`**. Everything below describes v17.1.0 and earlier, which this release does not change.+>+> **Previously:** AiSOC was on `v17.1.0`, released 2026-10-07. **A security release plus the first community-built console surface; no breaking changes.** It closes **[GHSA-w4r8-969c-67p2](https://github.com/beenuar/AiSOC/security/advisories/GHSA-w4r8-969c-67p2)**, a high-severity audit-trail forgery reported by [cqliuke](https://github.com/cqliuke): the audit middleware decoded the request's Bearer token with signature verification **off** and wrote its claims into the per-tenant tamper-evident audit chain before authentication ran — so an unauthenticated caller with a self-crafted JWT got 401 from the route and still planted any actor and any known tenant id into that tenant's chain. Reproduced against a production-mode stack (forged entry at `chain_index` 0; a no-credential control wrote nothing); the middleware now audits only the verified principal, and a failed authentication writes no row. **If your deployment's audit chain feeds compliance evidence, upgrade** — entries written by unauthenticated requests before this release are indistinguishable from real ones by content alone, so treat chain position and request logs as the tie-breaker. The feature half is the reviewed scope of a community PR by [alexmateescu](https://github.com/alexmateescu): an admin-only **Settings → Users** screen (server-side pagination/search, multi-role assignment with a live effective-permissions preview, enable/disable with session revocation, audited permanent delete guarded against self-delete and last-admin lockout), an editable Roles & Permissions catalog, and a feature-flagged enterprise SSO wave (off by default; JIT lands as `viewer`, admin is unreachable from SSO without an explicit allowlisted group mapping). Migration `091` no longer bulk-seeds a role row into every tenant — the write that could resolve a fresh install's every user, break-glass admin included, to **zero permissions** — and `093` repairs deployments the old seed already touched. Also in: threat-intel enrichment no longer drops WHOIS from non-top-scoring sources and now union-merges DNS records; the grading-integrity gate can no longer lock itself out after a merge burst (it read "no recent successful run" as a stale API read, which its own failures then perpetuated for two days); and the release step that moves the `stable` chart channel ran for the first time ever (`--version` takes a semver constraint, so `--version stable` had failed client-side on every release since the step existed). The chart publishes as **`7.5.0`**. Everything below describes v17.0.0 and earlier, which this release does not change.>> **Previously:** AiSOC was 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.>@@ -16,7 +18,18 @@ This file mirrors what used to live in the "What's new" section of [`README.md`]## What's new-`VERSION` is `17.1.0`. The **v17.1.0** release (2026-10-07) is a security+`VERSION` is `18.0.0`. The **v18.0.0** release (2026-10-09) gives the+platform a semantic layer: a recorded OCSF class decision for every one of+the 87 connector types, an activity projection on every event, a 44-type+event catalogue, a 72-rule windowed detection corpus, cloud-native+collection, and console MFA. It carries one breaking change — three+authorization tables that had no reader now change outcomes in both+directions. See the TL;DR above and the `[18.0.0]` section of+[`CHANGELOG.md`](CHANGELOG.md) for the full inventory.++### Previously: v17.1.0++The **v17.1.0** release (2026-10-07) was a securityrelease plus the first community-built console surface, with no breakingchanges. The security half closes[GHSA-w4r8-969c-67p2](https://github.com/beenuar/AiSOC/security/advisories/GHSA-w4r8-969c-67p2)diff --git a/VERSION b/VERSIONindex d9e58927a..7eae4e2e9 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-17.1.0+18.0.0diff --git a/apps/docs/static/data/scoreboard.json b/apps/docs/static/data/scoreboard.jsonindex 5770a9fbb..20b367910 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-07",- "agent_version": "v17.1.0",- "commit_sha": "90ea2fda",+ "date": "2026-10-09",+ "agent_version": "v18.0.0",+ "commit_sha": "10dc1f9d","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 9f0c718e9..a39f4047e 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 17.1.0.+> licensed and maintained by the AiSOC community. Version 18.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 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 17.1.0.+including from this file, which is a snapshot of version 18.0.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 648bc6d31..965fa2aaa 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 17.1.0.+> behind a verdict can be replayed step by step. MIT licensed. Current version 18.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 94ae4f609..e437ad72f 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -1,6 +1,6 @@{"name": "@aisoc/web",- "version": "17.1.0",+ "version": "18.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 a548ec50b..8bbb65c60 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.5.0+version: 7.6.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: "v17.1.0"+appVersion: "v18.0.0"keywords:- security