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
docs: refresh install pipeline + v2.2 architecture surfaces (#86)
Beenu Arora9cebe1804bc8
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex dc3b50ee6..a430af40c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,62 @@ All notable changes to AiSOC will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## [Unreleased]++### Documentation — install pipeline + v2.2 architecture refresh++Documentation-only refresh that aligns every install / architecture page+with the actual shipped state of the repo. No service code, schema, or+API surface changed.++- **One-click install pipeline** is now a first-class doc surface.+ - New Docusaurus page `apps/docs/docs/installation.md` (sidebar+ position 2) walks through `install.sh` / `install.ps1` end-to-end —+ supported package managers, what gets installed, idempotency, the+ `uninstall.sh` / `uninstall.ps1` graduated cleanup flags, and the+ security model.+ - `apps/docs/docs/quickstart.md` adds it as **Path 0** ("zero-prerequisite+ bootstrap") and renumbers the demo / dev paths.+ - `apps/docs/docs/deployment/docker.md` opens with a callout to the+ installer, refreshes every host/container port mapping against+ `docker-compose.yml`, splits profile-gated services+ (`connectors`, `osquery-tls`, `slack-bot`) out of the default stack,+ and updates the GHCR image list to the full 16-image set.+ - `apps/docs/docs/intro.md` adds the installer to **Get started** and+ corrects the connector-count copy.+ - Root `README.md` already had Path 0 — verified and synced with the+ architecture refresh below.+- **v2.2 architecture surfaces** are now reflected everywhere.+ - `apps/docs/docs/architecture.md` data-flow diagram, monorepo layout,+ and Service Responsibilities table now include `services/osquery-tls`,+ `services/osquery-extensions`, and `services/slack-bot`. Connector+ count corrected to 50 (was 26 / 42 in stale paragraphs).+ - `docs/architecture/SYSTEM_DESIGN.md` connector count corrected to 50,+ Service Responsibilities table extended with the v2.2 services, and a+ new **§13 — v2.2 Additions** appended that documents endpoint+ telemetry (osquery TLS server + extensions), ChatOps (`slack-bot`),+ Responder PWA, MCP server, Investigation Ledger / Ambient Copilot,+ and the one-click install pipeline. v2 / v2.1 narrative preserved.+ - Root `README.md` mermaid diagram + service-map table extended with+ `osquery-tls`, `slack-bot`, `mcp` and the corrected+ `Realtime` / `Web Console` descriptions.+- **Connector count corrected to 50 across the repo.**+ - `apps/docs/docs/connectors/index.md`: catalog count updated and the+ 23 missing connectors added across the existing categories+ (cloud / CNAPP / vuln-mgmt, SIEM, EDR/XDR, SaaS, ITSM, network,+ endpoint fleet, container orchestration).+ - `apps/docs/docs/connectors/api-coverage.md`: coverage-table heading+ updated.+ - `apps/web/src/components/onboarding/StartHero.tsx`: in-product copy+ on the onboarding tile updated.+ - `apps/docs/docs/intro.md`: two stale paragraphs updated.+ - Source of truth: `services/connectors/app/connectors/__init__.py`+ (`_CONNECTOR_CLASSES`).++Old historical entries in `AI_STACK_PLAN_PROGRESS.md` reference 42+connectors and are intentionally left as a snapshot of the v2.1 increment+they describe.+## [7.2.0] — 2026-05-11### Changed — `docker compose up -d` is now pull-by-defaultdiff --git a/README.md b/README.mdindex eca065cac..e0ffda939 100644--- a/README.md+++ b/README.md@@ -137,7 +137,7 @@ Full guide: [docs/integrations/mcp](apps/docs/docs/integrations/mcp.md). Source:AiSOC bundles the components a SOC normally pieces together from separate vendors:-- **Connect data sources in three clicks** — a 51-connector click-and-connect catalog spans EDR/XDR (CrowdStrike Falcon, SentinelOne, Microsoft Defender XDR, Palo Alto Cortex XDR, Cortex XSIAM, VMware Carbon Black, Trellix Helix, Trend Vision One), SIEM (Splunk, Microsoft Sentinel, Elastic, Sumo Logic, Datadog Cloud SIEM, Google Chronicle, Rapid7 InsightIDR), cloud + CNAPP (AWS Security Hub, AWS GuardDuty, AWS CloudTrail, AWS VPC Flow Logs, Azure Activity, Azure Defender, GCP Cloud Audit, GCP SCC, Wiz, Lacework, Tenable, Prisma Cloud, Orca), identity (Okta, Microsoft Entra, Auth0, Duo Security, 1Password), SaaS (Microsoft 365 audit, Google Workspace, Cloudflare, Proofpoint, Mimecast, ServiceNow, Jira, Slack audit, Salesforce, Email inbox), VCS (GitHub, Snyk), endpoint fleet (osctrl, FleetDM for fleet-wide osquery), container + orchestration (Kubernetes audit logs via apiserver webhook or `audit.log` tail), and network (Tailscale, Zscaler, Cisco Umbrella). Each connector renders a schema-driven form, runs a live `Test connection` round-trip before save, encrypts every secret with the application-layer `CredentialVault` (Fernet AES-128-CBC + HMAC-SHA256), and starts polling on a per-instance schedule. Walkthrough: [docs/connectors](apps/docs/docs/connectors/index.md). Threat model + key rotation: [docs/operations/credentials](apps/docs/docs/operations/credentials.md).+- **Connect data sources in three clicks** — a 50-connector click-and-connect catalog spans EDR/XDR (CrowdStrike Falcon, SentinelOne, Microsoft Defender XDR, Palo Alto Cortex XDR, Cortex XSIAM, VMware Carbon Black, Trellix Helix, Trend Vision One), SIEM (Splunk, Microsoft Sentinel, Elastic, Sumo Logic, Datadog Cloud SIEM, Google Chronicle, Rapid7 InsightIDR), cloud + CNAPP (AWS Security Hub, AWS GuardDuty, AWS CloudTrail, AWS VPC Flow Logs, Azure Activity, Azure Defender, GCP Cloud Audit, GCP SCC, Wiz, Lacework, Tenable, Prisma Cloud, Orca), identity (Okta, Microsoft Entra, Auth0, Duo Security, 1Password), SaaS (Microsoft 365 audit, Google Workspace, Cloudflare, Proofpoint, Mimecast, ServiceNow, Jira, Slack audit, Salesforce, Email inbox), VCS (GitHub, Snyk), endpoint fleet (osctrl, FleetDM for fleet-wide osquery), container + orchestration (Kubernetes audit logs via apiserver webhook or `audit.log` tail), and network (Tailscale, Zscaler, Cisco Umbrella). Each connector renders a schema-driven form, runs a live `Test connection` round-trip before save, encrypts every secret with the application-layer `CredentialVault` (Fernet AES-128-CBC + HMAC-SHA256), and starts polling on a per-instance schedule. Walkthrough: [docs/connectors](apps/docs/docs/connectors/index.md). Threat model + key rotation: [docs/operations/credentials](apps/docs/docs/operations/credentials.md).- **Own your endpoint telemetry** — first-party `aisoc-osquery-tls` FastAPI service (`services/osquery-tls/`) and `aisoc-direct` lightweight agent connector ship a self-hosted osquery TLS plugin, FleetDM-compatible config/log endpoints, and a direct-from-agent ingest path that bypasses third-party SaaS. Built-in **file integrity monitoring (FIM)** endpoint (`services/osquery-tls/app/api/v1/endpoints/fim.py`) ingests `file_events` and synthesizes alerts on writes to `/etc/passwd`, `/etc/shadow`, sshd configs, sudoers, and Windows registry hives; bundled osquery packs cover incident response, OSquery-ATT&CK, and FIM out of the box. **16 native osquery detections** (`detections/endpoint/osquery-*.yaml`, IDs `det-endpoint-281..296`) cover credential access, persistence, lateral movement, defense evasion, and discovery — paired with positive/negative test fixtures (`detections/fixtures/osquery_*.json`) and CI-gated against the Detection Validation workflow. **Live-query playbook step** (`osquery_live_query`) lets responders push allowlisted distributed queries to single hosts or fleet-wide via osctrl/FleetDM with HMAC-signed ChatOps approval. **5 custom Go-based virtual tables** (`services/osquery-extensions/`) extend the agent with `aisoc_browser_extensions`, `aisoc_kernel_modules`, `aisoc_attck_persistence`, `aisoc_pending_actions`, and `aisoc_alert_cache` for richer endpoint visibility and bidirectional response. Walkthroughs: [docs/connectors/osctrl](apps/docs/docs/connectors/osctrl.md), [docs/connectors/fleetdm](apps/docs/docs/connectors/fleetdm.md).- **Ingest** events from any connector into a Kafka spine.- **Correlate** them in real time with deduplication, ML scoring, per-alert confidence scoring, and Sigma/YARA detection.@@ -289,7 +289,8 @@ flowchart LRendsubgraph Ingest["Ingest & Normalize"]- Connectors["Connectors\n(Python)"]+ Connectors["Connectors\n(Python · 50 vendors)"]+ OsqueryTLS["osquery-tls\n(Python · host telemetry)"]IngestSvc["Ingest worker\n(Go · OCSF)"]Enrich["Enrichment\n(Go · IOC + Shodan)"]end@@ -319,12 +320,15 @@ flowchart LRsubgraph Surface["Surface"]API["Core API\n(FastAPI)"]- RT["Realtime\n(Node · WS)"]- Web["Web Console\n(Next.js 14)"]+ RT["Realtime\n(Node · WS + Web Push)"]+ Web["Web Console + Responder PWA\n(Next.js 14)"]Actions["Actions / SOAR\n(Python)"]+ Slack["Slack Bot\n(Python · ChatOps)"]+ MCP["MCP Server\n(TS · stdio)"]endSources --> Connectors --> IngestSvc --> Kafka+ OsqueryTLS --> IngestSvcIngestSvc --> Enrich --> KafkaKafka --> Fusion --> KafkaKafka --> UEBA --> Kafka@@ -340,6 +344,9 @@ flowchart LRWeb --> APIWeb --> RTActions --> Kafka+ Slack --> API+ Slack --> Actions+ MCP --> API```### Service map@@ -359,6 +366,8 @@ flowchart LR| `purple-team` | Python | 8006 | Atomic Red Team + Caldera + ATT&CK heatmap + detection drift snapshots || `osquery-tls` | Python | 8091 | Native osquery TLS server — enroll nodes, distribute packs, stream FIM/process/network telemetry || `osquery-extensions` | Python | — | Custom osquery extensions (AI-powered threat intel table, ML anomaly score table) |+| `slack-bot` | Python | 8009 | ChatOps surface — interactive approvals for high-blast-radius actions, `/aisoc` slash command, HMAC-signed Slack signature verification |+| `mcp` | TypeScript | — (stdio) | Model Context Protocol server exposing 11 read-only AiSOC tools (case search, alert detail, IOC pivot, ledger query, DAC lookup, …) to IDE-side AI agents (Claude Code, Cursor, Continue, Cody) || `ingest` | Go | 8081 | OCSF normalization + Shodan/CVE || `enrichment` | Go | 8080 | IOC enrichment (VT, AbuseIPDB, GreyNoise) |diff --git a/apps/docs/docs/architecture.md b/apps/docs/docs/architecture.mdindex 333023167..4c32930b5 100644--- a/apps/docs/docs/architecture.md+++ b/apps/docs/docs/architecture.md@@ -1,5 +1,5 @@----sidebar_position: 3+sidebar_position: 4---# Architecture@@ -8,31 +8,37 @@ sidebar_position: 3```External Sources- (EDR · SIEM · Cloud · Identity · Network · Threat Intel)- │- ▼ connectors+ (EDR · SIEM · Cloud · Identity · Network · SaaS · Threat Intel)+ │ ▲+ │ │+ │ osquery-tls + osquery-extensions+ │ (endpoint telemetry, host live-query)+ ▼ connectors (50 vendors, registry-based)Kafka spine ◄── Honeytokens (deception events)│- ┌────┼──────────────────────────────────┐- ▼ ▼ ▼-Fusion UEBA Detections-(ML) (baseline) (Sigma·YARA·KQL·EQL)- │ │ │- └────┴──────────────────────────────────┘+ ┌────┼─────────────────────┬────────────────────┐+ ▼ ▼ ▼ ▼+Fusion UEBA Detections Threat Intel+(ML + (Welford, (Sigma·YARA· (TAXII · MISP ·+ RBA) Z-score) KQL·EQL · DAC) OTX · KEV)+ │ │ │ │+ └────┴─────────────────────┴────────────────────┘│PostgreSQL · ClickHouse · OpenSearchQdrant (vectors) · Neo4j (graph) · Redis│FastAPI Core API (port 8000)│- ┌─────────┼──────────┬─────────────┐- ▼ ▼ ▼ ▼- Next.js Agents Realtime MCP- (port 3000) (8001) (8086, WS+Push) (TS, stdio)- │- Investigation Ledger- (every prompt/tool/step,- replayable per case)+ ┌─────────┬────────┼────────┬─────────────┬─────────────┐+ ▼ ▼ ▼ ▼ ▼ ▼+Next.js Agents Realtime MCP Slack-bot Actions+(3000) (8001) (8086, (TS, (ChatOps, (8002,+React + WS+Push) stdio) HMAC-signed) SOAR exec)+PWA │+ ▼+ Investigation Ledger+ (every prompt/tool/step,+ replayable per case)```Key structural pieces include the **Investigation Ledger** (every@@ -73,7 +79,7 @@ The v1.5 release ships from a review of G2, Gartner Peer Insights, and customer- **Automated compliance evidence** — `services/api/app/api/v1/endpoints/compliance.py` collects point-in-time evidence for SOC 2 / ISO 27001 / NIST CSF / PCI-DSS / HIPAA / DORA.- **AI-generated incident reports** — one-click "Export Report" on every case generates a PDF incident report from the Investigation Ledger.- **Air-gap deployment configuration** — `services/api/app/api/v1/endpoints/deployment.py` exposes air-gap mode toggles for tenants that disallow external feeds.-- **Ten new connectors** — SentinelOne, Cortex XDR, Wiz, Snyk, Zscaler, Proofpoint, ServiceNow, Jira, 1Password, Duo Security; the catalog is now 26 connectors. See [Connectors](./connectors/).+- **Connector catalog growth** — SentinelOne, Cortex XDR / XSIAM, Wiz, Snyk, Zscaler, Proofpoint, ServiceNow, Jira, 1Password, Duo Security, Carbon Black, Chronicle, Cisco Umbrella, CrowdStrike, Datadog Cloud SIEM, Elastic, Mimecast, Okta, Rapid7 InsightIDR, Salesforce, Microsoft Sentinel, Splunk, Sumo Logic, Tenable, Trellix Helix, Trend Vision One, and more. **The catalog is now 50 connectors** across EDR, SIEM, cloud, identity, SaaS, network, and email categories. See [Connectors](./connectors/).## Connector polling and credential vault@@ -133,20 +139,23 @@ AiSOC/│ ├── web/ # Next.js 14 React frontend (incl. Responder PWA)│ └── docs/ # This Docusaurus site├── services/-│ ├── api/ # FastAPI gateway (port 8000)-│ ├── agents/ # LangGraph investigator (port 8001)-│ ├── realtime/ # Node/TS WebSocket + Web Push (port 8086)-│ ├── ingest/ # Go OCSF normaliser (port 8081)-│ ├── enrichment/ # Go enrichment fan-out (port 8080)-│ ├── fusion/ # Fusion + ML scoring (port 8003)-│ ├── actions/ # Action executor (port 8002)-│ ├── threatintel/ # TAXII / MISP / OTX / KEV (port 8005)-│ ├── ueba/ # User behavior analytics (port 8007)-│ ├── honeytokens/ # Deception platform (port 8008)-│ ├── purple-team/ # Adversary emulation (port 8006)-│ ├── connectors/ # Connector polling + credential vault-│ ├── demo-producer/ # Synthetic event generator for demos-│ └── mcp/ # Model Context Protocol server (TypeScript)+│ ├── api/ # FastAPI gateway (port 8000)+│ ├── agents/ # LangGraph investigator (port 8001)+│ ├── realtime/ # Node/TS WebSocket + Web Push (port 8086)+│ ├── ingest/ # Go OCSF normaliser (port 8081)+│ ├── enrichment/ # Go enrichment fan-out (port 8080)+│ ├── fusion/ # Fusion + ML scoring (port 8003)+│ ├── actions/ # Action executor (port 8002)+│ ├── threatintel/ # TAXII / MISP / OTX / KEV (port 8005)+│ ├── ueba/ # User behavior analytics (port 8007)+│ ├── honeytokens/ # Deception platform (port 8008)+│ ├── purple-team/ # Adversary emulation (port 8006)+│ ├── connectors/ # Connector polling + credential vault (50 vendors)+│ ├── demo-producer/ # Synthetic event generator for demos+│ ├── mcp/ # Model Context Protocol server (TypeScript)+│ ├── osquery-tls/ # osquery TLS server: enrol hosts, ship results+│ ├── osquery-extensions/ # Custom osquery tables/decorators+│ └── slack-bot/ # ChatOps surface (HMAC-signed approvals)├── packages/│ ├── plugin-sdk-py/ # Python plugin SDK│ ├── plugin-sdk-go/ # Go plugin SDK@@ -186,10 +195,13 @@ AiSOC/| `ueba` | 8007 | Python | Welford baseline, Z-score scoring, anomaly stream || `honeytokens` | 8008 | Python | Token lifecycle, HMAC signing, webhook dispatch || `purple-team` | 8006 | Python | ART YAML parser, Caldera executor, ATT&CK heatmap, **detection drift snapshots** |-| `connectors` | — | Python | Connector polling (APScheduler), credential vault (`CredentialVault`), registry-based connector discovery |+| `connectors` | — | Python | Connector polling (APScheduler), credential vault (`CredentialVault`), registry-based discovery — **50 vendors shipped** across EDR / SIEM / cloud / IAM / SaaS / network / email || `demo-producer` | — | Python | Synthetic event generator for demos and evaluation |-| `mcp` | n/a | TypeScript | Model Context Protocol stdio server, 11 tools for IDE-side agents |-| `web` | 3000 | TypeScript (Next.js) | React console + Responder PWA route group, **benchmark scoreboard** |+| `mcp` | n/a | TypeScript | Model Context Protocol stdio server, 11 tools for IDE-side agents (Claude / Cursor / Continue / Cody) |+| `osquery-tls` | 8443 | Go | TLS server implementing osquery's enrol/config/distributed/log endpoints; ships normalised host events into `ingest` |+| `osquery-extensions` | — | Go | Out-of-band osquery extensions registering custom virtual tables and decorators consumed by `osquery-tls` |+| `slack-bot` | — | Python | ChatOps surface: posts approval prompts, exposes `/aisoc` slash command, verifies inbound interactions with HMAC-signed Slack request signatures |+| `web` | 3000 | TypeScript (Next.js) | React console + Responder PWA route group, **benchmark scoreboard**, conversational investigation chat |## Storage Tierdiff --git a/apps/docs/docs/connectors/api-coverage.md b/apps/docs/docs/connectors/api-coverage.mdindex 0978b10b0..7c2205ac1 100644--- a/apps/docs/docs/connectors/api-coverage.md+++ b/apps/docs/docs/connectors/api-coverage.md@@ -27,7 +27,7 @@ This page is the canonical "what works where" reference. It is generated from thWhen a capability is not listed for a connector, the connector simply does not support it today — it is **not** a misconfiguration to surface. Adding a capability requires an explicit code change in that connector's `capabilities()` classmethod and matching method implementation.-## Coverage table — 42 connectors+## Coverage table — 50 connectorsThe matrix below is grouped by category. `OAuth (hosted)` indicates the connector is wired into the hosted OAuth marketplace flow (no client secret in tenant config). `Federated search` means the connector participates in the federated-query planner.diff --git a/apps/docs/docs/connectors/index.md b/apps/docs/docs/connectors/index.mdindex 627de5560..759fcf9e5 100644--- a/apps/docs/docs/connectors/index.md+++ b/apps/docs/docs/connectors/index.md@@ -18,7 +18,7 @@ If your tool isn't in the catalog, see [Universal capture](/docs/connectors/univ## Catalog-The catalog ships with **26 connectors** out of the box.+The catalog ships with **50 connectors** out of the box, registered in [`services/connectors/app/connectors/__init__.py`](https://github.com/beenuar/AiSOC/blob/main/services/connectors/app/connectors/__init__.py). The list below is grouped by category; only a subset has dedicated walkthrough pages today (linked entries) — the rest follow the same schema-driven wizard described under [Adding a connector](#adding-a-connector).### Identity@@ -26,6 +26,7 @@ The catalog ships with **26 connectors** out of the box.|---|---|---|---|| [Microsoft Entra ID](/docs/connectors/azure-entra) | Identity | Azure AD app (client credentials) | Directory audits + risky sign-ins via Microsoft Graph || Okta | Identity | API token | System log |+| Auth0 | Identity | Mgmt API token | Tenant log events (logins, MFA, anomaly) || Duo Security | Identity / MFA | Integration key + secret | Authentication logs and policy events || 1Password | IAM / Secrets | Service account token | Vault access events and shared-item changes |@@ -37,6 +38,10 @@ The catalog ships with **26 connectors** out of the box.| SentinelOne | EDR / XDR | API token | Threats with severity mapped from `confidenceLevel` || [Microsoft Defender (XDR)](/docs/connectors/azure-defender) | EDR / XDR | Azure AD app | Cross-product alerts via Microsoft Graph Security || Palo Alto Cortex XDR | EDR / XDR | API key + ID | Incidents and alerts |+| Palo Alto Cortex XSIAM | XDR / SIEM | API key + ID | XSIAM incidents and prioritised alerts |+| VMware Carbon Black | EDR | API ID + secret | Endpoint detections and alerts |+| Trellix Helix | XDR | API key | Cross-vendor correlated alerts |+| Trend Vision One | XDR | API token | Workbench alerts and observed attack techniques |### SIEM@@ -45,25 +50,40 @@ The catalog ships with **26 connectors** out of the box.| Splunk | SIEM | HEC token / API | Saved-search results || Microsoft Sentinel | SIEM | Azure AD app | Incidents || Elastic | SIEM | API key | Detection alerts |+| Sumo Logic | SIEM | Access ID + key | Search and alert events |+| Datadog Cloud SIEM | SIEM | API + app key | Security signals and detection rule hits |+| Google Chronicle | SIEM | Service account JSON | UDM events and detection rule hits |+| Rapid7 InsightIDR | SIEM | API key | Investigations and detection alerts |-### Cloud (control plane / posture)+### Cloud (control plane / posture / CNAPP)| Connector | Category | Auth | Notes ||---|---|---|---|| AWS Security Hub | Cloud (posture) | AWS keys / role | Findings |+| AWS GuardDuty | Cloud (threat) | AWS keys / role | Threat findings across regions |+| AWS CloudTrail | Cloud (control plane) | AWS keys / role | Account-wide API activity |+| AWS VPC Flow Logs | Cloud (network) | AWS keys / role + S3 / CWL | Layer-3/4 flow telemetry || [Azure Activity Logs](/docs/connectors/azure-activity) | Cloud (control plane) | Azure AD app + subscription | Subscription-scope ARM activity, IAM grants, policy changes || [GCP Cloud Audit Logs](/docs/connectors/gcp-cloud-audit) | Cloud (control plane) | Service account JSON | Admin Activity + Data Access + System Event || [GCP Security Command Center](/docs/connectors/gcp-scc) | Cloud (posture) | Service account JSON | Org-scope active findings |-| Wiz | CSPM | OAuth2 client credentials | Cloud security findings via GraphQL |+| Wiz | CSPM / CNAPP | OAuth2 client credentials | Cloud security findings via GraphQL |+| Lacework | CSPM / CNAPP | API key + secret | Composite alerts and compliance violations |+| Tenable | Vuln mgmt | API access + secret | Vulns + plugin findings (Tenable.io / Nessus) |+| Prisma Cloud | CSPM / CNAPP | Access key + secret | Cloud findings and policy violations |+| Orca | CSPM / CNAPP | API token | Side-scanned cloud findings |-### SaaS+### SaaS / Communication / ITSM| Connector | Category | Auth | Notes ||---|---|---|---|| [Microsoft 365 Audit](/docs/connectors/m365-audit) | SaaS | Azure AD app (shares Entra creds) | Unified audit log: AAD, Exchange, SharePoint, Teams || [Google Workspace](/docs/connectors/google-workspace) | SaaS / Identity | Service account + DWD | Admin SDK Reports: login, admin, drive, token, mobile |-| [Cloudflare](/docs/connectors/cloudflare) | SaaS | API token | Account audit logs (operator activity, not edge traffic) |+| Slack Audit | SaaS / Comms | Audit API token | Workspace audit logs (org-grid required) |+| Salesforce | SaaS / CRM | OAuth2 / connected app | Login history, setup audit trail, security events |+| [Cloudflare](/docs/connectors/cloudflare) | SaaS / Edge | API token | Account audit logs (operator activity, not edge traffic) || Proofpoint | Email Security | Service principal | Threat events and click telemetry |+| Mimecast | Email Security | API key + secret | Email threat events and policy actions |+| Email Inbox | Email Security / Phishing | IMAP / Graph | Reported-phishing inbox triage || ServiceNow | ITSM | OAuth2 / basic auth | Security incident table updates || Jira | Ticketing | API token | Security ticket and project events |@@ -74,12 +94,21 @@ The catalog ships with **26 connectors** out of the box.| [GitHub](/docs/connectors/github) | VCS | PAT or App installation token | Org audit log + Code Scanning alerts || Snyk | SCA / AppSec | API token | Dependency, container, and IaC issues |+### Endpoint fleet / Container++| Connector | Category | Auth | Notes |+|---|---|---|---|+| osctrl | Endpoint fleet | API token | Fleet-wide osquery results from osctrl |+| FleetDM | Endpoint fleet | API token | Fleet-wide osquery results from FleetDM |+| Kubernetes Audit | Container / Orchestration | apiserver webhook or `audit.log` tail | Cluster API server audit events |+### Network| Connector | Category | Auth | Notes ||---|---|---|---|| Tailscale | Network | API key | ACL audit + device changes || Zscaler | Network / Cloud Proxy | API key | ZIA and ZPA security events |+| Cisco Umbrella | Network / DNS | API key + secret | Security events and DNS verdicts |## Adding a connectordiff --git a/apps/docs/docs/deployment/docker.md b/apps/docs/docs/deployment/docker.mdindex 42117e8bc..da550b9be 100644--- a/apps/docs/docs/deployment/docker.md+++ b/apps/docs/docs/deployment/docker.md@@ -12,21 +12,35 @@ AiSOC ships three Compose flavors. Pick the one that matches what you are doing.| `docker-compose.yml` | Full developer stack | Active development against real source || `docker-compose.prod.yml` | Production-leaning stack | Self-hosting on a single VM |+> If you don't already have Docker installed, the simplest path is the+> [one-click installer](../installation) — it installs Docker (Engine + Compose+> v2 on Linux, Docker Desktop on macOS/Windows), Node, pnpm, and git+> idempotently, then runs the streamlined demo for you.+## Streamlined demo-The fastest path is the demo orchestrator. It pulls prebuilt images, runs the full stack, seeds an alert, and prints the URL of the resulting case in under five minutes.+The fastest path is the demo orchestrator. It pulls prebuilt, signed images,+runs the slim stack, seeds an alert, kicks off an investigation, and prints the+URL of the resulting case in roughly 3-4 minutes on a warm Docker daemon.```bashpnpm aisoc:demo```-Behind the scenes this runs `docker compose -f docker-compose.demo.yml up -d` against `ghcr.io/beenuar/aisoc-*` images. Stop it with:+Behind the scenes this runs `docker compose -f docker-compose.demo.yml up -d`+against `ghcr.io/beenuar/aisoc-*` images (with `pull_policy: missing`, so+re-runs don't re-pull). Stop it with:```bashpnpm aisoc:demo:down```-If GHCR is unreachable on your network the orchestrator transparently falls back to a local build.+If GHCR is unreachable on your network the orchestrator transparently falls+back to a local build of every service.++To uninstall everything later (stack + volumes, optionally images, optionally+node\_modules and the repo clone), use the bundled+[uninstaller](../installation#uninstall).## Development@@ -34,19 +48,57 @@ If GHCR is unreachable on your network the orchestrator transparently falls backdocker compose up -d```-This starts the full developer stack:+This starts the full developer stack. Host-side ports are bound to+`127.0.0.1` only by default (i.e. localhost-only) — adjust your reverse proxy+or compose override if you need LAN access.++### Application services++| Service | Host port | Container port | Notes |+|---------|-----------|----------------|-------|+| `api` (FastAPI Core API) | 8000 | 8000 | OpenAPI at `/docs` |+| `agents` (LangGraph investigator) | 8001 | 8084 | |+| `actions` (SOAR executor) | 8002 | 8085 | |+| `fusion` (alert fusion + ML) | 8003 | 8003 | |+| `threatintel` | 8005 | 8005 | |+| `purple-team` (adversary emulation) | 8006 | 8006 | |+| `ueba` (user behavior analytics) | 8007 | 8004 | |+| `honeytokens` (deception platform) | 8008 | 8005 | |+| `slack-bot` (ChatOps) | 8009 | 8089 | `profiles: [slack]` |+| `ingest-worker` (Go OCSF normaliser) | 8081 / 9090 | 8080 / 9090 | HTTP + Prometheus metrics |+| `enrichment` (Go enrichment fan-out) | 8080 | 8082 | |+| `realtime` (Node WS + Web Push) | 8086 | 4000 | |+| `connectors` (50-vendor poller) | 8088 | 8003 | `profiles: [connectors]` |+| `osquery-tls` (host telemetry server) | 8091 | 8007 | `profiles: [osquery]` |+| `web` (Next.js console + Responder PWA) | 3000 | 3000 | |++`mcp` (the Model Context Protocol stdio server) runs without a port — it is+launched on demand by IDE-side agents (Claude Code, Cursor, Continue, Cody)+over stdio.++### Profile-gated services++`connectors`, `osquery-tls`, and `slack-bot` live behind Docker Compose+profiles so the default dev stack stays light. Enable them with:-- `api` (FastAPI) on port `8000`-- `agents` (LangGraph runtime) on port `8001`-- `realtime` (Node + WebSocket + VAPID Web Push) on port `8002`-- `mcp` (Model Context Protocol server) on port `8003`-- `ingest` (Go) on port `8010`-- `enrichment` (Go) on port `8011`-- `web` (Next.js) on port `3000`-- `postgres` on port `5432`-- `nats` on port `4222`-- `opensearch` on port `9200`-- `redis` on port `6379`+```bash+COMPOSE_PROFILES=connectors,osquery,slack docker compose up -d+```++### Data-plane services++| Service | Host port | Notes |+|---------|-----------|-------|+| `postgres` | 5432 | Cases, alerts, RBAC, vault |+| `redis` | 6379 | Sessions, rate limiting, agent cache |+| `kafka` | 9092 | Event spine |+| `kafka-ui` | 8090 | Web UI for the Kafka cluster |+| `clickhouse` | 8123 / 9000 | Analytical telemetry store |+| `opensearch` | 9200 | Full-text + log search |+| `qdrant` | 6333 | Vector store (RAG over runbooks + ATT&CK) |+| `neo4j` | 7474 / 7687 | Investigation graph |+| `prometheus` | 9091 | Metrics scraper |+| `grafana` | 3001 | Pre-wired dashboards (`admin` / `admin`) |## Production@@ -56,11 +108,15 @@ Use the production compose file:docker compose -f docker-compose.prod.yml up -d```-Before going live, walk through the [Hardening Runbook](https://github.com/beenuar/AiSOC/blob/main/docs/runbooks/HARDENING.md) — TLS termination, secret rotation, network policies, and audit log forwarding all need to be in place.+Before going live, walk through the+[Hardening Runbook](https://github.com/beenuar/AiSOC/blob/main/docs/runbooks/HARDENING.md)+— TLS termination, secret rotation, network policies, audit log forwarding,+and tenant-scoped backups all need to be in place.### Environment variables-Copy `.env.example` to `.env` and fill in every required value before starting. See [Environment Variables](./env-vars) for the full reference.+Copy `.env.example` to `.env` and fill in every required value before starting.+See [Environment Variables](./env-vars) for the full reference.## Building images@@ -75,25 +131,50 @@ docker compose build agentsFor releases, prebuilt and signed images are published to GHCR:```-ghcr.io/beenuar/aisoc-api:v5.2.0-ghcr.io/beenuar/aisoc-agents:v5.2.0-ghcr.io/beenuar/aisoc-realtime:v5.2.0-ghcr.io/beenuar/aisoc-mcp:v5.2.0-ghcr.io/beenuar/aisoc-ingest:v5.2.0-ghcr.io/beenuar/aisoc-enrichment:v5.2.0-ghcr.io/beenuar/aisoc-web:v5.2.0+ghcr.io/beenuar/aisoc-api:<version>+ghcr.io/beenuar/aisoc-agents:<version>+ghcr.io/beenuar/aisoc-actions:<version>+ghcr.io/beenuar/aisoc-fusion:<version>+ghcr.io/beenuar/aisoc-threatintel:<version>+ghcr.io/beenuar/aisoc-ueba:<version>+ghcr.io/beenuar/aisoc-honeytokens:<version>+ghcr.io/beenuar/aisoc-purple-team:<version>+ghcr.io/beenuar/aisoc-connectors:<version>+ghcr.io/beenuar/aisoc-osquery-tls:<version>+ghcr.io/beenuar/aisoc-slack-bot:<version>+ghcr.io/beenuar/aisoc-realtime:<version>+ghcr.io/beenuar/aisoc-mcp:<version>+ghcr.io/beenuar/aisoc-ingest:<version>+ghcr.io/beenuar/aisoc-enrichment:<version>+ghcr.io/beenuar/aisoc-web:<version>```-Each image is signed with Cosign — verify with `cosign verify --certificate-identity-regexp '^https://github.com/beenuar/AiSOC' --certificate-oidc-issuer https://token.actions.githubusercontent.com <image>`.+Each image is signed with Cosign — verify with:++```bash+cosign verify \+ --certificate-identity-regexp '^https://github.com/beenuar/AiSOC' \+ --certificate-oidc-issuer https://token.actions.githubusercontent.com \+ ghcr.io/beenuar/aisoc-api:<version>+```## Health checks+Every service exposes the same `GET /healthz` shape:+```bashcurl http://localhost:8000/healthz-# {"status": "ok", "version": "5.2.0"}+# {"status": "ok", "version": "<version>"}```-Each service exposes the same shape on its own port (`8001`, `8002`, `8003`, `8010`, `8011`).+A quick "is everything up" sweep across the application tier:++```bash+for port in 8000 8001 8002 8003 8005 8006 8007 8008 8081 8080 8086; do+ printf "%-5s " "$port"+ curl -fsS "http://localhost:${port}/healthz" || echo "FAIL"+done+```## Logs@@ -101,6 +182,14 @@ Each service exposes the same shape on its own port (`8001`, `8002`, `8003`, `80docker compose logs -f agentsdocker compose logs -f apidocker compose logs -f realtime+docker compose logs -f ingest-worker```-The full list of services is in [`docker-compose.yml`](https://github.com/beenuar/AiSOC/blob/main/docker-compose.yml) — `api`, `agents`, `fusion`, `actions`, `connectors`, `threatintel`, `ueba`, `honeytokens`, `purple-team`, `realtime`, `ingest-worker`, `enrichment`, `web`, plus the data-plane services (`postgres`, `redis`, `kafka`, `clickhouse`, `opensearch`, `qdrant`).+## Reference++The canonical service inventory is in+[`docker-compose.yml`](https://github.com/beenuar/AiSOC/blob/main/docker-compose.yml).+The deeper architectural picture — what each service owns, how the data plane+fits together, and where ITSM / Slack / osquery bolt in — lives in+[Architecture](../architecture) and the+[System Design doc](https://github.com/beenuar/AiSOC/blob/main/docs/architecture/SYSTEM_DESIGN.md).diff --git a/apps/docs/docs/installation.md b/apps/docs/docs/installation.mdnew file mode 100644index 000000000..248572ed6--- /dev/null+++ b/apps/docs/docs/installation.md@@ -0,0 +1,254 @@+---+sidebar_position: 2+---++# One-click install++The fastest way to a running AiSOC dashboard, with **zero assumed+prerequisites**, is the bootstrap installer. It works against a+freshly-imaged machine — no Docker, Node, pnpm, git, or even Homebrew+required up front. It detects your OS, installs everything idempotently,+clones the repo, and launches the demo stack with seeded data and a+mid-investigation case open in your browser.++If you already have Docker + Node + pnpm and you want to skip straight to+the demo orchestrator, see the [Quick start](./quickstart). If you are+deploying to production, see [Deployment options](./deployment/docker).++## TL;DR++```bash+# Linux + macOS (one-liner):+curl -fsSL https://raw.githubusercontent.com/beenuar/AiSOC/main/install.sh | bash++# Windows (PowerShell as Administrator):+iwr -useb https://raw.githubusercontent.com/beenuar/AiSOC/main/install.ps1 | iex+```++When the installer finishes, your default browser opens at+`http://localhost:3000/cases/INC-RT-001?tab=ledger` with the seeded+LockBit 3.0 ransomware investigation already in flight.++## Supported platforms++| OS | Package manager | Tested versions |+|----|-----------------|-----------------|+| Ubuntu / Debian | `apt` | 22.04, 24.04, Debian 12 |+| Fedora / RHEL / Rocky / Alma | `dnf` | Fedora 39+, RHEL 9, Rocky 9, Alma 9 |+| Arch / Manjaro | `pacman` | rolling |+| openSUSE Leap / Tumbleweed | `zypper` | 15.5+, Tumbleweed |+| Alpine | `apk` | 3.19+ |+| macOS | `brew` (auto-installed) | 13 Ventura, 14 Sonoma, 15 Sequoia (Apple Silicon + Intel) |+| Windows 10 / 11 | `winget` | Pro, Home, Enterprise |++The installer auto-detects the OS and picks the correct package manager.+Re-running is safe: every step is idempotent and short-circuits if the+target component is already installed at a sufficient version.++## What gets installed++### Linux + macOS (`install.sh`)++1. **`git`** — required to clone the repo. Skipped if already on PATH.+2. **Docker Engine + Docker Compose v2** (Linux) or **Docker Desktop**+ (macOS via Homebrew cask). On Linux the script enables and starts+ the `docker` service, then adds the invoking user to the `docker`+ group with a one-shot `sg docker -c …` so you don't have to log+ out and back in for the same install run.+3. **Node.js 20 LTS** via the official NodeSource APT repo, the Fedora+ NodeJS module, the relevant native package on Arch / openSUSE /+ Alpine, or `brew install node@20` on macOS.+4. **pnpm 8+** via `corepack enable && corepack prepare pnpm@latest`.+5. **Homebrew** (macOS only) — bootstrapped non-interactively if it+ isn't already installed.+6. **The AiSOC repo itself** — cloned to `$HOME/aisoc` (override with+ `AISOC_DIR=/path/to/clone`). On a re-run the installer does+ `git fetch && git pull` instead.+7. **`pnpm install`** at the repo root to materialise the workspace.+8. **`pnpm aisoc:demo`** — the existing one-shot orchestrator that+ pulls the prebuilt `ghcr.io/beenuar/*` images, brings up the slim+ demo profile, runs the seeder as a one-shot container, kicks off+ an investigation, and opens your browser at the live case.++### Windows (`install.ps1`)++1. **`winget`** must be present (it ships with Windows 10 21H2+ and+ all Windows 11 builds; the script tells you what to install if+ your machine is older than that).+2. **`git`** via `winget install --id Git.Git`.+3. **WSL2** — if Docker Desktop isn't already installed, the script+ enables the `Microsoft-Windows-Subsystem-Linux` and+ `VirtualMachinePlatform` features and sets WSL2 as the default+ version. A reboot is required after WSL2 is first enabled; the+ script tells you exactly when to reboot and which command to+ re-run after sign-in.+4. **Docker Desktop** via `winget install --id Docker.DockerDesktop`.+ The script waits for the Docker Engine socket to come up before+ proceeding.+5. **Node.js 20 LTS** via `winget install --id OpenJS.NodeJS.LTS`.+6. **pnpm 8+** via `corepack enable && corepack prepare pnpm@latest`.+7. **The AiSOC repo** — cloned to `$env:USERPROFILE\aisoc` (override+ with `-AisocDir 'C:\path\to\clone'`).+8. **`pnpm install`** + **`pnpm aisoc:demo`** as on Linux/macOS.++## Common cases++### "I already have everything installed"++That's fine. The installer is idempotent — it detects existing+sufficient versions and skips them. The end state is the same: a+running demo with `INC-RT-001` open in your browser.++### "I want to install into a different directory"++```bash+# Linux/macOS — clone to ~/work/aisoc instead of ~/aisoc:+AISOC_DIR=$HOME/work/aisoc bash <(curl -fsSL https://raw.githubusercontent.com/beenuar/AiSOC/main/install.sh)+```++```powershell+# Windows — clone to D:\src\aisoc instead of $HOME\aisoc:+iwr -useb https://raw.githubusercontent.com/beenuar/AiSOC/main/install.ps1 -OutFile $env:TEMP\aisoc-install.ps1+& $env:TEMP\aisoc-install.ps1 -AisocDir 'D:\src\aisoc'+```++### "I want to run the script after reading it"++Recommended for production-adjacent machines. Both scripts live at the+repo root and are short enough to read in one sitting:++- [`install.sh`](https://github.com/beenuar/AiSOC/blob/main/install.sh) — Linux + macOS (~620 lines, pure POSIX-friendly bash)+- [`install.ps1`](https://github.com/beenuar/AiSOC/blob/main/install.ps1) — Windows PowerShell++```bash+curl -fsSLO https://raw.githubusercontent.com/beenuar/AiSOC/main/install.sh+less install.sh # read it+shellcheck install.sh # optional: confirm it's lint-clean+bash install.sh+```++```powershell+iwr -useb https://raw.githubusercontent.com/beenuar/AiSOC/main/install.ps1 -OutFile install.ps1+notepad install.ps1 # read it+.\install.ps1+```++### "I want to skip the demo launch and just install dependencies"++```bash+# Linux/macOS:+AISOC_SKIP_DEMO=1 bash install.sh++# Windows:+.\install.ps1 -SkipDemo+```++The repo is still cloned and `pnpm install` still runs, but+`pnpm aisoc:demo` is skipped so you can manually configure `.env` /+secrets / connectors before the first stack startup.++### "I want to redirect the demo to a different host or port"++Edit `.env` after the clone step. The relevant variables are documented+inline in `.env.example` and in+[Deployment → Environment variables](./deployment/env-vars).++## Uninstall++Both installers ship with a matching uninstaller, also at the repo root.+They are graduated — by default they only stop the demo stack and drop+its named volumes, leaving Docker Desktop, Node, pnpm, and the repo+untouched. Pass flags to escalate.++| Action | Linux / macOS | Windows |+|--------|----------------|---------|+| Stop stack + drop volumes | `./uninstall.sh` | `.\uninstall.ps1` |+| Also remove pulled images (~3 GB) | `./uninstall.sh --images` | `.\uninstall.ps1 -Images` |+| Also delete `node_modules` | `./uninstall.sh --node-modules` | `.\uninstall.ps1 -NodeModules` |+| Also delete the repo clone | `./uninstall.sh --repo` | `.\uninstall.ps1 -Repo` |+| Everything except shared deps | `./uninstall.sh --all` | `.\uninstall.ps1 -All` |+| Skip confirmation prompts | `./uninstall.sh --all --yes` | `.\uninstall.ps1 -All -Yes` |++The uninstaller intentionally **does not** remove Docker, Docker+Desktop, Node, pnpm, Homebrew, WSL2, or git — those are general-purpose+tools that other apps on your machine likely depend on. Remove them+manually if you really want a clean wipe.++## Troubleshooting++### `curl: command not found` (fresh Alpine container)++```sh+apk add --no-cache curl bash+```++Then re-run the one-liner.++### "Cannot connect to the Docker daemon" on the first run (Linux)++The installer has just added you to the `docker` group, but the+*current shell* still uses your old group set. The installer works around+this by running its own follow-up Docker commands through `sg docker -c …`.+For your **next interactive shell** to pick up the new group, log out and+back in (or `newgrp docker`).++### "Hyper-V is not enabled" on Windows Home++Windows Home doesn't include Hyper-V; Docker Desktop relies on the+WSL2 backend instead. The installer enables WSL2 automatically and+Docker Desktop will use it. If Docker Desktop still complains, open+`Settings → General` and confirm "Use the WSL 2 based engine" is+ticked, then `wsl --update` and restart Docker Desktop.++### Browser didn't open++Visit+[`http://localhost:3000/cases/INC-RT-001?tab=ledger`](http://localhost:3000/cases/INC-RT-001?tab=ledger)+manually. Default credentials are pre-filled (`[email protected]`); the+investigation is already in flight on the **Ledger** tab.++### `aisoc:demo` is already running++The orchestrator is idempotent — re-running `pnpm aisoc:demo` against+a healthy stack is a no-op. To get a fully clean start:++```bash+pnpm aisoc:demo:down # stop stack + drop volumes+pnpm aisoc:demo # bring it back up + reseed+```++### Anything else++The [troubleshooting page](./operations/troubleshooting) has runbooks+for the most common stack-level failure modes (healthchecks red,+Postgres OOM, Kafka cluster-id drift, …). For installer-specific bugs,+file an issue with the installer's full output —+[github.com/beenuar/AiSOC/issues](https://github.com/beenuar/AiSOC/issues).++## Security notes++- Both installers run as **your user**, not root. They invoke `sudo`+ only for package-manager calls on Linux. macOS Homebrew prompts for+ a password the first time it touches `/opt/homebrew` or `/usr/local`.+- The Linux script does **not** disable SELinux, AppArmor, or your+ firewall. The demo binds only to `127.0.0.1`, so nothing is exposed+ to your LAN by default.+- The Windows script enables WSL2 and starts Docker Desktop. It does+ **not** join AD, change Defender settings, or reconfigure Windows+ Update.+- The Docker images pulled by the demo+ (`ghcr.io/beenuar/aisoc-*`) are signed with [Cosign](https://docs.sigstore.dev/cosign/overview/);+ the [Docker deployment page](./deployment/docker#image-provenance)+ documents the signature verification workflow.+- The demo seeds **synthetic data only**. No real customer data, IOCs,+ or telemetry is shipped with the installer.+- The repo is cloned over HTTPS from `github.com/beenuar/AiSOC` —+ there is no opaque "phone home" URL involved.++## What's next++- [Quick start](./quickstart) — the underlying `pnpm aisoc:demo` flow + full developer stack+- [Architecture](./architecture) — how the services in the demo wire together+- [Connect your first source](./connectors) — point AiSOC at a real EDR / SIEM / cloud+- [Operations: Credentials](./operations/credentials) — credential vault key & rotation+- [Deploy to Kubernetes](./deployment/kubernetes) — production install via Helmdiff --git a/apps/docs/docs/intro.md b/apps/docs/docs/intro.mdindex 25270f548..d308c7bd3 100644--- a/apps/docs/docs/intro.md+++ b/apps/docs/docs/intro.md@@ -12,7 +12,7 @@ public, reproducible eval harness on every PR targeting `main` / `develop`.## Capabilities-- **Click-and-connect cloud connectors** — pick from a 26-connector catalog spanning EDR, SIEM, cloud, IAM, SaaS, VCS, and network sources (CrowdStrike, Splunk, AWS Security Hub, Okta, Microsoft Sentinel, Entra, Azure Activity, Defender XDR, GCP Cloud Audit, GCP SCC, M365, Google Workspace, Cloudflare, GitHub, Tailscale, SentinelOne, Cortex XDR, Duo Security, Wiz, Snyk, Zscaler, Proofpoint, ServiceNow, Jira, 1Password). Fill a schema-driven form, click `Test connection` for a live auth round-trip, and `Save & enable`. Secrets are encrypted at the application layer with a Fernet [`CredentialVault`](./operations/credentials) before they hit Postgres; an in-process APScheduler polls each enabled instance and pushes normalized OCSF events through to the ingest spine. Setup walkthroughs: [docs/connectors](./connectors).+- **Click-and-connect cloud connectors** — pick from a 50-connector catalog spanning EDR, SIEM, cloud, IAM, SaaS, VCS, network, ITSM, vuln, and email-security sources (CrowdStrike, SentinelOne, Cortex XDR, Splunk, Microsoft Sentinel, AWS Security Hub, Defender XDR, GCP Cloud Audit, GCP SCC, M365, Entra ID, Azure Activity, Google Workspace, Okta, Duo Security, Cloudflare, Tailscale, GitHub, Wiz, Snyk, Zscaler, Proofpoint, ServiceNow, Jira, 1Password, and 25 more — see [Architecture](./architecture)). Fill a schema-driven form, click `Test connection` for a live auth round-trip, and `Save & enable`. Secrets are encrypted at the application layer with a Fernet [`CredentialVault`](./operations/credentials) before they hit Postgres; an in-process APScheduler polls each enabled instance and pushes normalized OCSF events through to the ingest spine. Setup walkthroughs: [docs/connectors](./connectors).- **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.@@ -83,6 +83,7 @@ See the full [Architecture](./architecture) page for the detailed service map an### Get started+- [One-click install](./installation) — zero-prerequisite bootstrap for Linux, macOS, and Windows- [Quick Start](./quickstart) — `pnpm aisoc:demo`, under 5 minutes to a live investigation- [Architecture](./architecture) — service map and data flow- [Glossary](./glossary) — security and AiSOC-specific terminology in one place@@ -97,7 +98,7 @@ See the full [Architecture](./architecture) page for the detailed service map an### Connect & extend-- [Connectors](./connectors) — click-and-connect catalog with 26 cloud / SaaS / SIEM / EDR / IAM / VCS / network sources+- [Connectors](./connectors) — click-and-connect catalog with 50 cloud / SaaS / SIEM / EDR / IAM / VCS / network / ITSM / vuln / email-security sources- [MCP Integration](./integrations/mcp) — connect Claude / Cursor / Continue / Cody- [Plugin SDK (Python)](./plugins/python-sdk)- [Plugin SDK (Go)](./plugins/go-sdk)diff --git a/apps/docs/docs/quickstart.md b/apps/docs/docs/quickstart.mdindex 9a0ee2fb9..dffeb3fe5 100644--- a/apps/docs/docs/quickstart.md+++ b/apps/docs/docs/quickstart.md@@ -1,28 +1,40 @@----sidebar_position: 2+sidebar_position: 3---# Quick Start-Two paths to a running AiSOC instance:+Three paths to a running AiSOC instance, in increasing order of how much you+already have installed:+0. **Zero-prerequisite bootstrap** — one shell command from a freshly-imaged+ machine. Installs Docker, Node, pnpm, git, and clones the repo; then runs+ Path A automatically. See [One-click install](./installation).1. **One-shot demo** — `pnpm aisoc:demo` brings up a slim stack from prebuiltGHCR images, seeds canonical demo data, kicks off an investigation, andopens your browser at the live case. Roughly 3-4 minutes on a warm Dockerdaemon.2. **Full development stack** — every microservice (UEBA, Honeytokens, Purple- Team, ClickHouse, OpenSearch, Neo4j, Qdrant, MCP) for hacking on AiSOC- itself.+ Team, ClickHouse, OpenSearch, Neo4j, Qdrant, MCP, osquery TLS server,+ Slack bot) for hacking on AiSOC itself.++This page covers Paths A and B. If you don't have Docker / Node / pnpm yet,+or if you just want a guaranteed-clean environment in one command, start with+[Path 0 (One-click install)](./installation).## Prerequisites-| Tool | Minimum version |-|------|-----------------|-| Docker & Docker Compose | v2.x |-| Node.js | ≥ 20 |-| pnpm | ≥ 8 |-| Python | 3.11+ (only needed for the eval harness and the dev stack) |-| Go | 1.21+ (only needed if you hack on the Go services or plugins) |+| Tool | Minimum version | Required for |+|------|-----------------|--------------|+| Docker & Docker Compose | v2.x | Both paths |+| Node.js | ≥ 20 LTS | Both paths |+| pnpm | ≥ 8 | Both paths |+| Python | 3.11+ | Eval harness, dev stack only |+| Go | 1.25+ | Only if hacking on Go services or plugins |++> If you don't have all of the above, just use the+> [One-click installer](./installation) — it installs every prerequisite+> idempotently for Linux, macOS, and Windows, then runs Path A for you.## Path A — one-shot demodiff --git a/apps/docs/sidebars.ts b/apps/docs/sidebars.tsindex f4d7daabd..470a9baae 100644--- a/apps/docs/sidebars.ts+++ b/apps/docs/sidebars.ts@@ -5,7 +5,7 @@ const sidebars: SidebarsConfig = {{type: "category",label: "Getting Started",- items: ["intro", "quickstart", "architecture", "benchmark"],+ items: ["intro", "installation", "quickstart", "architecture", "benchmark"],},{type: "category",diff --git a/apps/web/src/components/onboarding/StartHero.tsx b/apps/web/src/components/onboarding/StartHero.tsxindex 57e8b1d93..f2f5ee9b9 100644--- a/apps/web/src/components/onboarding/StartHero.tsx+++ b/apps/web/src/components/onboarding/StartHero.tsx@@ -124,7 +124,7 @@ export function StartHero() {Connect first source</span><span className="text-xs leading-relaxed text-gray-300">- Pick from 26 connectors — EDR, SIEM, cloud, IAM. Credentials+ Pick from 50 connectors — EDR, SIEM, cloud, IAM. Credentialsstay encrypted.</span></Link>diff --git a/docs/architecture/SYSTEM_DESIGN.md b/docs/architecture/SYSTEM_DESIGN.mdindex 217122541..a5849ab69 100644--- a/docs/architecture/SYSTEM_DESIGN.md+++ b/docs/architecture/SYSTEM_DESIGN.md@@ -20,7 +20,7 @@ This document describes the end-to-end architecture of the AiSOC platform after┌─────────────────┐ ┌──────────────────────┐│ services/api │ │ services/connectors ││ inbox tokens + │ │ APScheduler poll │- │ HMAC webhooks │ │ 42 connector classes│+ │ HMAC webhooks │ │ 50 connector classes││ CEF / HEC / DNS│ │ push_case + status │└────────┬────────┘ └──────────┬───────────┘│ │@@ -91,12 +91,19 @@ This document describes the end-to-end architecture of the AiSOC platform after| `services/enrichment` | Go 1.21 | Per-IOC TTL-cached enrichment lookups | n/a || `services/fusion` | Python 3.11 | Simhash dedup → correlation → ML scoring → publish fused alerts | Background ML retrain on feedback || `services/api` | Python 3.11 | REST + WS, RBAC, case mgmt, rule engine, graph queries, ITSM webhook inbox, case fan-out | Schema migrations on boot |-| `services/connectors` | Python 3.11 | 42 connector classes, APScheduler poll, `push_case` / `push_status_change` for Jira & ServiceNow | CredentialVault decrypt at poll time |+| `services/connectors` | Python 3.11 | 50 connector classes, APScheduler poll, `push_case` / `push_status_change` for Jira & ServiceNow | CredentialVault decrypt at poll time || `services/agents` | Python 3.11 | LangGraph multi-agent investigation runs | Loads full ATT&CK STIX bundle on boot, optional Qdrant embed || `services/actions` | Python 3.11 | SOAR action execution with blast-radius gating | Approval workflows || `services/threatintel` | Python 3.11 | IOC/actor search API | APScheduler poll loop for TAXII/MISP/OTX/KEV |-| `services/realtime` | Node 20 | WebSocket fan-out for the web console | n/a |-| `apps/web` | Next.js 14 | Server components + SWR | n/a |+| `services/ueba` | Python 3.11 | Welford / Z-score user-behavior analytics, peer-group baselines | Background baseline rebuild |+| `services/honeytokens` | Python 3.11 | Deception platform: mints AWS keys, doc lures, DNS canaries; emits `honeytoken.tripped` | n/a |+| `services/purple-team` | Python 3.11 | Adversary emulation orchestrator (ATT&CK technique runner) | Detection-coverage scorer |+| `services/osquery-tls` | Go 1.25 | TLS server for osquery enrol / config / distributed / log endpoints | Ships normalised host events into `services/ingest` |+| `services/osquery-extensions` | Go 1.25 | Out-of-band osquery extensions (custom virtual tables + decorators) | Loaded by `osquery-tls`-managed agents |+| `services/slack-bot` | Python 3.11 | ChatOps surface: posts approval prompts, `/aisoc` slash command | Verifies inbound interactions with HMAC-signed Slack request signatures |+| `services/realtime` | Node 20 | WebSocket fan-out + Web Push for the web console + Responder PWA | n/a |+| `services/mcp` | Node 20 (TypeScript) | Model Context Protocol stdio server, 11 tools for IDE-side agents (Claude / Cursor / Continue / Cody) | n/a |+| `apps/web` | Next.js 14 | Server components + SWR + Responder PWA route group + benchmark scoreboard | n/a |---@@ -307,7 +314,7 @@ The following subsystems were added on top of the v2 design described above. The### 12.1 Connector Platform (`services/connectors`)-A first-class, in-process polling tier with 42 registered connector classes spanning seven categories — `edr`, `siem`, `cloud`, `iam`, `saas`, `vcs`, `network`. Every connector subclasses `BaseConnector` and declares:+A first-class, in-process polling tier with **50 registered connector classes** spanning seven categories — `edr`, `siem`, `cloud`, `iam`, `saas`, `vcs`, `network`. Every connector subclasses `BaseConnector` and declares:* `schema()` — self-describing `ConnectorSchema(name, label, category, fields, oauth, default_poll_interval_seconds)` consumed by the web console for the connect form.* `capabilities()` — tuple of `Capability` enum values (`PULL_ALERTS`, `PUSH_CASE`, `PUSH_STATUS`, `FEDERATED_SEARCH`, …) that the orchestrator inspects at runtime.@@ -370,3 +377,61 @@ Connectors are also the unit of distribution. Every connector ships a marketplac→ [Plugin SDK (Python)](../../apps/docs/docs/plugins/python-sdk.md)→ [Plugin SDK (Go)](../../apps/docs/docs/plugins/go-sdk.md)+---++## 13. v2.2 Additions (Endpoint Telemetry, ChatOps, Responder PWA, MCP, One-Click Install)++The v2.2 increment is scoped to first-mile ergonomics — getting events into AiSOC from every realistic source, getting analysts out of the console for routine approvals, and getting the entire stack onto a freshly-imaged laptop in one command.++### 13.1 Endpoint Telemetry (osquery TLS server + extensions)++`services/osquery-tls` is a Go TLS server that implements the four osquery endpoints — `/enroll`, `/config`, `/distributed/read`, `/distributed/write`, `/log` — so that any host running osquery can be enrolled into AiSOC with a single enrol secret. Result rows are normalised into OCSF and shipped to `services/ingest`'s `/v1/ingest/batch` endpoint, sharing the same KEV correlator and ATT&CK tagger described in §1.++`services/osquery-extensions` registers custom virtual tables and decorators that the standard osquery distribution doesn't ship — for example, AiSOC-specific process-lineage and EDR-correlated host metadata — and is loaded out-of-band by agents managed by `osquery-tls`. The split (server vs extensions) keeps the TLS server's surface area minimal and lets the extensions iterate without touching the enrol path.++This makes AiSOC self-sufficient for endpoint telemetry: a tenant who doesn't own a CrowdStrike or SentinelOne licence can still get host events into the platform without standing up a separate fleet manager.++### 13.2 ChatOps (`services/slack-bot`)++A first-class Slack surface that closes the loop on the action-gating layer described in §8. When `services/actions` requires approval for a high-blast-radius action, the slack-bot posts an interactive message into the configured channel; an authorised approver clicks the button; Slack posts back to the bot, which verifies the request with an HMAC-signed Slack signature and forwards the approval to the actions service. The bot also exposes a `/aisoc` slash command for ad-hoc queries (case lookup, ledger snippet, IOC reputation).++Crucially, **AiSOC remains the source of truth** — Slack is a projection. If the bot is offline, approvals fall back to the web console with no state divergence.++### 13.3 Responder PWA++A route group inside `apps/web` (Next.js 14) registers as an installable PWA targeted at on-call responders. It connects to `services/realtime` for WebSocket case updates and accepts Web Push notifications from the same service, so a responder can be paged on their phone with a tappable approve / deny / escalate prompt without opening the desktop console. The full set of console actions is available offline-tolerant: actions queued while disconnected are replayed when the WebSocket reconnects, with optimistic local state and server-side conflict resolution.++### 13.4 Model Context Protocol Server (`services/mcp`)++A TypeScript stdio MCP server that exposes 11 AiSOC tools (case search, alert detail, IOC pivot, ledger query, detection-as-code lookup, …) to IDE-side AI agents — Claude Code, Cursor, Continue, Cody. This makes AiSOC a first-class context source for any analyst writing detections, runbooks, or post-mortems in their editor. The MCP server is read-only by default; write tools require an explicit per-tool capability token.++### 13.5 Investigation Ledger and Ambient Copilot++Every prompt, tool invocation, and agent step inside `services/agents` is persisted into the **investigation ledger** — a per-case, append-only log that is replayable end-to-end. The ledger is the substrate for the Ambient Copilot in `apps/web`: a sidebar that shows what the agent is doing right now, why it picked the next tool, and what the analyst can do to redirect it. Combined with the LangGraph DAG in §7, this gives AiSOC a debugging surface for AI-driven investigations that mirrors the kind of structured logging analysts already expect from deterministic systems.++### 13.6 One-Click Install Pipeline++Two cross-platform bootstrap installers live at the repo root:++* `install.sh` — Linux + macOS bash; supports `apt`, `dnf`, `pacman`, `zypper`, `apk`, and `brew`. Idempotent; safe to re-run.+* `install.ps1` — Windows PowerShell; uses `winget` and handles WSL2 enablement for Docker Desktop.++Both detect the OS, install missing prerequisites (git, Docker Engine + Compose v2 / Docker Desktop, Node.js 20 LTS, pnpm 8+ via `corepack`), clone the repo into `~/aisoc`, then invoke `pnpm aisoc:demo` to bring up the slim demo stack from the published GHCR images and open the browser at the seeded LockBit case. Companion uninstallers (`uninstall.sh`, `uninstall.ps1`) provide graduated cleanup — stop stack only, drop volumes, remove pulled images, delete `node_modules`, delete the repo clone — gated behind interactive confirmation prompts unless `--all --yes` is supplied.++→ [One-click install (Docusaurus)](../../apps/docs/docs/installation.md)+→ [Quick install reference](../QUICK_INSTALL.md)++### 13.7 Updated Service Inventory (post v2.2)++The full set of services in `services/` after v2.2 is:++```+actions/ agents/ api/ connectors/+demo-producer/ enrichment/ fusion/ honeytokens/+ingest/ mcp/ osquery-extensions/ osquery-tls/+purple-team/ realtime/ slack-bot/ threatintel/+ueba/+```++17 services in total. The `mcp/`, `osquery-extensions/`, `osquery-tls/`, and `slack-bot/` directories are the v2.2 additions; the rest are described in §2 and §12 above.+