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: remove decorative gimmicks across docs, UI, scripts, and CI
Beenu Arorad7b1c6eea872
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e67859a25..196b4abb7 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -216,19 +216,19 @@ jobs:import json, pathlibd = json.loads(pathlib.Path("eval_report.json").read_text())print("## AiSOC Pillar-1 Eval Harness — 200-incident synthetic dataset\n")- print("_Alert-reduction is a real measurement; the other three suites are substrate self-consistency gates._\n")- print(f"_Dataset: {d['dataset']}_ ")- print(f"_Generated: {d['generated_at']}_\n")+ print("Alert-reduction is a real measurement; the other three suites are substrate self-consistency gates.\n")+ print(f"Dataset: {d['dataset']} ")+ print(f"Generated: {d['generated_at']}\n")print("| Suite | Metric | Value | Target | Result |")print("|---|---|---:|---:|:---:|")for name, suite in d["suites"].items():- mark = "✅" if suite["passed"] else "❌"+ mark = "PASS" if suite["passed"] else "FAIL"print(f"| `{name}` | {suite['metric']} | "- f"**{suite['value']:.3f}** | ≥ {suite['target']:.2f} | {mark} |"+ f"{suite['value']:.3f} | ≥ {suite['target']:.2f} | {mark} |")- verdict = "✅ ALL GATES PASSED" if d["all_passed"] else "❌ REGRESSION DETECTED"- print(f"\n**{verdict}**\n")+ verdict = "ALL GATES PASSED" if d["all_passed"] else "REGRESSION DETECTED"+ print(f"\n{verdict}\n")PY- name: Upload eval reportif: always()diff --git a/CHANGELOG.md b/CHANGELOG.mdindex aee05465a..10d5d359a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,20 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]-_No unreleased changes. The full Phase 1–4C work is in v5.2.0._+_No unreleased changes._---## [5.2.0] — 2026-05-04-### Added — v5.2 "Auditable, Mobile, Open"+### Added-The "Leading-AI-SOC 90-day Plan" — Phases 1 through 4C — landed as one-release. Three structural moats over the closed-source incumbents-(Anvilogic, Prophet, Dropzone, Tines): every agent decision is-**auditable line-by-line**, every accuracy claim is **publicly-benchmarked and CI-gated**, and the responder workflow is-**mobile-first and self-hostable**.+This release groups four areas of work: an append-only investigation+ledger, a public eval harness, a mobile responder PWA, and a hosted+demo profile. Details below.#### Auditable agent — Investigation Ledger@@ -31,9 +28,8 @@ benchmarked and CI-gated**, and the responder workflow isrationale is persisted as an append-only `investigation_step` row,scoped to a tenant + case.- **Investigation Ledger UI** (`apps/web/src/components/cases/InvestigationLedger.tsx`)- — replayable step-by-step view in the case workspace with prompt /- response / tool-call diff. Hand it to your auditor, replay it months- later, fork the agent and prove the deltas.+ — replayable step-by-step view in the case workspace with prompt,+ response, and tool-call diffs.- **`GET /api/v1/investigations/*` endpoints** (`services/api/app/api/v1/endpoints/investigations.py`)for listing, retrieving, and replaying ledger entries by case.- **Investigator graph upgrades**@@ -66,18 +62,17 @@ benchmarked and CI-gated**, and the responder workflow isagainst synthetic incidents — does not call the live LLM agent.- **Public eval harness page** (`apps/docs/docs/benchmark.md`,`apps/web/src/app/benchmark/page.tsx`,- `apps/web/src/components/benchmark/`) — published numbers, full method,- honest comparison vs vendors, and explicit "what each suite actually- measures" framing so readers can tell substrate self-consistency gates- apart from real measurements. Linked from the README and the docs- landing page.+ `apps/web/src/components/benchmark/`) — published numbers, full+ method, comparison to other AI SOC offerings, and explicit framing of+ which suites measure substrate self-consistency vs real behaviour.+ Linked from the README and the docs landing page.#### Mobile responder — Responder PWA- **Responder PWA** (`apps/web/src/app/(responder)/`,`apps/web/src/components/responder/`,`apps/web/src/components/pwa/`) — installable, offline-aware, push-- enabled SOC console for analysts who carry pagers. Service worker at+ enabled responder console for on-call analysts. Service worker at`apps/web/public/sw.js`, manifest at `apps/web/public/manifest.json`,offline shell at `apps/web/public/offline.html`.- **Passkey authentication** (`services/api/app/models/responder.py`,@@ -145,8 +140,8 @@ benchmarked and CI-gated**, and the responder workflow is— gates write operations, resets state every UTC midnight, andwatermarks the UI as read-only. Tests at`services/api/tests/test_demo_mode.py`.-- **Target time-to-first-investigation:** under 5 minutes on a warm- Docker daemon, ~3.5 minutes typical.+- **Target time-to-first-investigation:** roughly 3–5 minutes on a warm+ Docker daemon, depending on image cache state.- **Cleanup** — `pnpm aisoc:demo:down` removes the volumes; logs at`pnpm aisoc:demo:logs`.@@ -207,11 +202,13 @@ benchmarked and CI-gated**, and the responder workflow is#### Marketing & docs-- **`/why-open-source`** marketing page (`apps/web/src/app/why-open-source/page.tsx`)- — long-form argument for the structural moat.+- **`/why-open-source`** page (`apps/web/src/app/why-open-source/page.tsx`)+ — long-form description of the project's open-source posture and+ trade-offs.- **Updated landing** (`apps/web/src/components/landing/{Hero,LandingNav,Footer,OpenSource}.tsx`)- — "live demo" button lands directly on a seeded investigation;- comparison rows are anchored to concrete defensible claims.+ — the "live demo" button lands directly on a seeded investigation;+ comparison rows reference specific behaviours rather than generic+ claims.- **Docusaurus refresh** — new MCP integration page, benchmark page,Investigation Ledger references, Responder PWA mentions in conceptsand quickstart.@@ -249,7 +246,7 @@ benchmarked and CI-gated**, and the responder workflow is## [5.1.0] — 2026-05-03-### Added — v5.1 "Detection Depth"+### Added- **UEBA service** (`services/ueba`) — User & Entity Behavior Analytics- Welford online algorithm for incremental baseline computation@@ -276,7 +273,7 @@ benchmarked and CI-gated**, and the responder workflow is## [5.0.0] — 2026-05-03-### Added — v5.0 "Enterprise Ready"+### Added- **SAML 2.0 + OIDC authentication** (`services/api/app/auth/`)- IdP-initiated and SP-initiated SAML 2.0 flows (python3-saml)@@ -313,7 +310,7 @@ benchmarked and CI-gated**, and the responder workflow is## [4.1.0] — 2026-05-03-### Added — v4.1 "Community Ecosystem"+### Added- **AiSOC CLI** (`packages/aisoc-cli`) — `scaffold`, `validate`, `publish` commands for plugins and detections- `aisoc scaffold plugin <name>` — generate plugin skeletondiff --git a/MIGRATION.md b/MIGRATION.mdindex aecff2953..faf118ac6 100644--- a/MIGRATION.md+++ b/MIGRATION.md@@ -1,8 +1,7 @@-# Migration Guide: v3 → v4 "Autonomous SOC"+# Migration Guide: v3 → v4-This guide covers every breaking change and the step-by-step upgrade path from-AiSOC v3 (SOAR-focused) to v4 (Autonomous SOC). Read it **before** running-`docker compose pull` or deploying to production.+This guide covers the breaking changes and upgrade path from AiSOC v3 to v4.+Read it before running `docker compose pull` or deploying to production.---@@ -28,16 +27,16 @@ AiSOC v3 (SOAR-focused) to v4 (Autonomous SOC). Read it **before** running| Area | v3 | v4 ||------|----|----|-| **Core engine** | Rule-based SOAR engine | LangGraph multi-agent investigator |-| **Playbook format** | Custom JSON (no schema) | JSON Schema 2020-12 (`playbook.schema.json`) |-| **Plugin manifest** | `aisoc-plugin.json` only | `plugin.yaml` (preferred) + `aisoc-plugin.json` (legacy) |-| **Plugin types** | `enricher`, `action`, `connector` | + `responder`, `detection`, `widget` |-| **Plugin distribution** | Local directory only | Local directory + OCI images (via `oras`) |-| **API auth** | JWT only | JWT + scoped API tokens (`/api/v1/api-keys`) |-| **API schema** | REST only | REST (OpenAPI 3.1) + GraphQL |-| **Observability** | Prometheus metrics only | Prometheus + OpenTelemetry traces (Jaeger/OTLP) |-| **SDKs** | None | Python SDK, Go SDK, TypeScript SDK |-| **Marketplace** | None | Community playbook & plugin marketplace |+| Core engine | Rule-based SOAR engine | LangGraph multi-agent investigator |+| Playbook format | Custom JSON (no schema) | JSON Schema 2020-12 (`playbook.schema.json`) |+| Plugin manifest | `aisoc-plugin.json` only | `plugin.yaml` (preferred) + `aisoc-plugin.json` (legacy) |+| Plugin types | `enricher`, `action`, `connector` | + `responder`, `detection`, `widget` |+| Plugin distribution | Local directory only | Local directory + OCI images (via `oras`) |+| API auth | JWT only | JWT + scoped API tokens (`/api/v1/api-keys`) |+| API schema | REST only | REST (OpenAPI 3.1) + GraphQL |+| Observability | Prometheus metrics only | Prometheus + OpenTelemetry traces (Jaeger/OTLP) |+| SDKs | None | Python SDK, Go SDK, TypeScript SDK |+| Marketplace | None | Community playbook & plugin marketplace |---@@ -235,13 +234,13 @@ Expected output:{"status":"ok","version":"4.0.0","services":{"db":"ok","redis":"ok","kafka":"ok"}}{"data":{"__typename":"Query"}}["okta-connector","yara-enricher","slack-quarantine","mttr-widget"]-✅ ALL GATES PASSED (alert reduction + 3 substrate self-consistency gates)+ALL GATES PASSED (alert reduction + 3 substrate self-consistency gates)```-> The eval harness runs deterministic substrate code (extractors, fusion,-> templates, judges) against synthetic incidents — it does **not** call the-> live LLM agent. See [`apps/docs/docs/benchmark.md`](apps/docs/docs/benchmark.md)-> for what each suite actually measures.+The eval harness runs deterministic substrate code (extractors, fusion,+templates, judges) against synthetic incidents. It does not call the live LLM+agent. See [`apps/docs/docs/benchmark.md`](apps/docs/docs/benchmark.md) for+what each suite measures.---@@ -300,23 +299,22 @@ Investigation responses now include `audit_log` and `iteration` fields:## FAQ-**Q: Do I need an OpenAI key for v4?**-A: Only for the AI Multi-Agent Investigator. All other features (playbooks,-plugins, detections) work without an LLM key. Set `LLM_PROVIDER=none` to-disable the investigator entirely.+Q: Do I need an OpenAI key for v4?+A: Only for the multi-agent investigator. Other features (playbooks, plugins,+detections) work without an LLM key. Set `LLM_PROVIDER=none` to disable the+investigator entirely.-**Q: Can I run v3 and v4 side by side?**+Q: Can I run v3 and v4 side by side?A: Yes. Use a different Docker Compose project name:`docker compose -p aisoc-v4 up -d`-**Q: Will my v3 playbooks still run?**+Q: Will my v3 playbooks still run?A: After `python3 scripts/upgrade_playbooks.py`, yes. The v4 engine isbackward-compatible for the core `action` step type.-**Q: How do I roll back to v3 if something goes wrong?**+Q: How do I roll back to v3 if something goes wrong?A: Restore the PostgreSQL backup from Step 1, then `docker compose pull` withthe v3 image tags pinned in your `docker-compose.yml`.-**Q: Where do I get help?**-A: Open an issue at https://github.com/beenuar/AiSOC/issues or join the-`#aisoc-v4-upgrade` Slack channel.+Q: Where do I get help?+A: Open an issue at https://github.com/beenuar/AiSOC/issues.diff --git a/PROGRESS.md b/PROGRESS.mdindex 68a1b1d38..4cc40d638 100644--- a/PROGRESS.md+++ b/PROGRESS.md@@ -2,137 +2,135 @@Last updated: 2026-05-04-## ✅ ALL TASKS COMPLETE — v4.1 + v5.0 + v5.1 + v5.2 shipped+## Status: v4.1, v5.0, v5.1, and v5.2 shipped-> v4.1 "Community Ecosystem", v5.0 "Enterprise Ready", v5.1 "Detection Depth", and-> v5.2 "Auditable, Mobile, Open" (the Leading-AI-SOC 90-day plan) are all-> implemented. See ROADMAP.md and CHANGELOG.md for per-item status. Use-> `pnpm aisoc:demo` for the streamlined demo (under five minutes), or-> `pnpm aisoc:lab` for the full lab stack.+v4.1, v5.0, v5.1, and v5.2 are all implemented. See ROADMAP.md and+CHANGELOG.md for per-item status. Use `pnpm aisoc:demo` for the demo stack,+or `pnpm aisoc:lab` for the full lab stack.| Phase | Description | Status ||-------|-------------|--------|-| v1 — Initial monorepo | Core services, frontend, infra, docs | ✅ COMPLETED |-| v2 — Enterprise upgrade | Knowledge graph, rule engine, ML fusion, threat intel | ✅ COMPLETED |-| v4.0 — Autonomous SOC | Multi-agent investigator, Visual SOAR Studio, Plugin Platform, OpenTelemetry | ✅ COMPLETED |-| v4.1 — Community Ecosystem | Plugin publishing, marketplace v2, detection catalog, playbook submissions, aisoc-cli | ✅ COMPLETED |-| v5.0 — Enterprise Ready | SAML/OIDC, multi-tenant RLS, RBAC, audit log, compliance dashboards, SLA, HA Helm, backup, runbooks | ✅ COMPLETED |-| v5.1 — Detection Depth | UEBA service, honeytokens service, purple-team service (ART + Caldera + ATT&CK heatmap + tabletop) | ✅ COMPLETED |-| v5.2 — Auditable, Mobile, Open | Investigation Ledger, 200-incident public eval harness, Responder PWA + passkeys, Ambient Copilot, MCP server, streamlined demo | ✅ COMPLETED |+| v1 — Initial monorepo | Core services, frontend, infra, docs | Completed |+| v2 — Enterprise upgrade | Knowledge graph, rule engine, ML fusion, threat intel | Completed |+| v4.0 | Multi-agent investigator, visual SOAR studio, plugin platform, OpenTelemetry | Completed |+| v4.1 | Plugin publishing, marketplace v2, detection catalog, playbook submissions, aisoc-cli | Completed |+| v5.0 | SAML/OIDC, multi-tenant RLS, RBAC, audit log, compliance dashboards, SLA, HA Helm, backup, runbooks | Completed |+| v5.1 | UEBA service, honeytokens service, purple-team service (ART + Caldera + ATT&CK heatmap + tabletop) | Completed |+| v5.2 | Investigation Ledger, 200-incident public eval harness, Responder PWA + passkeys, Ambient Copilot, MCP server, demo stack | Completed |### v1 — Initial monorepo| ID | Task | Status ||----|------|--------|-| setup-workspace | Initialize monorepo structure with pnpm + Turborepo | ✅ COMPLETED |-| build-ingest | Build Go ingest workers with OCSF normalization + ATT&CK mapping | ✅ COMPLETED |-| build-core-api | Build FastAPI Core API: tenants, RBAC, alerts, cases, reporting | ✅ COMPLETED |-| build-enrichment | Build Go IOC enrichment microservice with Redis cache | ✅ COMPLETED |-| build-alert-fusion | Build Alert Fusion Service (Python) for dedup + merge | ✅ COMPLETED |-| build-agents | Build LangGraph AI Agent Orchestrator with all domain agents | ✅ COMPLETED |-| build-actions | Build Action Execution Service with blast-radius gate + rollback | ✅ COMPLETED |-| build-realtime | Build Node.js/Bun real-time service (WebSocket/SSE) | ✅ COMPLETED |-| build-connectors | Build 5 Phase 1 connectors: CrowdStrike, Splunk, AWS, Okta, Sentinel | ✅ COMPLETED |-| build-packages | Build shared packages: OCSF lib, TypeScript types, React UI components | ✅ COMPLETED |-| build-frontend | Build Next.js 14 frontend: SOC console, case mgmt, attack graph, NL search | ✅ COMPLETED |-| build-infra | Build Terraform infrastructure + Helm charts + Docker configs | ✅ COMPLETED |-| build-docs | Create README, architecture docs, API docs, migration guides | ✅ COMPLETED |-| setup-github | Create GitHub repository and push initial commit | ✅ COMPLETED |-| github-push | Push complete codebase to GitHub | ✅ COMPLETED |+| setup-workspace | Initialize monorepo structure with pnpm + Turborepo | Completed |+| build-ingest | Build Go ingest workers with OCSF normalization + ATT&CK mapping | Completed |+| build-core-api | Build FastAPI Core API: tenants, RBAC, alerts, cases, reporting | Completed |+| build-enrichment | Build Go IOC enrichment microservice with Redis cache | Completed |+| build-alert-fusion | Build Alert Fusion Service (Python) for dedup + merge | Completed |+| build-agents | Build LangGraph AI Agent Orchestrator with all domain agents | Completed |+| build-actions | Build Action Execution Service with blast-radius gate + rollback | Completed |+| build-realtime | Build Node.js/Bun real-time service (WebSocket/SSE) | Completed |+| build-connectors | Build 5 Phase 1 connectors: CrowdStrike, Splunk, AWS, Okta, Sentinel | Completed |+| build-packages | Build shared packages: OCSF lib, TypeScript types, React UI components | Completed |+| build-frontend | Build Next.js 14 frontend: SOC console, case mgmt, attack graph, NL search | Completed |+| build-infra | Build Terraform infrastructure + Helm charts + Docker configs | Completed |+| build-docs | Create README, architecture docs, API docs, migration guides | Completed |+| setup-github | Create GitHub repository and push initial commit | Completed |+| github-push | Push complete codebase to GitHub | Completed |### v2 — Enterprise platform upgrade| ID | Task | Status ||----|------|--------|-| infra-fixes | Reconcile docker-compose ports/profiles for fusion, threatintel, connectors | ✅ COMPLETED |-| neo4j-graph | Add Neo4j to compose; implement `graph_service` (attack path, blast radius, neighbors, MITRE coverage) | ✅ COMPLETED |-| rule-engine | Multi-language detection rule engine: Sigma (pySigma), YARA, KQL, Lucene, Regex with `/v1/rules` API | ✅ COMPLETED |-| attck-corpus | Full MITRE ATT&CK STIX 2.1 corpus loader (Go + Python), in-process index, optional Qdrant embedding | ✅ COMPLETED |-| threatintel-svc | New `services/threatintel`: TAXII 2.1 + MISP + OTX + CISA KEV pollers, Bloom dedup, OpenSearch+Qdrant+Neo4j sinks | ✅ COMPLETED |-| ingest-shodan-cve | Shodan enrichment + CISA KEV cross-correlation in Go ingest, emits `vulnerability.matches` | ✅ COMPLETED |-| ml-fusion | Isolation Forest anomaly + LightGBM LambdaRank priority scoring with analyst feedback loop | ✅ COMPLETED |-| docs-update | Refreshed README, new SYSTEM_DESIGN.md, API_REFERENCE.md, LOCAL_DEVELOPMENT.md runbook | ✅ COMPLETED |+| infra-fixes | Reconcile docker-compose ports/profiles for fusion, threatintel, connectors | Completed |+| neo4j-graph | Add Neo4j to compose; implement `graph_service` (attack path, blast radius, neighbors, MITRE coverage) | Completed |+| rule-engine | Multi-language detection rule engine: Sigma (pySigma), YARA, KQL, Lucene, Regex with `/v1/rules` API | Completed |+| attck-corpus | Full MITRE ATT&CK STIX 2.1 corpus loader (Go + Python), in-process index, optional Qdrant embedding | Completed |+| threatintel-svc | New `services/threatintel`: TAXII 2.1 + MISP + OTX + CISA KEV pollers, Bloom dedup, OpenSearch+Qdrant+Neo4j sinks | Completed |+| ingest-shodan-cve | Shodan enrichment + CISA KEV cross-correlation in Go ingest, emits `vulnerability.matches` | Completed |+| ml-fusion | Isolation Forest anomaly + LightGBM LambdaRank priority scoring with analyst feedback loop | Completed |+| docs-update | Refreshed README, new SYSTEM_DESIGN.md, API_REFERENCE.md, LOCAL_DEVELOPMENT.md runbook | Completed |-### v4 — Autonomous SOC+### v4| ID | Task | Status ||----|------|--------|-| investigator | LangGraph multi-agent orchestrator (Recon, Forensic, Responder, ReportWriter) | ✅ COMPLETED |-| case-workspace | Case Workspace UI — Investigation & Report tabs with streaming progress | ✅ COMPLETED |-| eval-harness | Eval harness: 20 synthetic incidents, ≥80% MITRE-tactic accuracy CI gate | ✅ COMPLETED |-| soar-studio | React Flow visual playbook editor + DAG engine (retries, conditions, on_failure) | ✅ COMPLETED |-| playbook-schema | `playbook.schema.json` JSON Schema 2020-12 for portability and CI linting | ✅ COMPLETED |-| detection-as-code | `detections/` directory with Sigma + AiSOC YAML; GitHub Action deploy-on-merge | ✅ COMPLETED |-| playbook-templates | 12 starter playbook templates | ✅ COMPLETED |-| marketplace | Community playbook + plugin marketplace static index | ✅ COMPLETED |-| plugin-sdk | Plugin SDK in Python (`packages/plugin-sdk-py/`) and Go (`packages/plugin-sdk-go/`) | ✅ COMPLETED |-| plugin-yaml | `plugin.yaml` manifest spec (connector \| enricher \| responder \| detection \| widget) | ✅ COMPLETED |-| plugin-oci | Plugin loader with OCI image support (`oras pull`) | ✅ COMPLETED |-| ref-plugins | 4 reference plugins: Okta connector, YARA enricher, Slack quarantine, MTTR widget | ✅ COMPLETED |-| openapi | Public REST API v1, OpenAPI 3.1 at `docs/openapi.yaml` | ✅ COMPLETED |-| graphql | GraphQL gateway (Strawberry) at `/graphql` | ✅ COMPLETED |-| api-tokens | Scoped API tokens (`/api/v1/api-keys`) | ✅ COMPLETED |-| client-sdks | Auto-generated TypeScript, Python, Go client SDKs | ✅ COMPLETED |-| docs-site | Docusaurus docs site at `apps/docs/`, deployed to GitHub Pages | ✅ COMPLETED |-| otel | OpenTelemetry traces across agents → api → realtime (OTLP/Jaeger) | ✅ COMPLETED |-| demo-lab | `pnpm aisoc:lab` one-command full-stack demo + Conti ransomware scenario | ✅ COMPLETED |-| migration | MIGRATION.md for v3 → v4 upgrade path | ✅ COMPLETED |--### v4.1 — Community Ecosystem+| investigator | LangGraph multi-agent orchestrator (Recon, Forensic, Responder, ReportWriter) | Completed |+| case-workspace | Case Workspace UI — Investigation & Report tabs with streaming progress | Completed |+| eval-harness | Eval harness: 20 synthetic incidents, ≥80% MITRE-tactic accuracy CI gate | Completed |+| soar-studio | React Flow visual playbook editor + DAG engine (retries, conditions, on_failure) | Completed |+| playbook-schema | `playbook.schema.json` JSON Schema 2020-12 for portability and CI linting | Completed |+| detection-as-code | `detections/` directory with Sigma + AiSOC YAML; GitHub Action deploy-on-merge | Completed |+| playbook-templates | 12 starter playbook templates | Completed |+| marketplace | Community playbook + plugin marketplace static index | Completed |+| plugin-sdk | Plugin SDK in Python (`packages/plugin-sdk-py/`) and Go (`packages/plugin-sdk-go/`) | Completed |+| plugin-yaml | `plugin.yaml` manifest spec (connector \| enricher \| responder \| detection \| widget) | Completed |+| plugin-oci | Plugin loader with OCI image support (`oras pull`) | Completed |+| ref-plugins | 4 reference plugins: Okta connector, YARA enricher, Slack quarantine, MTTR widget | Completed |+| openapi | Public REST API v1, OpenAPI 3.1 at `docs/openapi.yaml` | Completed |+| graphql | GraphQL gateway (Strawberry) at `/graphql` | Completed |+| api-tokens | Scoped API tokens (`/api/v1/api-keys`) | Completed |+| client-sdks | Auto-generated TypeScript, Python, Go client SDKs | Completed |+| docs-site | Docusaurus docs site at `apps/docs/`, deployed to GitHub Pages | Completed |+| otel | OpenTelemetry traces across agents → api → realtime (OTLP/Jaeger) | Completed |+| demo-lab | `pnpm aisoc:lab` one-command full-stack demo + Conti ransomware scenario | Completed |+| migration | MIGRATION.md for v3 → v4 upgrade path | Completed |++### v4.1| ID | Task | Status ||----|------|--------|-| cli | `aisoc-cli` scaffold/validate/publish commands for plugins and detections | ✅ COMPLETED |-| plugin-publish | Plugin publish flow: `community_plugins` table, POST `/api/v1/plugins/publish`, Ed25519 signature verification | ✅ COMPLETED |-| marketplace-v2 | MarketplaceView.tsx with ratings, install counts, verified badges, category filter, sort | ✅ COMPLETED |-| detection-catalog | Detection catalog: paginated Sigma browse API + UI page with install action | ✅ COMPLETED |-| playbook-community | Playbook community submissions: `community_playbooks` table + submit/curate API + Community tab | ✅ COMPLETED |+| cli | `aisoc-cli` scaffold/validate/publish commands for plugins and detections | Completed |+| plugin-publish | Plugin publish flow: `community_plugins` table, POST `/api/v1/plugins/publish`, Ed25519 signature verification | Completed |+| marketplace-v2 | MarketplaceView.tsx with ratings, install counts, verified badges, category filter, sort | Completed |+| detection-catalog | Detection catalog: paginated Sigma browse API + UI page with install action | Completed |+| playbook-community | Playbook community submissions: `community_playbooks` table + submit/curate API + Community tab | Completed |-### v5.0 — Enterprise Ready+### v5.0| ID | Task | Status ||----|------|--------|-| saml-oidc | SAML 2.0 + OIDC auth in `services/api/app/auth/` with JWT issuance | ✅ COMPLETED |-| rls | Multi-tenant RLS: `tenant_id` migration, Postgres RLS policies, SQLAlchemy middleware | ✅ COMPLETED |-| rbac | Granular RBAC: roles/permissions/user_roles tables + `require_permission()` + admin UI | ✅ COMPLETED |-| audit-log | Immutable audit log: append-only `audit_log` table + FastAPI middleware + UI | ✅ COMPLETED |-| soc2 | SOC 2 evidence dashboard: auto-collect evidence API + compliance page + PDF export | ✅ COMPLETED |-| frameworks | ISO 27001 + NIST CSF + PCI-DSS/HIPAA/DORA: mapping YAMLs + `/api/v1/compliance/{framework}` + heatmap UI | ✅ COMPLETED |-| sla | MTTD/MTTR/MTTC SLA tracking: `tenant_sla_config` table + metrics API + dashboard widget | ✅ COMPLETED |-| helm-ha | Helm chart HPA, PDB, Ingress, per-service deployment templates | ✅ COMPLETED |-| backup-cli | `scripts/backup.sh` and `scripts/restore.sh` for Postgres + ClickHouse + plugins | ✅ COMPLETED |-| ops-docs | `docs/operations/multi-region.md` + `scripts/generate_runbook.py` from OTel traces | ✅ COMPLETED |--### v5.1 — Detection Depth+| saml-oidc | SAML 2.0 + OIDC auth in `services/api/app/auth/` with JWT issuance | Completed |+| rls | Multi-tenant RLS: `tenant_id` migration, Postgres RLS policies, SQLAlchemy middleware | Completed |+| rbac | Granular RBAC: roles/permissions/user_roles tables + `require_permission()` + admin UI | Completed |+| audit-log | Immutable audit log: append-only `audit_log` table + FastAPI middleware + UI | Completed |+| soc2 | SOC 2 evidence dashboard: auto-collect evidence API + compliance page + PDF export | Completed |+| frameworks | ISO 27001 + NIST CSF + PCI-DSS/HIPAA/DORA: mapping YAMLs + `/api/v1/compliance/{framework}` + heatmap UI | Completed |+| sla | MTTD/MTTR/MTTC SLA tracking: `tenant_sla_config` table + metrics API + dashboard widget | Completed |+| helm-ha | Helm chart HPA, PDB, Ingress, per-service deployment templates | Completed |+| backup-cli | `scripts/backup.sh` and `scripts/restore.sh` for Postgres + ClickHouse + plugins | Completed |+| ops-docs | `docs/operations/multi-region.md` + `scripts/generate_runbook.py` from OTel traces | Completed |++### v5.1| ID | Task | Status ||----|------|--------|-| ueba | `services/ueba/` — baseline computation (Welford), anomaly scoring (z-score), peer-group analysis, Kafka integration | ✅ COMPLETED |-| honeytokens | `services/honeytokens/` — token generator, HMAC-signed webhook alerting, lifecycle management UI | ✅ COMPLETED |-| purple-team | `services/purple-team/` — Atomic Red Team loader, Caldera client, ATT&CK coverage heatmap, tabletop simulator UI | ✅ COMPLETED |+| ueba | `services/ueba/` — baseline computation (Welford), anomaly scoring (z-score), peer-group analysis, Kafka integration | Completed |+| honeytokens | `services/honeytokens/` — token generator, HMAC-signed webhook alerting, lifecycle management UI | Completed |+| purple-team | `services/purple-team/` — Atomic Red Team loader, Caldera client, ATT&CK coverage heatmap, tabletop simulator UI | Completed |-### v5.2 — Auditable, Mobile, Open (Leading-AI-SOC 90-day plan)+### v5.2| ID | Task | Status ||----|------|--------|-| investigation-ledger | Append-only ledger of every prompt, tool call, evidence shard, and rationale (`investigation_step` table + `services/agents/app/investigator/ledger.py` + UI) | ✅ COMPLETED |-| ledger-api | `GET /api/v1/investigations/*` for listing, retrieving, and replaying ledger entries by case | ✅ COMPLETED |-| eval-harness-v2 | 200-incident synthetic dataset covering all 14 MITRE tactics + 4 eval gates: alert reduction (real measurement) plus MITRE-tactic / completeness / response-quality substrate self-consistency gates | ✅ COMPLETED |-| benchmark-page | Public eval harness page at `/benchmark` (docs + web) with published numbers, full method, honest comparison vs vendors, and explicit "what each suite actually measures" framing | ✅ COMPLETED |-| ci-eval-gates | `scripts/run_evals.py --ci` wired into `.github/workflows/ci.yml` so every commit is gated on substrate self-consistency + alert-reduction thresholds | ✅ COMPLETED |-| responder-pwa | Installable PWA (`apps/web/src/app/(responder)/`) with service worker, offline shell, manifest, icons | ✅ COMPLETED |-| passkeys | WebAuthn passkey registration + login for Responder surface (FIDO2 platform authenticators only) | ✅ COMPLETED |-| oncall | On-call schedule + handoff (`oncall.py` + Responder home page + alert page badge) | ✅ COMPLETED |-| approvals | Long-lived approval requests for blast-radius-gated SOAR actions, approvable from PWA with passkey | ✅ COMPLETED |-| web-push | VAPID-signed Web Push notifications wired into `services/realtime` + per-device subscriptions following on-call rotation | ✅ COMPLETED |-| ambient-copilot | Contextual actions on alert / case / rule / playbook surfaces, grounded in the Investigation Ledger | ✅ COMPLETED |-| mcp-server | `services/mcp/` — Model Context Protocol server exposing 11 AiSOC tools to Claude Desktop, Cursor, Cody, Continue | ✅ COMPLETED |-| streamlined-demo | `pnpm aisoc:demo` + `docker-compose.demo.yml` + prebuilt GHCR images → first investigation under five minutes | ✅ COMPLETED |-| content-pack | First-party content: 10 detections, 12 playbooks, 15 plugins indexed into `marketplace/index.json` | ✅ COMPLETED |--## GitHub Repository--**https://github.com/beenuar/AiSOC**+| investigation-ledger | Append-only ledger of every prompt, tool call, evidence shard, and rationale (`investigation_step` table + `services/agents/app/investigator/ledger.py` + UI) | Completed |+| ledger-api | `GET /api/v1/investigations/*` for listing, retrieving, and replaying ledger entries by case | Completed |+| eval-harness-v2 | 200-incident synthetic dataset covering all 14 MITRE tactics + 4 eval gates: alert reduction (real measurement) plus MITRE-tactic / completeness / response-quality substrate self-consistency gates | Completed |+| benchmark-page | Public eval harness page at `/benchmark` (docs + web) with published numbers, full method, comparison to other AI SOC offerings, and explicit "what each suite measures" framing | Completed |+| ci-eval-gates | `scripts/run_evals.py --ci` wired into `.github/workflows/ci.yml` so every commit is gated on substrate self-consistency + alert-reduction thresholds | Completed |+| responder-pwa | Installable PWA (`apps/web/src/app/(responder)/`) with service worker, offline shell, manifest, icons | Completed |+| passkeys | WebAuthn passkey registration + login for Responder surface (FIDO2 platform authenticators only) | Completed |+| oncall | On-call schedule + handoff (`oncall.py` + Responder home page + alert page badge) | Completed |+| approvals | Long-lived approval requests for blast-radius-gated SOAR actions, approvable from PWA with passkey | Completed |+| web-push | VAPID-signed Web Push notifications wired into `services/realtime` + per-device subscriptions following on-call rotation | Completed |+| ambient-copilot | Contextual actions on alert / case / rule / playbook surfaces, grounded in the Investigation Ledger | Completed |+| mcp-server | `services/mcp/` — Model Context Protocol server exposing 11 AiSOC tools to Claude Desktop, Cursor, Cody, Continue | Completed |+| streamlined-demo | `pnpm aisoc:demo` + `docker-compose.demo.yml` + prebuilt GHCR images for the demo profile | Completed |+| content-pack | First-party content: 10 detections, 12 playbooks, 15 plugins indexed into `marketplace/index.json` | Completed |++## GitHub repository++https://github.com/beenuar/AiSOC## Servicesdiff --git a/README.md b/README.mdindex 93b3e41d8..47dc1b28e 100644--- a/README.md+++ b/README.md@@ -4,76 +4,73 @@# AiSOC-### The only AI SOC where the agent is open-source, auditable, and self-hostable.--Every decision the agent makes is **logged step-by-step, queryable, and replayable**. Your data never leaves your infrastructure. MIT-licensed.+An open-source, self-hostable AI SOC. The agent's prompts, tool calls, and rationale are logged step-by-step and replayable. MIT-licensed.[](https://opensource.org/licenses/MIT)[](apps/docs/docs/benchmark.md)[](CONTRIBUTING.md)[](CHANGELOG.md)-[**Live demo**](https://demo.aisoc.dev) · [**How we compare**](#-how-aisoc-compares) · [**Public eval harness**](apps/docs/docs/benchmark.md) · [**Deploy in one click**](#-deploy-in-one-click) · [**Architecture**](#-architecture) · [**Docs**](apps/docs/)--<br/>--[](https://demo.aisoc.dev/cases/INC-001?tab=ledger)+[Live demo](https://demo.aisoc.dev) · [How AiSOC compares](#how-aisoc-compares) · [Public eval harness](apps/docs/docs/benchmark.md) · [Deployment options](#deployment-options) · [Architecture](#architecture) · [Docs](apps/docs/)-<sub>Read-only · resets daily at 00:00 UTC · lands on a live agent investigation. To run AiSOC on your own data, [self-host in 5 minutes](#-quick-start) or [deploy in one click](#-deploy-in-one-click).</sub>+<sub>The hosted demo is read-only and resets daily at 00:00 UTC. To run AiSOC on your own data, follow the [quick start](#quick-start) or pick a [deployment target](#deployment-options).</sub></div>----## 🛡️ Why this matters to a CISO+## What AiSOC is-A CISO at a regulated bank can deploy AiSOC. They cannot deploy a vendor whose agent is a black-box cloud service. AiSOC is the AI SOC your auditor will actually approve, because:+AiSOC is a single self-hostable stack that ingests security events, correlates them, runs AI-driven investigation, and surfaces the result in a SOC console. The agent and the substrate are MIT-licensed, so you can read, fork, or replace either of them.-1. **Every agent decision is on the record.** The Investigation Ledger logs the literal LLM prompt, the response, the evidence cited, and the downstream tool calls — for every step of every run. Replay it months later. Hand it to your auditor.-2. **The substrate has a public, CI-gated regression harness.** We ship a 200-incident eval suite that gates every commit: alert-reduction ratio is a real measurement against a fixed noisy stream; MITRE-tactic, investigation-completeness, and response-quality checks are substrate self-consistency gates over deterministic templates and synthetic data. We are upfront about which is which — see the [public eval harness](apps/docs/docs/benchmark.md).-3. **It runs entirely on your infrastructure.** No callbacks to a vendor cloud. No data exfil for "model improvement." MIT-licensed end-to-end.-4. **You can fork the agent itself.** The orchestrator is a 600-line LangGraph in [`services/agents/`](services/agents/). Read it. Patch it. Replace the model. Keep the SIEM.+Three properties distinguish it from closed-source AI SOC vendors:++1. **Agent decisions are logged.** The Investigation Ledger stores the LLM prompt, the response, the evidence cited, and the downstream tool calls for every step of every run. Replays are available later.+2. **The substrate has a public eval harness in CI.** A 200-incident harness gates every commit. Alert reduction is a real measurement against a fixed noisy stream; the MITRE-tactic, investigation-completeness, and response-quality suites are substrate self-consistency gates over deterministic templates and synthetic data. The [benchmark page](apps/docs/docs/benchmark.md) explains exactly which is which.+3. **It runs entirely on your infrastructure.** No callbacks to a vendor cloud and no data exfiltration for "model improvement."++The orchestrator is a ~600-line LangGraph in [`services/agents/`](services/agents/). It is small enough to read end-to-end, swap models in, and patch.----## 📊 How AiSOC compares+## How AiSOC compares-| Capability | **AiSOC** | Wazuh | Splunk ES | Anvilogic | Prophet Security |+| Capability | AiSOC | Wazuh | Splunk ES | Anvilogic | Prophet Security ||---|---|---|---|---|---|-| Open-source license | ✅ MIT | ✅ GPL-2 | ❌ proprietary | ❌ proprietary | ❌ proprietary |-| Self-hostable | ✅ | ✅ | ⚠️ enterprise-only | ❌ cloud-only | ❌ cloud-only |-| Autonomous AI investigation | ✅ LangGraph | ❌ | ⚠️ partial (Splunk AI) | ✅ | ✅ |-| **Agent decision audit trail** | ✅ public Investigation Ledger | n/a | n/a | ❌ black box | ❌ black box |-| **Public substrate eval harness** | ✅ CI-gated, reproducible | n/a | n/a | ❌ unpublished | ❌ unpublished |+| Open-source license | MIT | GPL-2 | proprietary | proprietary | proprietary |+| Self-hostable | yes | yes | enterprise-only | cloud-only | cloud-only |+| Autonomous AI investigation | LangGraph | no | partial (Splunk AI) | yes | yes |+| Agent decision audit trail | public Investigation Ledger | n/a | n/a | not published | not published |+| Public substrate eval harness | CI-gated, reproducible | n/a | n/a | not published | not published || Detection content | 200+ Sigma rules | 1,200+ rules | 1,000+ apps | curated | curated |-| Plugin SDK | ✅ Py / TS / Go | ⚠️ YAML rules only | apps | proprietary | proprietary |-| Data residency | 100% your infra | 100% your infra | partial | vendor cloud | vendor cloud |-| Pricing | $0 (you self-host) | $0 (you self-host) | $$ per ingest GB | $$$ enterprise | $$$ enterprise |+| Plugin SDK | Python / TypeScript / Go | YAML rules only | apps | proprietary | proprietary |+| Data residency | your infra | your infra | partial | vendor cloud | vendor cloud |+| Pricing | $0 (self-host) | $0 (self-host) | per ingest GB | enterprise | enterprise |-The closed-source AI SOC vendors (Anvilogic, Prophet, Tines, Dropzone) ship excellent products. AiSOC is the only stack where the agent itself is open, the decisions are auditable, and the substrate is gated by a public, reproducible eval harness on every commit. That is the structural moat.+Closed-source AI SOC vendors (Anvilogic, Prophet, Tines, Dropzone) ship working products. AiSOC's contribution is making the agent itself open, the per-step decision trail readable, and the substrate gated by a public eval harness on every commit.----## 🚀 Deploy in one click+## Deployment options-Every deploy target ships with a tested config in [`infra/`](infra/). Pick the platform that matches your operational posture:+Each target ships a tested config in [`infra/`](infra/):-| Platform | Status | Config | One-click |+| Platform | Status | Config | Notes ||---|---|---|---|-| **Fly.io** (recommended for demo / staging) | ✅ first-class | [`infra/fly/`](infra/fly/) | [Deploy stack](infra/fly/README.md) — 4 apps, ~$14/mo |-| **Render** (managed, sleep-on-idle for hobbyists) | ✅ supported | [`infra/render/render.yaml`](infra/render/render.yaml) | [](https://render.com/deploy?repo=https://github.com/beenuar/AiSOC) |-| **Railway** (PaaS, pay-as-you-go) | ✅ supported | [`infra/railway/railway.toml`](infra/railway/railway.toml) | [](https://railway.com/new/template?template=https%3A%2F%2Fgithub.com%2Fbeenuar%2FAiSOC&plugins=postgresql%2Credis) |-| **Coolify** (your own VPS, free) | ✅ supported | [`docker-compose.yml`](docker-compose.yml) | [Coolify quickstart](infra/coolify/README.md) |-| **Kubernetes / Helm** (production) | ✅ first-class | [`infra/helm/`](infra/helm/) | `helm install aisoc ./infra/helm/aisoc` |-| **AWS / Terraform** (production) | ✅ first-class | [`infra/terraform/`](infra/terraform/) | `cd infra/terraform && terraform apply` |+| Fly.io | first-class | [`infra/fly/`](infra/fly/) | 4 apps, ~$14/mo. See [infra/fly/README.md](infra/fly/README.md). |+| Render | supported | [`infra/render/render.yaml`](infra/render/render.yaml) | Sleep-on-idle, hobbyist tier. |+| Railway | supported | [`infra/railway/railway.toml`](infra/railway/railway.toml) | PaaS, pay-as-you-go. |+| Coolify | supported | [`docker-compose.yml`](docker-compose.yml) | Self-hosted on your own VPS. See [infra/coolify/README.md](infra/coolify/README.md). |+| Kubernetes / Helm | first-class | [`infra/helm/`](infra/helm/) | `helm install aisoc ./infra/helm/aisoc` |+| AWS / Terraform | first-class | [`infra/terraform/`](infra/terraform/) | `cd infra/terraform && terraform apply` |-> 💡 The Render/Railway/Coolify configs deploy the **lean demo profile**: api + agents + web + realtime + Postgres + Redis. ClickHouse, Kafka, OpenSearch, Neo4j, and Qdrant are optional and gated behind compose profiles. For a production-grade install with the full storage tier, use Helm or Terraform.+The Render, Railway, and Coolify configs deploy the lean demo profile: api, agents, web, realtime, Postgres, and Redis. ClickHouse, Kafka, OpenSearch, Neo4j, and Qdrant are gated behind compose profiles. For a production-grade install with the full storage tier, use Helm or Terraform.----## 🤝 Use it from Claude, Cursor, or Cody+## Use it from Claude, Cursor, or Cody-AiSOC ships a first-class **[MCP server](https://modelcontextprotocol.io)** so analysts can query alerts, run agent investigations, and **replay every step the agent took** without leaving the IDE or chat. One command wires up the connection:+AiSOC ships an [MCP server](https://modelcontextprotocol.io) so analysts can query alerts, run agent investigations, and replay every step the agent took without leaving the IDE or chat.```bash# Claude Desktop / Cursor / Continue / Cody@@ -82,54 +79,54 @@ npx -y @aisoc/mcp install --host claude \--api-key aisoc_pat_xxxxxxxxxxxx```-The server exposes 11 tools — discovery (`aisoc_list_alerts`, `aisoc_list_cases`, `aisoc_query_detections`), deep-dive (`aisoc_get_case`, `aisoc_get_investigation`), and the action/replay set (`aisoc_run_investigation`, `aisoc_replay_decision`, `aisoc_explain_step`) that lets the assistant walk the agent decision ledger step-by-step.+The server exposes 11 tools — discovery (`aisoc_list_alerts`, `aisoc_list_cases`, `aisoc_query_detections`), deep-dive (`aisoc_get_case`, `aisoc_get_investigation`), and the action/replay set (`aisoc_run_investigation`, `aisoc_replay_decision`, `aisoc_explain_step`) for walking the agent decision ledger step-by-step.-📖 Full guide: [docs/integrations/mcp](apps/docs/docs/integrations/mcp.md) · package source: [`services/mcp/`](services/mcp/) · npm: `@aisoc/mcp`+Full guide: [docs/integrations/mcp](apps/docs/docs/integrations/mcp.md). Source: [`services/mcp/`](services/mcp/). npm: `@aisoc/mcp`.----## ✨ What's in the box+## What's in the box-Modern SOCs drown in alerts and pivot across a dozen consoles. AiSOC is a **single, opinionated stack** that:+AiSOC bundles the components a SOC normally pieces together from separate vendors:-- **Ingests** events from any connector (CrowdStrike, Splunk, AWS, Okta, Sentinel) into a Kafka spine.-- **Correlates** them in real time with deduplication, ML scoring, and Sigma/YARA detection.-- **Enriches** every signal with threat-intel from TAXII 2.1, MISP, OTX, and CISA KEV.-- **Reasons** about attacks via a LangGraph multi-agent system grounded in MITRE ATT&CK.-- **Detects deviations** with UEBA — per-user behavioral baselines and Z-score anomaly scoring.-- **Traps adversaries** with cryptographically signed honeytokens (URLs, files, AWS creds, emails).-- **Validates coverage** with automated Atomic Red Team / Caldera adversary emulation.-- **Responds** with blast-radius-aware SOAR actions, every step explainable.-- **Governs** with multi-tenant RLS, granular RBAC, immutable audit logs, and SOC 2 / ISO 27001 / NIST CSF evidence dashboards.+- **Ingest** events from any connector (CrowdStrike, Splunk, AWS, Okta, Sentinel) into a Kafka spine.+- **Correlate** them in real time with deduplication, ML scoring, and Sigma/YARA detection.+- **Enrich** every signal with threat intelligence from TAXII 2.1, MISP, OTX, and CISA KEV.+- **Reason** about attacks via a LangGraph multi-agent system grounded in MITRE ATT&CK.+- **Detect deviations** with UEBA — per-user behavioural baselines and Z-score anomaly scoring.+- **Trap adversaries** with HMAC-signed honeytokens (URLs, files, AWS credentials, emails).+- **Validate coverage** with automated Atomic Red Team and Caldera adversary emulation.+- **Respond** with blast-radius-aware SOAR actions, every step explainable.+- **Govern** with multi-tenant RLS, granular RBAC, immutable audit logs, and SOC 2 / ISO 27001 / NIST CSF / PCI-DSS / HIPAA / DORA evidence dashboards.-Everything ships under **MIT** — fork it, self-host it, audit it, extend it.+Everything ships under MIT. Fork it, self-host it, audit it, extend it.----## 🚀 Highlights+## Highlights<table><tr><td valign="top" width="50%">-### ⚡ Real-time fusion+### Real-time fusion- Kafka spine with sub-second ingestion- Bloom-filter dedup on 10M+ IOCs- LightGBM + Isolation Forest scoring- Live WebSocket feed into the console-### 🧠 AI Copilot+### AI Copilot- LangGraph agents with persistent memory- Qdrant RAG over MITRE ATT&CK + tenant data- Natural-language threat hunts- Every decision traceable end-to-end-### 🕸️ Knowledge graph+### Knowledge graph- Neo4j entity graph (hosts, users, alerts, IOCs)- Attack-path reconstruction per case- Blast-radius gating on automated actions-### 👤 UEBA+### UEBA- Per-user Welford online baseline (no batch jobs)- Z-score anomaly scoring with peer-group analysis- Kafka integration: `security.events` → `security.anomalies`@@ -138,25 +135,25 @@ Everything ships under **MIT** — fork it, self-host it, audit it, extend it.</td><td valign="top" width="50%">-### 🎯 Detection engineering+### Detection engineering- Sigma over OpenSearch + ClickHouse- YARA file/memory scanning- KQL, EQL, Lucene, regex query types- Community detection catalog with one-click install-### 🍯 Honeytokens+### Honeytokens- HMAC-SHA256 signed tokens (URL, file, AWS key, email)- First-touch webhook alerting- Token lifecycle: active / triggered / expired-- Built-in lure URL copy & share+- Built-in lure URL copy and share-### 🟣 Purple Team+### Purple Team- Atomic Red Team YAML parser + Caldera executor- ATT&CK coverage heatmap (tactic × technique)- Detection reporting (true positive / false negative)- Tabletop exercise session manager-### 🛡️ Enterprise governance+### Governance- SAML 2.0 + OIDC SSO- Multi-tenant Postgres RLS- Granular RBAC (`resource:action` permissions)@@ -170,7 +167,7 @@ Everything ships under **MIT** — fork it, self-host it, audit it, extend it.----## 🏗️ Architecture+## Architecture```mermaidflowchart LR@@ -236,7 +233,7 @@ flowchart LRActions --> Kafka```-### 🔌 Service map+### Service map| Service | Lang | Port | Role ||---|---|---|---|@@ -253,68 +250,68 @@ flowchart LR| `ingest` | Go | 8081 | OCSF normalization + Shodan/CVE || `enrichment` | Go | 8080 | IOC enrichment (VT, AbuseIPDB, GreyNoise) |-### 🗄️ Storage tier+### Storage tier| Store | Purpose ||---|---|-| **PostgreSQL** | Tenants, users, cases, detection rules, RBAC, audit log, compliance · Row-level security |-| **ClickHouse** | High-cardinality event analytics + alert metrics |-| **OpenSearch** | Full-text IOC + actor + report search · Sigma backend |-| **Qdrant** | Vector RAG for agents, semantic ATT&CK lookup |-| **Neo4j** | Knowledge graph: entities, attack paths, blast radius |-| **Redis** | Cache, pub/sub, IOC bloom filter, enrichment TTL |-| **Kafka** | Event streaming spine (raw, fused, vulnerability, anomaly, action) |+| PostgreSQL | Tenants, users, cases, detection rules, RBAC, audit log, compliance · Row-level security |+| ClickHouse | High-cardinality event analytics + alert metrics |+| OpenSearch | Full-text IOC + actor + report search · Sigma backend |+| Qdrant | Vector RAG for agents, semantic ATT&CK lookup |+| Neo4j | Knowledge graph: entities, attack paths, blast radius |+| Redis | Cache, pub/sub, IOC bloom filter, enrichment TTL |+| Kafka | Event streaming spine (raw, fused, vulnerability, anomaly, action) |----## 🖥️ Console tour--The console fuses the analyst's day-zero workflow into one cohesive surface:--- **Dashboard** — live KPI tiles + trend chart + WebSocket-driven event ticker-- **Alerts & Cases** — triage queues, status workflow, evidence timeline-- **Investigation Ledger** — replayable, step-by-step record of every prompt, tool call, and rationale the agent emitted on a case (the moat)-- **Attack Graph** — Cytoscape + fcose layout over the Neo4j subgraph for a case-- **MITRE Heatmap** — coverage tiles with per-tactic technique density-- **Threat Hunting** — Sigma / KQL / YARA editor with on-demand hunts-- **Detection Rules** — Monaco-powered rule builder with Sigma autocompletion-- **Detection Catalog** — 200+ community Sigma rules with one-click tenant install-- **Threat Intel** — IOC search, feed status, and STIX/MISP source health-- **Marketplace** — 15 plugins + 50+ playbooks + 200+ detections, with ratings, badges, and category filter-- **Playbooks** — community + private playbooks with SOAR automation-- **UEBA** — behavioral anomaly feed + peer-group deviation chart-- **Honeytokens** — create lures, view trigger log, copy lure URLs-- **Purple Team** — ATT&CK heatmap, execution tracker, tabletop sessions-- **Compliance** — SOC 2 / ISO 27001 / NIST CSF / PCI-DSS / HIPAA / DORA evidence-- **SLA Dashboard** — MTTD, MTTR, MTTC metrics + breach alerts-- **Audit Log** — immutable, paginated, tenant-scoped event history-- **Benchmark** — public, reproducible eval harness (alert-reduction measurement + MITRE / completeness / response-quality substrate self-consistency gates), run in CI-- **Settings → RBAC** — roles, permissions, and user-role assignments-- **Ambient Copilot** — context-aware next-action suggestions on every alert, case, rule, and playbook page (one click → agent runs the right tool with the right payload)-- **AI Copilot dock** — slide-over invoked with `⌘J` for any page-- **Command palette** — global `⌘K` for navigation, quick actions, and Copilot--### 📱 Responder PWA — mobile-first surface+## Console tour++The console fuses the analyst's day-zero workflow into one surface:++- **Dashboard** — KPI tiles, trend chart, and a WebSocket-driven event ticker.+- **Alerts & Cases** — triage queues, status workflow, evidence timeline.+- **Investigation Ledger** — replayable, step-by-step record of every prompt, tool call, and rationale the agent emitted on a case.+- **Attack Graph** — Cytoscape + fcose layout over the Neo4j subgraph for a case.+- **MITRE Heatmap** — coverage tiles with per-tactic technique density.+- **Threat Hunting** — Sigma / KQL / YARA editor with on-demand hunts.+- **Detection Rules** — Monaco-powered rule builder with Sigma autocompletion.+- **Detection Catalog** — community Sigma rules with one-click tenant install.+- **Threat Intel** — IOC search, feed status, and STIX / MISP source health.+- **Marketplace** — plugins, playbooks, and detections, with ratings, badges, and category filters.+- **Playbooks** — community and private playbooks with SOAR automation.+- **UEBA** — behavioural anomaly feed and peer-group deviation chart.+- **Honeytokens** — create lures, view trigger log, copy lure URLs.+- **Purple Team** — ATT&CK heatmap, execution tracker, tabletop sessions.+- **Compliance** — SOC 2 / ISO 27001 / NIST CSF / PCI-DSS / HIPAA / DORA evidence.+- **SLA Dashboard** — MTTD, MTTR, MTTC metrics + breach alerts.+- **Audit Log** — immutable, paginated, tenant-scoped event history.+- **Benchmark** — public eval harness (alert-reduction measurement plus three substrate self-consistency gates), run in CI.+- **Settings → RBAC** — roles, permissions, and user-role assignments.+- **Ambient Copilot** — context-aware next-action suggestions on alert, case, rule, and playbook pages. Each suggestion runs the right tool with the right payload.+- **AI Copilot dock** — slide-over invoked with `⌘J` for any page.+- **Command palette** — global `⌘K` for navigation, quick actions, and Copilot.++### Responder PWAA separate, installable PWA route at `/responder/*` for analysts who carry a pager:-- **Passkey login** — WebAuthn / FIDO2 platform authenticators only, no SMS fallback-- **On-call view** — current responder per tenant, surfaced in alerts on the desktop console too-- **Approvals queue** — long-lived approval requests for blast-radius-gated SOAR actions, signed off with hardware-attested passkey-- **Push notifications** — VAPID-signed Web Push delivered through `services/realtime`, follows the on-call rotation-- **Offline shell** — service worker + cached app shell so the responder surface keeps loading on a flaky carrier link+- **Passkey login** — WebAuthn / FIDO2 platform authenticators only, no SMS fallback.+- **On-call view** — current responder per tenant, surfaced in alerts on the desktop console too.+- **Approvals queue** — long-lived approval requests for blast-radius-gated SOAR actions, signed off with a hardware-attested passkey.+- **Push notifications** — VAPID-signed Web Push delivered through `services/realtime`, following the on-call rotation.+- **Offline shell** — service worker + cached app shell so the responder surface keeps loading on a flaky carrier link.See [`apps/web/src/app/(responder)/`](apps/web/src/app/(responder)/) and [`services/api/migrations/009_responder_pwa.sql`](services/api/migrations/009_responder_pwa.sql).-> **Marketing landing** lives at `/` and the console at `/dashboard`. Both share the same brand tokens.+The marketing landing lives at `/` and the console at `/dashboard`. Both share the same brand tokens.----## 🚀 Quick start+## Quick start-### One-shot demo (under 5 minutes)+### One-shot demo-If you just want to see AiSOC investigate a real case in your browser:+To see AiSOC investigate a seeded case in your browser:```bashgit clone https://github.com/beenuar/AiSOC.git@@ -322,34 +319,31 @@ cd AiSOCpnpm aisoc:demo```-That single command pulls prebuilt images from `ghcr.io/beenuar/*`, brings up-the slim demo profile (postgres, redis, kafka, api, agents, realtime, web),-seeds canonical demo data, kicks off an AI investigation against a seeded-case, and opens your browser at `/cases/<uuid>` so you land on a live-investigation. Target on a warm Docker daemon:+That command pulls prebuilt images from `ghcr.io/beenuar/*`, brings up the slim demo profile (postgres, redis, kafka, api, agents, realtime, web), seeds canonical demo data, runs an AI investigation against a seeded case, and opens your browser at `/cases/<uuid>`.++Approximate timings on a warm Docker daemon:-| Step | Target |+| Step | Time ||---|---|| `docker compose pull` | ~90s || `docker compose up` + healthchecks | ~60s || Seed canonical data | ~30s || Kick off investigation | ~30s |-| **Total time-to-first-investigation** | **~3.5 min** |+| Total | ~3.5 min |When you're done: `pnpm aisoc:demo:down` (deletes the demo volumes).-The full development quick start with all services (UEBA, Honeytokens,-Purple Team, ClickHouse, OpenSearch, Neo4j, Qdrant) is below.+The full development quick start with all services (UEBA, Honeytokens, Purple Team, ClickHouse, OpenSearch, Neo4j, Qdrant) is below.### Full stack (development)-### Prerequisites+#### Prerequisites- Docker 24+ and Docker Compose v2- Node.js 20+ and pnpm 8+- Go 1.21+ and Python 3.11+ (only for local service hacking)-### 1 · Clone+#### 1. Clone```bashgit clone https://github.com/beenuar/AiSOC.git@@ -357,7 +351,7 @@ cd AiSOCcp .env.example .env```-### 2 · Configure+#### 2. Configure```env# AI providers (one required)@@ -388,7 +382,7 @@ CALDERA_API_KEY=...ATOMIC_RED_TEAM_PATH=/opt/atomic-red-team/atomics```-### 3 · Boot+#### 3. Boot```bashdocker compose up -d@@ -397,21 +391,21 @@ docker compose psFirst start takes ~60s while datastores warm up.-### 4 · Seed demo data+#### 4. Seed demo data```bashpnpm seed:demo # generates cases, alerts, IOCs, attack paths, UEBA anomalies```-### 5 · Verify+#### 5. Verify```bash-pnpm aisoc:doctor # one-shot health check: ports, containers, demo data, API + WS+pnpm aisoc:doctor # health check: ports, containers, demo data, API + WS```-If anything is red, the doctor tells you exactly what to fix before you log in.+If any check fails, the doctor tells you exactly what to fix before logging in.-### 5b · Run the public eval harness (optional but recommended)+#### 5b. Run the public eval harness (optional)```bash# Generate 200 synthetic incidents and run all four substrate eval suites@@ -421,18 +415,11 @@ python scripts/run_evals.py --count 200 --report eval_report.jsonpytest services/agents/tests/test_mitre_accuracy.py```-The harness writes `eval_report.json` and `eval_mitre_accuracy_report.json`-which the [public eval harness page](apps/docs/docs/benchmark.md) renders. The-same harness runs in CI on every PR — see-[`.github/workflows/ci.yml`](.github/workflows/ci.yml). Important: the harness-runs deterministic substrate code (extractors, fusion, templates, judges)-against synthetic data — it does **not** call the live LLM agent. Three of-the four metrics are substrate self-consistency gates rather than agent-accuracy scores. The-[benchmark page](apps/docs/docs/benchmark.md) documents exactly what each-suite measures and what it doesn't.+The harness writes `eval_report.json` and `eval_mitre_accuracy_report.json`, which the [public eval harness page](apps/docs/docs/benchmark.md) renders. The same harness runs in CI on every PR — see [`.github/workflows/ci.yml`](.github/workflows/ci.yml).-### 6 · Open+The harness runs deterministic substrate code (extractors, fusion, templates, judges) against synthetic data — it does not call the live LLM agent. Three of the four metrics are substrate self-consistency gates rather than agent accuracy scores. The [benchmark page](apps/docs/docs/benchmark.md) documents what each suite measures and what it does not.++#### 6. Open| Surface | URL | Notes ||---|---|---|@@ -440,7 +427,7 @@ suite measures and what it doesn't.| Console | http://localhost:3000/dashboard | Default user: `[email protected]` / `changeme` || API (Swagger) | http://localhost:8000/docs | REST + GraphQL endpoints || Agents | http://localhost:8001/docs | LangGraph runner |-| UEBA | http://localhost:8007/docs | Behavioral analytics |+| UEBA | http://localhost:8007/docs | Behavioural analytics || Honeytokens | http://localhost:8008/docs | Honeytoken lifecycle || Purple Team | http://localhost:8006/docs | Adversary emulation || Realtime WS | ws://localhost:8086/ws/alerts | Live alert channel |@@ -448,7 +435,7 @@ suite measures and what it doesn't.| Grafana | http://localhost:3001 | `admin` / `admin` (`monitoring` profile) || Jaeger | http://localhost:16686 | Distributed traces (`monitoring` profile) |-### Optional profiles+#### Optional profiles```bashdocker compose --profile connectors up -d # CrowdStrike, Splunk, AWS, Okta, Sentinel@@ -457,7 +444,7 @@ docker compose --profile monitoring up -d # Prometheus, Grafana, Jaeger, OTel----## 🧩 Monorepo layout+## Monorepo layout```AiSOC/@@ -489,13 +476,13 @@ AiSOC/│ ├── plugin-sdk-py/ # Python plugin development SDK (PyPI: aisoc-plugin-sdk)│ ├── plugin-sdk-go/ # Go plugin development SDK (module: github.com/beenuar/aisoc/plugin-sdk-go)│ └── aisoc-cli/ # CLI: scaffold / validate / publish plugins & detections-├── detections/ # 200+ community Sigma detection rules (YAML)-├── playbooks/ # 50+ community SOAR playbooks (YAML)-├── plugins/ # 15 first-party plugins (Go + Python)+├── detections/ # Community Sigma detection rules (YAML)+├── playbooks/ # Community SOAR playbooks (YAML)+├── plugins/ # First-party plugins (Go + Python)├── marketplace/ # Marketplace index (JSON, generated by scripts/build_marketplace.py)├── infra/│ ├── coolify/ # Coolify (self-hosted Heroku-style PaaS) quickstart-│ ├── fly/ # Fly.io machines + deploy script (recommended for hosted demo)+│ ├── fly/ # Fly.io machines + deploy script│ ├── railway/ # Railway template (railway.toml)│ ├── render/ # Render blueprint (render.yaml)│ ├── terraform/ # AWS (VPC, EKS, RDS, ElastiCache, MSK)@@ -519,9 +506,9 @@ AiSOC/----## 📡 API Reference+## API reference-The full OpenAPI 3.1 spec lives at [`docs/openapi.yaml`](docs/openapi.yaml). Key endpoint groups:+The full OpenAPI 3.1 spec lives at [`docs/openapi.yaml`](docs/openapi.yaml). Endpoint groups:| Tag | Prefix | Notes ||---|---|---|@@ -548,9 +535,7 @@ Interactive docs: `http://localhost:8000/docs` (Swagger) or `http://localhost:80----## 🧩 Plugin & Detection SDK--Build custom integrations with the AiSOC Plugin SDK:+## Plugin and detection SDK```bash# Scaffold a new plugin@@ -563,22 +548,17 @@ npx aisoc-cli validate detection ./detections/my-rule.yamlnpx aisoc-cli publish plugin ./my-connector --key ~/.aisoc/signing.key```-SDKs available for:-- **TypeScript** — `packages/plugin-sdk-ts` (npm: `@aisoc/plugin-sdk`)-- **Python** — `packages/plugin-sdk-py` (PyPI: `aisoc-plugin-sdk`)-- **Go** — `packages/plugin-sdk-go` (module: `github.com/beenuar/aisoc/plugin-sdk-go`)+SDKs:++- TypeScript — `packages/plugin-sdk-ts` (npm: `@aisoc/plugin-sdk`)+- Python — `packages/plugin-sdk-py` (PyPI: `aisoc-plugin-sdk`)+- Go — `packages/plugin-sdk-go` (module: `github.com/beenuar/aisoc/plugin-sdk-go`)-Detection authors can drop YAML rules directly into `detections/` and SOAR-playbooks into `playbooks/`. CI validates them on every PR-([`scripts/validate_detections.py`](scripts/validate_detections.py),-[`scripts/validate_playbooks.py`](scripts/validate_playbooks.py)) and-[`scripts/build_marketplace.py`](scripts/build_marketplace.py) republishes-[`marketplace/index.json`](marketplace/index.json) so the in-app Marketplace-picks them up automatically.+Detection authors can drop YAML rules directly into `detections/` and SOAR playbooks into `playbooks/`. CI validates them on every PR ([`scripts/validate_detections.py`](scripts/validate_detections.py), [`scripts/validate_playbooks.py`](scripts/validate_playbooks.py)) and [`scripts/build_marketplace.py`](scripts/build_marketplace.py) republishes [`marketplace/index.json`](marketplace/index.json) so the in-app Marketplace picks them up automatically.----## 👩💻 Development+## Development### Frontend@@ -637,9 +617,9 @@ cd services/ingest && go test ./...----## ☸️ Deployment+## Deployment-### Kubernetes (recommended)+### Kubernetes```bashhelm repo add bitnami https://charts.bitnami.com/bitnami@@ -652,7 +632,7 @@ helm install aisoc ./infra/helm/aisoc \The Helm chart includes HPA, PDB, and Ingress for every microservice.-### Backup & restore+### Backup and restore```bash# Backup Postgres + ClickHouse + plugins to S3@@ -684,9 +664,9 @@ terraform apply----## 🔭 Roadmap+## Roadmap-We publish the public roadmap in [ROADMAP.md](ROADMAP.md). All v4.1, v5.0, v5.1, and v5.2 items have shipped (Investigation Ledger, Ambient Copilot, Responder PWA, public eval harness, MCP server, and the one-shot demo). Next up:+The public roadmap lives in [ROADMAP.md](ROADMAP.md). The v4.1, v5.0, v5.1, and v5.2 items have shipped (Investigation Ledger, Ambient Copilot, Responder PWA, public eval harness, MCP server, and the one-shot demo). Next:- v6.0 — Agent-authored detections with human-in-the-loop review- v6.1 — Federated threat intel sharing across self-hosted instances@@ -694,15 +674,15 @@ We publish the public roadmap in [ROADMAP.md](ROADMAP.md). All v4.1, v5.0, v5.1,----## 🤝 Contributing+## Contributing-We welcome PRs of every size. Read [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow and the [Code of Conduct](CODE_OF_CONDUCT.md) before opening a PR.+PRs of every size are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow and the [Code of Conduct](CODE_OF_CONDUCT.md) before opening a PR.Good first issues:-- Adding new connector integrations in `integrations/`-- Expanding community Sigma detections in `detections/`-- Building new plugins and publishing to the marketplace+- New connector integrations in `integrations/`+- Community Sigma detections in `detections/`+- New plugins published to the marketplace- Frontend UI polish (Tailwind / React)- Documentation and tutorials in `apps/docs/`- Test coverage for any service@@ -710,22 +690,18 @@ Good first issues:----## 🔐 Security+## Security-Found a security issue? Please **do not** open a public issue. Use [GitHub's private vulnerability reporting](https://github.com/beenuar/AiSOC/security/advisories/new) — full policy in [SECURITY.md](SECURITY.md). We follow coordinated disclosure.+For security issues, please do not open a public issue. Use [GitHub's private vulnerability reporting](https://github.com/beenuar/AiSOC/security/advisories/new). Full policy in [SECURITY.md](SECURITY.md). AiSOC follows coordinated disclosure.----## 📜 License+## License-[MIT](LICENSE) — © 2024–present AiSOC contributors-----+[MIT](LICENSE) — © 2024–present AiSOC contributors.<div align="center">-**Built with ❤️ by the AiSOC open-source community.**--[Report a bug](https://github.com/beenuar/AiSOC/issues/new?template=bug_report.md) · [Request a feature](https://github.com/beenuar/AiSOC/issues/new?template=feature_request.md) · [Become a contributor](CONTRIBUTING.md) · [Read the docs](apps/docs/)+[Report a bug](https://github.com/beenuar/AiSOC/issues/new?template=bug_report.md) · [Request a feature](https://github.com/beenuar/AiSOC/issues/new?template=feature_request.md) · [Contribute](CONTRIBUTING.md) · [Read the docs](apps/docs/)</div>diff --git a/ROADMAP.md b/ROADMAP.mdindex 26acbbf43..d8f68ddaa 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -2,16 +2,16 @@This document captures the planned direction for AiSOC across major versions. All v4 deliverables and items deferred beyond v4 are listed here.-## v4.0 — "Autonomous SOC" ✅ Shipped+## v4.0 — Shipped-### Pillar 1: AI Multi-Agent Investigator+### AI multi-agent investigator- [x] Orchestrator (LangGraph state machine) in `services/agents/app/investigator/`- [x] ReconAgent, ForensicAgent, ResponderAgent (dry-run with analyst approval)- [x] ReportWriterAgent — streaming markdown + branded PDF- [x] Investigation & Report tabs in Case Workspace UI- [x] Eval harness: 20 synthetic incidents, ≥80% MITRE-tactic accuracy CI gate-### Pillar 2: Visual SOAR Studio+### Visual SOAR studio- [x] React Flow playbook editor with full node palette (Trigger, Condition, Action, Loop, Parallel, Human Approval, Wait, Notify)- [x] DAG playbook engine with retries, idempotency, blast-radius checks- [x] `playbook.schema.json` (JSON Schema 2020-12) for portability and CI linting@@ -19,7 +19,7 @@ This document captures the planned direction for AiSOC across major versions. Al- [x] 12 starter playbook templates- [x] Community playbook marketplace (static index v4.0; publishing flow v4.1)-### Pillar 3: Plugin Platform + Public API + SDKs + Docs+### Plugin platform, public API, SDKs, docs- [x] Plugin SDK in Python (`packages/plugin-sdk-py/`) and Go (`packages/plugin-sdk-go/`)- [x] `plugin.yaml` manifest spec (connector | enricher | responder | detection | widget)- [x] Plugin loader with OCI image support (`oras pull`) in api/actions/enrichment/connectors@@ -38,7 +38,7 @@ This document captures the planned direction for AiSOC across major versions. Al----## v4.1 — "Community Ecosystem" ✅ Shipped+## v4.1 — Shipped- [x] Plugin publishing flow (signed community submissions, Ed25519 verification, review endpoints)- [x] Plugin marketplace UI v2 (ratings, install counts, verified badges, category filter, sort)@@ -48,7 +48,7 @@ This document captures the planned direction for AiSOC across major versions. Al----## v5.0 — "Enterprise Ready" ✅ Shipped+## v5.0 — Shipped### Identity & Access- [x] SAML 2.0 + OIDC authentication (Okta, Azure AD, Google Workspace)@@ -71,7 +71,7 @@ This document captures the planned direction for AiSOC across major versions. Al----## v5.1 — "Detection Depth" ✅ Shipped+## v5.1 — Shipped### UEBA- [x] Per-user, per-host, per-service behavioral baselines (Welford's algorithm)@@ -92,7 +92,7 @@ This document captures the planned direction for AiSOC across major versions. Al----## v6.0 — "Full-Spectrum Visibility"+## v6.0 — Planned### Investigation & Forensics Depth- Super-timeline view (Plaso-style, all event sources on one scrubbable axis)@@ -102,13 +102,13 @@ This document captures the planned direction for AiSOC across major versions. Al- Evidence vault — signed, hashed, chain-of-custody for every artifact### Data Source Breadth-- **Identity:** Okta, Azure AD/Entra, Google Workspace, Duo (full production connectors)-- **Cloud:** AWS CloudTrail/GuardDuty, Azure Defender, GCP Security Command Center, Kubernetes audit + Falco-- **EDR:** CrowdStrike Falcon, SentinelOne, Microsoft Defender for Endpoint, Wazuh-- **Email:** Gmail/Workspace, Microsoft 365, Mimecast, Proofpoint — phishing triage agent-- **Network:** Zeek, Suricata/NFSen, NDR (Arkime/Stenographer)-- **STIX/TAXII server** (both consume and serve IOCs)-- **MISP** and **OpenCTI** federation+- Identity: Okta, Azure AD/Entra, Google Workspace, Duo (full production connectors)+- Cloud: AWS CloudTrail/GuardDuty, Azure Defender, GCP Security Command Center, Kubernetes audit + Falco+- EDR: CrowdStrike Falcon, SentinelOne, Microsoft Defender for Endpoint, Wazuh+- Email: Gmail/Workspace, Microsoft 365, Mimecast, Proofpoint — phishing triage agent+- Network: Zeek, Suricata/NFSen, NDR (Arkime/Stenographer)+- STIX/TAXII server (both consume and serve IOCs)+- MISP and OpenCTI federation### Attack Surface & Vulnerability- ASM / CTEM module — external attack surface discovery feeding TI@@ -118,7 +118,7 @@ This document captures the planned direction for AiSOC across major versions. Al----## v7.0 — "Operator Experience"+## v7.0 — Planned- Mobile responder console (React Native) — triage and acknowledge from phone- WCAG AA full accessibility passdiff --git a/apps/docs/docs/benchmark.md b/apps/docs/docs/benchmark.mdindex 1828b0b88..657fc7409 100644--- a/apps/docs/docs/benchmark.md+++ b/apps/docs/docs/benchmark.md@@ -31,35 +31,30 @@ and doesn't — below.## Why this exists-The AI SOC market is full of unfalsifiable claims:--- *"90% alert reduction"* — measured on **whose** alerts, against **what** baseline?-- *"10× analyst throughput"* — what's the dataset, the rubric, the failure mode?-- *"Detects MITRE ATT&CK"* — across how many tactics? With what accuracy?--You cannot deploy a black-box vendor in a regulated environment and tell your-auditor "we trust their internal QA." AiSOC takes the opposite tack: rather-than claim a number we can't substantiate, we publish a small, honest harness-and call out exactly which numbers are real and which are mostly substrate-self-checks.--1. **The dataset is in the repo.** [`services/agents/tests/eval_data/synthetic_incidents.json`](https://github.com/beenuar/AiSOC/blob/main/services/agents/tests/eval_data/synthetic_incidents.json) — 200 cases, deterministic, regenerable.-2. **The harness is in the repo.** Four pytest suites under [`services/agents/tests/`](https://github.com/beenuar/AiSOC/tree/main/services/agents/tests).-3. **The CI gate runs on every commit.** [Latest run](https://github.com/beenuar/AiSOC/actions/workflows/ci.yml).-4. **Historical numbers are queryable.** Every successful build pushes its `eval_report.json` to the [`eval-results`](https://github.com/beenuar/AiSOC/tree/eval-results) branch as `eval/results/<commit_sha>.json`.+Vendor claims about AI SOC performance — alert reduction percentages, MITRE+coverage, analyst throughput — are typically not reproducible by buyers. The+dataset, the baseline, and the rubric are not published. AiSOC takes the+opposite approach: ship a small harness, label which metrics are real+measurements and which are substrate self-checks, and let anyone reproduce+the numbers.++1. **The dataset is in the repo** — [`services/agents/tests/eval_data/synthetic_incidents.json`](https://github.com/beenuar/AiSOC/blob/main/services/agents/tests/eval_data/synthetic_incidents.json), 200 cases, deterministic, regenerable.+2. **The harness is in the repo** — four pytest suites under [`services/agents/tests/`](https://github.com/beenuar/AiSOC/tree/main/services/agents/tests).+3. **The CI gate runs on every commit** — [latest run](https://github.com/beenuar/AiSOC/actions/workflows/ci.yml).+4. **Historical numbers are queryable** — every successful build pushes its `eval_report.json` to the [`eval-results`](https://github.com/beenuar/AiSOC/tree/eval-results) branch as `eval/results/<commit_sha>.json`.## Latest resultsThe four numbers below are produced by `scripts/run_evals.py` against the-200-incident synthetic benchmark. They run in roughly **25 milliseconds total**-(no LLM calls, no DB) so they're cheap enough to gate every commit.+200-incident synthetic dataset. They run in roughly 25 milliseconds total (no+LLM calls, no DB) so they're cheap enough to gate every commit.-| Suite | Metric | Latest | Target | What it actually checks |-|--------------------------------|-----------------------|-------------|---------|--------------------------|-| Alert reduction ratio | reduction | **75.3 %** | ≥ 70 % | **Real measurement** of the 3-tier fusion logic on a noisy 1 000-alert stream |-| MITRE ATT&CK tactic accuracy | accuracy | **97.0 %** | ≥ 80 % | **Substrate self-consistency** — keyword extractor vs. dataset that's written for it |-| Investigation completeness | mean keyword coverage | **94.3 %** | ≥ 85 % | **Substrate self-consistency** — report template wraps the description; judge finds keywords from the description |-| Response-plan quality | mean rubric score | **1.000** | ≥ 0.80 | **Substrate self-consistency** — synthesizer embeds the keywords the rubric checks for |+| Suite | Metric | Latest | Target | What it checks |+|--------------------------------|-----------------------|-----------|---------|----------------|+| Alert reduction ratio | reduction | 75.3 % | ≥ 70 % | Real measurement of the 3-tier fusion logic on a noisy 1 000-alert stream |+| MITRE ATT&CK tactic accuracy | accuracy | 97.0 % | ≥ 80 % | Substrate self-consistency — keyword extractor vs. dataset written for it |+| Investigation completeness | mean keyword coverage | 94.3 % | ≥ 85 % | Substrate self-consistency — report template wraps the description; judge finds keywords from the description |+| Response-plan quality | mean rubric score | 1.000 | ≥ 0.80 | Substrate self-consistency — synthesizer embeds the keywords the rubric checks for |These numbers move with the codebase. The current snapshot lives at[`eval-results/eval/results/latest.json`](https://github.com/beenuar/AiSOC/blob/eval-results/eval/results/latest.json).@@ -97,9 +92,6 @@ python3 scripts/run_evals.py --ci --out report.json## What each suite actually measures-We took a hard look at the harness and tightened the language so the-documentation matches the code. Here is the honest breakdown:-### 1. Alert reduction ratio — `Real measurement`**Source:** [`services/agents/tests/test_alert_reduction.py`](https://github.com/beenuar/AiSOC/blob/main/services/agents/tests/test_alert_reduction.py)@@ -116,9 +108,8 @@ Incidents below the noise threshold (`score < 0.35`) are dropped. The output iswhatever the code produces — a fusion regression will move the number. This isa legitimate measurement of fusion behavior on a controlled dataset.-We deliberately quote ~75 % rather than the 90 % that vendors tend to market,-because we're measuring the same logic on a fixed dataset every time, and we'd-rather an auditor see a real number than a marketing one.+The reported ~75 % is the actual output of the fusion pipeline on this fixed+dataset. It is not tuned to match a marketing number.### 2. MITRE ATT&CK tactic accuracy — `Substrate self-consistency`@@ -189,46 +180,42 @@ This catches a broken templating pipeline (e.g. someone removes the MITREreferences from the synthesizer, or the rubric stops matching) — it is**not** a grade of LLM-written response plans.-## Honest comparison vs vendors+## Comparison to other AI SOC offerings| Capability | AiSOC | Wazuh | Splunk | Anvilogic | Prophet | Dropzone ||-----------------------------------------------|:-----:|:-----:|:------:|:---------:|:-------:|:--------:|-| Open-source (MIT) | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |-| Self-hostable (your data never leaves) | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ |-| Agent decisions are step-by-step auditable | ✅ | N/A | N/A | ❌ | ❌ | ❌ |-| Public, reproducible regression harness | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |-| Eval dataset shipped in the repo | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |-| Substrate-level regression gate in CI | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |-| Plugin SDK (Python + Go) | ✅ | ✅ | ✅ | ⚠️ | ❌ | ❌ |-| Free | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |+| Open-source (MIT) | yes | yes | no | no | no | no |+| Self-hostable | yes | yes | yes | no | no | no |+| Agent decisions step-by-step auditable | yes | n/a | n/a | no | no | no |+| Public, reproducible regression harness | yes | no | no | no | no | no |+| Eval dataset shipped in the repo | yes | no | no | no | no | no |+| Substrate-level regression gate in CI | yes | no | no | no | no | no |+| Plugin SDK (Python + Go) | yes | yes | yes | partial | no | no |+| Free | yes | yes | no | no | no | no |-> **Why this matters:** A regulated bank cannot deploy a vendor whose agent is a-> black box cloud service. They can deploy AiSOC. Your auditor reviews the same-> dataset, the same harness, and the same CI numbers we publish on this page —-> and we tell them straight which numbers are real measurements and which are-> regression sentinels.+A self-hostable, MIT-licensed agent with a published regression harness is+something an auditor or regulated buyer can review directly. Vendor cloud+agents typically cannot be reviewed at the same level.-## What this is _not_+## What this is not-We're allergic to overclaiming, so a few honest caveats:+A few caveats:- **No LLM agent runs in this harness.** It exercises deterministic extractorsand templated report/plan synthesis. The live `services/agents/` LangGraph- orchestrator that talks to OpenAI/Anthropic is **not** under test here. A- separate **online eval** (LLM-as-judge, real orchestrator) is on the- [Phase-1 roadmap](https://github.com/beenuar/AiSOC/blob/main/.cursor/plans/aisoc_leading-ai-soc_90-day_plan_9999bc93.plan.md#1c-eval-harness-from-20--200-cases--public-benchmark)- and will run nightly. That is where actual agent accuracy gets measured.+ orchestrator that talks to OpenAI or Anthropic is not under test here. A+ separate online eval (LLM-as-judge, real orchestrator) is on the roadmap and+ will run nightly. That is where actual agent accuracy gets measured.- **The dataset is synthetic.** 200 incidents is enough to flag major- regressions but not enough to claim production parity. Real-customer- blindness is on the roadmap (federated, opt-in).+ regressions but not enough to claim production parity. Federated, opt-in+ real-customer evaluation is on the roadmap.- **Three of the four judges are tautological by design.** The dataset, thetemplates, and the judge were written together to keep the gate fast anddeterministic. They will pass as long as the substrate is internallyconsistent. They will fail if it is not.-- **"Public benchmark" means the harness, not a third-party leaderboard.**+- **"Public eval harness" means this harness, not a third-party leaderboard.**These numbers are reproducible by anyone with `python3`. They are not- comparable to numbers from MITRE Engenuity, MLPerf, or any other external- evaluator.+ comparable to MITRE Engenuity, MLPerf, or any other external evaluator.## Historical resultsdiff --git a/apps/docs/docs/concepts/playbooks.md b/apps/docs/docs/concepts/playbooks.mdindex e174a71ca..97e135aaf 100644--- a/apps/docs/docs/concepts/playbooks.md+++ b/apps/docs/docs/concepts/playbooks.md@@ -33,7 +33,7 @@ and response steps.## Starter Templates-AiSOC ships with 12 production-ready templates:+AiSOC ships with 12 starter templates:| Template | Description ||----------|-------------|diff --git a/apps/docs/docs/intro.md b/apps/docs/docs/intro.mdindex 52741f6f5..b64ac7343 100644--- a/apps/docs/docs/intro.md+++ b/apps/docs/docs/intro.md@@ -4,32 +4,32 @@ sidebar_position: 1# Introduction-**AiSOC** (v5.2.0) is an open-source, production-ready AI Security Operations Center-maintained by the AiSOC community. It is the **only AI SOC where the agent itself is-open-source, auditable, and self-hostable** — every LLM prompt, tool call, and-decision the agent makes is recorded in a replayable Investigation Ledger, and the-substrate is gated by a public, reproducible eval harness on every commit.+AiSOC (v5.2.0) is an open-source AI Security Operations Center maintained by+the AiSOC community. The agent itself is MIT-licensed, self-hostable, and+auditable: every LLM prompt, tool call, evidence citation, and decision is+recorded in a replayable Investigation Ledger, and the substrate is gated by a+public, reproducible eval harness on every commit.-## Key Features+## Capabilities-- 📒 **Investigation Ledger** — every prompt, response, evidence citation, and tool call the agent emits is logged step-by-step and replayable on each case (the structural moat over closed-source AI SOC vendors)-- 📊 **Public eval harness** — alert reduction (a real measurement on a fixed noisy stream) plus MITRE-tactic, investigation-completeness, and response-quality substrate self-consistency gates are reproducible with one command and run in CI on every PR. We are upfront about which is which ([eval harness page](./benchmark)).-- 🤖 **Ambient Copilot** — context-aware next-action suggestions on every alert, case, rule, and playbook page; one click runs the right agent tool with the right payload-- 📱 **Responder PWA** — installable mobile route at `/responder/*` with passkey-only login, on-call rotation, approvals queue, VAPID Web Push, and offline shell-- 🧠 **LangGraph multi-agent investigation** — orchestrator + recon + forensic + responder + report-writer agents, grounded in MITRE ATT&CK with persistent Qdrant RAG memory-- ⚡ **Real-time fusion** — Kafka spine with sub-second alert ingestion, Bloom-filter dedup on 10M+ IOCs, ML scoring (LightGBM + Isolation Forest)-- 🕸️ **Attack graph** — Neo4j entity graph with attack-path reconstruction and blast-radius gating on automated actions-- 👤 **UEBA** — Per-user Welford online baseline, Z-score anomaly scoring, and Kafka-integrated anomaly publishing-- 🍯 **Honeytokens** — HMAC-SHA256 signed deceptive credentials (URL, file, AWS key, email) with first-touch webhook alerting-- 🟣 **Purple Team** — Atomic Red Team YAML parser + Caldera executor, ATT&CK coverage heatmap, and tabletop sessions-- 🎯 **Detection engineering** — 200+ Sigma rules over OpenSearch + ClickHouse, YARA, KQL/EQL, community catalog with one-click install-- 📜 **Playbook engine** — 50+ community SOAR playbooks with explicit decision trees and human-approval gates on destructive actions-- 🌐 **Threat intelligence** — TAXII 2.1, MISP, OTX, CISA KEV with triple storage (search · vector · graph)-- 🛡️ **Enterprise governance** — SAML 2.0 + OIDC SSO, multi-tenant RLS, granular RBAC, immutable audit log-- 📊 **Compliance dashboards** — SOC 2, ISO 27001, NIST CSF, PCI-DSS, HIPAA, DORA evidence with MTTD/MTTR/MTTC SLA tracking-- 🧩 **Marketplace** — 15 first-party plugins + 50+ playbooks + 200+ detections, surfaced in-app via [`marketplace/index.json`](https://github.com/beenuar/AiSOC/tree/main/marketplace)-- 🔌 **SDKs** — Python, TypeScript, and Go SDKs for both client and plugin development; Ed25519-signed publishing-- 🤝 **Model Context Protocol (MCP)** — `@aisoc/mcp` exposes 11 tools to Claude / Cursor / Continue / Cody so analysts can replay agent decisions from inside their IDE ([MCP integration](./integrations/mcp))+- **Investigation Ledger** — every prompt, response, evidence citation, and tool call the agent emits is logged step-by-step and replayable on each case.+- **Public eval harness** — alert reduction (a real measurement on a fixed noisy stream) plus MITRE-tactic, investigation-completeness, and response-quality substrate self-consistency gates. Reproducible with one command and run in CI on every PR. The [eval harness page](./benchmark) documents what each suite does and does not measure.+- **Ambient Copilot** — context-aware next-action suggestions on every alert, case, rule, and playbook page; one click runs the right agent tool with the right payload.+- **Responder PWA** — installable mobile route at `/responder/*` with passkey-only login, on-call rotation, approvals queue, VAPID Web Push, and offline shell.+- **LangGraph multi-agent investigation** — orchestrator, recon, forensic, responder, and report-writer agents grounded in MITRE ATT&CK with Qdrant RAG memory.+- **Real-time fusion** — Kafka spine with sub-second alert ingestion, Bloom-filter dedup on 10M+ IOCs, ML scoring (LightGBM + Isolation Forest).+- **Attack graph** — Neo4j entity graph with attack-path reconstruction and blast-radius gating on automated actions.+- **UEBA** — per-user Welford online baseline, Z-score anomaly scoring, and Kafka-integrated anomaly publishing.+- **Honeytokens** — HMAC-SHA256 signed deceptive credentials (URL, file, AWS key, email) with first-touch webhook alerting.+- **Purple Team** — Atomic Red Team YAML parser + Caldera executor, ATT&CK coverage heatmap, tabletop sessions.+- **Detection engineering** — 200+ Sigma rules over OpenSearch + ClickHouse, YARA, KQL / EQL, community catalog with one-click install.+- **Playbook engine** — 50+ community SOAR playbooks with explicit decision trees and human-approval gates on destructive actions.+- **Threat intelligence** — TAXII 2.1, MISP, OTX, CISA KEV with triple storage (search, vector, graph).+- **Governance** — SAML 2.0 + OIDC SSO, multi-tenant RLS, granular RBAC, immutable audit log.+- **Compliance dashboards** — SOC 2, ISO 27001, NIST CSF, PCI-DSS, HIPAA, DORA evidence with MTTD / MTTR / MTTC SLA tracking.+- **Marketplace** — 15 first-party plugins, 50+ playbooks, 200+ detections, surfaced in-app via [`marketplace/index.json`](https://github.com/beenuar/AiSOC/tree/main/marketplace).+- **SDKs** — Python, TypeScript, and Go SDKs for client and plugin development; Ed25519-signed publishing.+- **Model Context Protocol** — `@aisoc/mcp` exposes 11 tools to Claude, Cursor, Continue, and Cody so analysts can replay agent decisions from inside their IDE ([MCP integration](./integrations/mcp)).## Architecture Overviewdiff --git a/apps/docs/docs/quickstart.md b/apps/docs/docs/quickstart.mdindex 4f7effe16..ad6b8b20d 100644--- a/apps/docs/docs/quickstart.md+++ b/apps/docs/docs/quickstart.md@@ -4,16 +4,15 @@ sidebar_position: 2# Quick Start-Get AiSOC investigating a real case in your browser in under **5 minutes**.+Two paths to a running AiSOC instance:-There are two paths:--1. **One-shot demo (recommended)** — `pnpm aisoc:demo` brings up a slim- stack from prebuilt GHCR images, seeds canonical demo data, kicks off an- AI investigation, and opens your browser at the live case.-2. **Full development stack** — every microservice (UEBA, Honeytokens,- Purple Team, ClickHouse, OpenSearch, Neo4j, Qdrant, MCP, …) for hacking- on AiSOC itself.+1. **One-shot demo** — `pnpm aisoc:demo` brings up a slim stack from prebuilt+ GHCR images, seeds canonical demo data, kicks off an investigation, and+ opens your browser at the live case. Roughly 3-4 minutes on a warm Docker+ daemon.+2. **Full development stack** — every microservice (UEBA, Honeytokens, Purple+ Team, ClickHouse, OpenSearch, Neo4j, Qdrant, MCP) for hacking on AiSOC+ itself.## Prerequisites@@ -44,13 +43,13 @@ That single command:5. Kicks off an AI investigation against a seeded case.6. Opens your browser at `/cases/<uuid>` so you land on a **live** investigation.-| Step | Target |+| Step | Approximate time ||---|---|| `docker compose pull` | ~90s || `docker compose up` + healthchecks | ~60s || Seed canonical data | ~30s || Kick off investigation | ~30s |-| **Total time-to-first-investigation** | **~3.5 min** |+| Total | ~3.5 min |When you're done:@@ -138,7 +137,7 @@ Runs a one-shot health check across ports, containers, demo data, the API,and the WebSocket gateway. If anything is red, it tells you exactly what tofix.-### 6. Run the public eval harness (optional but recommended)+### 6. Run the public eval harness (optional)```bash# Generate 200 synthetic incidents and run all four substrate eval suitesdiff --git a/apps/docs/docusaurus.config.ts b/apps/docs/docusaurus.config.tsindex 323c8da7f..fd2442798 100644--- a/apps/docs/docusaurus.config.ts+++ b/apps/docs/docusaurus.config.ts@@ -5,7 +5,7 @@ import type * as Preset from "@docusaurus/preset-classic";const config: Config = {title: "AiSOC",tagline:- "The auditable AI SOC — every agent decision logged, replayable, and benchmarked publicly. MIT-licensed, self-hostable.",+ "Open-source AI SOC platform. Agent decisions are recorded in an investigation ledger and a public eval harness runs in CI. MIT-licensed and self-hostable.",favicon: "img/favicon.ico",url: "https://beenuar.github.io",diff --git a/apps/docs/src/pages/index.tsx b/apps/docs/src/pages/index.tsxindex f58f471e4..3b9e3ba21 100644--- a/apps/docs/src/pages/index.tsx+++ b/apps/docs/src/pages/index.tsx@@ -16,7 +16,7 @@ function HomepageHeader() {<LinkclassName="button button--secondary button--lg"to="/docs/intro">- Get Started →+ Get started</Link><LinkclassName="button button--outline button--secondary button--lg"@@ -29,95 +29,89 @@ function HomepageHeader() {);}-// Top three features lead with the structural moat: auditable agent decisions,-// the public eval harness that gates the substrate underneath them, and the-// MIT/self-host posture that makes both meaningful in regulated environments.-// The remaining capability list follows so visitors see we ship the substrate-// too — but the headline reason to pick AiSOC over a closed-source competitor-// sits in rows 1–3.+// Feature list. The first three rows describe the properties most relevant to a+// regulated buyer (auditable agent, published eval harness, license posture);+// the rest enumerate the substrate capabilities that ship in the box.const FEATURES = [{- title: '🔎 Auditable agent decisions',+ title: 'Auditable agent decisions',description:'Every prompt, tool call, and rationale the agent emits is persisted to the investigation ledger and replayable step-by-step in the case workspace.',},{- title: '📊 Public eval harness',+ title: 'Public eval harness',description:- '200-incident, CI-gated regression harness over the AiSOC substrate (extractors, fusion, templates, judges). Reproducible on your laptop in seconds. We are upfront about what each metric measures — and what it doesn\u2019t.',+ '200-incident, CI-gated regression harness over the AiSOC substrate (extractors, fusion, templates, judges). Reproducible on a laptop in seconds. The page describes what each metric measures and what it does not.',},{- title: '🆓 MIT-licensed, self-hostable',+ title: 'MIT-licensed, self-hostable',description:- 'Read the code, audit the prompts, run the agent on your own data. No CLA, no telemetry, no calls home — your auditor can review every line.',+ 'The code, prompts, and templates are in the repo. No CLA, no telemetry, no calls home.',},{- title: '🔍 LangGraph multi-agent investigation',+ title: 'LangGraph multi-agent investigation',description:- 'Recon → forensic → responder → reporter graph for automated root-cause analysis, triage, and case enrichment.',+ 'Recon, forensic, responder, and reporter agents wired through a LangGraph orchestrator for triage and case enrichment.',},{- title: '📋 Playbook engine',+ title: 'Playbook engine',description:- 'Visual React Flow editor with 12+ starter templates for automated, human-gated response actions.',+ 'Visual React Flow editor with 12 starter templates for automated, human-gated response actions.',},{- title: '🧠 UEBA',+ title: 'UEBA',description:'Per-user Welford online baselines, Z-score anomaly scoring, and Kafka-integrated anomaly publishing.',},{- title: '🍯 Honeytokens',+ title: 'Honeytokens',description:'HMAC-SHA256 signed deceptive credentials (URL, file, AWS key, email) with first-touch webhook alerting.',},{- title: '🟣 Purple Team',+ title: 'Purple Team',description:- 'Atomic Red Team YAML parser + Caldera executor, ATT&CK coverage heatmap, and tabletop sessions.',+ 'Atomic Red Team YAML parser, Caldera executor, ATT&CK coverage heatmap, and tabletop sessions.',},{- title: '⚡ Real-time fusion',+ title: 'Real-time fusion',description:'Kafka spine with sub-second alert ingestion, Bloom-filter dedup on 10M+ IOCs, ML scoring (LightGBM + Isolation Forest).',},{- title: '🕸️ Attack graph',+ title: 'Attack graph',description:'Neo4j entity graph with attack-path reconstruction and blast-radius gating on automated actions.',},{- title: '🛡️ Detection engineering',+ title: 'Detection engineering',description:- 'Sigma over OpenSearch + ClickHouse, YARA, KQL/EQL — community catalog with one-click install.',+ 'Sigma over OpenSearch and ClickHouse, YARA, KQL/EQL — community catalog with one-click install.',},{- title: '🏛️ Enterprise governance',+ title: 'Enterprise governance',description:- 'SAML 2.0 + OIDC SSO, multi-tenant Postgres RLS, granular RBAC, and immutable audit log.',+ 'SAML 2.0 and OIDC SSO, multi-tenant Postgres RLS, granular RBAC, and immutable audit log.',},{- title: '📊 Compliance dashboards',+ title: 'Compliance dashboards',description:- 'SOC 2, ISO 27001, NIST CSF, PCI-DSS, HIPAA, DORA evidence with MTTD/MTTR/MTTC SLA tracking.',+ 'SOC 2, ISO 27001, NIST CSF, PCI-DSS, HIPAA, and DORA evidence with MTTD/MTTR/MTTC SLA tracking.',},{- title: '🔌 Plugin ecosystem',+ title: 'Plugin ecosystem',description:'Python and TypeScript SDKs, Ed25519-signed publishing, and a community marketplace.',},{- title: '🚀 Cloud-native',+ title: 'Deployment',description:'Helm charts, Docker Compose, OpenTelemetry traces/metrics/logs, and PostgreSQL backup with KMS encryption.',},];-// Comparison rows are written as visitor-actionable claims, not marketing-// gloss. We anchor each row to a concrete capability ("Agent decisions are-// auditable line-by-line") so the table can be defended in a sales call.-// Ordering is intentional: the top three rows are the ones a CISO at a-// regulated org will use to disqualify closed-source SOCs first.+// Comparison rows are concrete, defensible capability claims. Each row maps to+// something a buyer can verify in the repo or in vendor documentation.type CompareCell = { kind: 'yes' | 'no' | 'caveat'; label: string };const COMPARE_HEADERS = [@@ -216,12 +210,12 @@ function compareCellClass(cell: CompareCell): string {function ComparisonTable() {return (<div className="container margin-vert--xl">- <h2 className={styles.sectionTitle}>Why AiSOC vs. the alternatives</h2>+ <h2 className={styles.sectionTitle}>How AiSOC compares</h2><p className={styles.sectionLede}>- The structural moat: open-source, self-hostable, with every agent decision- auditable end-to-end. Closed-source AI SOCs run on someone else's- infrastructure and ship a black-box agent — neither survives a serious- compliance review.+ AiSOC is open-source and self-hostable, and every agent decision is+ recorded in the investigation ledger. Closed-source AI SOCs run on+ vendor infrastructure and do not expose the agent loop, which makes+ them harder to review under SOC 2, ISO 27001, or DORA controls.</p><div className={styles.compareWrap}><table className={styles.compareTable}>@@ -256,9 +250,9 @@ function ComparisonTable() {</table></div><p className={styles.compareNote}>- Numbers and capability claims are sourced from each vendor's public- documentation as of 2026.{' '}- <Link to="/docs/intro">Verify ours →</Link>+ Capability claims for other vendors are sourced from their public+ documentation as of 2026. AiSOC's claims map directly to code in+ this repository — see <Link to="/docs/intro">the docs</Link>.</p></div>);@@ -269,15 +263,15 @@ export default function Home(): React.JSX.Element {return (<Layouttitle={siteConfig.title}- description="The auditable AI SOC — every agent decision logged, replayable, and gated by a public, reproducible eval harness. MIT-licensed, self-hostable, with built-in UEBA, honeytokens, purple-team emulation, and SOC 2 / ISO 27001 / NIST CSF compliance.">+ description="An open-source AI SOC platform. Agent decisions are recorded in an investigation ledger and a public eval harness is run on every commit. MIT-licensed and self-hostable, with built-in UEBA, honeytokens, purple-team emulation, and SOC 2 / ISO 27001 / NIST CSF compliance reporting."><HomepageHeader /><main><ComparisonTable /><div className="container margin-vert--xl">- <h2 className={styles.sectionTitle}>What you get out of the box</h2>+ <h2 className={styles.sectionTitle}>What ships in the box</h2><p className={styles.sectionLede}>- The trust trio leads — auditable agent, public eval harness, MIT- license — backed by the full SOC substrate underneath.+ The first three rows describe the properties most relevant to a+ regulated buyer. The remainder enumerate the SOC substrate.</p><div className="row">{FEATURES.map(({ title, description }) => (diff --git a/apps/web/src/app/(app)/purple-team/page.tsx b/apps/web/src/app/(app)/purple-team/page.tsxindex bf42b4f61..b85c172eb 100644--- a/apps/web/src/app/(app)/purple-team/page.tsx+++ b/apps/web/src/app/(app)/purple-team/page.tsx@@ -206,9 +206,9 @@ function ExecutionsTable({ onReportDetection }: { onReportDetection: (ex: Execut{ex.detected === null ? (<span className="text-gray-400 text-xs">—</span>) : ex.detected ? (- <span className="text-green-600 font-medium text-xs">✓ Yes</span>+ <span className="text-green-600 font-medium text-xs">Yes</span>) : (- <span className="text-red-500 font-medium text-xs">✗ No</span>+ <span className="text-red-500 font-medium text-xs">No</span>)}</td><td className="px-4 py-2.5 text-gray-500 text-xs">diff --git a/apps/web/src/app/(responder)/responder/case/[caseId]/page.tsx b/apps/web/src/app/(responder)/responder/case/[caseId]/page.tsxindex 3b9aed9ad..1bd680f3c 100644--- a/apps/web/src/app/(responder)/responder/case/[caseId]/page.tsx+++ b/apps/web/src/app/(responder)/responder/case/[caseId]/page.tsx@@ -101,7 +101,7 @@ export default function ResponderCaseDetailPage() {}const next = await casesApi.update(caseId, updates);setCaseRecord(next);- showToast(`${label} ✓`);+ showToast(`${label} — done`);} catch (err) {console.error('[responder] failed to update case', err);showToast(err instanceof Error ? err.message : 'Action failed');@@ -123,7 +123,7 @@ export default function ResponderCaseDetailPage() {try {const next = await casesApi.update(caseId, { assignee: profile.email });setCaseRecord(next);- showToast('Claimed ✓');+ showToast('Claimed');} catch (err) {console.error('[responder] failed to claim case', err);showToast(err instanceof Error ? err.message : 'Claim failed');@@ -249,7 +249,7 @@ export default function ResponderCaseDetailPage() {{/* Action row — three thumb-reachable buttons */}<ActionGrid><ActionButton- label={isMine ? 'Mine ✓' : 'Claim'}+ label={isMine ? 'Claimed' : 'Claim'}busy={busyAction === 'Claim'}disabled={!!isMine}tone="primary"diff --git a/apps/web/src/app/(responder)/responder/case/page.tsx b/apps/web/src/app/(responder)/responder/case/page.tsxindex 487e163d0..ab1ec9369 100644--- a/apps/web/src/app/(responder)/responder/case/page.tsx+++ b/apps/web/src/app/(responder)/responder/case/page.tsx@@ -169,7 +169,7 @@ export default function ResponderCasesPage() {: 'bg-transparent text-zinc-500 border-zinc-800 hover:border-zinc-700',)}>- {mineOnly ? '✓ Mine' : 'Mine'}+ {mineOnly ? 'Mine (on)' : 'Mine'}</button>) : null}<button@@ -182,7 +182,7 @@ export default function ResponderCasesPage() {: 'bg-transparent text-zinc-500 border-zinc-800 hover:border-zinc-700',)}>- {showClosed ? '✓ Closed' : 'Closed'}+ {showClosed ? 'Closed (on)' : 'Closed'}</button></div></div>diff --git a/apps/web/src/app/(responder)/responder/login/page.tsx b/apps/web/src/app/(responder)/responder/login/page.tsxindex defcdcc05..a3598076d 100644--- a/apps/web/src/app/(responder)/responder/login/page.tsx+++ b/apps/web/src/app/(responder)/responder/login/page.tsx@@ -88,7 +88,7 @@ export default function ResponderLoginPage() {<div className="flex-1 flex flex-col justify-center px-6 max-w-md mx-auto w-full">{/* Brand mark */}<div className="flex flex-col items-center text-center mb-12">- <div className="w-16 h-16 rounded-2xl bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center mb-5 shadow-lg shadow-indigo-500/20">+ <div className="w-16 h-16 rounded-2xl bg-indigo-600 flex items-center justify-center mb-5"><svgclassName="w-9 h-9 text-white"fill="none"diff --git a/apps/web/src/app/(responder)/responder/triage/[alertId]/page.tsx b/apps/web/src/app/(responder)/responder/triage/[alertId]/page.tsxindex 63aba3c4a..c8af8b314 100644--- a/apps/web/src/app/(responder)/responder/triage/[alertId]/page.tsx+++ b/apps/web/src/app/(responder)/responder/triage/[alertId]/page.tsx@@ -103,7 +103,7 @@ export default function ResponderAlertDetailPage() {}const next = await alertsApi.update(alertId, updates);setAlert(next);- showToast(`${label} ✓`);+ showToast(`${label} — done`);} catch (err) {console.error('[responder] failed to update alert', err);showToast(err instanceof Error ? err.message : 'Action failed');@@ -124,7 +124,7 @@ export default function ResponderAlertDetailPage() {until: window.preset === 'morning' ? nextMorningISO() : undefined,});setAlert(next);- showToast(`Snoozed for ${window.label.toLowerCase()} ✓`);+ showToast(`Snoozed for ${window.label.toLowerCase()}`);} catch (err) {console.error('[responder] failed to snooze alert', err);showToast(err instanceof Error ? err.message : 'Snooze failed');diff --git a/apps/web/src/app/(responder)/responder/triage/page.tsx b/apps/web/src/app/(responder)/responder/triage/page.tsxindex 5a5f6cdc8..c8b1449cd 100644--- a/apps/web/src/app/(responder)/responder/triage/page.tsx+++ b/apps/web/src/app/(responder)/responder/triage/page.tsx@@ -180,7 +180,7 @@ export default function ResponderTriagePage() {: 'bg-transparent text-zinc-500 border-zinc-800 hover:border-zinc-700',)}>- {showResolved ? '✓ Show resolved' : 'Show resolved'}+ {showResolved ? 'Showing resolved' : 'Show resolved'}</button></div></div>diff --git a/apps/web/src/app/benchmark/page.tsx b/apps/web/src/app/benchmark/page.tsxindex 0bf599d6f..e4c95e4fd 100644--- a/apps/web/src/app/benchmark/page.tsx+++ b/apps/web/src/app/benchmark/page.tsx@@ -6,14 +6,14 @@ import { BenchmarkResults } from '@/components/benchmark/BenchmarkResults';import { ComparisonTable } from '@/components/benchmark/ComparisonTable';export const metadata: Metadata = {- title: 'Public Eval Harness — AiSOC',+ title: 'Public eval harness — AiSOC',description:- "AiSOC's open, reproducible regression harness. 200 deterministic synthetic incidents, four CI gates over the substrate (extractors, fusion, templates, judges). Honest about what it measures — and what it doesn't.",+ 'A reproducible regression harness over the AiSOC substrate. 200 deterministic synthetic incidents and four CI gates: one real measurement (alert reduction) and three substrate self-consistency checks. The page documents what each metric measures and what it does not.',alternates: { canonical: '/benchmark' },openGraph: {- title: 'AiSOC Public Eval Harness',+ title: 'AiSOC public eval harness',description:- 'A regression-gate harness over the AiSOC substrate. Open dataset, open harness, CI-enforced. This is not an LLM-agent leaderboard, and we say so on the page.',+ 'A regression-gate harness over the AiSOC substrate. Open dataset, open harness, CI-enforced. The page is explicit that this is not an LLM-agent leaderboard.',type: 'article',},};@@ -41,30 +41,28 @@ export default function BenchmarkPage() {<div className="mb-3 flex items-center gap-2"><span className="inline-flex items-center gap-1.5 rounded-full border border-emerald-500/20 bg-emerald-500/10 px-3 py-1 text-xs font-medium text-emerald-300"><span className="h-1.5 w-1.5 rounded-full bg-emerald-400" />- Live, reproducible+ Reproducible</span>- <span className="text-xs text-gray-500">Updated on every commit to main</span>+ <span className="text-xs text-gray-500">Runs on every commit to main</span></div><h1 className="text-4xl font-bold tracking-tight md:text-5xl">Public eval harness</h1><p className="mt-4 max-w-3xl text-lg text-gray-400">- An <span className="text-white">open, deterministic regression harness</span>{' '}- over the AiSOC substrate — the keyword extractors, the fusion- pipeline, the report and response templates, and the offline judges- that grade them. The dataset, the harness, and the CI gate are all- in the repo. You can reproduce every number on this page in under- 10 seconds on a laptop.+ A deterministic regression harness over the AiSOC substrate —+ the keyword extractors, the fusion pipeline, the report and+ response templates, and the offline judges that grade them. The+ dataset, the harness, and the CI gate are in the repo. The numbers+ on this page reproduce in roughly 25 milliseconds on a laptop.</p><div className="mt-5 max-w-3xl rounded-lg border border-amber-500/20 bg-amber-500/[0.04] p-4 text-sm text-amber-100/80">- <strong className="text-amber-200">Read this first:</strong>{' '}- this harness does <em>not</em> exercise the live LLM agent. It runs- deterministic substrate code against synthetic data so we can gate- every commit in milliseconds. Three of the four metrics measure- <em> internal consistency </em> of that substrate, not agent- accuracy. We explain exactly what each suite measures — and- doesn't — below.+ <span className="font-semibold text-amber-200">Read this first:</span>{' '}+ the harness does not exercise the live LLM agent. It runs+ deterministic substrate code against synthetic data so the CI gate+ can run in milliseconds. Three of the four metrics measure internal+ consistency of that substrate, not agent accuracy. The sections+ below describe what each suite measures and what it does not.</div><div className="mt-8 flex flex-wrap gap-3">@@ -104,7 +102,7 @@ export default function BenchmarkPage() {href="https://github.com/beenuar/AiSOC/actions/workflows/ci.yml"target="_blank"rel="noreferrer"- className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white shadow-glow-sm transition hover:bg-brand-400"+ className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white transition hover:bg-brand-400">Latest CI run<svg@@ -124,11 +122,10 @@ export default function BenchmarkPage() {<div className="mx-auto max-w-5xl"><h2 className="text-2xl font-semibold tracking-tight">Latest results</h2><p className="mt-2 max-w-3xl text-sm text-gray-400">- Four metrics, four CI gates. Every gate is a hard fail in CI — a- regression blocks the build. The numbers below come from the most- recent successful run on <code className="text-gray-300">main</code>.- Click a card for what the metric actually measures and what it does- <em> not</em>.+ Four metrics, four CI gates. A regression on any gate blocks the+ build. The numbers below come from the most recent successful run+ on <code className="text-gray-300">main</code>. Each card describes+ what the metric measures and what it does not.</p><div className="mt-8"><BenchmarkResults />@@ -139,12 +136,8 @@ export default function BenchmarkPage() {<section className="px-6 pb-20"><div className="mx-auto max-w-4xl"><h2 className="text-2xl font-semibold tracking-tight">- What each suite actually measures+ What each suite measures</h2>- <p className="mt-2 max-w-3xl text-sm text-gray-400">- We took a hard look at the harness and tightened the language so- the marketing matches the code. Here's the honest breakdown:- </p><div className="mt-6 space-y-4 text-sm"><div className="rounded-lg border border-emerald-500/20 bg-emerald-500/[0.03] p-5"><div className="flex flex-wrap items-center gap-2">@@ -177,13 +170,11 @@ export default function BenchmarkPage() {<p className="mt-2 text-gray-300">Each synthetic incident is generated with a tactic label, andits description is written to include keywords that the- hand-curated extractor recognizes. The 97% is therefore largely+ hand-curated extractor recognises. The 97% is therefore largelya check that the dataset and the extractor agree with each- other — not the accuracy of the LLM agent. It is- <em> still useful </em>: a regression in the extractor (a- misnamed tactic, a typo in the keyword table, a lost tactic)- will cause the gate to fail. Treat it as a regression sentinel- for the substrate, not a leaderboard score.+ other, not a measure of LLM-agent accuracy. The gate still has+ value as a regression sentinel: a misnamed tactic, a typo in+ the keyword table, or a lost tactic will fail it.</p></div>@@ -199,12 +190,11 @@ export default function BenchmarkPage() {<p className="mt-2 text-gray-300">The simulator wraps the incident description in a Markdownreport, and the judge looks for evidence keywords inside it.- Because those evidence keywords are drawn from the description,- the score is close to a string-copy tautology — it- confirms the report template includes the description, and the- judge can find keywords in it. It catches drops in the report- template (e.g. someone omits the Summary section) but does not- grade an actual LLM-written investigation.+ Those evidence keywords are drawn from the description, so the+ gate confirms that the report template includes the description+ and that the judge can find the keywords. It catches drops in+ the report template (for example a missing Summary section)+ but does not grade an LLM-written investigation.</p></div>@@ -218,23 +208,22 @@ export default function BenchmarkPage() {</span></div><p className="mt-2 text-gray-300">- The synthesizer embeds the expected MITRE techniques and the- first evidence keyword directly into the templated plan, then- the rubric judge checks for them. By construction the score is- ~1.000. This catches a broken templating pipeline (e.g. the- synthesizer stops emitting the action class) but is not a- grade of LLM output. We're calling it out so that- “1.000” is read correctly: it's green, not- impressive.+ The synthesiser embeds the expected MITRE techniques and the+ first evidence keyword directly into the templated plan, and+ the rubric judge checks for them. The score is ~1.000 by+ construction. This catches a broken templating pipeline (for+ example, the synthesiser silently dropping an action class) but+ is not a grade of LLM output. The 1.000 is a green+ regression-gate signal, not a quality measurement.</p></div></div><p className="mt-6 max-w-3xl text-sm text-gray-500">- The next harness milestone is <strong className="text-gray-300">- online evals</strong>: nightly runs that drive the real LangGraph- agent against the same dataset, with an LLM-as-judge gated by- <code className="text-gray-300"> OPENAI_API_KEY</code>. That's- where actual agent accuracy gets measured. Tracking issue:{' '}+ The next milestone is an online eval: nightly runs that drive the+ real LangGraph agent against the same dataset, with an+ LLM-as-judge gated by{' '}+ <code className="text-gray-300">OPENAI_API_KEY</code>. That is the+ run where actual agent accuracy is measured. Tracking issue:{' '}<aclassName="underline decoration-dotted hover:text-gray-300"href="https://github.com/beenuar/AiSOC/issues"@@ -274,23 +263,19 @@ export default function BenchmarkPage() {<section className="px-6 pb-20"><div className="mx-auto max-w-5xl"><h2 className="text-2xl font-semibold tracking-tight">- Honest comparison vs vendors+ Comparison to other AI SOC offerings</h2><p className="mt-2 max-w-3xl text-sm text-gray-400">- We measure what we ship and label it for what it is. Where a- vendor publishes a number, we cite it. Where a vendor doesn't,- we mark it absent. No marketing math.+ Where a vendor publishes a number or a verifiable capability, it+ is cited. Where a vendor does not, the row is marked absent.</p><div className="mt-6"><ComparisonTable /></div><p className="mt-6 max-w-3xl text-sm text-gray-500">- <strong className="text-gray-300">Why this matters: </strong>- a regulated bank cannot deploy a vendor whose agent is a black-box- cloud service. They can deploy AiSOC. Their auditor reviews the- same dataset, the same harness, and the same CI numbers we publish- here — including this candid breakdown of which suites- measure substrate health vs agent quality.+ A self-hostable, MIT-licensed agent with a published regression+ harness can be reviewed directly by an auditor. Vendor cloud+ agents typically cannot be reviewed at the same level.</p></div></section>@@ -298,62 +283,58 @@ export default function BenchmarkPage() {<section className="px-6 pb-20"><div className="mx-auto max-w-4xl"><h2 className="text-2xl font-semibold tracking-tight">What this is not</h2>- <p className="mt-2 text-sm text-gray-400">- We're allergic to overclaiming. A few honest caveats up front:- </p><ul className="mt-5 space-y-3 text-sm text-gray-400"><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">No LLM agent runs here.</strong>{' '}- The harness exercises deterministic substrate code —- extractors, fusion, templates, keyword judges. The live LangGraph+ <span className="font-semibold text-gray-200">No LLM agent runs here.</span>{' '}+ The harness exercises deterministic substrate code: extractors,+ fusion, templates, and keyword judges. The live LangGraphorchestrator (<code className="text-gray-300">services/agents/app/investigator/</code>)- is not invoked. An online eval that does invoke it nightly is on- the Phase-1 roadmap.+ is not invoked. An online eval that drives it nightly is on the+ roadmap.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">The dataset is synthetic.</strong>{' '}- 200 incidents flag substrate regressions but don't claim- production parity. Real customer benchmarks will be opt-in and- federated.+ <span className="font-semibold text-gray-200">The dataset is synthetic.</span>{' '}+ 200 incidents are enough to flag substrate regressions but not+ enough to claim production parity. Federated, opt-in+ real-customer evaluation is on the roadmap.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">The judges are keyword-based.</strong>{' '}- They can be gamed by template-stuffing. In several suites the- templates already include the keywords the judge looks for, so- those suites mostly verify the templates haven't broken- — not that an agent answered well. The full LLM-as-judge+ <span className="font-semibold text-gray-200">The judges are keyword-based.</span>{' '}+ They can be gamed by template-stuffing. In three of the four+ suites the templates already include the keywords the judge+ looks for, which is why those suites are labelled substrate+ self-consistency rather than agent quality. The LLM-as-judgevariant is the follow-up.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">- “Public benchmark” means the harness, not a+ <span className="font-semibold text-gray-200">+ “Public eval harness” means this harness, not athird-party leaderboard.- </strong>{' '}- No outside body grades AiSOC. The value is that the dataset, the- code, and the gates are all open and CI-enforced — you can- run, audit, and break the harness yourself.+ </span>{' '}+ No outside body grades AiSOC. The dataset, the code, and the+ gates are open and CI-enforced, and anyone can run, audit, or+ extend the harness.</li></ul></div></section><section className="px-6 pb-24">- <div className="mx-auto max-w-4xl rounded-2xl border border-brand-500/20 bg-gradient-to-br from-brand-500/10 to-transparent p-8 text-center">+ <div className="mx-auto max-w-4xl rounded-2xl border border-brand-500/20 bg-surface-card p-8 text-center"><h2 className="text-2xl font-semibold tracking-tight">- Help us harden the harness+ Contributing to the harness</h2><p className="mx-auto mt-3 max-w-2xl text-sm text-gray-400">- Spot a tactic the extractor misses, a fusion miss, a tautological- judge, or a rubric weakness? File a PR with a fixture and the- gate will lock the regression in for everyone forever — or- help us land the online LLM-as-judge variant.+ New fixtures for missed tactics or fusion edge cases, replacements+ for tautological judges, and the online LLM-as-judge variant are+ all in scope for contributions.</p><div className="mt-6 flex flex-wrap justify-center gap-3"><ahref="https://github.com/beenuar/AiSOC/blob/main/CONTRIBUTING.md"target="_blank"rel="noreferrer"- className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white shadow-glow-sm transition hover:bg-brand-400"+ className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white transition hover:bg-brand-400">Contributing guide</a>diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.cssindex 15f995af6..c50f2373a 100644--- a/apps/web/src/app/globals.css+++ b/apps/web/src/app/globals.css@@ -49,22 +49,6 @@ body {border-radius: 4px;}-/* Grid background */-.bg-grid {- background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),- linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);- background-size: 32px 32px;-}--/* Glow effects */-.glow-blue {- box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);-}--.glow-red {- box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);-}-/* Custom select/input dark theme */select {-webkit-appearance: none;@@ -101,14 +85,6 @@ select {animation: ping-slow 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;}-/* Subtle glass surface */-.glass {- background: rgba(17, 21, 31, 0.65);- backdrop-filter: blur(12px) saturate(140%);- -webkit-backdrop-filter: blur(12px) saturate(140%);- border: 1px solid rgba(255, 255, 255, 0.06);-}-/* Code blocks */code {font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;diff --git a/apps/web/src/app/why-open-source/page.tsx b/apps/web/src/app/why-open-source/page.tsxindex b89dcdbd4..f34132398 100644--- a/apps/web/src/app/why-open-source/page.tsx+++ b/apps/web/src/app/why-open-source/page.tsx@@ -4,14 +4,14 @@ import { LandingNav } from '@/components/landing/LandingNav';import { Footer } from '@/components/landing/Footer';export const metadata: Metadata = {- title: 'Why open source — the AI SOC your auditor will approve',+ title: 'Why AiSOC is open source',description:- 'A regulated bank cannot deploy a SOC whose agent is a black-box cloud service. They can deploy AiSOC. Here is the structural argument for why MIT-licensed, self-hosted, auditable AI is the only AI SOC posture that survives a compliance review.',+ 'AiSOC is MIT-licensed and self-hostable, with the agent loop and prompt templates in the repo. This page explains why that posture matters for regulated buyers and what the trade-offs are.',alternates: { canonical: '/why-open-source' },openGraph: {- title: 'The AI SOC your auditor will approve — AiSOC',+ title: 'Why AiSOC is open source — AiSOC',description:- 'Why MIT-licensed, self-hosted, auditable AI is the only AI SOC posture a regulated buyer can ship. The structural argument, in writing.',+ 'AiSOC is MIT-licensed and self-hostable. The agent loop and prompts are in the repo, and a 200-incident eval harness runs in CI.',type: 'article',},};@@ -20,32 +20,32 @@ const PILLARS = [{label: 'Investigation Ledger',href: 'https://github.com/beenuar/AiSOC#investigation-ledger',- body: 'Every prompt, every tool call, every evidence citation, every decision the agent makes is written to a durable, queryable, replayable ledger. Not summarised. Not redacted. The literal LLM I/O.',+ body: 'Every prompt, tool call, evidence citation, and decision the agent emits is written to a durable, queryable, replayable ledger. The ledger stores the literal LLM input and output, not a summary.',},{label: 'Public eval harness',href: '/benchmark',- body: 'A 200-case substrate eval suite runs on every commit. Four CI gates: one real measurement (alert reduction) and three substrate self-consistency checks (MITRE tactic, completeness, response quality). The harness, the dataset, the rubric, and the historical results are all in the repo. Reproduce them on your laptop — and read the page for what each metric does and does not measure.',+ body: 'A 200-incident eval suite runs on every commit. Four CI gates: one real measurement (alert reduction) and three substrate self-consistency checks (MITRE tactic, completeness, response quality). The harness, the dataset, the rubric, and historical results are in the repo. The benchmark page documents what each metric measures and what it does not.',},{label: 'MIT, end-to-end',href: 'https://github.com/beenuar/AiSOC/blob/main/LICENSE',- body: 'No CLA. No SSPL. No BSL conversion clause. No "open core" with the agent gated behind a contract. Audit it, fork it, run it air-gapped, build a competitor — the licence permits all of it.',+ body: 'No CLA, no SSPL, no BSL conversion clause, no open-core with the agent in a private repo. The licence permits audit, fork, air-gapped deployment, and building a competing product.',},] as const;const ARTEFACTS = [{- title: 'A signed event stream per investigation',- body: "Hand your auditor a JSON file. They read every step the agent took, every prompt issued, every model used, every token spent, every evidence row cited, every action executed, in order, with hashes. They don't have to trust us. They read the events.",+ title: 'A per-investigation event stream',+ body: 'Each investigation can be exported as a JSON event stream listing the steps the agent took: prompts issued, models used, tokens spent, evidence rows cited, and actions executed, in order, with hashes. An auditor reads the events directly rather than relying on a vendor summary.',},{title: 'A reproducible eval harness',- body: 'Your auditor clones the repo and runs `python3 scripts/run_evals.py`. They get the same alert-reduction ratio, MITRE-tactic gate, completeness coverage, and response-quality score we publish. The CI gate is the source of truth, not the marketing site. We document explicitly which metrics measure substrate behaviour and which would still need an online LLM-as-judge to call "agent accuracy".',+ body: 'Cloning the repo and running `python3 scripts/run_evals.py` produces the same alert-reduction ratio, MITRE-tactic gate, completeness coverage, and response-quality score that the CI gate produces. The benchmark page documents which numbers are real measurements of the substrate and which are self-consistency gates that would need an online LLM-as-judge run to be called agent accuracy.',},{- title: 'Source code for the agent itself',- body: "Not the SDK. Not the integration shim. The orchestrator, the planner, the prompt templates, the tool registry, the response policy, the rubric — the entire agent that touches your incident data is in this repo, MIT licensed. You can diff it, patch it, and ship that fork.",+ title: 'Source code for the agent',+ body: 'The orchestrator, planner, prompt templates, tool registry, response policy, and rubric — the components that reason over incident data — are in this repo under MIT. They can be diffed, patched, and shipped as a fork.',},] as const;@@ -57,30 +57,30 @@ type Contrast = {const CONTRASTS: readonly Contrast[] = [{- label: 'Black-box AI SOC vendor',+ label: 'Closed-source AI SOC vendor',points: [- 'Agent runs in vendor cloud. Your incident data leaves your network for inference.',- 'Prompts and policy are proprietary. You cannot audit how the agent reasons or what it tells the model about your case.',- 'Accuracy claims are marketing. No reproducible eval harness, no public CI gate, no historical regression record.',- 'No fork right. If the vendor changes the model, the policy, or the price, you have one option: comply.',+ 'Agent runs in vendor cloud. Incident data leaves the buyer network for inference.',+ 'Prompts and policy are proprietary. Buyers cannot audit how the agent reasons or what it tells the model about a case.',+ 'Accuracy claims come from internal evaluation. No reproducible eval harness, no public CI gate, no historical regression record.',+ 'No fork right. Model, policy, and pricing changes are vendor-controlled.',],},{label: 'Open-core with proprietary agent',points: [- 'The dashboard is open. The agent is not. The thing you actually need to audit is in a private repo.',- 'License is SSPL or BSL with a CLA. You "own" your fork until the next licence flip.',- 'The eval harness is internal. You see the score. You cannot see the dataset or rerun the harness.',- 'Self-hosting is technically allowed and operationally hostile.',+ 'The dashboard is open. The agent component is in a private repo.',+ 'License is typically SSPL or BSL with a CLA, which permits future relicensing of the project.',+ 'The eval harness is internal. The score is published; the dataset and rubric are not.',+ 'Self-hosting is permitted on paper but typically supported only for the open shell, not the agent.',],},{label: 'AiSOC',points: [- 'Agent runs on your infrastructure. Your incident data, by default, never leaves your network.',- 'Every prompt, response, tool call, and decision is in the Investigation Ledger and replayable forever.',- 'Substrate behaviour is gated in CI on every commit. The dataset, the harness, the rubric, and the latest numbers are public and reproducible in seconds — and we are upfront about which metrics measure the substrate vs. the agent.',- 'MIT, no CLA. Fork it, patch the prompts, ship it. We do not have the legal right to take that away.',+ 'Agent runs on the buyer infrastructure. Incident data, by default, does not leave the buyer network.',+ 'Every prompt, response, tool call, and decision is written to the Investigation Ledger and replayable per case.',+ 'Substrate behaviour is gated in CI on every commit. The dataset, harness, rubric, and historical numbers are in the repo and reproducible. The benchmark page is explicit about which metrics measure the substrate and which would need an online LLM-as-judge run to be called agent accuracy.',+ 'MIT, no CLA. Forks are permanent.',],accent: true,},@@ -88,16 +88,16 @@ const CONTRASTS: readonly Contrast[] = [const NON_REGULATED_REASONS = [{- title: 'You keep agency over the agent',- body: "When an LLM vendor changes a model and your detection tone shifts overnight, you want to be the one who decides whether to ship the change. With a closed agent, that decision was made for you weeks ago.",+ title: 'Operator agency over the agent',+ body: 'If a hosted LLM provider changes a model and detection behaviour shifts, the operator decides whether to ship the change. With a closed agent, that decision is made by the vendor.',},{- title: 'No rug pull, ever',- body: "MIT means the version you ran today is yours forever. No relicense. No 'AI features now in the paid tier'. No 'open-source community edition' deprecation. Fork the commit and you are operationally independent.",+ title: 'License is permanent',+ body: 'MIT means a deployed version stays available indefinitely. No relicensing event, no new tier gating existing features, no community-edition deprecation. Pinning a commit gives operational independence.',},{- title: 'Real extension, not "extensible"',- body: 'Plugins, detections, playbooks, and prompts are all source code in the same repo. You write a Python or Go plugin against a typed SDK and it ships with the rest of the stack. No SaaS extensibility tax.',+ title: 'Plugins are source code',+ body: 'Plugins, detections, playbooks, and prompts are source code in the same repo. A Python or Go plugin written against the typed SDK ships with the rest of the stack.',},] as const;@@ -110,20 +110,19 @@ export default function WhyOpenSourcePage() {<div className="mx-auto max-w-3xl"><div className="mb-3 flex items-center gap-2"><span className="inline-flex items-center gap-1.5 rounded-full border border-emerald-500/20 bg-emerald-500/10 px-3 py-1 text-xs font-medium text-emerald-300">- <span className="h-1.5 w-1.5 rounded-full bg-emerald-400" />- MIT-licensed, structurally+ MIT-licensed</span><span className="text-xs text-gray-500">~7 min read</span></div><h1 className="text-4xl font-bold tracking-tight md:text-5xl">- The AI SOC your auditor will approve.+ Why AiSOC is open source.</h1><p className="mt-5 text-lg leading-relaxed text-gray-400">- A CISO at a regulated bank cannot deploy a SOC whose agent is a- black-box cloud service. They can deploy AiSOC. The argument below- explains why that distinction is not a feature comparison — it is a- structural property of the licence and the architecture, and it is- the reason AiSOC exists.+ AiSOC is MIT-licensed and self-hostable. The agent loop, prompt+ templates, and eval harness are in this repo. This page describes+ what that posture means in practice — for buyers in regulated+ industries and for everyone else — and is explicit about the+ trade-offs.</p></div></section>@@ -131,30 +130,26 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-3xl space-y-6 text-base leading-relaxed text-gray-300"><h2 className="pt-2 text-2xl font-semibold tracking-tight text-white">- The problem the AI SOC market gave compliance teams+ The compliance problem with closed-source AI SOCs</h2><p>- Every closed-source AI SOC vendor on the market today asks a- regulated buyer to do three things simultaneously: ship their- incident data to a vendor cloud for inference, trust an opaque- policy that no one outside the vendor can read, and accept an- accuracy number that no one outside the vendor can reproduce.+ Closed-source AI SOC products typically ask a regulated buyer to+ accept three things at once: incident data leaves the buyer+ network for inference in vendor cloud, the agent prompts and+ policy are not visible outside the vendor, and the accuracy+ numbers cannot be reproduced by the buyer or their auditor.</p><p>- That is a stack of three independent compliance problems, and the- third — the unverifiable accuracy claim — is the one that- quietly poisons the other two. If you cannot reproduce the- number, you cannot defend the deployment in an audit. If you- cannot defend it in an audit, you cannot get the deployment- approved. Most teams end up with a tactical workaround: AI SOC for- non-sensitive tenants, a manual triage queue for the regulated- ones, and a slow, awkward conversation with their auditor every- quarter about whether the line should hold.+ The third item is the one that compounds the other two. A number+ that the buyer cannot reproduce is hard to defend in a SOC 2,+ ISO 27001, or DORA review. In practice this often results in the+ AI SOC being deployed for non-regulated tenants and a manual+ triage queue being kept for regulated ones.</p><p>- AiSOC is the answer to that conversation: an AI SOC where the- agent itself is in the repo, the accuracy is a CI gate, the data- stays in your network, and the licence cannot be retracted.+ AiSOC takes the opposite approach: the agent is in the repo, the+ substrate eval is a CI gate, data stays in the buyer network by+ default, and the MIT licence is permanent.</p></div></section>@@ -162,11 +157,11 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-5xl"><h2 className="text-2xl font-semibold tracking-tight">- What “auditable” actually means here+ What auditable means in this project</h2><p className="mt-3 max-w-3xl text-sm text-gray-400">- Three concrete artefacts. They are the entire pitch. Everything- else is downstream.+ Three concrete artefacts the project ships. Each one corresponds+ to a question a regulated buyer or their auditor will ask.</p><div className="mt-8 grid gap-4 md:grid-cols-3">{PILLARS.map((p) => {@@ -209,12 +204,12 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-3xl space-y-6 text-base leading-relaxed text-gray-300"><h2 className="pt-2 text-2xl font-semibold tracking-tight text-white">- Three things you can hand your auditor+ Three artefacts an auditor can review</h2><p>- Every other claim on this page reduces to one of these. If your- auditor cannot read all three on the first day of the deployment- review, the AI SOC is not auditable; it is just AI-shaped.+ Every other claim on this page reduces to one of these. If the+ three are not reviewable on day one of a deployment review, the+ agent is not actually auditable end-to-end.</p><div className="mt-2 space-y-3">{ARTEFACTS.map((a, i) => (@@ -244,13 +239,12 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-5xl"><h2 className="text-2xl font-semibold tracking-tight">- What the alternatives ask you to accept+ How AiSOC differs from the common patterns</h2><p className="mt-3 max-w-3xl text-sm text-gray-400">- We mark trade-offs honestly. The two non-AiSOC columns describe- the dominant patterns in the AI SOC market today, not any- specific vendor. If you have an example that does not fit, we- want to hear about it.+ The two non-AiSOC columns describe common patterns in the AI SOC+ market, not specific vendors. Counter-examples are welcome via+ issue or pull request.</p><div className="mt-8 grid gap-4 lg:grid-cols-3">{CONTRASTS.map((c) => (@@ -294,48 +288,43 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-3xl space-y-6 text-base leading-relaxed text-gray-300"><h2 className="pt-2 text-2xl font-semibold tracking-tight text-white">- What MIT actually means here+ What the licence does and does not allow</h2><p>- “Open source” is overloaded. A meaningful number of- self-described open-source security products today ship under- licences that grant the cosmetic benefit of source-available code- and reserve the rights that matter. We picked MIT, no CLA, and- committed to keeping the core MIT in the README, on purpose.+ Open source is overloaded as a term. AiSOC ships under MIT with no+ CLA, and the project commitment is to keep the core under MIT.+ What that means in practice:</p><ul className="space-y-3"><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">No CLA.</strong>{' '}- Contributors keep copyright on their patches. We do not collect- an irrevocable licence to relicense the project tomorrow under- SSPL, BSL, or a proprietary EULA. This is the line most- “open core” projects cross first.+ <span className="font-semibold text-gray-200">No CLA.</span>{' '}+ Contributors keep copyright on their patches. The project does+ not collect an irrevocable licence to relicense under SSPL,+ BSL, or a proprietary EULA at a later date.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">No telemetry.</strong>{' '}+ <span className="font-semibold text-gray-200">No telemetry.</span>{' '}Self-hosted deployments emit no analytics back to the project.- Detection tuning, agent decisions, and operator behaviour stay- on your boxes. The only network calls AiSOC initiates are the- ones you configured: your LLM provider, your TI feed, your- integrations.+ The only network calls AiSOC initiates are the ones the+ operator configured (LLM provider, threat intelligence feed,+ integrations).</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">- No agent gated behind a paid tier.- </strong>{' '}- The orchestrator, the planner, the prompt templates, the tool- registry, the response policy, the rubric — every component- that reasons over your incident data — is in this repo. There- is no “enterprise agent” we are saving for a future- SKU. The agent is the project.+ <span className="font-semibold text-gray-200">+ The agent is in the open repo.+ </span>{' '}+ The orchestrator, planner, prompt templates, tool registry,+ response policy, and rubric — the components that reason over+ incident data — are in this repo. There is no separate+ enterprise agent.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">Fork rights are real.</strong>{' '}- If we ship a release tomorrow that you do not like — a model- choice, a default policy, a UX change — you have the legal and- practical right to take the previous commit and run it- indefinitely. We can ask you to upstream improvements. We- cannot make you accept a downgrade.+ <span className="font-semibold text-gray-200">+ Fork rights are permanent.+ </span>{' '}+ If a future release changes a model choice, default policy, or+ UX in a way an operator does not want, the previous commit+ remains a valid deployment.</li></ul></div>@@ -344,13 +333,12 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-5xl"><h2 className="text-2xl font-semibold tracking-tight">- What this means if you are not in a regulated industry+ Reasons that apply outside regulated environments</h2><p className="mt-3 max-w-3xl text-sm text-gray-400">- The compliance story is the most legible one, but it is not the- only one. Even if your auditor never reviews the SOC, the same- structural properties give you operator agency that closed-source- AI SOCs cannot match.+ The compliance story is the most legible reason to choose an+ auditable, MIT-licensed agent, but the same structural properties+ apply to teams that are not in a regulated industry.</p><div className="mt-8 grid gap-4 md:grid-cols-3">{NON_REGULATED_REASONS.map((r) => (@@ -373,73 +361,71 @@ export default function WhyOpenSourcePage() {<section className="px-6 pb-16"><div className="mx-auto max-w-3xl space-y-6 text-base leading-relaxed text-gray-300"><h2 className="pt-2 text-2xl font-semibold tracking-tight text-white">- What we will not claim+ Trade-offs and limitations</h2><p>- AiSOC is not a finished product, and overclaiming would defeat- the point of writing this page. A few things we are explicit- about:+ A few things this project is explicit about:</p><ul className="space-y-3"><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">- We do not claim better agent accuracy than every vendor.- </strong>{' '}- We claim a public, reproducible eval harness over the- substrate. Anyone who reads the{' '}+ <span className="font-semibold text-gray-200">+ AiSOC does not claim better agent accuracy than every vendor.+ </span>{' '}+ The project ships a public, reproducible eval harness over the+ substrate. The{' '}<Link href="/benchmark" className="text-brand-300 underline">eval harness page</Link>{' '}- can see exactly which metrics measure real behaviour- (alert reduction) and which are substrate self-consistency- gates (MITRE tactic, completeness, response quality). The- gap between “we publish a harness you can rerun; they- don’t” is the part that matters to a regulated- buyer.+ is explicit about which metrics measure real substrate+ behaviour (alert reduction) and which are substrate+ self-consistency gates (MITRE tactic, completeness, response+ quality). The relevant property is that the harness exists and+ is reproducible, not that any specific number beats a vendor+ claim.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">- Self-hosting is operationally real, not free.- </strong>{' '}- You run Postgres, Redis, ClickHouse, an LLM endpoint. We- shipped <code className="text-gray-300">pnpm aisoc:demo</code>{' '}- and one-click deploy buttons to make the on-ramp short, but- this is your stack and you operate it.+ <span className="font-semibold text-gray-200">+ Self-hosting has an operational cost.+ </span>{' '}+ Operators run Postgres, Redis, ClickHouse, and an LLM endpoint.+ The{' '}+ <code className="text-gray-300">pnpm aisoc:demo</code> command+ and one-click deploy buttons shorten the on-ramp, but the+ stack is operated by the deployer.</li><li className="rounded-lg border border-white/5 bg-white/[0.02] p-4">- <strong className="text-gray-200">+ <span className="font-semibold text-gray-200">Bring-your-own LLM means bring-your-own trust boundary.- </strong>{' '}- The agent will, by default, send prompts to whatever LLM- endpoint you configure. The Investigation Ledger logs every- prompt so you can audit what left the network, but the trust- boundary is the LLM you point at, not AiSOC. A future air-gap- mode using local inference is on the roadmap; today, you pick- the model.+ </span>{' '}+ The agent sends prompts to whichever LLM endpoint is+ configured. The Investigation Ledger logs every prompt, so+ what leaves the network is auditable, but the trust boundary+ is the configured LLM provider, not AiSOC. A future+ local-inference mode is on the roadmap.</li></ul></div></section><section className="px-6 pb-24">- <div className="mx-auto max-w-4xl rounded-2xl border border-brand-500/20 bg-gradient-to-br from-brand-500/10 to-transparent p-8 text-center">+ <div className="mx-auto max-w-4xl rounded-2xl border border-brand-500/20 bg-surface-card p-8 text-center"><h2 className="text-2xl font-semibold tracking-tight">- See it before you trust it+ Verify it directly</h2><p className="mx-auto mt-3 max-w-2xl text-sm text-gray-400">- Three artefacts, all reproducible in under a minute: a live- investigation with the full ledger open, the public eval- harness on your laptop, and the agent source on GitHub. None- of them require a signup.+ Three artefacts, each reproducible in under a minute: a+ pre-seeded investigation with the ledger visible, the eval+ harness on a local machine, and the agent source on GitHub.+ None require a signup.</p><div className="mt-6 flex flex-wrap justify-center gap-3"><ahref="https://demo.aisoc.dev/cases/INC-001?tab=ledger"target="_blank"rel="noreferrer"- className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white shadow-glow-sm transition hover:bg-brand-400"+ className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white transition hover:bg-brand-400">- Try the live demo+ Open the demo<svgviewBox="0 0 20 20"className="h-3.5 w-3.5"diff --git a/apps/web/src/components/alerts/AlertDetailView.tsx b/apps/web/src/components/alerts/AlertDetailView.tsxindex 78625d43d..628773806 100644--- a/apps/web/src/components/alerts/AlertDetailView.tsx+++ b/apps/web/src/components/alerts/AlertDetailView.tsx@@ -88,7 +88,7 @@ function IOCBadge({ type, value, malicious }: { type: string; value: string; mal{type}</span><span className="truncate max-w-xs">{value}</span>- {malicious && <span className="ml-auto text-red-500 shrink-0">⚠️</span>}+ {malicious && <span className="ml-auto text-red-400 shrink-0 text-[10px] font-semibold uppercase tracking-wide">malicious</span>}</div>);}@@ -158,11 +158,8 @@ The PowerShell execution event represents a multi-stage attack with C2 communicaif (!investigation) {return (<div className="text-center py-8">- <div className="w-12 h-12 bg-blue-500/10 rounded-xl flex items-center justify-center mx-auto mb-3">- <span className="text-2xl">🤖</span>- </div>- <p className="text-sm text-gray-400 mb-1">AI Agent Investigation</p>- <p className="text-xs text-gray-600 mb-4">Let AI autonomously analyze this alert, correlate with threat intel, and suggest remediation steps.</p>+ <p className="text-sm text-gray-400 mb-1">Agent investigation</p>+ <p className="text-xs text-gray-600 mb-4">Run the agent on this alert to produce a markdown report, MITRE mapping, and a list of recommended actions. Every step is recorded in the case ledger.</p><buttononClick={startInvestigation}disabled={isRunning}diff --git a/apps/web/src/components/alerts/AlertsView.tsx b/apps/web/src/components/alerts/AlertsView.tsxindex 0608d72f7..6667cb031 100644--- a/apps/web/src/components/alerts/AlertsView.tsx+++ b/apps/web/src/components/alerts/AlertsView.tsx@@ -277,7 +277,7 @@ export function AlertsView() {disabled={(filters.page || 1) <= 1}className="px-2 py-1 rounded bg-gray-800 hover:bg-gray-700 disabled:opacity-40 disabled:cursor-not-allowed">- ←+ Prev</button><span className="px-2">Page {filters.page || 1}</span><button@@ -285,7 +285,7 @@ export function AlertsView() {disabled={alerts.length < (filters.pageSize || 25)}className="px-2 py-1 rounded bg-gray-800 hover:bg-gray-700 disabled:opacity-40 disabled:cursor-not-allowed">- →+ Next</button></div></div>diff --git a/apps/web/src/components/cases/CaseWorkspace.tsx b/apps/web/src/components/cases/CaseWorkspace.tsxindex 5e9a75e5b..fcade530b 100644--- a/apps/web/src/components/cases/CaseWorkspace.tsx+++ b/apps/web/src/components/cases/CaseWorkspace.tsx@@ -106,7 +106,7 @@ function buildDemoCase(id: string): Case {id: 'tl-5',type: 'status',timestamp: new Date(now - 12 * 60 * 1000).toISOString(),- title: 'Status → In progress',+ title: 'Status changed to In progress',actor: 'sasha.lin',},],@@ -167,13 +167,13 @@ const TASK_STATUS_BADGE: Record<CaseTask['status'], string> = {};const TIMELINE_ICON: Record<string, string> = {- created: '🆕',- assigned: '👤',- status: '🔄',- note: '📝',- agent: '🤖',- comment: '💬',- alert: '🚨',+ created: 'new',+ assigned: 'asn',+ status: 'sts',+ note: 'note',+ agent: 'ai',+ comment: 'cmt',+ alert: 'alrt',};// ─── Sub-components ───────────────────────────────────────────────────────────@@ -201,10 +201,10 @@ function MitreChip({ id }: { id: string }) {}function TimelineItem({ event }: { event: CaseTimelineEvent }) {- const icon = TIMELINE_ICON[event.type] ?? '•';+ const icon = TIMELINE_ICON[event.type] ?? '·';return (<li className="relative pl-10">- <span className="absolute left-0 top-1 flex h-7 w-7 items-center justify-center rounded-full border border-slate-700/70 bg-slate-900 text-sm">+ <span className="absolute left-0 top-1 flex h-7 w-7 items-center justify-center rounded-full border border-slate-700/70 bg-slate-900 text-[10px] font-medium uppercase tracking-wide text-slate-400">{icon}</span><div className="rounded-lg border border-slate-800/60 bg-slate-900/40 p-3">@@ -369,7 +369,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {if (kind === 'completed') {setInvestigationStatus('completed');setInvestigating(false);- toast.success('Investigation complete — report ready!', { icon: '📋' });+ toast.success('Investigation complete — report ready');// Fetch the Markdown reportfetch(`/api/v1/cases/${caseId}/investigations/${runId}/report.md`).then((r) => r.ok ? r.text() : '')@@ -409,7 +409,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {const result = await casesApi.investigate(caseId, caseRecord.description ?? caseRecord.title);setInvestigationRunId(result.run_id);setInvestigationStatus('running');- toast.success('AI investigation launched!', { icon: '🤖' });+ toast.success('Agent investigation started');// Connect via WebSocket for live updates (falls back to polling on error)connectWs(result.run_id);@@ -424,7 +424,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {stopPolling();setInvestigating(false);if (inv.status === 'completed') {- toast.success('Investigation complete — report ready!', { icon: '📋' });+ toast.success('Investigation complete — report ready');try {const resp = await fetch(`/api/v1/cases/${caseId}/investigations/${result.run_id}/report.md`);if (resp.ok) setReportMd(await resp.text());@@ -439,7 +439,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {}, 5000);} catch (e: unknown) {const message = e instanceof Error ? e.message : 'Backend offline';- toast(`Demo mode: investigation not available (${message})`, { icon: '⚠️' });+ toast(`Demo mode: investigation not available (${message})`);// Set demo investigation resultsetInvestigationStatus('completed');setInvestigationData({@@ -466,12 +466,9 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {void mutate({ ...caseRecord, status }, { revalidate: false });try {await casesApi.update(caseRecord.id, { status });- toast.success(`Status → ${STATUS_LABEL[status]}`);+ toast.success(`Status set to ${STATUS_LABEL[status]}`);} catch {- toast(- `Demo: status set to ${STATUS_LABEL[status]} locally (backend offline)`,- { icon: '⚠️' },- );+ toast(`Demo: status set to ${STATUS_LABEL[status]} locally (backend offline)`);} finally {setStatusUpdating(false);}@@ -497,7 +494,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {await casesApi.addComment(caseRecord.id, trimmed);toast.success('Comment added');} catch {- toast('Saved locally (backend offline)', { icon: '📝' });+ toast('Saved locally (backend offline)');}};@@ -519,7 +516,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {await casesApi.addTask(caseRecord.id, optimistic);toast.success('Task added');} catch {- toast('Saved locally (backend offline)', { icon: '✓' });+ toast('Saved locally (backend offline)');}};@@ -601,7 +598,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {</div>{/* Header */}- <div className="rounded-xl border border-slate-800/80 bg-gradient-to-br from-slate-900/60 via-slate-900/40 to-slate-900/20 p-5">+ <div className="rounded-xl border border-slate-800/80 bg-slate-900/40 p-5"><div className="flex flex-wrap items-start justify-between gap-3"><div className="min-w-0"><div className="flex flex-wrap items-center gap-2">@@ -670,7 +667,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {{investigating && (<span className="h-3 w-3 animate-spin rounded-full border border-emerald-500/30 border-t-emerald-400" />)}- {investigating ? 'Investigating…' : '🤖 Investigate with AI'}+ {investigating ? 'Investigating…' : 'Investigate with agent'}</button></div></div>@@ -811,7 +808,7 @@ export function CaseWorkspace({ caseId }: { caseId: string }) {className="flex items-center justify-between rounded-md border border-slate-800/80 bg-slate-900/40 px-2.5 py-1.5 text-xs text-slate-300 transition-colors hover:border-slate-700 hover:bg-slate-800/40"><span className="font-mono">{id}</span>- <span className="text-slate-500">→</span>+ <span className="text-[10px] uppercase tracking-wide text-slate-500">open</span></Link></li>))}@@ -953,10 +950,9 @@ function InvestigationPanel({if (status === 'idle' || status === 'starting') {return (<div className="flex flex-col items-center justify-center rounded-xl border border-dashed border-slate-700/60 bg-slate-900/30 py-16 text-center">- <span className="text-3xl">🤖</span>- <p className="mt-3 text-sm font-medium text-slate-300">AI Investigation</p>- <p className="mt-1 text-xs text-slate-500">- Click “Investigate with AI” in the header to launch the autonomous investigator.+ <p className="text-sm font-medium text-slate-300">Agent investigation</p>+ <p className="mt-1 max-w-md text-xs text-slate-500">+ Use “Investigate with agent” in the header to run the recon, forensic, and responder agents on this case.</p></div>);@@ -1005,20 +1001,20 @@ function InvestigationPanel({<div className="space-y-4"><div className="flex items-center justify-between"><span className="inline-flex items-center gap-1.5 rounded-full bg-emerald-500/10 px-2.5 py-0.5 text-xs font-medium text-emerald-300 ring-1 ring-emerald-500/30">- ✓ Investigation complete+ Investigation complete</span><buttononClick={onViewReport}className="rounded-md border border-slate-700/70 bg-slate-800/50 px-3 py-1.5 text-xs font-medium text-slate-200 hover:border-slate-600">- View full report →+ View full report</button></div><div className="grid grid-cols-1 gap-4 lg:grid-cols-3">{/* Recon */}<div className="rounded-xl border border-slate-800/80 bg-slate-900/40 p-4 space-y-2">- <h4 className="text-xs font-semibold uppercase tracking-wide text-blue-300">🔍 Recon</h4>+ <h4 className="text-xs font-semibold uppercase tracking-wide text-blue-300">Recon</h4>{recon?.summary != null && <p className="text-xs text-slate-400">{String(recon.summary)}</p>}{Array.isArray(recon?.iocs) && recon.iocs.length > 0 && (<div>@@ -1043,7 +1039,7 @@ function InvestigationPanel({{/* Forensic */}<div className="rounded-xl border border-slate-800/80 bg-slate-900/40 p-4 space-y-2">- <h4 className="text-xs font-semibold uppercase tracking-wide text-purple-300">🔬 Forensic</h4>+ <h4 className="text-xs font-semibold uppercase tracking-wide text-purple-300">Forensic</h4>{forensic?.summary != null && <p className="text-xs text-slate-400">{String(forensic.summary)}</p>}{forensic?.root_cause_hypothesis != null && (<div>@@ -1063,7 +1059,7 @@ function InvestigationPanel({{/* Responder */}<div className="rounded-xl border border-slate-800/80 bg-slate-900/40 p-4 space-y-2">- <h4 className="text-xs font-semibold uppercase tracking-wide text-amber-300">🛡️ Response</h4>+ <h4 className="text-xs font-semibold uppercase tracking-wide text-amber-300">Response</h4>{responder?.summary != null && <p className="text-xs text-slate-400">{String(responder.summary)}</p>}{Array.isArray(responder?.recommended_actions) && (<ul className="space-y-1">@@ -1116,13 +1112,13 @@ function AuditLogPreview({ log }: { log: Array<{ kind: string; agent: string; su// ─── Live steps feed (real-time WebSocket updates) ────────────────────────────-const AGENT_ICONS: Record<string, string> = {- recon: '🔍',- forensic: '🧬',- responder: '🛡️',- report: '📋',- completed: '✅',- error: '❌',+const AGENT_LABELS: Record<string, string> = {+ recon: 'recon',+ forensic: 'forensic',+ responder: 'responder',+ report: 'report',+ completed: 'done',+ error: 'error',};function LiveStepsFeed({ steps }: { steps: LiveStep[] }) {@@ -1141,10 +1137,12 @@ function LiveStepsFeed({ steps }: { steps: LiveStep[] }) {</div><ul className="max-h-56 overflow-y-auto divide-y divide-slate-800/40">{steps.map((step, i) => {- const icon = AGENT_ICONS[step.kind] ?? '⚡';+ const label = AGENT_LABELS[step.kind] ?? step.kind;return (<li key={i} className="flex items-start gap-2.5 px-3 py-2">- <span className="shrink-0 text-base leading-none mt-0.5">{icon}</span>+ <span className="shrink-0 mt-0.5 rounded border border-slate-700/60 bg-slate-900 px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-wide text-slate-400">+ {label}+ </span><div className="flex-1 min-w-0"><div className="flex items-center gap-1.5"><span className="text-[11px] font-semibold text-slate-300">{step.agent}</span>@@ -1194,8 +1192,7 @@ function ReportPanel({if (!markdown) {return (<div className="flex flex-col items-center justify-center rounded-xl border border-dashed border-slate-700/60 bg-slate-900/30 py-16 text-center">- <span className="text-3xl">📋</span>- <p className="mt-3 text-sm font-medium text-slate-300">No report yet</p>+ <p className="text-sm font-medium text-slate-300">No report yet</p><p className="mt-1 text-xs text-slate-500">Run an investigation to generate a report.</p></div>);@@ -1219,7 +1216,7 @@ function ReportPanel({}}className="text-[11px] text-slate-400 hover:text-slate-200">- ↓ .md+ Download .md</button>{/* Download PDF */}{runId && (@@ -1239,7 +1236,7 @@ function ReportPanel({Generating…</>) : (- <>↓ PDF</>+ <>Download PDF</>)}</button>)}diff --git a/apps/web/src/components/cases/CasesView.tsx b/apps/web/src/components/cases/CasesView.tsxindex b79feb48f..b2f17aa77 100644--- a/apps/web/src/components/cases/CasesView.tsx+++ b/apps/web/src/components/cases/CasesView.tsx@@ -205,7 +205,6 @@ export function CasesView() {</div>) : cases.length === 0 ? (<div className="flex flex-col items-center justify-center h-48 text-gray-600">- <span className="text-3xl mb-2">📂</span><p className="text-sm">No cases found</p></div>) : (diff --git a/apps/web/src/components/cases/InvestigationLedger.tsx b/apps/web/src/components/cases/InvestigationLedger.tsxindex 3428dd6c8..5d0a7697f 100644--- a/apps/web/src/components/cases/InvestigationLedger.tsx+++ b/apps/web/src/components/cases/InvestigationLedger.tsx@@ -41,20 +41,20 @@ import { EmptyState } from '@/components/ui/EmptyState';// ─── Style maps ───────────────────────────────────────────────────────────────-/** Map ledger `kind` enum → icon for the timeline glyph. */+/** Map ledger `kind` enum → short text label for the timeline glyph. */const KIND_ICON: Record<string, string> = {- recon: '🔍',- forensic: '🧬',- responder: '🛡️',- reporter: '📋',- report: '📋',- llm_prompt: '🧠',- llm_response: '💬',- tool_call: '🔧',- evidence_cited: '📎',- decision_reason: '🤔',- error: '❌',- completed: '✅',+ recon: 'rec',+ forensic: 'frn',+ responder: 'rsp',+ reporter: 'rpt',+ report: 'rpt',+ llm_prompt: 'in',+ llm_response: 'out',+ tool_call: 'tool',+ evidence_cited: 'evd',+ decision_reason: 'why',+ error: 'err',+ completed: 'done',};/** Map ledger `kind` enum → tailwind colour family for chip styling. */@@ -222,7 +222,7 @@ export function InvestigationLedger({a.click();document.body.removeChild(a);URL.revokeObjectURL(url);- toast.success('Ledger exported — verifiable JSON', { icon: '🔏' });+ toast.success('Ledger exported — verifiable JSON');} catch (err) {toast.error(err instanceof Error@@ -248,7 +248,6 @@ export function InvestigationLedger({if (runsError || !runs) {return (<EmptyState- icon={<span className="text-xl">📒</span>}title="Ledger unavailable"description="The investigation ledger API isn't reachable. Make sure the API service is running."/>@@ -258,7 +257,6 @@ export function InvestigationLedger({if (runs.length === 0) {return (<EmptyState- icon={<span className="text-xl">📒</span>}title="No investigations recorded yet"description="Click ‘Investigate with AI’ in the header to launch the agent. Every prompt, tool call, and decision will be logged here for replay and audit."/>@@ -323,7 +321,7 @@ export function InvestigationLedger({className="rounded-md border border-slate-700/70 bg-slate-800/50 px-2.5 py-1.5 text-xs font-medium text-slate-200 hover:border-slate-600"title="Export signed JSON for auditor handoff">- 🔏 Export+ Export</button><buttononClick={() => void refreshEvents()}@@ -387,7 +385,6 @@ export function InvestigationLedger({{selectedSeq == null || !resolvedRunId ? (<Panel title="Why this step?"><EmptyState- icon={<span className="text-xl">🔎</span>}title="Select a step"description="Click any decision in the timeline to see the literal prompt, response, evidence, and downstream effects."/>@@ -670,7 +667,7 @@ function HashRow({ label, value }: { label: string; value: string }) {<buttononClick={() => {void navigator.clipboard.writeText(value);- toast.success('Hash copied', { icon: '📋' });+ toast.success('Hash copied');}}className="text-[10px] text-slate-500 hover:text-slate-300"title="Copy hash"@@ -734,7 +731,6 @@ function ArtifactBlock({ artifact }: { artifact: LedgerArtifactDetail }) {onClick={() => setOpen((o) => !o)}className="flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-slate-900/40">- <span className="text-sm leading-none">📎</span><span className="text-[11px] font-semibold uppercase tracking-wide text-slate-300">{artifact.kind}</span>diff --git a/apps/web/src/components/compliance/FrameworkView.tsx b/apps/web/src/components/compliance/FrameworkView.tsxindex b364f573b..c6546beb3 100644--- a/apps/web/src/components/compliance/FrameworkView.tsx+++ b/apps/web/src/components/compliance/FrameworkView.tsx@@ -191,7 +191,7 @@ export function FrameworkView({ framework }: Props) {</div><div className="w-full bg-gray-700 rounded-full h-3"><div- className="h-3 rounded-full bg-gradient-to-r from-blue-600 to-green-500 transition-all"+ className="h-3 rounded-full bg-emerald-500 transition-all"style={{ width: `${pctBar}%` }}/></div>diff --git a/apps/web/src/components/compliance/SOC2View.tsx b/apps/web/src/components/compliance/SOC2View.tsxindex fc314aea7..ae5dd55bc 100644--- a/apps/web/src/components/compliance/SOC2View.tsx+++ b/apps/web/src/components/compliance/SOC2View.tsx@@ -175,7 +175,7 @@ export function SOC2View() {</div><div className="w-full bg-gray-100 rounded-full h-3"><div- className="h-3 rounded-full bg-gradient-to-r from-indigo-500 to-green-500 transition-all duration-700"+ className="h-3 rounded-full bg-emerald-500 transition-all duration-700"style={{ width: `${data.summary.pct}%` }}/></div>diff --git a/apps/web/src/components/connectors/ConnectorsView.tsx b/apps/web/src/components/connectors/ConnectorsView.tsxindex bb06cdb32..f1e9dd5a0 100644--- a/apps/web/src/components/connectors/ConnectorsView.tsx+++ b/apps/web/src/components/connectors/ConnectorsView.tsx@@ -65,13 +65,13 @@ const MOCK_CONNECTORS: Connector[] = [},];-const CONNECTOR_ICONS: Record<string, string> = {- crowdstrike: '🦅',- splunk: '🔭',- aws: '☁️',- okta: '🔐',- sentinel: '🛡️',- custom: '⚙️',+const CONNECTOR_LABELS: Record<string, string> = {+ crowdstrike: 'CS',+ splunk: 'SPL',+ aws: 'AWS',+ okta: 'OKT',+ sentinel: 'SNT',+ custom: 'GEN',};const STATUS_CONFIG = {@@ -99,8 +99,8 @@ function ConnectorCard({ connector, onTest }: { connector: Connector; onTest: (i<div className="bg-gray-900/60 border border-gray-800/60 rounded-xl p-5 hover:border-gray-700/60 transition-colors"><div className="flex items-start justify-between mb-3"><div className="flex items-center gap-3">- <div className="w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center text-xl">- {CONNECTOR_ICONS[connector.type] || '⚙️'}+ <div className="w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center text-[10px] font-semibold uppercase tracking-wider text-gray-400">+ {CONNECTOR_LABELS[connector.type] ?? 'GEN'}</div><div><h3 className="text-sm font-medium text-gray-200">{connector.name}</h3>@@ -193,16 +193,13 @@ export function ConnectorsView() {{/* Stats */}<div className="grid grid-cols-4 gap-3">{[- { label: 'Total Connectors', value: connectors.length, color: 'text-blue-400', icon: '🔌' },- { label: 'Active', value: activeCount, color: 'text-green-400', icon: '✅' },- { label: 'Errors', value: errorCount, color: 'text-red-400', icon: '⚠️' },- { label: 'Total Alerts', value: totalAlerts.toLocaleString(), color: 'text-purple-400', icon: '📊' },+ { label: 'Total Connectors', value: connectors.length, color: 'text-blue-400' },+ { label: 'Active', value: activeCount, color: 'text-green-400' },+ { label: 'Errors', value: errorCount, color: 'text-red-400' },+ { label: 'Total Alerts', value: totalAlerts.toLocaleString(), color: 'text-purple-400' },].map((stat) => (<div key={stat.label} className="bg-gray-900/60 border border-gray-800/60 rounded-xl p-4">- <div className="flex items-center gap-2 mb-1">- <span>{stat.icon}</span>- <p className={clsx('text-2xl font-bold', stat.color)}>{stat.value}</p>- </div>+ <p className={clsx('text-2xl font-bold mb-1', stat.color)}>{stat.value}</p><p className="text-xs text-gray-500">{stat.label}</p></div>))}@@ -255,7 +252,7 @@ export function ConnectorsView() {: 'text-red-400 bg-red-500/10 border-red-500/20')}>- <span>{success ? '✓' : '✗'}</span>+ <span className="text-[10px] font-semibold uppercase tracking-wider">{success ? 'ok' : 'fail'}</span><span>{conn.name}: {success ? 'Connection successful' : 'Connection failed'}</span></div>);diff --git a/apps/web/src/components/copilot/ContextualActions.tsx b/apps/web/src/components/copilot/ContextualActions.tsxindex 0344d6169..c38baded6 100644--- a/apps/web/src/components/copilot/ContextualActions.tsx+++ b/apps/web/src/components/copilot/ContextualActions.tsx@@ -348,7 +348,7 @@ function ContextualPanel({return (<divclassName={clsx(- 'rounded-xl border bg-gradient-to-br from-violet-500/[0.06] via-slate-900/60 to-slate-900/30 backdrop-blur-sm',+ 'rounded-xl border bg-slate-900/60 backdrop-blur-sm',error? 'border-rose-500/40': fallbackdiff --git a/apps/web/src/components/copilot/CopilotDock.tsx b/apps/web/src/components/copilot/CopilotDock.tsxindex bc3fb08a1..d0dce9309 100644--- a/apps/web/src/components/copilot/CopilotDock.tsx+++ b/apps/web/src/components/copilot/CopilotDock.tsx@@ -164,8 +164,8 @@ export function CopilotDock() {{/* Header */}<div className="flex items-center justify-between border-b border-slate-800/80 px-3 py-2"><div className="flex items-center gap-2">- <span className="flex h-7 w-7 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-300">- ⌬+ <span className="flex h-7 w-7 items-center justify-center rounded-full bg-emerald-500/15 text-[10px] font-semibold uppercase tracking-wider text-emerald-300">+ ai</span><div><p className="text-sm font-semibold text-white">AI Copilot</p>diff --git a/apps/web/src/components/copilot/CopilotView.tsx b/apps/web/src/components/copilot/CopilotView.tsxindex 6f86360fe..8aac9d685 100644--- a/apps/web/src/components/copilot/CopilotView.tsx+++ b/apps/web/src/components/copilot/CopilotView.tsx@@ -27,36 +27,30 @@ import { EmptyState } from '@/components/ui/EmptyState';// ─── Suggested prompts ───────────────────────────────────────────────────────-const SUGGESTED_PROMPTS: Array<{ icon: string; label: string; prompt: string }> = [+const SUGGESTED_PROMPTS: Array<{ label: string; prompt: string }> = [{- icon: '🚨',label: 'Top critical alerts',prompt: 'Summarize the top 5 critical alerts in the last 24 hours.',},{- icon: '🔍',label: 'Investigate an entity',prompt:'Investigate host WIN-FIN-DB01: show recent alerts, related users, and ATT&CK techniques observed.',},{- icon: '🧬',label: 'Explain an ATT&CK technique',prompt: 'Explain MITRE ATT&CK T1078 (Valid Accounts) and how we detect it.',},{- icon: '🛡️',label: 'Tune a noisy rule',prompt:'Show me the noisiest detection rules this week and recommend exceptions to reduce false positives.',},{- icon: '⏱️',label: 'MTTR by severity',prompt: 'What is our MTTR by severity over the last 30 days, and what is trending?',},{- icon: '🌐',label: 'Threat intel match',prompt:'Has any indicator from the latest threat intel feed matched our telemetry in the last 7 days?',@@ -75,16 +69,16 @@ function buildDemoReply(prompt: string): CopilotMessage {role: 'assistant',createdAt: now,content: [- '**MTTR by severity (last 30 days)**',+ 'MTTR by severity (last 30 days)','',- '| Severity | MTTR | Δ vs prev 30d |',+ '| Severity | MTTR | vs prev 30d |','|---|---|---|',- '| Critical | 22 min | ▼ 18% |',- '| High | 1h 14m | ▼ 9% |',- '| Medium | 4h 03m | ▲ 4% |',+ '| Critical | 22 min | -18% |',+ '| High | 1h 14m | -9% |',+ '| Medium | 4h 03m | +4% |','| Low | 9h 47m | flat |','',- 'Critical and High are improving — driven by 3 new auto-containment playbooks. Medium is regressing because of a backlog in identity tickets; recommend re-triaging stale items > 6h.',+ 'Critical and High are improving, driven by 3 new auto-containment playbooks. Medium is regressing because of a backlog in identity tickets; recommend re-triaging stale items over 6h.',].join('\n'),suggestions: ['Show me the stale Medium tickets > 6h.',@@ -99,7 +93,7 @@ function buildDemoReply(prompt: string): CopilotMessage {role: 'assistant',createdAt: now,content: [- '**T1078 — Valid Accounts**',+ 'T1078 — Valid Accounts','','Adversaries obtain credentials and use them to access systems through legitimate authentication flows. There are four sub-techniques:','- T1078.001 Default Accounts',@@ -107,13 +101,13 @@ function buildDemoReply(prompt: string): CopilotMessage {'- T1078.003 Local Accounts','- T1078.004 Cloud Accounts','',- '**How we detect it**',- '1. Impossible travel & geo-velocity (`auth.geo_velocity > 800kph`).',- '2. New ASN + new device fingerprint within 24h of a sensitive role assignment.',- '3. MFA fatigue patterns: ≥ 3 push denies followed by an approval.',+ 'How the demo data flags it',+ '1. Impossible travel and geo-velocity (`auth.geo_velocity > 800kph`).',+ '2. New ASN plus new device fingerprint within 24h of a sensitive role assignment.',+ '3. MFA fatigue patterns: 3 or more push denies followed by an approval.','4. Service-account interactive logon outside its baselined hours.','',- 'Coverage today: **74%** across the 4 sub-techniques. Gap: limited Cloud Accounts coverage for non-AWS providers.',+ 'Coverage in the bundled rules: 74% across the 4 sub-techniques. Gap: limited Cloud Accounts coverage for non-AWS providers.',].join('\n'),citations: [{ label: 'rule:auth-impossible-travel', kind: 'rule' },@@ -132,14 +126,14 @@ function buildDemoReply(prompt: string): CopilotMessage {role: 'assistant',createdAt: now,content: [- '**Investigation: WIN-FIN-DB01**',+ 'Investigation: WIN-FIN-DB01','',- '- Risk score **92** (top 1% of fleet).',+ '- Risk score 92 (top 1% of fleet).','- 3 open alerts: privilege escalation, suspicious PowerShell, outbound to rare ASN.',- '- Most likely user: `[email protected]` — 4 logon events in last 2h, all from a new device.',+ '- Most likely user: `[email protected]` (4 logon events in last 2h, all from a new device).','- Observed ATT&CK techniques: T1078.002, T1059.001, T1071.001.','',- '**Recommended next steps**',+ 'Recommended next steps','1. Isolate the host (EDR action).','2. Force credential reset for `j.harlow`.','3. Block egress to ASN `AS204796` at the perimeter.',@@ -161,11 +155,11 @@ function buildDemoReply(prompt: string): CopilotMessage {role: 'assistant',createdAt: now,content: [- "I'm running in demo mode (the LLM backend isn't reachable from this dev session), so this is a stub response.",+ 'Running in demo mode. The LLM backend is not reachable from this session, so this reply is a stub.','',- 'You can still try real prompts — they will go to `POST /api/v1/copilot/chat` once the API service is up.',+ 'Real prompts will be forwarded to `POST /api/v1/copilot/chat` once the API service is reachable.','',- `> _You said:_ ${prompt}`,+ `> You said: ${prompt}`,].join('\n'),suggestions: ['Show me the top critical alerts.',@@ -425,7 +419,7 @@ export function CopilotView() {onClick={startNew}className="flex items-center justify-center gap-2 rounded-lg bg-emerald-500 px-3 py-2 text-sm font-semibold text-emerald-950 shadow-sm transition-colors hover:bg-emerald-400">- <span aria-hidden>+</span> New chat+ New chat</button><div>@@ -439,7 +433,6 @@ export function CopilotView() {onClick={() => void send(p.prompt)}className="group flex w-full items-start gap-2 rounded-md px-2 py-2 text-left text-sm text-slate-300 transition-colors hover:bg-slate-800/60 hover:text-white">- <span aria-hidden>{p.icon}</span><span className="leading-tight">{p.label}</span></button></li>@@ -510,17 +503,13 @@ export function CopilotView() {<div ref={scrollerRef} className="min-h-0 flex-1 overflow-y-auto p-4">{empty ? (<div className="mx-auto flex h-full max-w-2xl flex-col items-center justify-center text-center">- <div className="mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-300">- <svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.456-2.456L14.25 6l1.035-.259a3.375 3.375 0 0 0 2.456-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" />- </svg>- </div><h2 className="text-lg font-semibold text-white">- What can I help you with?+ Copilot</h2><p className="mt-1 max-w-md text-sm text-slate-400">- Try one of the suggestions below, or ask anything in plain- English. Cite an alert ID, hostname, or technique to scope it.+ Ask about alerts, hosts, MITRE techniques, or detection+ coverage. Cite an alert ID, hostname, or technique to scope+ the answer.</p><div className="mt-6 grid w-full max-w-2xl grid-cols-1 gap-2 sm:grid-cols-2">{SUGGESTED_PROMPTS.map((p) => (@@ -529,9 +518,6 @@ export function CopilotView() {onClick={() => void send(p.prompt)}className="flex items-start gap-3 rounded-lg border border-slate-800/80 bg-slate-900/60 p-3 text-left transition-colors hover:border-emerald-500/40 hover:bg-slate-800/60">- <span className="text-lg" aria-hidden>- {p.icon}- </span><span><span className="block text-sm font-medium text-white">{p.label}@@ -559,8 +545,8 @@ export function CopilotView() {)}>{m.role === 'assistant' && (- <div className="flex h-8 w-8 flex-none items-center justify-center rounded-full bg-emerald-500/15 text-emerald-300">- ⌬+ <div className="flex h-8 w-8 flex-none items-center justify-center rounded-full bg-emerald-500/15 text-[10px] font-semibold uppercase tracking-wider text-emerald-300">+ ai</div>)}<div@@ -619,8 +605,8 @@ export function CopilotView() {</AnimatePresence>{sending && (<li className="flex justify-start gap-3">- <div className="flex h-8 w-8 flex-none items-center justify-center rounded-full bg-emerald-500/15 text-emerald-300">- ⌬+ <div className="flex h-8 w-8 flex-none items-center justify-center rounded-full bg-emerald-500/15 text-[10px] font-semibold uppercase tracking-wider text-emerald-300">+ ai</div><div className="rounded-2xl bg-slate-800/70 px-4 py-3 ring-1 ring-slate-700/60"><TypingDots />diff --git a/apps/web/src/components/dashboard/DashboardView.tsx b/apps/web/src/components/dashboard/DashboardView.tsxindex 43f394d77..d193e31f6 100644--- a/apps/web/src/components/dashboard/DashboardView.tsx+++ b/apps/web/src/components/dashboard/DashboardView.tsx@@ -64,7 +64,6 @@ interface MetricCardProps {value: string | number;sub?: string;color?: 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'gray';- icon?: string;trend?: { value: number; label: string };}@@ -78,25 +77,20 @@ const COLOR_MAP = {gray: 'text-gray-400',};-function MetricCard({ label, value, sub, color = 'blue', icon, trend }: MetricCardProps) {+function MetricCard({ label, value, sub, color = 'blue', trend }: MetricCardProps) {return (<div className="bg-gray-900/60 border border-gray-800/60 rounded-xl p-5">- <div className="flex items-start justify-between">- <div>- <p className="text-xs text-gray-500 font-medium uppercase tracking-wider mb-2">{label}</p>- <p className={clsx('text-3xl font-bold', COLOR_MAP[color])}>{value}</p>- {sub && <p className="text-xs text-gray-500 mt-1">{sub}</p>}- </div>- {icon && (- <span className="text-2xl opacity-60">{icon}</span>- )}+ <div>+ <p className="text-xs text-gray-500 font-medium uppercase tracking-wider mb-2">{label}</p>+ <p className={clsx('text-3xl font-bold', COLOR_MAP[color])}>{value}</p>+ {sub && <p className="text-xs text-gray-500 mt-1">{sub}</p>}</div>{trend && (<div className={clsx('flex items-center gap-1 mt-3 text-xs',trend.value >= 0 ? 'text-red-400' : 'text-green-400')}>- <span>{trend.value >= 0 ? '↑' : '↓'} {Math.abs(trend.value)}%</span>+ <span>{trend.value >= 0 ? '+' : '-'}{Math.abs(trend.value)}%</span><span className="text-gray-600">{trend.label}</span></div>)}@@ -147,11 +141,7 @@ export function DashboardView() {<div className="flex items-center justify-between"><div><h1 className="text-xl font-semibold text-gray-100">Security Operations Center</h1>- <p className="text-sm text-gray-500 mt-0.5">Real-time visibility across your security landscape</p>- </div>- <div className="flex items-center gap-2 text-sm text-gray-400 bg-green-500/10 border border-green-500/20 px-3 py-1.5 rounded-lg">- <span className="w-2 h-2 rounded-full bg-green-500 animate-pulse" />- All systems operational+ <p className="text-sm text-gray-500 mt-0.5">Overview of alerts, cases, and detection sources</p></div></div>@@ -162,7 +152,6 @@ export function DashboardView() {value={metrics.alerts.total}sub={`${metrics.alerts.new} new today`}color="blue"- icon="🔔"trend={{ value: 12, label: 'vs yesterday' }}/><MetricCard@@ -170,7 +159,6 @@ export function DashboardView() {value={metrics.alerts.critical}sub="Require immediate action"color="red"- icon="🚨"trend={{ value: -3, label: 'vs yesterday' }}/><MetricCard@@ -178,14 +166,12 @@ export function DashboardView() {value={metrics.cases.open}sub={`${metrics.cases.inProgress} in progress`}color="orange"- icon="📋"/><MetricCardlabel="MTTR"value={`${metrics.alerts.mttr}m`}sub="Mean time to resolve"color="green"- icon="⚡"trend={{ value: -8, label: 'vs last week' }}/></div>diff --git a/apps/web/src/components/demo/DemoBanner.tsx b/apps/web/src/components/demo/DemoBanner.tsxindex 1345fd62a..6fb1a794e 100644--- a/apps/web/src/components/demo/DemoBanner.tsx+++ b/apps/web/src/components/demo/DemoBanner.tsx@@ -26,15 +26,11 @@ export function DemoBanner() {flex items-center justify-center gap-3h-9 px-4text-xs font-medium- bg-gradient-to-r from-amber-500/15 via-amber-400/20 to-amber-500/15+ bg-amber-500/15text-amber-200border-b border-amber-500/30- backdrop-blur-sm">- <span aria-hidden="true" className="text-amber-300">- ●- </span><span>{demoBannerMessage()}</span><span aria-hidden="true" className="text-amber-500/60">|@@ -45,7 +41,7 @@ export function DemoBanner() {rel="noopener noreferrer"className="underline underline-offset-2 hover:text-amber-100 transition-colors">- Self-host AiSOC →+ Self-host AiSOC</a></div>);diff --git a/apps/web/src/components/detections/DetectionsView.tsx b/apps/web/src/components/detections/DetectionsView.tsxindex 7880f1bd4..2ccbb9ff9 100644--- a/apps/web/src/components/detections/DetectionsView.tsx+++ b/apps/web/src/components/detections/DetectionsView.tsx@@ -316,7 +316,7 @@ export function DetectionsView() {</Link><buttononClick={() =>- toast('Starter pack import is coming soon', { icon: '📦' })+ toast('Starter pack import is coming soon')}className="rounded-md border border-gray-700 px-4 py-2 text-sm text-gray-300 hover:bg-gray-800">diff --git a/apps/web/src/components/detections/RuleEditor.tsx b/apps/web/src/components/detections/RuleEditor.tsxindex 278e27571..4e7231d08 100644--- a/apps/web/src/components/detections/RuleEditor.tsx+++ b/apps/web/src/components/detections/RuleEditor.tsx@@ -219,7 +219,7 @@ export function RuleEditor({ mode, ruleId }: RuleEditorProps) {if (result.matches > 0) {toast.success(`Match — ${result.matches} event(s)`);} else {- toast(`No match against the sample`, { icon: '🔍' });+ toast(`No match against the sample`);}} catch (err) {console.warn('Test failed, using demo evaluator', err);@@ -230,7 +230,7 @@ export function RuleEditor({ mode, ruleId }: RuleEditorProps) {`Demo evaluator: matched ${demo.matches} event(s) (offline mode)`,);} else {- toast('Demo evaluator: no match (offline mode)', { icon: '🧪' });+ toast('Demo evaluator: no match (offline mode)');}} finally {setTesting(false);diff --git a/apps/web/src/components/hunt/HuntView.tsx b/apps/web/src/components/hunt/HuntView.tsxindex b1fbf5b19..9abbbdb75 100644--- a/apps/web/src/components/hunt/HuntView.tsx+++ b/apps/web/src/components/hunt/HuntView.tsx@@ -248,7 +248,7 @@ function SavedList({{s.language}</span>{s.pinned && (- <span className="text-[10px] text-amber-300">★ pinned</span>+ <span className="text-[10px] text-amber-300">pinned</span>)}</div><p className="mt-1 truncate text-sm text-slate-200">{s.name}</p>@@ -441,10 +441,7 @@ export function HuntView() {});setDemoMode(true);setRunError(err);- toast(- 'Backend unreachable — showing demo results',- { icon: '⚠️' },- );+ toast('Backend unreachable — showing demo results');} finally {setRunning(false);}@@ -681,12 +678,11 @@ export function HuntView() {/>) : results.hits.length === 0 ? (<div className="flex flex-col items-center justify-center px-6 py-10">- <span className="mb-2 text-2xl text-emerald-400">✓</span><p className="text-sm font-medium text-emerald-300">No matches in the selected window</p><p className="mt-1 text-xs text-slate-500">- {runError ? 'Backend unreachable.' : 'Either you’re clean, or your query is too tight.'}+ {runError ? 'Backend unreachable.' : 'Either the data is clean, or the query is too tight.'}</p></div>) : (diff --git a/apps/web/src/components/landing/Architecture.tsx b/apps/web/src/components/landing/Architecture.tsxindex 7c0a72330..dabcdd7df 100644--- a/apps/web/src/components/landing/Architecture.tsx+++ b/apps/web/src/components/landing/Architecture.tsx@@ -42,7 +42,7 @@ const STORES = [export function Architecture() {return (<section id="architecture" className="relative py-24 md:py-32">- <div className="absolute inset-x-0 top-0 -z-10 h-px bg-gradient-to-r from-transparent via-white/10 to-transparent" />+ <div className="absolute inset-x-0 top-0 -z-10 h-px bg-white/10" /><div className="mx-auto max-w-7xl px-6"><motion.divinitial={{ opacity: 0, y: 16 }}@@ -55,11 +55,11 @@ export function Architecture() {How it works</span><h2 className="mt-3 text-4xl font-bold tracking-tight text-white md:text-5xl">- One pipeline, end to end+ Pipeline overview</h2><p className="mt-4 text-lg text-gray-400">- Every box is a service you can swap, scale, or replace. No black boxes, no licenses,- no per-seat traps.+ Each stage is a separate service with its own container image and+ interface, so individual components can be swapped or replaced.</p></motion.div>@@ -87,7 +87,7 @@ export function Architecture() {))}</ul>{i < LAYERS.length - 1 && (- <div className="absolute -right-3 top-1/2 hidden h-px w-6 -translate-y-1/2 bg-gradient-to-r from-white/30 to-transparent lg:block" />+ <div className="absolute -right-3 top-1/2 hidden h-px w-6 -translate-y-1/2 bg-white/20 lg:block" />)}</motion.div>))}@@ -101,7 +101,7 @@ export function Architecture() {Storage tier</div><div className="mt-1 text-sm text-gray-300">- Polyglot persistence — pick the right store for each workload.+ Different stores are used for different workloads.</div></div><span className="hidden text-xs text-gray-500 md:block">diff --git a/apps/web/src/components/landing/Features.tsx b/apps/web/src/components/landing/Features.tsxindex cba2829ad..230893cf4 100644--- a/apps/web/src/components/landing/Features.tsx+++ b/apps/web/src/components/landing/Features.tsx@@ -4,58 +4,52 @@ import { motion } from 'framer-motion';const FEATURES = [{- title: 'Real-time correlation',+ title: 'Streaming correlation',description:- 'Stream events from any source through Kafka, fuse them with ML and rule-based detectors, and surface alerts in under 200ms.',+ 'Events flow through Kafka into rule- and ML-based detectors. Latency depends on deployment size; on the demo stack alerts typically surface in well under a second.',icon: (<path d="M4 4h16v4H4zM4 10h10v4H4zM4 16h16v4H4z" />),- accent: 'from-brand-500/20 to-brand-500/0',},{- title: 'Autonomous triage',+ title: 'Agent-assisted triage',description:- 'Agentic copilot enriches alerts with threat intel, identity context, and host telemetry — and explains every decision it makes.',+ 'The copilot enriches alerts with threat intel, identity context and host telemetry, and records the prompts and rationale behind each decision.',icon: (<path d="M12 2l3 7h7l-5.5 4.5L18 21l-6-4-6 4 1.5-7.5L2 9h7z" />),- accent: 'from-amber-500/20 to-amber-500/0',},{- title: 'MITRE ATT&CK native',+ title: 'MITRE ATT&CK mapping',description:- 'Detection rules, alerts, and the heatmap all map back to ATT&CK techniques. See coverage gaps in the same view as live attacks.',+ 'Detection rules, alerts and the coverage heatmap reference ATT&CK techniques, so coverage gaps show up alongside live activity.',icon: (<path d="M3 3h7v7H3zm11 0h7v4h-7zm0 6h7v12h-7zm-11 4h7v8H3z" />),- accent: 'from-emerald-500/20 to-emerald-500/0',},{- title: 'Attack graph that thinks',+ title: 'Attack graph',description:- 'Cross-source paths between identities, hosts, and assets. Pivot from any node into the hunter or open a case in one click.',+ 'A graph view links identities, hosts and assets, with pivots into the hunter and case views.',icon: (<path d="M5 5a3 3 0 116 0 3 3 0 01-6 0zm8 14a3 3 0 116 0 3 3 0 01-6 0zM7.5 8l5 8" />),- accent: 'from-fuchsia-500/20 to-fuchsia-500/0',},{title: 'Detection-as-code',description:- 'Author Sigma, KQL, EQL, or YAML rules in the inline editor. Test against historical data, version with git, deploy in seconds.',+ 'Sigma, KQL, EQL and YAML rules can be authored in the inline editor, tested against historical data and version-controlled in Git.',icon: (<path d="M8 9l-5 3 5 3M16 9l5 3-5 3M14 5l-4 14" />),- accent: 'from-cyan-500/20 to-cyan-500/0',},{- title: 'Connectors for everything',+ title: 'Pluggable connectors',description:- 'Cloud trails, EDR, identity, network, SaaS — bring your own source. The connector framework abstracts ingest, schema, and rate limits.',+ 'A connector framework handles ingest, schema mapping and rate limits for cloud trails, EDR, identity, network and SaaS sources.',icon: (<path d="M4 6h16v4H4zM4 14h10v4H4zM18 14h2v4h-2z" />),- accent: 'from-violet-500/20 to-violet-500/0',},];@@ -74,11 +68,11 @@ export function Features() {Platform</span><h2 className="mt-3 text-4xl font-bold tracking-tight text-white md:text-5xl">- A SOC that ships with batteries included+ What is in the box</h2><p className="mt-4 text-lg text-gray-400">- Every layer — ingest, detection, analysis, response — is built to be inspected,- extended, and run in your own environment.+ Ingest, detection, analysis and response are separate services that can be inspected,+ extended and run in your own environment.</p></motion.div>@@ -92,9 +86,6 @@ export function Features() {transition={{ duration: 0.4, delay: i * 0.04 }}className="group relative overflow-hidden rounded-2xl border border-white/5 bg-surface-card/50 p-6 transition hover:border-white/15 hover:bg-surface-card">- <div- className={`pointer-events-none absolute -right-12 -top-12 h-32 w-32 rounded-full bg-gradient-to-br ${feature.accent} opacity-0 blur-2xl transition-opacity group-hover:opacity-100`}- /><div className="relative"><div className="inline-flex h-11 w-11 items-center justify-center rounded-lg border border-white/10 bg-white/[0.04] text-brand-300"><svgdiff --git a/apps/web/src/components/landing/Footer.tsx b/apps/web/src/components/landing/Footer.tsxindex a1442fe78..915e92ef5 100644--- a/apps/web/src/components/landing/Footer.tsx+++ b/apps/web/src/components/landing/Footer.tsx@@ -49,8 +49,8 @@ export function Footer() {<div className="col-span-2"><Logo size={36} withWordmark /><p className="mt-4 max-w-sm text-sm leading-relaxed text-gray-400">- The open-source AI Security Operations Center. Maintained by the AiSOC community.- MIT licensed, forever.+ An open-source AI security operations centre, maintained by the+ AiSOC community and released under the MIT licence.</p><div className="mt-5 flex gap-3"><a@@ -104,23 +104,16 @@ export function Footer() {<div className="mt-12 flex flex-col items-start justify-between gap-3 border-t border-white/5 pt-6 text-xs text-gray-500 sm:flex-row sm:items-center"><div>- © {new Date().getFullYear()} AiSOC contributors. AiSOC is open-source software- released under the MIT License.- </div>- <div className="flex items-center gap-4">- <span className="inline-flex items-center gap-1.5">- <span className="h-1.5 w-1.5 rounded-full bg-emerald-400" />- All systems operational- </span>- <a- href="https://github.com/beenuar/AiSOC/releases"- target="_blank"- rel="noreferrer"- className="font-mono hover:text-white"- >- v5.2.0- </a>+ © {new Date().getFullYear()} AiSOC contributors. Released under the MIT License.</div>+ <a+ href="https://github.com/beenuar/AiSOC/releases"+ target="_blank"+ rel="noreferrer"+ className="font-mono hover:text-white"+ >+ v5.2.0+ </a></div></div></footer>diff --git a/apps/web/src/components/landing/Hero.tsx b/apps/web/src/components/landing/Hero.tsxindex f25876912..09355c640 100644--- a/apps/web/src/components/landing/Hero.tsx+++ b/apps/web/src/components/landing/Hero.tsx@@ -4,22 +4,14 @@ import Link from 'next/link';import { motion } from 'framer-motion';/**- * Landing hero. The visual goal is "live SOC" without flashing imagery — we use- * a stack of subtle, breathing surfaces (signal map, alert ticker, copilot- * thread) so the page advertises the product capability rather than describing- * it. All animations respect prefers-reduced-motion through framer-motion's- * defaults.+ * Landing hero. The visual is a stylized preview of the case workspace —+ * attack-graph card on top, copilot thread peeking from the corner. The data+ * shown is illustrative, not live. All animations respect+ * prefers-reduced-motion through framer-motion's defaults.*/export function Hero() {return (<section className="relative isolate overflow-hidden pt-32 pb-24 md:pt-40 md:pb-32">- {/* Background grid + radial glows */}- <div aria-hidden className="pointer-events-none absolute inset-0 -z-10">- <div className="absolute inset-0 bg-grid-hero bg-grid-lg opacity-60" />- <div className="absolute -top-40 left-1/2 h-[640px] w-[1100px] -translate-x-1/2 rounded-full bg-brand-500/10 blur-3xl" />- <div className="absolute right-[-10%] top-1/3 h-[420px] w-[420px] rounded-full bg-amber-500/10 blur-3xl" />- <div className="absolute inset-x-0 bottom-0 h-40 bg-gradient-to-t from-surface-base to-transparent" />- </div><div className="mx-auto grid max-w-7xl grid-cols-1 items-center gap-16 px-6 lg:grid-cols-[1.1fr_1fr]">{/* Copy column */}@@ -29,26 +21,18 @@ export function Hero() {transition={{ duration: 0.6, ease: 'easeOut' }}><span className="inline-flex items-center gap-2 rounded-full border border-brand-400/30 bg-brand-500/10 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-brand-200">- <span className="relative flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-75" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-emerald-400" />- </span>- Open-source · MIT · community-built+ Open-source · MIT · community-maintained</span><h1 className="mt-6 text-balance text-5xl font-bold leading-[1.05] tracking-tight text-white md:text-6xl lg:text-7xl">- The{' '}- <span className="bg-gradient-to-r from-brand-300 via-brand-400 to-amber-300 bg-clip-text text-transparent">- auditable- </span>{' '}- AI SOC.+ An auditable AI SOC.</h1><p className="mt-6 max-w-xl text-lg leading-relaxed text-gray-300 md:text-xl">- Every agent decision is logged step-by-step, queryable, and replayable.- Substrate gated by a public, reproducible 200-case eval harness on every- commit. MIT-licensed and self-hostable — your data never leaves your- infrastructure.+ Agent prompts, tool calls, and decisions are recorded in an investigation+ ledger and replayable per case. The substrate underneath is gated by a+ 200-incident eval harness that runs on every commit. MIT-licensed and+ self-hostable.</p><div className="mt-8 flex flex-wrap items-center gap-3">@@ -56,9 +40,9 @@ export function Hero() {href="https://demo.aisoc.dev/cases/INC-001?tab=ledger"target="_blank"rel="noreferrer"- className="group inline-flex items-center gap-2 rounded-lg bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-glow-brand transition hover:bg-brand-400"+ className="group inline-flex items-center gap-2 rounded-lg bg-brand-500 px-5 py-3 text-sm font-semibold text-white transition hover:bg-brand-400">- Try the live demo+ Open the demo<svg viewBox="0 0 20 20" className="h-4 w-4 transition-transform group-hover:translate-x-0.5" fill="currentColor" aria-hidden="true"><path d="M7.05 4.05a1 1 0 011.41 0l5 5a1 1 0 010 1.41l-5 5a1 1 0 11-1.41-1.41L11.09 10 7.05 5.46a1 1 0 010-1.41z" /></svg>@@ -67,7 +51,7 @@ export function Hero() {href="/dashboard"className="inline-flex items-center gap-2 rounded-lg border border-white/15 bg-white/[0.04] px-5 py-3 text-sm font-semibold text-gray-200 transition hover:border-white/30 hover:bg-white/[0.08]">- Launch console+ Open console</Link><ahref="https://github.com/beenuar/AiSOC"@@ -78,21 +62,19 @@ export function Hero() {<svg viewBox="0 0 24 24" className="h-4 w-4" aria-hidden="true" fill="currentColor"><path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.28-.01-1.02-.02-2-3.2.69-3.88-1.54-3.88-1.54-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.69.08-.69 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.68 1.24 3.34.95.1-.74.4-1.24.73-1.53-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.18a10.9 10.9 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.59.23 2.76.11 3.05.74.81 1.18 1.84 1.18 3.1 0 4.42-2.7 5.39-5.27 5.68.41.36.78 1.06.78 2.14 0 1.55-.01 2.79-.01 3.17 0 .31.21.68.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z" /></svg>- Star on GitHub+ GitHub</a></div><p className="mt-3 text-xs text-gray-500">- Demo lands directly on a live agent investigation in under 60 seconds —- no signup, resets daily.+ Demo opens on a pre-seeded investigation. No signup. Resets daily.</p>- {/* Quick facts row — anchors the three pillars (auditable agent, public- eval harness, MIT) so the moat is visible above the fold without- the visitor needing to scroll into the comparison strip. */}+ {/* Three facts the buyer can verify in the repo: ledger writes, the+ eval harness, and the license. */}<dl className="mt-10 grid grid-cols-3 gap-6 border-t border-white/5 pt-8">- <Stat label="Agent decisions" value="100%" caption="logged + replayable" />- <Stat label="Eval harness" value="200 cases" caption="public, CI-gated" />+ <Stat label="Agent decisions" value="Ledger" caption="prompt + tool + rationale per step" />+ <Stat label="Eval harness" value="200 cases" caption="runs in CI on every commit" /><Stat label="License" value="MIT" caption="audit, fork, self-host" /></dl></motion.div>@@ -123,15 +105,11 @@ function Stat({ label, value, caption }: { label: string; value: string; caption/*** Layered visual: a "signal map" card on top, with a copilot thread peeking- * from the bottom-right. Pure SVG/Tailwind — zero runtime cost — but reads as- * "this is a real, live product".+ * from the bottom-right. Pure SVG/Tailwind, no decorative gradient blurs.*/function HeroVisual() {return (<div className="relative aspect-[5/4]">- {/* Outer glow */}- <div className="absolute -inset-6 rounded-3xl bg-gradient-to-br from-brand-500/20 via-transparent to-amber-500/10 blur-2xl" />-{/* Main "signal map" card */}<motion.divinitial={{ opacity: 0, scale: 0.96 }}@@ -144,10 +122,10 @@ function HeroVisual() {<span className="h-2.5 w-2.5 rounded-full bg-rose-400/80" /><span className="h-2.5 w-2.5 rounded-full bg-amber-400/80" /><span className="h-2.5 w-2.5 rounded-full bg-emerald-400/80" />- <span className="ml-3 text-xs font-medium text-gray-500">aisoc · live attack graph</span>- <span className="ml-auto inline-flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-emerald-300">- <span className="h-1.5 w-1.5 rounded-full bg-emerald-400" />- Live+ <span className="ml-3 text-xs font-medium text-gray-500">aisoc · attack graph (preview)</span>+ <span className="ml-auto inline-flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-gray-400">+ <span className="h-1.5 w-1.5 rounded-full bg-gray-400" />+ Preview</span></div>@@ -162,7 +140,7 @@ function HeroVisual() {className="absolute -bottom-6 -right-4 w-72 rounded-xl border border-white/10 bg-surface-card/95 p-4 shadow-2xl backdrop-blur sm:-right-8 sm:w-80"><div className="mb-2 flex items-center gap-2 text-xs font-semibold text-gray-400">- <span className="inline-flex h-6 w-6 items-center justify-center rounded-md bg-gradient-to-br from-brand-500 to-amber-500 text-[11px] font-bold text-white">+ <span className="inline-flex h-6 w-6 items-center justify-center rounded-md bg-brand-500 text-[11px] font-bold text-white">A</span>AiSOC Copilot@@ -233,9 +211,6 @@ function SignalMap() {return (<div className="relative h-[calc(100%-44px)] w-full">- {/* Grid background */}- <div className="absolute inset-0 bg-grid-pattern bg-grid opacity-50" />-{/* MITRE band on the right */}<div className="absolute right-3 top-3 flex flex-col gap-1.5 text-[9px] font-mono">{[@@ -261,16 +236,6 @@ function SignalMap() {</div><svg viewBox="0 0 500 320" className="absolute inset-0 h-full w-full">- <defs>- <filter id="softGlow">- <feGaussianBlur stdDeviation="3" result="b" />- <feMerge>- <feMergeNode in="b" />- <feMergeNode in="SourceGraphic" />- </feMerge>- </filter>- </defs>-{/* Edges */}{edges.map(([from, to, tone], i) => {const a = nodes.find((n) => n.id === from)!;@@ -286,18 +251,6 @@ function SignalMap() {strokeWidth={tone === 'crit' ? 2 : 1.5}strokeDasharray={tone === 'crit' ? '0' : '4 4'}/>- {tone === 'crit' && (- <motion.circle- r="3"- fill="#ef4444"- initial={{ offsetDistance: '0%' }}- animate={{ offsetDistance: '100%' }}- transition={{ duration: 2.4, repeat: Infinity, ease: 'easeInOut' }}- style={{- offsetPath: `path('M ${a.x} ${a.y} L ${b.x} ${b.y}')`,- }}- />- )}</g>);})}@@ -312,7 +265,6 @@ function SignalMap() {fill={nodeFill[n.kind]}stroke={nodeStroke[n.kind]}strokeWidth="2"- filter={n.kind === 'host-crit' ? 'url(#softGlow)' : undefined}/><textx={n.x}diff --git a/apps/web/src/components/landing/LandingNav.tsx b/apps/web/src/components/landing/LandingNav.tsxindex 5dfa35dc5..a15f7828c 100644--- a/apps/web/src/components/landing/LandingNav.tsx+++ b/apps/web/src/components/landing/LandingNav.tsx@@ -69,7 +69,7 @@ export function LandingNav() {</a><Linkhref="/dashboard"- className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-1.5 text-sm font-semibold text-white shadow-glow-sm transition hover:bg-brand-400"+ className="inline-flex items-center gap-2 rounded-md bg-brand-500 px-4 py-1.5 text-sm font-semibold text-white transition hover:bg-brand-400">Launch console<svg viewBox="0 0 20 20" className="h-3.5 w-3.5" fill="currentColor" aria-hidden="true">diff --git a/apps/web/src/components/landing/MitreStrip.tsx b/apps/web/src/components/landing/MitreStrip.tsxindex a0d932203..e2bd29a67 100644--- a/apps/web/src/components/landing/MitreStrip.tsx+++ b/apps/web/src/components/landing/MitreStrip.tsx@@ -2,8 +2,9 @@import { motion } from 'framer-motion';-// A compact MITRE-coverage band. Not a real heatmap (the console has the real-// thing) — this is an at-a-glance proof-of-coverage strip for marketing.+// Illustrative MITRE ATT&CK tactic strip for the landing page. The numbers+// below are static placeholders, not a live coverage report. The actual+// heatmap is rendered by the console against the deployed detection set.const TACTICS = [{ id: 'TA0001', name: 'Initial Access', covered: 9, total: 11 },{ id: 'TA0002', name: 'Execution', covered: 12, total: 14 },@@ -41,11 +42,13 @@ export function MitreStrip() {MITRE ATT&CK</span><h2 className="mt-3 text-3xl font-bold tracking-tight text-white md:text-4xl">- Coverage you can prove+ Coverage by tactic</h2><p className="mt-4 text-lg text-gray-400">- Every detection rule and every alert ties back to ATT&CK techniques. The full heatmap- lives inside the console — this strip is just the headline.+ Detection rules and alerts reference ATT&CK techniques, and the+ console renders a live heatmap from the deployed rule set. The+ tiles below are illustrative; numbers depend on which detection+ packs you enable.</p><div className="mt-6 flex flex-wrap gap-3 text-xs"><Legend tone="bg-emerald-500/30 border-emerald-400/40" label="≥ 85% covered" />diff --git a/apps/web/src/components/landing/OpenSource.tsx b/apps/web/src/components/landing/OpenSource.tsxindex 8b90a65c9..e4bcf2c8e 100644--- a/apps/web/src/components/landing/OpenSource.tsx+++ b/apps/web/src/components/landing/OpenSource.tsx@@ -6,19 +6,19 @@ import { motion } from 'framer-motion';const PILLARS = [{title: 'MIT licensed',- body: 'Use it in production, fork it, sell services around it. No CLA, no telemetry, no calls home.',+ body: 'Use it, fork it, build services around it. No CLA, no telemetry, no calls home.',},{title: 'Self-hosted by default',- body: 'docker compose up gets you the full stack on your own hardware. Managed cloud is optional, never required.',+ body: 'docker compose up runs the full stack on your own hardware. Managed hosting is optional.',},{- title: 'Auditable end-to-end',- body: 'Every detection, every copilot decision, every connector action is logged with inputs, prompts, and rationale.',+ title: 'Auditable end to end',+ body: 'Detections, agent decisions and connector actions are logged with inputs, prompts and rationale.',},{- title: 'Community-driven',- body: 'Maintained by SOC analysts, detection engineers, and threat hunters in the open. Security disclosures get a fast, real, human response.',+ title: 'Community-maintained',+ body: 'Maintained in the open by SOC analysts, detection engineers and contributors. Security disclosures are handled via SECURITY.md.',},];@@ -26,7 +26,7 @@ export function OpenSource() {return (<section id="open-source" className="relative py-24 md:py-32"><div className="mx-auto max-w-7xl px-6">- <div className="relative overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-br from-surface-card to-surface-base p-8 md:p-12">+ <div className="relative overflow-hidden rounded-3xl border border-white/10 bg-surface-card p-8 md:p-12">{/* Soft glow */}<div className="pointer-events-none absolute -right-32 -top-32 h-96 w-96 rounded-full bg-brand-500/10 blur-3xl" /><div className="pointer-events-none absolute -bottom-32 -left-32 h-96 w-96 rounded-full bg-amber-500/10 blur-3xl" />@@ -42,12 +42,12 @@ export function OpenSource() {Open source · MIT</span><h2 className="mt-3 text-3xl font-bold tracking-tight text-white md:text-5xl">- Built in the open. Owned by you.+ Built in the open.</h2><p className="mt-5 max-w-xl text-lg leading-relaxed text-gray-400">- AiSOC is the SOC platform we wished existed — modern, AI-native, and free. No- runtime fees. No vendor lock-in. No artificial gates between “community”- and “enterprise” editions.+ AiSOC is a single-edition open-source project. There are no+ separate “community” and “enterprise” builds, no+ runtime fees and no per-seat licensing.</p><div className="mt-8 flex flex-wrap gap-3">diff --git a/apps/web/src/components/layout/TopBar.tsx b/apps/web/src/components/layout/TopBar.tsxindex ab0690911..06ea4caa0 100644--- a/apps/web/src/components/layout/TopBar.tsx+++ b/apps/web/src/components/layout/TopBar.tsx@@ -168,7 +168,7 @@ export function TopBar({ demoOffset = false }: TopBarProps) {{/* User avatar */}<div className="flex items-center gap-2 cursor-pointer group">- <div className="w-8 h-8 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center text-xs font-bold text-white">+ <div className="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-xs font-bold text-white">SO</div><div className="hidden lg:block">diff --git a/apps/web/src/components/marketplace/MarketplaceView.tsx b/apps/web/src/components/marketplace/MarketplaceView.tsxindex c701d0af7..b72f5dec2 100644--- a/apps/web/src/components/marketplace/MarketplaceView.tsx+++ b/apps/web/src/components/marketplace/MarketplaceView.tsx@@ -98,12 +98,6 @@ const TYPE_COLORS: Record<string, string> = {plugin: 'bg-emerald-900/40 text-emerald-300 border-emerald-700/60',};-const TYPE_ICONS: Record<string, string> = {- playbook: '⚡',- detection: '🔍',- plugin: '🔌',-};-const fetcher = (url: string) => fetch(url).then((r) => r.json());// ── Sub-components ────────────────────────────────────────────────────────────@@ -130,7 +124,7 @@ function TypeBadge({ type }: { type: string }) {TYPE_COLORS[type] ?? 'bg-zinc-700 text-zinc-300 border-zinc-600')}>- {TYPE_ICONS[type] ?? '📦'} {type.charAt(0).toUpperCase() + type.slice(1)}+ {type.charAt(0).toUpperCase() + type.slice(1)}</span>);}@@ -141,7 +135,7 @@ function VerifiedBadge() {title="Verified by AiSOC team"className="inline-flex items-center gap-0.5 rounded border border-emerald-700/60 bg-emerald-900/30 px-1.5 py-0.5 text-xs font-medium text-emerald-300">- ✓ Verified+ Verified</span>);}@@ -225,7 +219,7 @@ function InstallButton({ item, installed, busy, onInstall, onUninstall }: InstalclassName="rounded bg-emerald-900/40 px-2 py-1 text-xs font-medium text-emerald-300"title="Enabled for this tenant">- ✓ Installed+ Installed</span><buttononClick={() => onUninstall(item)}@@ -665,7 +659,7 @@ export function MarketplaceView() {className="self-start rounded-full bg-emerald-900/40 px-3 py-1 text-xs font-medium text-emerald-300"title="Items enabled for the current tenant">- ✓ {installedSet.size} installed+ {installedSet.size} installed</span>)}</div>diff --git a/apps/web/src/components/playbooks/PlaybookEditor.tsx b/apps/web/src/components/playbooks/PlaybookEditor.tsxindex ce08b18c2..a08886b29 100644--- a/apps/web/src/components/playbooks/PlaybookEditor.tsx+++ b/apps/web/src/components/playbooks/PlaybookEditor.tsx@@ -65,7 +65,6 @@ function TriggerBadge({<divclassName={`inline-flex items-center gap-1.5 text-xs px-2 py-1 rounded border ${colorMap[on] ?? 'bg-gray-800 text-gray-400 border-gray-700'}`}>- <span>⚡</span><span className="font-medium">on:{on}</span>{severity && severity.length > 0 && (<span className="opacity-70">[{severity.join(', ')}]</span>@@ -163,9 +162,9 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {setSynced(true);await mutate('/api/v1/playbooks');if (isNew) router.replace(`/playbooks/${saved.id}`);- setRunResult('✅ Saved successfully');+ setRunResult('Saved');} catch (err) {- setRunResult(`❌ Save failed: ${err instanceof Error ? err.message : String(err)}`);+ setRunResult(`Save failed: ${err instanceof Error ? err.message : String(err)}`);} finally {setSaving(false);}@@ -173,7 +172,7 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {const handleRun = async () => {if (!playbook.id) {- setRunResult('⚠ Save the playbook first');+ setRunResult('Save the playbook first');return;}setRunning(true);@@ -186,9 +185,9 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {});if (!res.ok) throw new Error(await res.text());const data = await res.json();- setRunResult(`🚀 Dry run started — run_id: ${data.run_id}`);+ setRunResult(`Dry run started — run_id: ${data.run_id}`);} catch (err) {- setRunResult(`❌ Run failed: ${err instanceof Error ? err.message : String(err)}`);+ setRunResult(`Run failed: ${err instanceof Error ? err.message : String(err)}`);} finally {setRunning(false);}@@ -210,7 +209,7 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {onClick={() => router.back()}className="text-gray-500 hover:text-gray-300 transition-colors">- ← Back+ Back</button><div className="flex-1 flex items-center gap-3 overflow-hidden">@@ -251,7 +250,7 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {className="text-xs px-3 py-1.5 rounded border border-green-800 text-green-400 hover:bg-green-900/30 transition-colors disabled:opacity-40"title={isNew ? 'Save first' : 'Dry run'}>- {running ? 'Running…' : '▶ Dry Run'}+ {running ? 'Running…' : 'Dry run'}</button><buttononClick={handleSave}@@ -268,7 +267,7 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {<div className="px-5 py-2 bg-gray-900/60 text-sm border-b border-gray-800/60 flex items-center justify-between"><span className="text-gray-300">{runResult}</span><button onClick={() => setRunResult(null)} className="text-gray-600 hover:text-gray-400 text-xs">- ✕+ Dismiss</button></div>)}@@ -400,7 +399,6 @@ export function PlaybookEditor({ playbookId }: PlaybookEditorProps) {<div className="flex-1 min-w-0 relative">{playbook.steps.length === 0 ? (<div className="absolute inset-0 flex flex-col items-center justify-center text-gray-700">- <div className="text-5xl mb-4">📋</div><div className="text-lg font-medium text-gray-500">Empty playbook</div><div className="text-sm mt-1 mb-6">Add your first step to get started</div><buttondiff --git a/apps/web/src/components/playbooks/PlaybooksView.tsx b/apps/web/src/components/playbooks/PlaybooksView.tsxindex 4faf11f3b..13bde1b13 100644--- a/apps/web/src/components/playbooks/PlaybooksView.tsx+++ b/apps/web/src/components/playbooks/PlaybooksView.tsx@@ -31,7 +31,7 @@ const TRIGGER_COLORS: Record<string, string> = {function TriggerChip({ on }: { on: string }) {return (<span className={`text-xs px-2 py-0.5 rounded border ${TRIGGER_COLORS[on] ?? 'bg-gray-800 text-gray-400 border-gray-700'}`}>- ⚡ {on}+ {on}</span>);}@@ -86,7 +86,7 @@ function RunButton({ playbook }: { playbook: Playbook }) {}setTimeout(() => setStatus('idle'), 3000);}- const label = { idle: '▶', running: '…', done: '✓', err: '✕' }[status];+ const label = { idle: 'Run', running: '…', done: 'OK', err: 'Err' }[status];const color = {idle: 'text-green-500 hover:text-green-400',running: 'text-yellow-500',@@ -132,7 +132,6 @@ function RunHistoryTab() {if (!data || data.length === 0)return (<div className="flex flex-col items-center py-20 text-gray-700">- <div className="text-4xl mb-3">📜</div><div className="text-gray-500">No playbook runs yet. Trigger a dry run from the editor.</div></div>);@@ -397,7 +396,7 @@ function CommunityPlaybookCard({ playbook }: { playbook: CommunityPlaybook }) {<div className="flex items-center justify-between text-xs text-zinc-500 mt-auto pt-2 border-t border-zinc-700/40"><span>{playbook.install_count.toLocaleString()} installs</span>{playbook.rating > 0 && (- <span className="text-yellow-400">★ {playbook.rating.toFixed(1)}</span>+ <span className="text-yellow-400">{playbook.rating.toFixed(1)} rating</span>)}<buttononClick={handleInstall}@@ -407,7 +406,7 @@ function CommunityPlaybookCard({ playbook }: { playbook: CommunityPlaybook }) {installed ? 'bg-emerald-900/40 text-emerald-300 cursor-default' : 'bg-zinc-700 text-zinc-200 hover:bg-zinc-600')}>- {installed ? '✓ Installed' : installing ? '…' : 'Install'}+ {installed ? 'Installed' : installing ? '…' : 'Install'}</button></div></div>@@ -458,7 +457,7 @@ export function PlaybooksView() {onClick={() => setTab('community')}className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px ${tab === 'community' ? 'border-blue-500 text-blue-300' : 'border-transparent text-gray-500 hover:text-gray-300'}`}>- 🌐 Community+ Community</button></div>@@ -481,7 +480,6 @@ export function PlaybooksView() {{!isLoading && !error && (!data || data.length === 0) && (<div className="flex flex-col items-center justify-center py-20 text-center">- <div className="text-5xl mb-4">📋</div><div className="text-lg font-medium text-gray-400 mb-2">No playbooks yet</div><div className="text-sm text-gray-600 mb-6">Create a playbook to automate your SOC response workflowsdiff --git a/apps/web/src/components/playbooks/stepColors.ts b/apps/web/src/components/playbooks/stepColors.tsindex 60bda8e1a..5de6fec86 100644--- a/apps/web/src/components/playbooks/stepColors.ts+++ b/apps/web/src/components/playbooks/stepColors.ts@@ -4,13 +4,13 @@ export const STEP_TYPE_META: Record<StepType,{ label: string; color: string; bgColor: string; icon: string }> = {- enrich: { label: 'Enrich', color: '#60a5fa', bgColor: '#1e3a5f', icon: '🔍' },- investigate: { label: 'Investigate', color: '#a78bfa', bgColor: '#2e1f5e', icon: '🤖' },- notify: { label: 'Notify', color: '#34d399', bgColor: '#1a3d2e', icon: '📣' },- block_ip: { label: 'Block IP', color: '#f87171', bgColor: '#3d1a1a', icon: '🚫' },- isolate_host: { label: 'Isolate Host', color: '#fb923c', bgColor: '#3d2a1a', icon: '🛑' },- create_ticket: { label: 'Create Ticket', color: '#fbbf24', bgColor: '#3d341a', icon: '🎫' },- close_case: { label: 'Close Case', color: '#94a3b8', bgColor: '#252d3a', icon: '✅' },- http: { label: 'HTTP', color: '#38bdf8', bgColor: '#1a3040', icon: '🌐' },- condition: { label: 'Condition', color: '#e879f9', bgColor: '#3a1a40', icon: '🔀' },+ enrich: { label: 'Enrich', color: '#60a5fa', bgColor: '#1e3a5f', icon: 'enr' },+ investigate: { label: 'Investigate', color: '#a78bfa', bgColor: '#2e1f5e', icon: 'inv' },+ notify: { label: 'Notify', color: '#34d399', bgColor: '#1a3d2e', icon: 'ntf' },+ block_ip: { label: 'Block IP', color: '#f87171', bgColor: '#3d1a1a', icon: 'blk' },+ isolate_host: { label: 'Isolate Host', color: '#fb923c', bgColor: '#3d2a1a', icon: 'iso' },+ create_ticket: { label: 'Create Ticket', color: '#fbbf24', bgColor: '#3d341a', icon: 'tkt' },+ close_case: { label: 'Close Case', color: '#94a3b8', bgColor: '#252d3a', icon: 'cls' },+ http: { label: 'HTTP', color: '#38bdf8', bgColor: '#1a3040', icon: 'http' },+ condition: { label: 'Condition', color: '#e879f9', bgColor: '#3a1a40', icon: 'if' },};diff --git a/apps/web/src/components/responder/ResponderShell.tsx b/apps/web/src/components/responder/ResponderShell.tsxindex f5f526369..5357e42e5 100644--- a/apps/web/src/components/responder/ResponderShell.tsx+++ b/apps/web/src/components/responder/ResponderShell.tsx@@ -215,7 +215,7 @@ export function ResponderShell({ children }: { children: React.ReactNode }) {<header className="sticky top-0 z-30 bg-zinc-950/95 backdrop-blur border-b border-zinc-900 supports-[padding:max(0px)]:pt-[max(0px,env(safe-area-inset-top))]"><div className="flex items-center justify-between px-4 h-14"><div className="flex items-center gap-2">- <div className="w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center">+ <div className="w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center"><svgclassName="w-5 h-5 text-white"fill="none"diff --git a/apps/web/src/components/settings/SettingsView.tsx b/apps/web/src/components/settings/SettingsView.tsxindex 11199844c..ae794c9fe 100644--- a/apps/web/src/components/settings/SettingsView.tsx+++ b/apps/web/src/components/settings/SettingsView.tsx@@ -285,54 +285,46 @@ function saveProfile(profile: ProfileData) {// ─── Tabs ─────────────────────────────────────────────────────────────────────-const TABS: { id: TabId; label: string; description: string; icon: string }[] = [+const TABS: { id: TabId; label: string; description: string }[] = [{id: 'profile',label: 'Profile',description: 'Identity and personal display preferences.',- icon: '👤',},{id: 'workspace',label: 'Workspace',description: 'Tenant, branding, locale.',- icon: '🏢',},{id: 'integrations',label: 'Integrations',description: 'Connected log sources, EDRs, identity providers.',- icon: '🔌',},{id: 'api-keys',label: 'API keys',description: 'Programmatic access for pipelines and integrations.',- icon: '🔑',},{id: 'notifications',label: 'Notifications',description: 'How and when AiSOC should ping you.',- icon: '🔔',},{id: 'appearance',label: 'Appearance',description: 'Theme, density, animations.',- icon: '🎨',},{id: 'audit',label: 'Audit log',description: 'Recent administrative events.',- icon: '📜',},{id: 'about',label: 'About',description: 'Version, license, links.',- icon: 'ℹ️',},];@@ -367,20 +359,15 @@ export function SettingsView() {type="button"onClick={() => setTab(t.id)}className={clsx(- 'flex w-full items-start gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition-colors',+ 'flex w-full flex-col items-start gap-0.5 rounded-lg px-3 py-2.5 text-left text-sm transition-colors',active? 'bg-gray-800/80 text-gray-50 ring-1 ring-blue-500/40': 'text-gray-300 hover:bg-gray-800/50 hover:text-gray-100',)}>- <span aria-hidden className="text-base leading-5">- {t.icon}- </span>- <span className="flex flex-col">- <span className="font-medium">{t.label}</span>- <span className="text-xs text-gray-500">- {t.description}- </span>+ <span className="font-medium">{t.label}</span>+ <span className="text-xs text-gray-500">+ {t.description}</span></button></li>@@ -557,7 +544,7 @@ function ProfilePanel() {<div className="flex items-center gap-4"><divaria-hidden- className="flex h-16 w-16 items-center justify-center rounded-full bg-gradient-to-br from-blue-500 to-purple-600 text-xl font-semibold text-white shadow-lg ring-2 ring-gray-800"+ className="flex h-16 w-16 items-center justify-center rounded-full bg-blue-600 text-xl font-semibold text-white ring-2 ring-gray-800">{initials || '?'}</div>diff --git a/apps/web/src/components/threat-intel/ThreatIntelView.tsx b/apps/web/src/components/threat-intel/ThreatIntelView.tsxindex f0e9b45ad..43620bbfc 100644--- a/apps/web/src/components/threat-intel/ThreatIntelView.tsx+++ b/apps/web/src/components/threat-intel/ThreatIntelView.tsx@@ -79,12 +79,12 @@ const MOCK_INDICATORS: ThreatIndicator[] = [// ─── Type badges ──────────────────────────────────────────────────────────────-const TYPE_CONFIG: Record<string, { label: string; icon: string; color: string }> = {- ip: { label: 'IP', icon: '🌐', color: 'text-purple-400 bg-purple-500/10 border-purple-500/20' },- domain: { label: 'Domain', icon: '🔗', color: 'text-blue-400 bg-blue-500/10 border-blue-500/20' },- hash: { label: 'Hash', icon: '🔑', color: 'text-yellow-400 bg-yellow-500/10 border-yellow-500/20' },- url: { label: 'URL', icon: '📎', color: 'text-orange-400 bg-orange-500/10 border-orange-500/20' },- email: { label: 'Email', icon: '✉️', color: 'text-green-400 bg-green-500/10 border-green-500/20' },+const TYPE_CONFIG: Record<string, { label: string; color: string }> = {+ ip: { label: 'IP', color: 'text-purple-400 bg-purple-500/10 border-purple-500/20' },+ domain: { label: 'Domain', color: 'text-blue-400 bg-blue-500/10 border-blue-500/20' },+ hash: { label: 'Hash', color: 'text-yellow-400 bg-yellow-500/10 border-yellow-500/20' },+ url: { label: 'URL', color: 'text-orange-400 bg-orange-500/10 border-orange-500/20' },+ email: { label: 'Email', color: 'text-green-400 bg-green-500/10 border-green-500/20' },};const SEVERITY_CONFIG = {@@ -140,7 +140,7 @@ function LookupForm() {{notFound && (<div className="mt-3 flex items-center gap-2 text-sm text-green-400 bg-green-500/10 border border-green-500/20 rounded-lg px-3 py-2">- <span>✓</span>+ <span className="text-[10px] font-semibold uppercase tracking-wider">clean</span><span>No threat indicators found for this IOC</span></div>)}@@ -148,7 +148,7 @@ function LookupForm() {{result && (<div className="mt-3 bg-red-500/5 border border-red-500/20 rounded-lg p-3 space-y-2"><div className="flex items-center gap-2">- <span className="text-red-400 font-medium text-sm">⚠ Malicious Indicator</span>+ <span className="text-red-400 font-medium text-sm">Malicious indicator</span><span className="text-xs text-gray-500">Confidence: {result.confidence}%</span></div><p className="text-xs text-gray-400">{result.description}</p>@@ -174,7 +174,7 @@ function IOCRow({ ioc }: { ioc: ThreatIndicator }) {return (<div className="flex items-center gap-4 py-3 border-b border-gray-800/60 last:border-0 hover:bg-gray-800/20 px-4 -mx-4 transition-colors rounded-lg"><span className={clsx('text-xs font-medium px-2 py-0.5 rounded border shrink-0', typeCfg.color)}>- {typeCfg.icon} {typeCfg.label}+ {typeCfg.label}</span><div className="flex-1 min-w-0">@@ -246,16 +246,13 @@ export function ThreatIntelView() {{/* Stats */}<div className="grid grid-cols-4 gap-3">{[- { label: 'Total IOCs', value: MOCK_INDICATORS.length, color: 'text-blue-400', icon: '🛡' },- { label: 'Malicious', value: MOCK_INDICATORS.filter(i => i.malicious).length, color: 'text-red-400', icon: '☠' },- { label: 'High Confidence', value: MOCK_INDICATORS.filter(i => i.confidence >= 80).length, color: 'text-orange-400', icon: '🎯' },- { label: 'Added Today', value: 3, color: 'text-green-400', icon: '➕' },+ { label: 'Total IOCs', value: MOCK_INDICATORS.length, color: 'text-blue-400' },+ { label: 'Malicious', value: MOCK_INDICATORS.filter(i => i.malicious).length, color: 'text-red-400' },+ { label: 'High Confidence', value: MOCK_INDICATORS.filter(i => i.confidence >= 80).length, color: 'text-orange-400' },+ { label: 'Added Today', value: 3, color: 'text-green-400' },].map((stat) => (<div key={stat.label} className="bg-gray-900/60 border border-gray-800/60 rounded-xl p-4">- <div className="flex items-center gap-2 mb-1">- <span>{stat.icon}</span>- <p className={clsx('text-2xl font-bold', stat.color)}>{stat.value}</p>- </div>+ <p className={clsx('text-2xl font-bold mb-1', stat.color)}>{stat.value}</p><p className="text-xs text-gray-500">{stat.label}</p></div>))}@@ -305,7 +302,6 @@ export function ThreatIntelView() {</div>{indicators.length === 0 ? (<div className="flex flex-col items-center justify-center h-32 text-gray-600">- <span className="text-2xl mb-1">🔍</span><p className="text-sm">No indicators found</p></div>) : (diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.tsindex dec97a45b..def6fc4a1 100644--- a/apps/web/tailwind.config.ts+++ b/apps/web/tailwind.config.ts@@ -58,48 +58,6 @@ const config: Config = {sans: ['var(--font-inter)', 'system-ui', 'sans-serif'],mono: ['var(--font-mono)', 'ui-monospace', 'monospace'],},- backgroundImage: {- 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',- 'grid-pattern':- 'linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px)',- // A second, slightly louder grid for the marketing hero so it can read- // through a stronger glow without feeling washed out.- 'grid-hero':- 'linear-gradient(rgba(96,165,250,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,0.07) 1px, transparent 1px)',- },- backgroundSize: {- grid: '32px 32px',- 'grid-lg': '56px 56px',- },- boxShadow: {- 'glow-brand': '0 0 0 1px rgba(96,165,250,0.18), 0 20px 60px -25px rgba(59,130,246,0.55)',- 'glow-sm': '0 0 0 1px rgba(96,165,250,0.18), 0 10px 30px -12px rgba(59,130,246,0.4)',- },- animation: {- 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',- 'fade-in': 'fadeIn 0.3s ease-in-out',- 'slide-up': 'slideUp 0.3s ease-out',- 'shimmer': 'shimmer 2.4s linear infinite',- 'orbit-slow': 'orbit 18s linear infinite',- },- keyframes: {- fadeIn: {- '0%': { opacity: '0' },- '100%': { opacity: '1' },- },- slideUp: {- '0%': { transform: 'translateY(8px)', opacity: '0' },- '100%': { transform: 'translateY(0)', opacity: '1' },- },- shimmer: {- '0%': { backgroundPosition: '-200% 0' },- '100%': { backgroundPosition: '200% 0' },- },- orbit: {- '0%': { transform: 'rotate(0deg)' },- '100%': { transform: 'rotate(360deg)' },- },- },},},plugins: [],diff --git a/detections/README.md b/detections/README.mdindex bbc015c8b..d9da53a4c 100644--- a/detections/README.md+++ b/detections/README.md@@ -2,10 +2,10 @@This directory contains AiSOC detection rules in a Sigma-inspired YAML format.-The pack ships **200 curated, fixture-tested rules** across six categories.-Every rule has a positive fixture (a synthetic event that should fire it) and a-negative fixture (a near-miss event that should *not* fire it). CI replays-both on every PR using the canonical runtime matcher.+The pack contains 200 fixture-tested rules across six categories. Every rule+has a positive fixture (a synthetic event that should fire it) and a negative+fixture (a near-miss event that should not fire it). CI replays both on every+PR using the canonical runtime matcher.## Distribution@@ -17,7 +17,7 @@ both on every PR using the canonical runtime matcher.| `network/` | 30 | C2, scanning, beaconing, DNS abuse, Tor, lateral movement || `application/`| 30 | Web, API, DB, secrets, supply chain, dependency abuse || `data-exfil/` | 20 | DLP, large transfers, archive uploads, tunneling, off-corp dest |-| **Total** | 200 | |+| Total | 200 | |## Structure@@ -63,11 +63,11 @@ created: "YYYY-MM-DD"modified: "YYYY-MM-DD"```-## Source of Truth+## Source of truthThe Python specs in [`scripts/detection_specs.py`](../scripts/detection_specs.py)and [`scripts/detection_specs_part2.py`](../scripts/detection_specs_part2.py)-are the **canonical source of truth**. The on-disk YAML files are serialized+are the canonical source of truth. The on-disk YAML files are serializedartifacts produced by [`scripts/generate_detections.py`](../scripts/generate_detections.py).Edit specs, regenerate, then commit both.@@ -79,7 +79,7 @@ python3 scripts/generate_detections.pypython3 scripts/validate_detections.py --strict-fixtures```-## Adding a New Rule+## Adding a new rule1. Add a new spec dict to the appropriate list in `scripts/detection_specs.py`or `scripts/detection_specs_part2.py`.@@ -90,7 +90,7 @@ python3 scripts/validate_detections.py --strict-fixtures4. Run `python3 scripts/validate_detections.py --strict-fixtures` to confirmthe fixtures replay correctly.-## CI Validation+## CI validationThe [`Validate Detection Rules`](../.github/workflows/validate-detections.yml)workflow runs on every push or PR touching `detections/**` or the spec/generator@@ -103,5 +103,5 @@ scripts. It enforces:- No duplicate `id` values across all rules- `id` prefix matches the category directory- Both positive and negative fixtures exist-- **Fixture replay**: positive fixture matches, negative does not — using the- same `matches()` runtime function as the engine+- Fixture replay: positive fixture matches, negative does not, using the same+ `matches()` runtime function as the enginediff --git a/detections/community/README.md b/detections/community/README.mdindex c579dc541..19d61eb81 100644--- a/detections/community/README.md+++ b/detections/community/README.md@@ -5,13 +5,13 @@ This directory holds detection rules contributed by the AiSOC community.Anything you drop here as `<your-rule>.yaml` will be picked up by[`scripts/build_marketplace.py`](../../scripts/build_marketplace.py) on thenext `pnpm marketplace:build` and shown in the in-app marketplace with a-**Community** badge.+Community badge.## Authoring a community detectionUse any rule under [`detections/cloud/`](../cloud/),[`detections/identity/`](../identity/), or-[`detections/endpoint/`](../endpoint/) as a template. Every rule **must**:+[`detections/endpoint/`](../endpoint/) as a template. Every rule must:- Declare a stable `id` (kebab-case, no spaces). The convention for communitycontributions is `community-<github-handle>-<short-name>`.@@ -21,7 +21,7 @@ Use any rule under [`detections/cloud/`](../cloud/),- Set `severity` to one of `low`, `medium`, `high`, `critical`.- Reference a fixture under [`detections/fixtures/`](../fixtures/) so thedetection can be replay-tested.-- Include a short `false_positives:` list — even if it's just `[]` — so+- Include a short `false_positives:` list (even if it is just `[]`) soresponders know what to expect.## Validation@@ -43,5 +43,5 @@ otherwise.Community detections start with `verified: false` and `source: "community"`.After a maintainer reviews the rule against several weeks of real telemetry,-the rule may be **promoted** into the appropriate top-level category folder+the rule may be promoted into the appropriate top-level category folder(e.g. `detections/identity/`) and re-marked as verified.diff --git a/packages/aisoc-cli/src/aisoc_cli/main.py b/packages/aisoc-cli/src/aisoc_cli/main.pyindex 7f1c7ea42..a66e8c8db 100644--- a/packages/aisoc-cli/src/aisoc_cli/main.py+++ b/packages/aisoc-cli/src/aisoc_cli/main.py@@ -197,10 +197,10 @@ def plugin_validate(path: str) -> None:if errors:console.print("[red bold]Validation FAILED[/red bold]")for err in errors:- console.print(f" [red]✗[/red] {err}")+ console.print(f" [red]-[/red] {err}")sys.exit(1)else:- console.print(f"[green bold]✓ Validation passed[/green bold] — {manifest_file}")+ console.print(f"[green bold]Validation passed[/green bold] — {manifest_file}")_print_manifest_table(manifest)@@ -326,11 +326,11 @@ def detection_validate(file: str, sigma_cli: str) -> None:timeout=30,)if result.returncode == 0:- console.print(f"[green bold]✓ Valid Sigma rule[/green bold] — {rule_path}")+ console.print(f"[green bold]Valid Sigma rule[/green bold] — {rule_path}")if result.stdout:console.print(result.stdout)else:- console.print("[red bold]✗ Invalid Sigma rule[/red bold]")+ console.print("[red bold]Invalid Sigma rule[/red bold]")if result.stderr:console.print(result.stderr)if result.stdout:@@ -423,14 +423,14 @@ def _basic_sigma_validate(rule_path: Path) -> None:missing = [f for f in required_fields if f not in rule]if missing:- console.print(f"[red bold]✗ Missing required Sigma fields:[/red bold] {', '.join(missing)}")+ console.print(f"[red bold]Missing required Sigma fields:[/red bold] {', '.join(missing)}")sys.exit(1)if "condition" not in rule.get("detection", {}):- console.print("[red bold]✗ detection.condition is required[/red bold]")+ console.print("[red bold]detection.condition is required[/red bold]")sys.exit(1)- console.print(f"[green bold]✓ Basic Sigma validation passed[/green bold] — {rule_path}")+ console.print(f"[green bold]Basic Sigma validation passed[/green bold] — {rule_path}")console.print("[yellow]Install sigma-cli for full validation: pip install sigma-cli[/yellow]")diff --git a/packages/ui/src/components/TimelineEvent.tsx b/packages/ui/src/components/TimelineEvent.tsxindex 3c3a990e6..a73fffab5 100644--- a/packages/ui/src/components/TimelineEvent.tsx+++ b/packages/ui/src/components/TimelineEvent.tsx@@ -18,12 +18,12 @@ interface TimelineEventProps {}const EVENT_TYPE_CONFIG = {- alert: { dot: 'bg-red-500 ring-red-500/30', icon: '⚠', text: 'text-red-400' },- action: { dot: 'bg-blue-500 ring-blue-500/30', icon: '⚡', text: 'text-blue-400' },- system: { dot: 'bg-gray-500 ring-gray-500/30', icon: '⚙', text: 'text-gray-400' },- user: { dot: 'bg-green-500 ring-green-500/30', icon: '👤', text: 'text-green-400' },- ai: { dot: 'bg-purple-500 ring-purple-500/30', icon: '🤖', text: 'text-purple-400' },- enrichment: { dot: 'bg-cyan-500 ring-cyan-500/30', icon: '🔍', text: 'text-cyan-400' },+ alert: { dot: 'bg-red-500 ring-red-500/30', text: 'text-red-400' },+ action: { dot: 'bg-blue-500 ring-blue-500/30', text: 'text-blue-400' },+ system: { dot: 'bg-gray-500 ring-gray-500/30', text: 'text-gray-400' },+ user: { dot: 'bg-green-500 ring-green-500/30', text: 'text-green-400' },+ ai: { dot: 'bg-purple-500 ring-purple-500/30', text: 'text-purple-400' },+ enrichment: { dot: 'bg-cyan-500 ring-cyan-500/30', text: 'text-cyan-400' },};function formatTime(ts: string) {diff --git a/playbooks/README.md b/playbooks/README.mdindex 092dbb74a..f0e04c7bd 100644--- a/playbooks/README.md+++ b/playbooks/README.md@@ -24,9 +24,8 @@ playbooks/The runtime (`services/agents/app/playbook/store.py`) loads `packs/v1/**`on startup and merges with user-defined playbooks in-`services/agents/data/playbooks/index.json`. **User playbooks always win-over pack playbooks of the same ID** — the pack is the seed, not a-hard-coded floor.+`services/agents/data/playbooks/index.json`. User playbooks win over pack+playbooks of the same ID; the pack is the seed, not a hard-coded floor.## Playbook format@@ -143,9 +142,9 @@ If you need a new playbook:3. The mutable `services/agents/data/playbooks/index.json` (anyuser-defined or API-created playbooks).-That means: forking a pack playbook is a one-line operation. Save your-edited copy under the same `id` via the API and the runtime serves your-version forever — no need to fork the repo.+Forking a pack playbook is therefore a one-line operation: save your+edited copy under the same `id` via the API and the runtime serves that+version. No repo fork required.## Versioningdiff --git a/playbooks/community/README.md b/playbooks/community/README.mdindex 195ded7b9..6adc02827 100644--- a/playbooks/community/README.md+++ b/playbooks/community/README.md@@ -7,12 +7,12 @@ Drop your playbook asbe auto-indexed by[`scripts/build_marketplace.py`](../../scripts/build_marketplace.py) on thenext `pnpm marketplace:build`. It will appear in the in-app marketplace with-a **Community** badge.+a Community badge.## Authoring a community playbookUse any playbook under [`playbooks/packs/v1/`](../packs/v1/) as a template.-Every playbook **must**:+Every playbook must:- Have a stable `id` (kebab-case). Convention for community playbooks:`community-<github-handle>-<short-name>`.@@ -40,5 +40,5 @@ build script produces.## Promotion pathCommunity playbooks start with `verified: false` and `source: "community"`.-A maintainer can promote a battle-tested playbook into-`playbooks/packs/v1/<category>/` after review.+A maintainer can promote a playbook into `playbooks/packs/v1/<category>/`+after review.diff --git a/plugins/community/README.md b/plugins/community/README.mdindex 8fcc4450a..0d338c621 100644--- a/plugins/community/README.md+++ b/plugins/community/README.md@@ -2,11 +2,11 @@This directory holds plugins contributed by the AiSOC community.-Each plugin is a self-contained directory with `plugin.yaml` + at least one-SDK implementation (`plugin.py` and/or `go/main.go`). They are auto-indexed by-[`scripts/build_marketplace.py`](../../scripts/build_marketplace.py) on the-next `pnpm marketplace:build` and shown in the in-app marketplace with a-**Community** badge.+Each plugin is a self-contained directory with `plugin.yaml` plus at least+one SDK implementation (`plugin.py` and/or `go/main.go`). They are+auto-indexed by [`scripts/build_marketplace.py`](../../scripts/build_marketplace.py)+on the next `pnpm marketplace:build` and shown in the in-app marketplace with+a Community badge.## Plugin layout@@ -19,30 +19,30 @@ plugins/community/<your-plugin-id>/└── main.go```-The plugin ID is the directory name and **must match `plugin.yaml`'s `id`-field**. Convention for community plugins: `community-<github-handle>-<short-name>`.+The plugin ID is the directory name and must match `plugin.yaml`'s `id`+field. Convention for community plugins:+`community-<github-handle>-<short-name>`.## Authoring rules- Implement the right SDK interface for the plugin type:- - **Connector** → ingests events from a third-party source. Implements+ - Connector: ingests events from a third-party source. Implements`aisoc.Connector` (Go) or `aisoc_plugin_sdk.Connector` (Python).- - **Enricher** → augments alerts/cases with extra context. Implements+ - Enricher: augments alerts and cases with extra context. Implements`aisoc.Enricher` / `aisoc_plugin_sdk.Enricher`.- - **Action** → performs an external action (page, message, contain, …).+ - Action: performs an external action (page, message, contain, etc.).Implements `aisoc.Action` / `aisoc_plugin_sdk.Action`.- - **Widget** → renders a dashboard tile. Implements `aisoc.Widget`- / `aisoc_plugin_sdk.Widget`.+ - Widget: renders a dashboard tile. Implements `aisoc.Widget` /+ `aisoc_plugin_sdk.Widget`.- Required `plugin.yaml` fields: `id`, `name`, `version`, `author`,`description`, `plugin_type`, `license`, `min_aisoc_version`, `homepage`.- Cross-language parity is encouraged but not required. If you ship Pythononly or Go only, the marketplace will display the available SDKs asbadges (Py / Go).-- Make all network I/O go through the SDK's HTTP helpers — they handle- retries, rate limits, and per-tenant TLS — never use bare `requests` or- `net/http` calls.-- Treat secrets as `config.secrets.*`. Never log them. Never inline them in- manifests.+- Route network I/O through the SDK HTTP helpers (retries, rate limits,+ per-tenant TLS) instead of bare `requests` or `net/http` calls.+- Treat secrets as `config.secrets.*`. Do not log them. Do not inline them+ in manifests.## Validation@@ -61,6 +61,6 @@ pnpm marketplace:check## Promotion pathCommunity plugins start with `verified: false` and `source: "community"`.-Once a plugin has been hardened (tests, two-SDK parity, real-world use)-maintainers can promote it to the top-level `plugins/<id>/` folder and mark-it verified.+Once a plugin has tests, two-SDK parity, and real-world use, maintainers+can promote it to the top-level `plugins/<id>/` folder and mark it+verified.diff --git a/scripts/aisoc-demo.ts b/scripts/aisoc-demo.tsindex 228960320..b9bd036c8 100644--- a/scripts/aisoc-demo.ts+++ b/scripts/aisoc-demo.ts@@ -1,22 +1,19 @@#!/usr/bin/env tsx/**- * aisoc:demo — single-command "time-to-wow" path.+ * aisoc:demo — single-command path to a running demo stack.*- * Goal: under 5 minutes from `pnpm aisoc:demo` to "user is staring at an- * AI-driven investigation of a real case in their browser."- *- * Strategy:+ * Steps:* 1. Verify Docker + docker compose are present* 2. Pull prebuilt images from ghcr.io/beenuar/* (no local builds)* 3. docker compose up -d using docker-compose.demo.yml (slim profile)* 4. Wait for postgres + api to be healthy- * 5. Seed canonical demo data via `python -m app.scripts.seed_demo`+ * 5. Seed demo data via `python -m app.scripts.seed_demo`* 6. Query the API for a seeded case UUID (dev mode auth bypass)* 7. Kick off an investigation on that case* 8. Open the user's browser at /cases/<uuid>*- * Steady-state target: 90s pull + 60s startup + 30s seed + 30s investigation- * = roughly 3.5 minutes on a warm Docker daemon.+ * On a warm Docker daemon the full path is roughly 3.5 minutes:+ * about 90s pull + 60s startup + 30s seed + 30s investigation.** Usage: pnpm aisoc:demo*@@ -29,7 +26,7 @@* Exit codes:* 0 = success, browser opened* 1 = failed to start the stack- * 2 = stack started but data could not be seeded / investigated+ * 2 = stack started but data could not be seeded or investigated*/import { execSync, spawnSync } from "node:child_process";import { createConnection } from "node:net";@@ -202,25 +199,25 @@ function checkDocker(): boolean {const docker = tryRun("docker --version");if (!docker) {console.error(- c.red("✗ docker is not installed or not on PATH.\n Install Docker Desktop: https://www.docker.com/products/docker-desktop"),+ c.red("docker is not installed or not on PATH.\n Install Docker Desktop: https://www.docker.com/products/docker-desktop"),);return false;}- log(c.green("✓") + ` ${docker}`);+ log(c.green("ok") + ` ${docker}`);const compose = tryRun("docker compose version");if (!compose) {- console.error(c.red("✗ docker compose v2 plugin is required (compose v1 not supported)."));+ console.error(c.red("docker compose v2 plugin is required (compose v1 not supported)."));return false;}- log(c.green("✓") + ` ${compose}`);+ log(c.green("ok") + ` ${compose}`);const info = tryRun("docker info --format '{{.ServerVersion}}'");if (!info) {- console.error(c.red("✗ docker daemon is not running. Start Docker Desktop and retry."));+ console.error(c.red("docker daemon is not running. Start Docker Desktop and retry."));return false;}- log(c.green("✓") + ` docker daemon up (server ${info})`);+ log(c.green("ok") + ` docker daemon up (server ${info})`);return true;}@@ -240,8 +237,8 @@ function pullImages(flags: Flags): boolean {if (code !== 0) {console.error(c.yellow(- "⚠ image pull failed — falling back to local build. " +- "If you want to force build from source, use --rebuild.",+ "image pull failed; falling back to local build. " ++ "Use --rebuild to force building from source.",),);flags.rebuild = true;@@ -255,7 +252,7 @@ function startStack(flags: Flags): boolean {if (flags.rebuild) args.push("--build");const code = runStream("docker", args, { AISOC_TAG: flags.tag });if (code !== 0) {- console.error(c.red("✗ docker compose up failed. See output above."));+ console.error(c.red("docker compose up failed. See output above."));return false;}return true;@@ -299,7 +296,7 @@ async function waitForHealth(): Promise<boolean> {2000,);if (!webUp) {- console.error(c.yellow("⚠ web is slow to start; continuing anyway"));+ console.error(c.yellow("web is slow to start; continuing anyway"));}return true;@@ -321,7 +318,7 @@ function seedData(): boolean {if (code !== 0) {console.error(c.yellow(- "⚠ seed script returned non-zero. The stack may already be seeded — continuing.",+ "seed script returned non-zero. The stack may already be seeded; continuing.",),);}@@ -336,14 +333,14 @@ async function findSeededCase(): Promise<{ id: string; case_number: string; titlconst res = await fetchJson("http://localhost:8000/v1/cases?page_size=5", 4000);if (res && Array.isArray(res.items) && res.items.length > 0) {const c0 = res.items[0];- log(c.green("✓") + ` found case ${c0.case_number} (${c0.id})`);+ log(c.green("ok") + ` found case ${c0.case_number} (${c0.id})`);return { id: c0.id, case_number: c0.case_number, title: c0.title };}await new Promise((r) => setTimeout(r, 2000));}console.error(c.yellow(- "⚠ no seeded cases visible after 60s. The web console will still open, but to a blank cases list.",+ "no seeded cases visible after 60s. The web console will still open, but to a blank cases list.",),);return null;@@ -359,10 +356,10 @@ async function kickoffInvestigation(caseId: string): Promise<boolean> {10000,);if (result) {- log(c.green("✓") + ` investigation queued (run_id ${result.run_id ?? "unknown"})`);+ log(c.green("ok") + ` investigation queued (run_id ${result.run_id ?? "unknown"})`);return true;}- log(c.yellow("⚠") + " could not auto-launch investigation (no LLM key?). The case is still browsable.");+ log(c.yellow("note") + " could not auto-launch investigation (no LLM key?). The case is still browsable.");return false;}@@ -389,7 +386,7 @@ ${c.dim("Useful commands:")}docker compose -f docker-compose.demo.yml logs -f apidocker compose -f docker-compose.demo.yml down -v ${c.dim("# stop & wipe demo data")}-${c.bold("Total time-to-wow:")} ${c.green(elapsed())}+${c.bold("Total elapsed:")} ${c.green(elapsed())}`);}@@ -400,18 +397,18 @@ async function main() {console.log(c.bold("AiSOC Demo") +- c.dim(` — single-command path · tag=${flags.tag}${flags.rebuild ? " · rebuild" : ""}`),+ c.dim(` — tag=${flags.tag}${flags.rebuild ? " · rebuild" : ""}`),);if (!checkDocker()) process.exit(1);if (!pullImages(flags)) process.exit(1);if (!startStack(flags)) process.exit(1);if (!(await waitForHealth())) {- console.error(c.red("\n✗ stack failed to come up healthy. Run `pnpm aisoc:doctor` for details."));+ console.error(c.red("\nstack failed to come up healthy. Run `pnpm aisoc:doctor` for details."));process.exit(1);}if (!seedData()) {- console.error(c.yellow("⚠ seed step had issues; continuing"));+ console.error(c.yellow("seed step had issues; continuing"));}const seededCase = await findSeededCase();if (seededCase) {diff --git a/scripts/aisoc-doctor.ts b/scripts/aisoc-doctor.tsindex 618e6ef07..e2e82a7de 100644--- a/scripts/aisoc-doctor.ts+++ b/scripts/aisoc-doctor.ts@@ -38,9 +38,9 @@ const c = {};function statusIcon(s: Status): string {- if (s === "OK") return c.green("✓ PASS");- if (s === "WARN") return c.yellow("⚠ WARN");- return c.red("✗ FAIL");+ if (s === "OK") return c.green("PASS");+ if (s === "WARN") return c.yellow("WARN");+ return c.red("FAIL");}function record(name: string, status: Status, detail?: string) {@@ -268,17 +268,17 @@ async function main() {if (fails > 0) {console.log(- c.red("\n ✗ AiSOC is not healthy. ") ++ c.red("\n AiSOC is not healthy. ") +"See the failing checks above. " +- c.dim("Quickstart: https://github.com/cybeleinc/AiSOC#quickstart")+ c.dim("Quickstart: https://github.com/beenuar/AiSOC#quickstart"));process.exit(1);}if (warns > 0) {- console.log(c.yellow("\n ⚠ AiSOC is up but missing demo data or non-critical config."));+ console.log(c.yellow("\n AiSOC is up but missing demo data or non-critical config."));process.exit(0);}- console.log(c.green("\n ✓ AiSOC is healthy and ready to investigate."));+ console.log(c.green("\n AiSOC is healthy."));process.exit(0);}diff --git a/scripts/backup.sh b/scripts/backup.shindex 61d52fc29..201d34c33 100755--- a/scripts/backup.sh+++ b/scripts/backup.sh@@ -102,11 +102,11 @@ s3_delete_old() {notify_slack() {local status="$1" message="$2"[[ -z "$SLACK_WEBHOOK_URL" ]] && return- local emoji="✅"- [[ "$status" != "success" ]] && emoji="🚨"+ local prefix="[ok]"+ [[ "$status" != "success" ]] && prefix="[FAIL]"curl -s -X POST "$SLACK_WEBHOOK_URL" \-H 'Content-Type: application/json' \- -d "{\"text\":\"${emoji} AiSOC Backup [${TIMESTAMP}]: ${message}\"}" \+ -d "{\"text\":\"${prefix} AiSOC Backup [${TIMESTAMP}]: ${message}\"}" \|| true}diff --git a/scripts/eval_mitre_accuracy.py b/scripts/eval_mitre_accuracy.pyindex 195c6b1a5..1bdf504dc 100755--- a/scripts/eval_mitre_accuracy.py+++ b/scripts/eval_mitre_accuracy.py@@ -47,17 +47,17 @@ def main() -> None:# Print per-incident resultsfor d in result.details:- status = "✓" if d["correct"] else "✗"+ status = "PASS" if d["correct"] else "FAIL"print(- f" {status} {d['incident'][:70]}\n"+ f" [{status}] {d['incident'][:70]}\n"f" expected={d['expected']} predicted={d['predicted']}"f" overlap={d['overlap']}")print(f"{'='*60}")passed = result.accuracy >= args.threshold- verdict = "✓ PASS" if passed else "✗ FAIL"- print(f"\n {verdict}: {result.accuracy * 100:.1f}% ({'≥' if passed else '<'} {args.threshold * 100:.0f}%)")+ verdict = "PASS" if passed else "FAIL"+ print(f"\n {verdict}: {result.accuracy * 100:.1f}% ({'>=' if passed else '<'} {args.threshold * 100:.0f}%)")print()# Write JSON report to disk for CI artifact uploaddiff --git a/scripts/export_openapi.py b/scripts/export_openapi.pyindex 92d8dc347..ba5cbc668 100755--- a/scripts/export_openapi.py+++ b/scripts/export_openapi.py@@ -49,13 +49,13 @@ def write_yaml(schema: dict, dest: Path) -> None:dest.parent.mkdir(parents=True, exist_ok=True)with dest.open("w", encoding="utf-8") as fh:yaml.dump(schema, fh, allow_unicode=True, sort_keys=False, default_flow_style=False)- print(f"✅ OpenAPI schema written to {dest.relative_to(REPO_ROOT)}")+ print(f"OpenAPI schema written to {dest.relative_to(REPO_ROOT)}")def check_yaml(schema: dict, dest: Path) -> bool:"""Return True if file matches generated schema."""if not dest.exists():- print(f"❌ {dest.relative_to(REPO_ROOT)} does not exist. Run: python scripts/export_openapi.py", file=sys.stderr)+ print(f"{dest.relative_to(REPO_ROOT)} does not exist. Run: python scripts/export_openapi.py", file=sys.stderr)return Falsewith dest.open("r", encoding="utf-8") as fh:@@ -63,13 +63,13 @@ def check_yaml(schema: dict, dest: Path) -> bool:if existing != schema:print(- f"❌ {dest.relative_to(REPO_ROOT)} is out of date.\n"+ f"{dest.relative_to(REPO_ROOT)} is out of date.\n"" Run: python scripts/export_openapi.py then commit the result.",file=sys.stderr,)return False- print(f"✅ {dest.relative_to(REPO_ROOT)} is up to date.")+ print(f"{dest.relative_to(REPO_ROOT)} is up to date.")return Truediff --git a/scripts/inject_scenario.py b/scripts/inject_scenario.pyindex 136ae66fe..e3dfe0c4e 100644--- a/scripts/inject_scenario.py+++ b/scripts/inject_scenario.py@@ -158,13 +158,13 @@ def main() -> None:}try:resp = _post(alerts_url, payload)- print(f" [stage {alert['stage']}] ✓ {alert['title']} → id={resp.get('id', '?')}")+ print(f" [stage {alert['stage']}] ok {alert['title']} -> id={resp.get('id', '?')}")injected += 1except urllib.error.HTTPError as e:body = e.read().decode()- print(f" [stage {alert['stage']}] ✗ HTTP {e.code}: {body[:200]}", file=sys.stderr)+ print(f" [stage {alert['stage']}] FAIL HTTP {e.code}: {body[:200]}", file=sys.stderr)except Exception as exc: # noqa: BLE001- print(f" [stage {alert['stage']}] ✗ {exc}", file=sys.stderr)+ print(f" [stage {alert['stage']}] FAIL {exc}", file=sys.stderr)if args.delay:time.sleep(args.delay)diff --git a/scripts/lab.sh b/scripts/lab.shindex 02e45dd9c..0f0a1a687 100755--- a/scripts/lab.sh+++ b/scripts/lab.sh@@ -40,10 +40,10 @@ doneBOLD='\033[1m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'CYAN='\033[0;36m'; RED='\033[0;31m'; NC='\033[0m'-banner() { echo -e "\n${BOLD}${CYAN}▶ $*${NC}"; }-ok() { echo -e " ${GREEN}✓${NC} $*"; }-warn() { echo -e " ${YELLOW}⚠${NC} $*"; }-fail() { echo -e " ${RED}✗${NC} $*"; exit 1; }+banner() { echo -e "\n${BOLD}${CYAN}==> $*${NC}"; }+ok() { echo -e " ${GREEN}ok${NC} $*"; }+warn() { echo -e " ${YELLOW}warn${NC} $*"; }+fail() { echo -e " ${RED}fail${NC} $*"; exit 1; }# ── Tear-down ──────────────────────────────────────────────────────────────────if $DOWN; then@@ -141,16 +141,16 @@ elsefi# ── Print service URLs ─────────────────────────────────────────────────────────-banner "AiSOC Demo Lab is ready! 🚀"+banner "AiSOC Demo Lab is ready"echo ""echo -e " ${BOLD}Service URLs${NC}"-echo -e " ${CYAN}Web App ${NC}→ http://localhost:3000"-echo -e " ${CYAN}API (REST) ${NC}→ http://localhost:8000/docs"-echo -e " ${CYAN}API (GraphQL) ${NC}→ http://localhost:8000/graphql"-echo -e " ${CYAN}Agent Orchestrator${NC}→ http://localhost:8001/docs"-echo -e " ${CYAN}Jaeger Tracing ${NC}→ http://localhost:16686"-echo -e " ${CYAN}Kafka UI ${NC}→ http://localhost:8080"-echo -e " ${CYAN}OpenSearch ${NC}→ http://localhost:9200"+echo -e " ${CYAN}Web App ${NC} http://localhost:3000"+echo -e " ${CYAN}API (REST) ${NC} http://localhost:8000/docs"+echo -e " ${CYAN}API (GraphQL) ${NC} http://localhost:8000/graphql"+echo -e " ${CYAN}Agent Orchestrator${NC} http://localhost:8001/docs"+echo -e " ${CYAN}Jaeger Tracing ${NC} http://localhost:16686"+echo -e " ${CYAN}Kafka UI ${NC} http://localhost:8080"+echo -e " ${CYAN}OpenSearch ${NC} http://localhost:9200"echo ""echo -e " ${BOLD}Quick commands${NC}"echo -e " ${YELLOW}pnpm aisoc:lab -- --logs${NC} Follow all container logs"diff --git a/scripts/restore.sh b/scripts/restore.shindex 235d83371..f0fb2b79b 100755--- a/scripts/restore.sh+++ b/scripts/restore.sh@@ -132,7 +132,7 @@ log "Component: ${COMPONENT}"# ── confirmation prompt ────────────────────────────────────────────────────────if [[ -t 0 ]]; thenecho ""- echo "⚠️ WARNING: This will OVERWRITE the target database / files."+ echo "WARNING: This will OVERWRITE the target database / files."read -r -p "Are you sure you want to restore from ${TIMESTAMP}? [yes/N] " confirm[[ "$confirm" != "yes" ]] && { log "Restore cancelled."; exit 0; }fi@@ -150,7 +150,7 @@ restore_postgres() {log "Restoring to ${POSTGRES_URL}…"gunzip -c "$local_file" | psql "$POSTGRES_URL" --single-transaction- log "PostgreSQL restore complete ✓"+ log "PostgreSQL restore complete"}# ── 2. ClickHouse restore ──────────────────────────────────────────────────────@@ -192,7 +192,7 @@ restore_clickhouse() {--get \--data-urlencode "query=INSERT INTO ${CLICKHOUSE_DATABASE}.${table} FORMAT TabSeparatedWithNames"- log " Table ${table} restored ✓"+ log " Table ${table} restored"done <<< "$tables"log "ClickHouse restore complete"@@ -213,7 +213,7 @@ restore_plugins() {s3_download "$mkt_src" "${outdir}/marketplace-index.json"cp "${outdir}/marketplace-index.json" "${repo_root}/marketplace/index.json"cp "${outdir}/marketplace-index.json" "${repo_root}/apps/web/public/marketplace/index.json"- log " Marketplace index restored ✓"+ log " Marketplace index restored"fi# Restore detections archive@@ -222,7 +222,7 @@ restore_plugins() {s3_download "$det_src" "${outdir}/detections.tar.gz"log " Extracting detections archive…"tar -xzf "${outdir}/detections.tar.gz" -C "$repo_root"- log " Detections restored ✓"+ log " Detections restored"fi# Restore plugin SDK packages@@ -232,7 +232,7 @@ restore_plugins() {s3_download "$pkg_src" "${outdir}/${pkg}.tar.gz"log " Extracting ${pkg}…"tar -xzf "${outdir}/${pkg}.tar.gz" -C "${repo_root}/packages"- log " ${pkg} restored ✓"+ log " ${pkg} restored"fidonediff --git a/scripts/validate_detections.py b/scripts/validate_detections.pyindex 9059d26a7..1966ccee4 100755--- a/scripts/validate_detections.py+++ b/scripts/validate_detections.py@@ -249,12 +249,12 @@ def main() -> int:if rule_failed:failed += 1- print(f"\n❌ {rel}")+ print(f"\nFAIL {rel}")for e in errors:- print(f" • {e}")+ print(f" - {e}")else:warn_suffix = f" ({len(warnings)} warn)" if warnings else ""- print(f"✓ {rel}{warn_suffix}")+ print(f"PASS {rel}{warn_suffix}")for w in warnings:print(f" {w}")diff --git a/services/actions/app/executors/notification.py b/services/actions/app/executors/notification.pyindex 8241e2bcc..341611b71 100644--- a/services/actions/app/executors/notification.py+++ b/services/actions/app/executors/notification.py@@ -29,7 +29,7 @@ class NotifySlackExecutor(BaseExecutor):webhook_url,json={"channel": channel,- "text": f"🚨 AiSOC Alert\n*Incident:* {request.incident_id}\n{message}",+ "text": f"AiSOC Alert\n*Incident:* {request.incident_id}\n{message}",},)resp.raise_for_status()diff --git a/services/agents/tests/test_mitre_accuracy.py b/services/agents/tests/test_mitre_accuracy.pyindex 30b9e51ed..0144971bc 100644--- a/services/agents/tests/test_mitre_accuracy.py+++ b/services/agents/tests/test_mitre_accuracy.py@@ -336,5 +336,5 @@ if __name__ == "__main__":res = evaluate_mitre_accuracy()print(res.to_json())passed = res.accuracy >= 0.80- print(f"\n{'✓ PASS' if passed else '✗ FAIL'}: {res.accuracy * 100:.1f}% accuracy (threshold: 80%)")+ print(f"\n{'PASS' if passed else 'FAIL'}: {res.accuracy * 100:.1f}% accuracy (threshold: 80%)")sys.exit(0 if passed else 1)