Skip to content

armgit / AiSOC

Public Imported from GitHub
0

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.

feat(cli): add `npx aisoc` wedge CLI — 60-second offline triage (v8 W1)

Beenu Arora1b03d927e82d
diff --git a/.github/workflows/aisoc-cli.yml b/.github/workflows/aisoc-cli.yml
new file mode 100644
index 000000000..a0449c5e1
--- /dev/null
+++ b/.github/workflows/aisoc-cli.yml
@@ -0,0 +1,94 @@
+name: aisoc-cli · build, test, demo e2e
+
+# Gates the `npx aisoc` wedge CLI (packages/aisoc-lite, published to npm as
+# `aisoc`). The demo path in the README top fold — `npx aisoc triage --demo` —
+# is run end-to-end here on a clean runner so a red badge means the wow is
+# broken.
+
+on:
+ pull_request:
+ branches: [main, develop]
+ paths:
+ - 'packages/aisoc-lite/**'
+ - '.github/workflows/aisoc-cli.yml'
+ push:
+ branches: [main]
+ paths:
+ - 'packages/aisoc-lite/**'
+ - '.github/workflows/aisoc-cli.yml'
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: aisoc-cli-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ build-test:
+ name: build · typecheck · unit tests
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
+ - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
+ with:
+ node-version: '22'
+ cache: pnpm
+ cache-dependency-path: pnpm-lock.yaml
+ - run: pnpm install --frozen-lockfile
+ - name: Fixture is up to date (regenerate and diff)
+ run: |
+ node packages/aisoc-lite/scripts/gen-fixtures.mjs
+ git diff --exit-code packages/aisoc-lite/src/fixtures/demo-alerts.json \
+ || (echo "::error::demo fixture is stale — run 'pnpm --filter aisoc gen:fixtures' and commit"; exit 1)
+ - run: pnpm --filter aisoc typecheck
+ - run: pnpm --filter aisoc test
+ - run: pnpm --filter aisoc build
+
+ demo-e2e:
+ name: demo cold-run (${{ matrix.os }})
+ runs-on: ${{ matrix.os }}
+ needs: build-test
+ timeout-minutes: 10
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest]
+ steps:
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
+ - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
+ with:
+ node-version: '22'
+ cache: pnpm
+ cache-dependency-path: pnpm-lock.yaml
+ - run: pnpm install --frozen-lockfile
+ - run: pnpm --filter aisoc build
+ - name: triage --demo finishes fast with the documented headline
+ run: |
+ set -euo pipefail
+ cd packages/aisoc-lite
+ start=$(date +%s)
+ out=$(node dist/cli.js triage --demo --no-telemetry)
+ end=$(date +%s)
+ echo "$out"
+ echo "elapsed: $((end - start))s"
+ echo "$out" | grep -q "12 TP, 171 FP suppressed (85.5% noise), 17 need review" \
+ || (echo "::error::demo headline drifted"; exit 1)
+ test $((end - start)) -lt 60 || (echo "::error::demo took >= 60s"; exit 1)
+ - name: JSON output is well-formed
+ run: |
+ set -euo pipefail
+ cd packages/aisoc-lite
+ node dist/cli.js triage --demo --json --no-telemetry \
+ | node -e "const d=JSON.parse(require('fs').readFileSync(0));if(d.summary.total!==200)process.exit(1)"
+ - name: translate produces every dialect deterministically (no LLM key)
+ run: |
+ set -euo pipefail
+ cd packages/aisoc-lite
+ echo 'CommandLine|contains: mimikatz' \
+ | node dist/cli.js translate --from sigma --to spl,kql,esql --json \
+ | node -e "const d=JSON.parse(require('fs').readFileSync(0));if(d.results.length!==3)process.exit(1)"
diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml
new file mode 100644
index 000000000..2dcfdd655
--- /dev/null
+++ b/.github/workflows/publish-cli.yml
@@ -0,0 +1,83 @@
+name: aisoc-cli · publish to npm
+
+# Publishes the `aisoc` wedge CLI to npm with build provenance
+# (https://docs.npmjs.com/generating-provenance-statements). Triggered by a
+# `cli-v*` tag so the CLI can release independently of the service images (which
+# ship on `v*` via release.yml).
+#
+# Requires the `NPM_TOKEN` repository secret (an npm automation token for the
+# `aisoc` package). Until that is configured the job no-ops with a clear notice
+# rather than failing — we never fake a publish.
+
+on:
+ push:
+ tags:
+ - 'cli-v*'
+ workflow_dispatch:
+ inputs:
+ dry_run:
+ description: 'Pack only, do not publish'
+ type: boolean
+ default: true
+
+permissions:
+ contents: read
+ id-token: write # required for npm provenance
+
+concurrency:
+ group: publish-cli-${{ github.ref }}
+ cancel-in-progress: false
+
+jobs:
+ publish:
+ name: build + publish (provenance)
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ environment: npm-publish
+ steps:
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
+ - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
+ with:
+ node-version: '22'
+ registry-url: 'https://registry.npmjs.org'
+ cache: pnpm
+ cache-dependency-path: pnpm-lock.yaml
+
+ - run: pnpm install --frozen-lockfile
+
+ - name: Verify tag matches package.json version
+ if: startsWith(github.ref, 'refs/tags/cli-v')
+ run: |
+ set -euo pipefail
+ tag="${GITHUB_REF_NAME#cli-v}"
+ pkg=$(node -p "require('./packages/aisoc-lite/package.json').version")
+ echo "tag=$tag pkg=$pkg"
+ test "$tag" = "$pkg" || (echo "::error::tag cli-v$tag != package.json $pkg"; exit 1)
+
+ - name: Build + test
+ run: |
+ pnpm --filter aisoc test
+ pnpm --filter aisoc build
+
+ - name: Pack (always) for artifact inspection
+ working-directory: packages/aisoc-lite
+ run: npm pack
+
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
+ with:
+ name: aisoc-npm-tarball
+ path: packages/aisoc-lite/*.tgz
+
+ - name: Publish to npm with provenance
+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/cli-v') }}
+ working-directory: packages/aisoc-lite
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ run: |
+ set -euo pipefail
+ if [ -z "${NODE_AUTH_TOKEN:-}" ]; then
+ echo "::notice::NPM_TOKEN not configured — skipping publish (tarball uploaded as an artifact). Configure the secret to enable automated publish."
+ exit 0
+ fi
+ npm publish --provenance --access public
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16df1859b..bbe3030e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Added
+
+- **v8 W1 — `npx aisoc` wedge CLI (the 60-second wow).** New `packages/aisoc-lite/` (TypeScript, published to npm as `aisoc`, one runtime dependency): a zero-install front door that triages a batch of alerts to verdicts in under a minute with **no credentials and no LLM key**. `npx aisoc triage --demo` runs a bundled, fully-deterministic 200-alert fixture in ~50 ms and prints a terminal verdict table plus the copy-pasteable headline "AiSOC triaged 200 alerts: 12 TP, 171 FP suppressed (85.5% noise), 17 need review". The verdict engine (`src/verdict/stages.ts`) is a faithful port of the production triage scorer `services/agents/app/confidence/scoring.py` — the weight stack and band thresholds (≥.80 TP, ≥.60 likely-TP, ≥.40 review, else benign; clamp [0.05, 0.95]) are pinned by a parity test so a CLI verdict lands where the full stack would. `--file alerts.jsonl` triages a local export (Splunk / Sentinel / Elastic ECS / CrowdStrike field spellings auto-detected); `--llm` refines only the ambiguous `needs_review` middle using the user's **own** `ANTHROPIC_API_KEY`/`OPENAI_API_KEY` called directly (never proxied); `--share` writes a redacted, aggregate-only report card (Markdown + 1200×630 SVG, no alert content); `translate` is a CLI front for the deterministic detection-rule field-map translator (Sigma/SPL/KQL/ES\|QL/YARA-L2/UDM); `up` boots the full demo stack from a pinned Compose bundle. Telemetry is strictly opt-in (`--telemetry` / `AISOC_TELEMETRY=1`, default off), aggregate counts only, documented in `packages/aisoc-lite/TELEMETRY.md` and asserted content-free by a unit test. 22 vitest tests. New CI: `aisoc-cli.yml` (build + typecheck + tests + a cross-platform cold `triage --demo` e2e asserting the headline and a <60 s bound + a fixture-staleness diff gate) and `publish-cli.yml` (npm publish with build provenance on a `cli-v*` tag; no-ops safely until `NPM_TOKEN` is configured — we never fake a publish). README top fold rewritten around the one-liner (guarded "lands on npm with the v8.0 launch; today it builds from `packages/aisoc-lite/`").
+
## [7.6.0] — 2026-07-13
**Fully-Operational AI-SOC release.** Completes the A1–E1 roadmap that wired the three end-to-end paths the reality audit found unwired — the event lake is now populated, the executable detection corpus fires on the live stream, every fused alert is auto-triaged (copilot default), and approved SOAR actions execute against real connector credentials under an autonomy policy — and adds the competitive-parity differentiators (unified Data Explorer, live effective-permissions, fuse-time attack chains, autopilot/copilot scorecard) plus nine new connectors and AI/LLM-usage governance. The claim-to-gate matrix reaches **33 GATED / 7 PARTIAL / 0 NO GATE**: every product claim is backed by a failing test, and the ratchet (`MAX_NO_GATE=0`) forbids regression.
diff --git a/README.md b/README.md
index 6d8f60911..4473babb5 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,14 @@ An open-source, self-hostable AI SOC. The agent's prompts, tool calls, and ratio
## Try AiSOC in 60 seconds
-Four fastest paths to a working AiSOC investigation. Pick whichever matches what you already have on your machine:
+One command — no clone, no Docker, no keys (`npx aisoc` lands on npm with the v8.0 launch; today it builds from [`packages/aisoc-lite/`](packages/aisoc-lite/)):
+
+```bash
+npx aisoc triage --demo
+# ✓ AiSOC triaged 200 alerts: 12 TP, 171 FP suppressed (85.5% noise), 17 need review — in 0.1s
+```
+
+The wedge CLI scores a batch of alerts to verdicts (escalate / review / suppress) with a deterministic engine ported from the production triage scorer — zero LLM key required. Or pick whichever path matches what you already have on your machine:
| If you have… | Run this | What you get |
|---------------------------------------|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
diff --git a/packages/aisoc-lite/README.md b/packages/aisoc-lite/README.md
new file mode 100644
index 000000000..9cc1699d0
--- /dev/null
+++ b/packages/aisoc-lite/README.md
@@ -0,0 +1,87 @@
+# `aisoc` — the 60-second SOC wedge
+
+Triage a batch of security alerts to verdicts — **true positive**, **needs review**, or **suppress as noise** — in seconds, offline, with zero credentials.
+
+```bash
+npx aisoc triage --demo
+```
+
+```
+✓ AiSOC triaged 200 alerts: 12 TP, 171 FP suppressed (85.5% noise), 17 need review — in 0.1s [deterministic · no LLM]
+```
+
+This is the zero-install front door to [AiSOC](https://github.com/beenuar/AiSOC), the open-source, self-hostable AI SOC. The full Docker stack is a ~3.5-minute commitment; this CLI gets you a verdict in under a minute.
+
+## Why it's trustworthy
+
+- **Deterministic by default.** The verdict engine is a faithful port of AiSOC's production triage scorer (`services/agents/app/confidence/scoring.py`). No LLM key required; identical input always produces identical output.
+- **BYO-key, never proxied.** Pass `--llm` and your own `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` to refine the ambiguous middle. The key is read from your environment and used to call the provider directly — it never touches an AiSOC server.
+- **Telemetry is opt-in and aggregate-only.** Off by default. See [TELEMETRY.md](./TELEMETRY.md).
+- **Tiny dependency surface.** One runtime dependency (`picocolors`). It's a security tool; every dependency is a liability.
+
+## Commands
+
+| Command | What it does |
+|---|---|
+| `aisoc triage --demo` | Zero-credential, deterministic 200-alert demo. Finishes in seconds. |
+| `aisoc triage --file alerts.jsonl` | Triage a local JSONL / JSON alert export (Splunk, Sentinel, Elastic ECS, CrowdStrike shapes auto-detected). |
+| `aisoc triage --attention-only --share` | Hide suppressed noise; write a postable report card (Markdown + SVG). |
+| `aisoc translate <rule> --from sigma --to spl,kql` | Translate a detection rule across Sigma / SPL / KQL / ES\|QL / YARA-L2 / UDM. |
+| `aisoc up` | Boot the full local demo stack from a pinned Compose bundle (needs Docker). |
+
+### Triage options
+
+```
+--demo Zero-credential deterministic demo (200 alerts)
+--file <path> Triage a local JSONL / JSON alert export
+--source <name> demo | jsonl | splunk | sentinel | elastic | crowdstrike
+--limit <n> Cap the number of alerts triaged
+--max-rows <n> Cap table rows printed (default 20; escalations first)
+--attention-only Show only escalate + review (hide suppressed noise)
+--llm Refine the ambiguous middle with YOUR own LLM key (never proxied)
+--json Machine-readable JSON output
+--share [path] Write a redacted report card (Markdown + SVG)
+--telemetry Opt IN to aggregate-only telemetry (default OFF)
+--no-telemetry Force telemetry off
+```
+
+## Feeding your own alerts
+
+Export your alerts to newline-delimited JSON (one object per line) or a JSON array. Common field spellings from Splunk, Microsoft Sentinel, Elastic ECS, and CrowdStrike are auto-detected:
+
+```bash
+aisoc triage --file alerts.jsonl --attention-only
+```
+
+An alert record can be as simple as:
+
+```json
+{"id": "A-1", "title": "PowerShell spawned by Word", "severity": "high", "risk_score": 0.7, "techniques": ["T1059.001"], "src_ip": "10.0.0.5"}
+```
+
+## Verdict bands
+
+The deterministic scorer maps each alert to a confidence in `[0.05, 0.95]` and a band:
+
+| Confidence | Verdict | Recommendation |
+|---|---|---|
+| ≥ 0.80 | `true_positive` | escalate |
+| ≥ 0.60 | `likely_true_positive` | escalate |
+| ≥ 0.40 | `needs_review` | review |
+| < 0.40 | `likely_benign` | suppress |
+
+These bands and the underlying weight stack are pinned by tests to match the AiSOC server, so a CLI verdict lands where the full stack would put it at triage.
+
+## Use it as a library
+
+```ts
+import { triageBatch, loadJsonl } from "aisoc";
+
+const alerts = await loadJsonl("alerts.jsonl");
+const { summary, verdicts } = triageBatch(alerts);
+console.log(summary.headline);
+```
+
+## License
+
+MIT — part of the [AiSOC](https://github.com/beenuar/AiSOC) project.
diff --git a/packages/aisoc-lite/TELEMETRY.md b/packages/aisoc-lite/TELEMETRY.md
new file mode 100644
index 000000000..6a1166255
--- /dev/null
+++ b/packages/aisoc-lite/TELEMETRY.md
@@ -0,0 +1,55 @@
+# Telemetry in the `aisoc` CLI
+
+**Telemetry is OFF by default. Nothing leaves your machine unless you explicitly turn it on.**
+
+We built this the way we'd want a security tool built for us: the default is silence, the opt-in is a single flag, and what we collect is documented to the field.
+
+## How to turn it on (and off)
+
+| Action | Result |
+|---|---|
+| _(do nothing)_ | **Off.** No network calls for telemetry. |
+| `aisoc triage --telemetry` | On for that run. |
+| `AISOC_TELEMETRY=1` | On for the session. |
+| `aisoc triage --no-telemetry` | **Forced off** — beats every other setting. |
+| `AISOC_TELEMETRY=0` | Off for the session. |
+
+Precedence (highest first): `--no-telemetry` → `--telemetry` → `AISOC_TELEMETRY=0` → `AISOC_TELEMETRY=1` → default off.
+
+## Exactly what is sent (when enabled)
+
+Only aggregate counts and run metadata. This is the entire payload — there is no other field:
+
+```json
+{
+ "event": "triage",
+ "version": "0.1.0",
+ "source": "demo",
+ "total": 200,
+ "truePositive": 12,
+ "needsReview": 17,
+ "suppressed": 171,
+ "deterministic": true,
+ "elapsedMs": 63
+}
+```
+
+## What is **never** collected
+
+- Alert titles, descriptions, or any raw event text
+- IOCs (IPs, domains, hashes, URLs)
+- Hostnames, usernames, or any identity
+- File paths, file names, or file contents
+- Your API keys or any credentials
+- Detection rules you translate
+- Any per-alert data whatsoever
+
+The payload builder is unit-tested (`src/telemetry.test.ts`) to assert that no alert content can appear in it.
+
+## Where it goes
+
+If enabled, the payload is POSTed to `https://telemetry.tryaisoc.com/v1/cli` (override with `AISOC_TELEMETRY_ENDPOINT`). The request has a 2-second timeout and can never fail or slow down the CLI — errors are silently ignored.
+
+## Why we ask at all
+
+Aggregate run counts and verdict distributions tell us whether the tool is useful and where the verdict bands need tuning. That's it. If you'd rather not, the default already has you covered.
diff --git a/packages/aisoc-lite/package.json b/packages/aisoc-lite/package.json
new file mode 100644
index 000000000..f9c77ad5c
--- /dev/null
+++ b/packages/aisoc-lite/package.json
@@ -0,0 +1,69 @@
+{
+ "name": "aisoc",
+ "version": "0.1.0",
+ "description": "AiSOC wedge CLI — triage a batch of security alerts to verdicts in under 60 seconds, offline and deterministic. Part of the open-source AiSOC project.",
+ "keywords": [
+ "soc",
+ "security",
+ "siem",
+ "alert-triage",
+ "detection-engineering",
+ "sigma",
+ "incident-response",
+ "aisoc",
+ "cli"
+ ],
+ "license": "MIT",
+ "type": "module",
+ "bin": {
+ "aisoc": "dist/cli.js"
+ },
+ "main": "./dist/index.js",
+ "module": "./dist/index.js",
+ "types": "./dist/index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./dist/index.d.ts",
+ "import": "./dist/index.js"
+ }
+ },
+ "files": [
+ "dist",
+ "README.md",
+ "TELEMETRY.md"
+ ],
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "scripts": {
+ "gen:fixtures": "node scripts/gen-fixtures.mjs",
+ "build": "tsup",
+ "dev": "tsup --watch",
+ "typecheck": "tsc --noEmit",
+ "test": "vitest run",
+ "test:watch": "vitest",
+ "smoke": "node dist/cli.js triage --demo --no-telemetry"
+ },
+ "dependencies": {
+ "picocolors": "^1.1.1"
+ },
+ "devDependencies": {
+ "@types/node": "^25.9.2",
+ "tsup": "^8.3.0",
+ "typescript": "^6.0.3",
+ "vitest": "^4.1.10"
+ },
+ "publishConfig": {
+ "access": "public",
+ "provenance": true
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/beenuar/AiSOC.git",
+ "directory": "packages/aisoc-lite"
+ },
+ "homepage": "https://github.com/beenuar/AiSOC/tree/main/packages/aisoc-lite#readme",
+ "bugs": {
+ "url": "https://github.com/beenuar/AiSOC/issues"
+ }
+}
diff --git a/packages/aisoc-lite/scripts/gen-fixtures.mjs b/packages/aisoc-lite/scripts/gen-fixtures.mjs
new file mode 100644
index 000000000..6cb4d1c31
--- /dev/null
+++ b/packages/aisoc-lite/scripts/gen-fixtures.mjs
@@ -0,0 +1,191 @@
+#!/usr/bin/env node
+/**
+ * Deterministic demo-alert fixture generator for `aisoc triage --demo`.
+ *
+ * Produces exactly 200 alerts with a realistic SOC noise distribution tuned so
+ * the headline lands at "12 TP, 171 FP suppressed (95.5% noise), 17 need
+ * review" — the numbers used in the README top fold and the launch materials.
+ *
+ * Determinism: a seeded mulberry32 PRNG. Re-running this script byte-for-byte
+ * reproduces `src/fixtures/demo-alerts.json`. The `--demo` path must never
+ * depend on wall-clock time or network, so every field is derived from the
+ * seed.
+ *
+ * Run: `node scripts/gen-fixtures.mjs` (or `pnpm gen:fixtures`).
+ */
+
+import { writeFileSync, mkdirSync } from "node:fs";
+import { fileURLToPath } from "node:url";
+import { dirname, join } from "node:path";
+
+const __dirname = dirname(fileURLToPath(import.meta.url));
+const OUT = join(__dirname, "..", "src", "fixtures", "demo-alerts.json");
+
+function mulberry32(seed) {
+ let a = seed >>> 0;
+ return function () {
+ a |= 0;
+ a = (a + 0x6d2b79f5) | 0;
+ let t = Math.imul(a ^ (a >>> 15), 1 | a);
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
+ };
+}
+
+const rng = mulberry32(0x415_50c); // "AiSOC" flavored fixed seed
+const pick = (arr) => arr[Math.floor(rng() * arr.length)];
+const chance = (p) => rng() < p;
+const ipOctet = () => Math.floor(rng() * 254) + 1;
+const rndIp = () => `${ipOctet()}.${ipOctet()}.${ipOctet()}.${ipOctet()}`;
+const hex = (n) => Array.from({ length: n }, () => "0123456789abcdef"[Math.floor(rng() * 16)]).join("");
+
+const SOURCES = ["splunk", "sentinel", "elastic", "crowdstrike", "guardduty", "okta", "m365"];
+const HOSTS = ["WIN-FIN-DB01", "web-prod-07", "jump-01", "hr-laptop-22", "k8s-node-14", "mail-gw-02", "dev-box-09"];
+const USERS = ["j.doe", "svc_backup", "a.patel", "root", "admin", "s.kim", "contractor_31"];
+
+// ── Benign noise templates (85.5% → 171 alerts): low risk, no keywords ───────
+const BENIGN = [
+ { t: "Scheduled backup job completed", raw: "veeam backup finished nominal, 0 errors" },
+ { t: "DNS query to CDN endpoint", raw: "resolved cdn.jsdelivr.net for asset fetch" },
+ { t: "Successful VPN login from known device", raw: "user connected from managed laptop, mfa satisfied" },
+ { t: "Windows Defender signature update", raw: "definitions updated to latest, routine" },
+ { t: "TLS certificate renewal", raw: "acme renewed cert for internal service" },
+ { t: "Package manager fetched dependency", raw: "npm install pulled cached tarball" },
+ { t: "Kubernetes liveness probe restart", raw: "pod restarted after failed healthcheck, self-healed" },
+ { t: "Outbound SMTP to mail relay", raw: "newsletter batch sent via approved relay" },
+ { t: "User password change (self-service)", raw: "password rotated via portal, policy compliant" },
+ { t: "S3 bucket read from same account", raw: "internal analytics job read logs bucket" },
+ { t: "Antivirus quarantine of EICAR test", raw: "eicar test file quarantined during av validation" },
+ { t: "Firewall allowed established connection", raw: "return traffic on established session" },
+];
+
+// ── Review-band templates (8.5% → 17 alerts): medium risk, one weak signal ───
+// No critical/high keywords (see scoring.py sets); the risk score alone plus at
+// most one small IOC/host bump keeps these inside the needs_review band
+// [0.40, 0.60). Titles/raws are deliberately keyword-free.
+const REVIEW = [
+ { t: "Unusual login hour for user", raw: "sign-in at 03:12 local, first time this quarter" },
+ { t: "New device enrolled to identity provider", raw: "unrecognized device added to identity provider" },
+ { t: "Elevated process spawned by office app", raw: "winword launched a child interpreter, no known template" },
+ { t: "Outbound connection to newly-seen domain", raw: "first-seen destination contacted by workstation" },
+ { t: "Several failed sign-ins then success", raw: "5 failures then a success, possible fat-finger" },
+ { t: "Large file read from file share", raw: "user read 400 files from finance share in 2 minutes" },
+];
+
+// ── True-positive templates (6% → 12 alerts): critical keyword + risk + IOCs ─
+const MALICIOUS = [
+ {
+ t: "Ransomware canary files encrypted on host",
+ raw: "mass file rename to .lockbit extension, ransomware note dropped, shadow copies deleted",
+ techniques: ["T1486", "T1490"],
+ risk: 0.94,
+ },
+ {
+ t: "Lateral movement via SMB with dumped credentials",
+ raw: "credential dump observed, lateral movement to 3 hosts using mimikatz-harvested hashes",
+ techniques: ["T1021.002", "T1003.001", "T1550.002"],
+ risk: 0.9,
+ },
+ {
+ t: "Cobalt Strike beacon C2 detected",
+ raw: "cobalt strike beacon calling home to c2 over https jitter pattern",
+ techniques: ["T1071.001", "T1573"],
+ risk: 0.92,
+ },
+ {
+ t: "Data exfiltration to external host",
+ raw: "exfiltration of 12GB to unknown external ip over dns tunneling",
+ techniques: ["T1048", "T1071.004"],
+ risk: 0.88,
+ },
+ {
+ t: "Suspected supply chain backdoor in build",
+ raw: "supply chain: unexpected backdoor payload injected into ci artifact",
+ techniques: ["T1195.002"],
+ risk: 0.9,
+ },
+];
+
+const alerts = [];
+let n = 0;
+
+function push(a) {
+ n += 1;
+ alerts.push({ id: `DEMO-${String(n).padStart(4, "0")}`, ...a });
+}
+
+// 171 benign
+for (let i = 0; i < 171; i++) {
+ const tpl = pick(BENIGN);
+ push({
+ title: tpl.t,
+ source: pick(SOURCES),
+ severity: chance(0.2) ? "low" : "info",
+ riskScore: Number((rng() * 0.15).toFixed(2)),
+ raw: tpl.raw,
+ // Occasionally a benign alert carries a src IP; still below the review band.
+ ...(chance(0.25) ? { iocs: { srcIp: rndIp() } } : {}),
+ });
+}
+
+// 17 review — risk in [0.72, 0.78] → weight [0.432, 0.468]; at most +0.10 from
+// one host + one IOC keeps the total inside [0.40, 0.60).
+for (let i = 0; i < 17; i++) {
+ const tpl = pick(REVIEW);
+ push({
+ title: tpl.t,
+ source: pick(SOURCES),
+ severity: "medium",
+ riskScore: Number((0.72 + rng() * 0.06).toFixed(2)),
+ hostname: chance(0.5) ? pick(HOSTS) : undefined,
+ username: pick(USERS),
+ raw: tpl.raw,
+ ...(chance(0.5) ? { iocs: { srcIp: rndIp() } } : {}),
+ });
+}
+
+// 12 true-positive
+for (let i = 0; i < 12; i++) {
+ const tpl = MALICIOUS[i % MALICIOUS.length];
+ push({
+ title: tpl.t,
+ source: pick(SOURCES),
+ severity: "critical",
+ riskScore: Number((tpl.risk + rng() * 0.04).toFixed(2)),
+ hostname: pick(HOSTS),
+ username: pick(USERS),
+ techniques: tpl.techniques,
+ raw: tpl.raw,
+ iocs: {
+ srcIp: rndIp(),
+ dstIp: rndIp(),
+ fileHash: hex(64),
+ domain: chance(0.6) ? `${hex(8)}.badexample.test` : undefined,
+ },
+ });
+}
+
+// Deterministic shuffle (Fisher–Yates over the same PRNG) so verdicts aren't
+// pre-sorted by band in the raw fixture — the engine sorts at render time.
+for (let i = alerts.length - 1; i > 0; i--) {
+ const j = Math.floor(rng() * (i + 1));
+ [alerts[i], alerts[j]] = [alerts[j], alerts[i]];
+}
+
+mkdirSync(dirname(OUT), { recursive: true });
+writeFileSync(
+ OUT,
+ JSON.stringify(
+ {
+ _comment:
+ "Deterministic demo fixture for `aisoc triage --demo`. Generated by scripts/gen-fixtures.mjs (seeded). Do not edit by hand; run `pnpm gen:fixtures`.",
+ generatedBy: "scripts/gen-fixtures.mjs",
+ count: alerts.length,
+ alerts,
+ },
+ null,
+ 2,
+ ) + "\n",
+);
+
+console.log(`Wrote ${alerts.length} demo alerts → ${OUT}`);
diff --git a/packages/aisoc-lite/src/cli.ts b/packages/aisoc-lite/src/cli.ts
new file mode 100644
index 000000000..f77560603
--- /dev/null
+++ b/packages/aisoc-lite/src/cli.ts
@@ -0,0 +1,160 @@
+#!/usr/bin/env node
+/**
+ * `aisoc` — the wedge CLI.
+ *
+ * A tiny, dependency-light argument parser (only picocolors at runtime) keeps
+ * `npx aisoc` cold-start fast and the supply-chain surface small — this is a
+ * security tool, so every dependency is a liability.
+ */
+
+import pc from "picocolors";
+import { runTriage, type TriageFlags } from "./commands/triage.js";
+import { runTranslate, type TranslateFlags } from "./commands/translate.js";
+import { runUp, type UpFlags } from "./commands/up.js";
+import { VERSION } from "./version.js";
+
+interface Parsed {
+ command: string | undefined;
+ positionals: string[];
+ flags: Record<string, string | boolean>;
+}
+
+function parseArgs(argv: string[]): Parsed {
+ const [command, ...rest] = argv;
+ const positionals: string[] = [];
+ const flags: Record<string, string | boolean> = {};
+ for (let i = 0; i < rest.length; i++) {
+ const arg = rest[i]!;
+ if (arg.startsWith("--")) {
+ const key = arg.slice(2);
+ const next = rest[i + 1];
+ if (next !== undefined && !next.startsWith("--")) {
+ flags[key] = next;
+ i++;
+ } else {
+ flags[key] = true;
+ }
+ } else {
+ positionals.push(arg);
+ }
+ }
+ return { command, positionals, flags };
+}
+
+function toBool(v: string | boolean | undefined): boolean | undefined {
+ if (v === undefined) return undefined;
+ if (typeof v === "boolean") return v;
+ return v !== "false" && v !== "0";
+}
+
+function toNum(v: string | boolean | undefined): number | undefined {
+ if (typeof v !== "string") return undefined;
+ const n = Number(v);
+ return Number.isNaN(n) ? undefined : n;
+}
+
+const HELP = `${pc.bold("aisoc")} — triage security alerts to verdicts in seconds. ${pc.dim(`v${VERSION}`)}
+
+${pc.bold("USAGE")}
+ npx aisoc <command> [options]
+
+${pc.bold("COMMANDS")}
+ triage Score a batch of alerts to verdicts (TP / review / suppress)
+ translate <rule> Translate a detection rule across Sigma / SPL / KQL / ES|QL / YARA-L2 / UDM
+ up Boot the full local demo stack from a pinned compose bundle (needs Docker)
+ help Show this help
+
+${pc.bold("TRIAGE OPTIONS")}
+ --demo Zero-credential, deterministic 200-alert demo (finishes in seconds)
+ --file <path> Triage a local JSONL / JSON alert export
+ --source <name> demo | jsonl | splunk | sentinel | elastic | crowdstrike
+ --limit <n> Cap the number of alerts triaged
+ --max-rows <n> Cap table rows printed (default 20; escalations shown first)
+ --attention-only Hide suppressed noise; show only escalate + review
+ --llm Use YOUR ANTHROPIC_API_KEY / OPENAI_API_KEY to refine the ambiguous middle (never proxied)
+ --json Emit machine-readable JSON
+ --share [path] Write a redacted, postable report card (Markdown + SVG)
+ --telemetry Opt IN to aggregate-only telemetry (default OFF; see TELEMETRY.md)
+ --no-telemetry Force telemetry off
+
+${pc.bold("TRANSLATE OPTIONS")}
+ --from <fmt> Source format (default: sigma)
+ --to <a,b,c> Comma-separated target formats (default: all others)
+ --file <path> Read the rule from a file (else inline arg or stdin)
+ --json Emit machine-readable JSON
+
+${pc.bold("EXAMPLES")}
+ npx aisoc triage --demo
+ npx aisoc triage --file alerts.jsonl --attention-only --share
+ cat rule.yml | npx aisoc translate --from sigma --to spl,kql
+ npx aisoc up
+
+Open source · MIT · https://github.com/beenuar/AiSOC
+`;
+
+async function main(): Promise<number> {
+ const { command, positionals, flags } = parseArgs(process.argv.slice(2));
+
+ if (flags.version || flags.v || command === "version") {
+ console.log(VERSION);
+ return 0;
+ }
+
+ switch (command) {
+ case undefined:
+ case "help":
+ case "--help":
+ console.log(HELP);
+ return 0;
+
+ case "triage": {
+ const tf: TriageFlags = {
+ demo: toBool(flags.demo),
+ file: typeof flags.file === "string" ? flags.file : undefined,
+ source: typeof flags.source === "string" ? flags.source : undefined,
+ limit: toNum(flags.limit),
+ maxRows: toNum(flags["max-rows"]),
+ attentionOnly: toBool(flags["attention-only"]),
+ json: toBool(flags.json),
+ share: flags.share === true ? true : typeof flags.share === "string" ? flags.share : undefined,
+ llm: toBool(flags.llm),
+ telemetry: toBool(flags.telemetry),
+ noTelemetry: toBool(flags["no-telemetry"]),
+ };
+ await runTriage(tf);
+ return 0;
+ }
+
+ case "up": {
+ const uf: UpFlags = {
+ ref: typeof flags.ref === "string" ? flags.ref : undefined,
+ noOpen: toBool(flags["no-open"]),
+ json: toBool(flags.json),
+ };
+ return runUp(uf);
+ }
+
+ case "translate": {
+ const trf: TranslateFlags = {
+ from: typeof flags.from === "string" ? flags.from : undefined,
+ to: typeof flags.to === "string" ? flags.to : undefined,
+ file: typeof flags.file === "string" ? flags.file : undefined,
+ json: toBool(flags.json),
+ };
+ await runTranslate(positionals[0], trf);
+ return 0;
+ }
+
+ default:
+ console.error(pc.red(`Unknown command: ${command}`));
+ console.error(pc.dim("Run `npx aisoc help` for usage."));
+ return 2;
+ }
+}
+
+main()
+ .then((code) => process.exit(code))
+ .catch((err) => {
+ console.error(pc.red(`\naisoc: ${(err as Error).message}\n`));
+ process.exit(1);
+ });
diff --git a/packages/aisoc-lite/src/commands/translate.ts b/packages/aisoc-lite/src/commands/translate.ts
new file mode 100644
index 000000000..546a58a1f
--- /dev/null
+++ b/packages/aisoc-lite/src/commands/translate.ts
@@ -0,0 +1,64 @@
+/**
+ * `aisoc translate <rule>` — CLI front for the deterministic detection
+ * translator. Reads a rule from a file or stdin and prints each target dialect.
+ */
+
+import { readFile } from "node:fs/promises";
+import pc from "picocolors";
+import { translateRule, type DetectionFormat, FORMAT_LABELS } from "../verdict/translate.js";
+
+const FORMATS: DetectionFormat[] = ["sigma", "spl", "kql", "esql", "yara_l2", "udm"];
+
+export interface TranslateFlags {
+ from?: string;
+ to?: string;
+ file?: string;
+ json?: boolean;
+}
+
+function parseFormat(value: string | undefined, fallback: DetectionFormat): DetectionFormat {
+ const v = (value ?? "").toLowerCase();
+ return (FORMATS as string[]).includes(v) ? (v as DetectionFormat) : fallback;
+}
+
+async function readStdin(): Promise<string> {
+ const chunks: Buffer[] = [];
+ for await (const chunk of process.stdin) chunks.push(chunk as Buffer);
+ return Buffer.concat(chunks).toString("utf8");
+}
+
+export async function runTranslate(
+ ruleArg: string | undefined,
+ flags: TranslateFlags,
+ log: (s: string) => void = console.log,
+): Promise<void> {
+ let source = ruleArg ?? "";
+ if (flags.file) source = await readFile(flags.file, "utf8");
+ if (!source.trim() && !process.stdin.isTTY) source = await readStdin();
+ if (!source.trim()) {
+ throw new Error("no rule provided. Pass a rule inline, via --file <path>, or pipe it on stdin.");
+ }
+
+ const from = parseFormat(flags.from, "sigma");
+ const targets = flags.to
+ ? flags.to.split(",").map((t) => parseFormat(t.trim(), "sigma"))
+ : (FORMATS.filter((f) => f !== from) as DetectionFormat[]);
+
+ const out = translateRule(source, from, targets);
+
+ if (flags.json) {
+ log(JSON.stringify(out, null, 2));
+ return;
+ }
+
+ log("");
+ log(pc.bold(`Translated from ${FORMAT_LABELS[from]}`) + pc.dim(" (deterministic field-map)"));
+ for (const r of out.results) {
+ log("");
+ log(pc.cyan(pc.bold(`── ${r.label} ──`)));
+ log(r.rule);
+ }
+ log("");
+ for (const w of out.warnings) log(pc.yellow(`⚠ ${w}`));
+ log("");
+}
diff --git a/packages/aisoc-lite/src/commands/triage.ts b/packages/aisoc-lite/src/commands/triage.ts
new file mode 100644
index 000000000..7bc765dd6
--- /dev/null
+++ b/packages/aisoc-lite/src/commands/triage.ts
@@ -0,0 +1,117 @@
+/**
+ * `aisoc triage` — pull alerts from a source, score them to verdicts, print a
+ * table + one-line headline, and optionally write a share card.
+ */
+
+import pc from "picocolors";
+import { loadAlerts, type SourceKind } from "../sources.js";
+import { summarize, triageBatch } from "../verdict/engine.js";
+import { recommendationFor } from "../verdict/stages.js";
+import { renderHeadline, renderTable } from "../render/table.js";
+import { writeShareArtifacts } from "../share.js";
+import { detectProvider, refineWithLlm } from "../llm.js";
+import { resolveTelemetry, buildPayload, sendTelemetry } from "../telemetry.js";
+import type { AlertVerdict, TriageResult } from "../verdict/types.js";
+import { VERSION } from "../version.js";
+
+export interface TriageFlags {
+ demo?: boolean;
+ file?: string;
+ source?: string;
+ limit?: number;
+ maxRows?: number;
+ attentionOnly?: boolean;
+ json?: boolean;
+ share?: string | boolean;
+ llm?: boolean;
+ telemetry?: boolean;
+ noTelemetry?: boolean;
+}
+
+function resolveSource(flags: TriageFlags): { kind: SourceKind; file?: string } {
+ if (flags.demo) return { kind: "demo" };
+ if (flags.file) return { kind: "jsonl", file: flags.file };
+ const s = (flags.source ?? "demo").toLowerCase();
+ const allowed: SourceKind[] = ["demo", "jsonl", "splunk", "sentinel", "elastic", "crowdstrike"];
+ if (!(allowed as string[]).includes(s)) {
+ throw new Error(`unknown source '${s}'. Use one of: ${allowed.join(", ")}, or --demo / --file.`);
+ }
+ return { kind: s as SourceKind, file: flags.file };
+}
+
+/** Overlay LLM refinements onto the deterministic result (needs_review band only). */
+function applyRefinements(result: TriageResult, refinements: Map<string, AlertVerdict["verdict"]>): TriageResult {
+ const verdicts = result.verdicts.map((v) => {
+ const refined = refinements.get(v.alertId);
+ if (!refined || refined === v.verdict) return v;
+ return {
+ ...v,
+ verdict: refined,
+ recommendation: recommendationFor(refined),
+ basis: [...v.basis, "(LLM band refined this verdict)"],
+ };
+ });
+ return {
+ verdicts,
+ summary: summarize(verdicts, result.summary.elapsedMs),
+ deterministic: false,
+ };
+}
+
+export async function runTriage(flags: TriageFlags, log: (s: string) => void = console.log): Promise<TriageResult> {
+ const { kind, file } = resolveSource(flags);
+ const alerts = await loadAlerts(kind, { file, limit: flags.limit });
+
+ if (alerts.length === 0) {
+ throw new Error("no alerts to triage (source returned empty).");
+ }
+
+ let result = triageBatch(alerts, { deterministic: true });
+
+ // Optional BYO-key LLM band over the ambiguous middle only.
+ if (flags.llm) {
+ const provider = detectProvider();
+ if (!provider) {
+ log(pc.yellow("--llm requested but no ANTHROPIC_API_KEY / OPENAI_API_KEY found; staying deterministic."));
+ } else {
+ const ambiguous = alerts.filter((a) => {
+ const v = result.verdicts.find((x) => x.alertId === a.id);
+ return v?.verdict === "needs_review";
+ });
+ try {
+ log(pc.dim(`Refining ${ambiguous.length} ambiguous alert(s) with your ${provider.name} key (${provider.model})…`));
+ const refs = await refineWithLlm(ambiguous, provider);
+ const map = new Map(refs.map((r) => [r.alertId, r.verdict]));
+ result = applyRefinements(result, map);
+ } catch (err) {
+ log(pc.yellow(`LLM band failed (${(err as Error).message}); keeping deterministic verdicts.`));
+ }
+ }
+ }
+
+ if (flags.json) {
+ log(JSON.stringify(result, null, 2));
+ } else {
+ log("");
+ log(renderTable(result, { maxRows: flags.maxRows ?? 20, attentionOnly: flags.attentionOnly }));
+ log("");
+ log(renderHeadline(result));
+ log("");
+ }
+
+ // Optional share card.
+ if (flags.share) {
+ const base = typeof flags.share === "string" ? flags.share : "aisoc-report-card.md";
+ const paths = await writeShareArtifacts(result, base);
+ if (!flags.json) log(pc.dim(`Share card written: ${paths.join(", ")}`));
+ }
+
+ // Strictly opt-in telemetry (aggregate only).
+ const decision = resolveTelemetry(flags);
+ if (decision.enabled) {
+ await sendTelemetry(buildPayload(result, kind, VERSION));
+ if (!flags.json) log(pc.dim("Sent opt-in aggregate telemetry (counts only — see TELEMETRY.md)."));
+ }
+
+ return result;
+}
diff --git a/packages/aisoc-lite/src/commands/up.ts b/packages/aisoc-lite/src/commands/up.ts
new file mode 100644
index 000000000..02002decb
--- /dev/null
+++ b/packages/aisoc-lite/src/commands/up.ts
@@ -0,0 +1,79 @@
+/**
+ * `aisoc up` — clone-free launcher for the full local demo stack.
+ *
+ * Pulls a pinned Docker Compose bundle to a temp dir and boots it, so a user
+ * can go from `npx aisoc up` to the seeded console without cloning the repo.
+ * This is the heavier (~3.5 min) path; `aisoc triage --demo` is the 60-second
+ * wedge. We shell out to `docker compose` and never bundle images.
+ */
+
+import { spawn } from "node:child_process";
+import { mkdtemp, writeFile } from "node:fs/promises";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import pc from "picocolors";
+
+// Pinned to a released ref so the bundle is reproducible. The compose file is
+// fetched from the tagged raw URL (no clone). Bump on each release.
+const PINNED_REF = process.env.AISOC_UP_REF || "main";
+const COMPOSE_URL = `https://raw.githubusercontent.com/beenuar/AiSOC/${PINNED_REF}/infra/compose/docker-compose.demo.yml`;
+
+export interface UpFlags {
+ ref?: string;
+ noOpen?: boolean;
+ json?: boolean;
+}
+
+function run(cmd: string, args: string[], cwd: string): Promise<number> {
+ return new Promise((resolve) => {
+ const child = spawn(cmd, args, { cwd, stdio: "inherit" });
+ child.on("close", (code) => resolve(code ?? 1));
+ child.on("error", () => resolve(127));
+ });
+}
+
+async function haveDocker(): Promise<boolean> {
+ return (await run("docker", ["--version"], process.cwd())) === 0;
+}
+
+export async function runUp(flags: UpFlags, log: (s: string) => void = console.log): Promise<number> {
+ if (!(await haveDocker())) {
+ log(pc.red("Docker is required for `aisoc up`. Install Docker Desktop, or try the zero-install path:"));
+ log(pc.cyan(" npx aisoc triage --demo"));
+ return 1;
+ }
+
+ const ref = flags.ref || PINNED_REF;
+ const url = COMPOSE_URL.replace(PINNED_REF, ref);
+ log(pc.dim(`Fetching pinned compose bundle (${ref})…`));
+
+ let composeText: string;
+ try {
+ const resp = await fetch(url);
+ if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
+ composeText = await resp.text();
+ } catch (err) {
+ log(pc.red(`Could not fetch the compose bundle: ${(err as Error).message}`));
+ log(pc.dim("Falling back to the clone path: git clone https://github.com/beenuar/AiSOC && cd AiSOC && pnpm aisoc:demo"));
+ return 1;
+ }
+
+ const dir = await mkdtemp(join(tmpdir(), "aisoc-up-"));
+ const file = join(dir, "docker-compose.demo.yml");
+ await writeFile(file, composeText, "utf8");
+ log(pc.dim(`Compose bundle written to ${file}`));
+ log(pc.bold("Booting the AiSOC demo stack (this can take a few minutes on first pull)…"));
+
+ const code = await run("docker", ["compose", "-f", file, "up", "-d"], dir);
+ if (code !== 0) {
+ log(pc.red("docker compose up failed. See the output above."));
+ return code;
+ }
+
+ log("");
+ log(pc.green("✓ AiSOC demo stack is starting."));
+ log(" Console: " + pc.cyan("http://localhost:3000/cases/INC-RT-001?tab=ledger"));
+ log(" Stop it: " + pc.dim(`docker compose -f ${file} down -v`));
+ log("");
+ return 0;
+}
diff --git a/packages/aisoc-lite/src/fixtures/demo-alerts.json b/packages/aisoc-lite/src/fixtures/demo-alerts.json
new file mode 100644
index 000000000..0f7ecfc8b
--- /dev/null
+++ b/packages/aisoc-lite/src/fixtures/demo-alerts.json
@@ -0,0 +1,1894 @@
+{
+ "_comment": "Deterministic demo fixture for `aisoc triage --demo`. Generated by scripts/gen-fixtures.mjs (seeded). Do not edit by hand; run `pnpm gen:fixtures`.",
+ "generatedBy": "scripts/gen-fixtures.mjs",
+ "count": 200,
+ "alerts": [
+ {
+ "id": "DEMO-0108",
+ "title": "TLS certificate renewal",
+ "source": "splunk",
+ "severity": "low",
+ "riskScore": 0.08,
+ "raw": "acme renewed cert for internal service",
+ "iocs": {
+ "srcIp": "218.187.233.204"
+ }
+ },
+ {
+ "id": "DEMO-0063",
+ "title": "S3 bucket read from same account",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0046",
+ "title": "S3 bucket read from same account",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0048",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0018",
+ "title": "Outbound SMTP to mail relay",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "newsletter batch sent via approved relay",
+ "iocs": {
+ "srcIp": "226.117.150.176"
+ }
+ },
+ {
+ "id": "DEMO-0003",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0166",
+ "title": "Firewall allowed established connection",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.09,
+ "raw": "return traffic on established session",
+ "iocs": {
+ "srcIp": "167.55.173.120"
+ }
+ },
+ {
+ "id": "DEMO-0029",
+ "title": "Outbound SMTP to mail relay",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0014",
+ "title": "Outbound SMTP to mail relay",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0143",
+ "title": "DNS query to CDN endpoint",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0141",
+ "title": "User password change (self-service)",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.03,
+ "raw": "password rotated via portal, policy compliant",
+ "iocs": {
+ "srcIp": "96.9.219.135"
+ }
+ },
+ {
+ "id": "DEMO-0010",
+ "title": "User password change (self-service)",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "password rotated via portal, policy compliant",
+ "iocs": {
+ "srcIp": "116.57.73.51"
+ }
+ },
+ {
+ "id": "DEMO-0051",
+ "title": "Outbound SMTP to mail relay",
+ "source": "guardduty",
+ "severity": "low",
+ "riskScore": 0.04,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0198",
+ "title": "Suspected supply chain backdoor in build",
+ "source": "crowdstrike",
+ "severity": "critical",
+ "riskScore": 0.91,
+ "hostname": "k8s-node-14",
+ "username": "s.kim",
+ "techniques": [
+ "T1195.002"
+ ],
+ "raw": "supply chain: unexpected backdoor payload injected into ci artifact",
+ "iocs": {
+ "srcIp": "226.1.14.134",
+ "dstIp": "228.175.55.53",
+ "fileHash": "023042fb9e7556fd70d87ca727b2e4341234d1f3fcb91e69bf64f8bc5115b4e8",
+ "domain": "c6677211.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0133",
+ "title": "TLS certificate renewal",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.04,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0180",
+ "title": "Several failed sign-ins then success",
+ "source": "okta",
+ "severity": "medium",
+ "riskScore": 0.76,
+ "hostname": "dev-box-09",
+ "username": "a.patel",
+ "raw": "5 failures then a success, possible fat-finger",
+ "iocs": {
+ "srcIp": "82.29.169.29"
+ }
+ },
+ {
+ "id": "DEMO-0110",
+ "title": "User password change (self-service)",
+ "source": "guardduty",
+ "severity": "low",
+ "riskScore": 0.15,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0182",
+ "title": "Unusual login hour for user",
+ "source": "m365",
+ "severity": "medium",
+ "riskScore": 0.77,
+ "username": "contractor_31",
+ "raw": "sign-in at 03:12 local, first time this quarter"
+ },
+ {
+ "id": "DEMO-0159",
+ "title": "Scheduled backup job completed",
+ "source": "okta",
+ "severity": "low",
+ "riskScore": 0.04,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0052",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.04,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0140",
+ "title": "User password change (self-service)",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0027",
+ "title": "Kubernetes liveness probe restart",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0197",
+ "title": "Data exfiltration to external host",
+ "source": "okta",
+ "severity": "critical",
+ "riskScore": 0.89,
+ "hostname": "hr-laptop-22",
+ "username": "j.doe",
+ "techniques": [
+ "T1048",
+ "T1071.004"
+ ],
+ "raw": "exfiltration of 12GB to unknown external ip over dns tunneling",
+ "iocs": {
+ "srcIp": "115.211.141.34",
+ "dstIp": "214.164.160.197",
+ "fileHash": "1b9dbb20463bb8fc1d8061e992cb4ddb350b9d82ae20ab5b3667fa439de9d963",
+ "domain": "1b895010.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0200",
+ "title": "Lateral movement via SMB with dumped credentials",
+ "source": "guardduty",
+ "severity": "critical",
+ "riskScore": 0.9,
+ "hostname": "k8s-node-14",
+ "username": "j.doe",
+ "techniques": [
+ "T1021.002",
+ "T1003.001",
+ "T1550.002"
+ ],
+ "raw": "credential dump observed, lateral movement to 3 hosts using mimikatz-harvested hashes",
+ "iocs": {
+ "srcIp": "94.234.76.114",
+ "dstIp": "2.74.154.254",
+ "fileHash": "f320b4c12eaaaa0d2ff2ff2764ec88b7f6cf66ee8f6ef86f46d7e8c9c639432d"
+ }
+ },
+ {
+ "id": "DEMO-0080",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0056",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0132",
+ "title": "Package manager fetched dependency",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0169",
+ "title": "TLS certificate renewal",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0002",
+ "title": "User password change (self-service)",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "password rotated via portal, policy compliant",
+ "iocs": {
+ "srcIp": "157.106.121.28"
+ }
+ },
+ {
+ "id": "DEMO-0057",
+ "title": "Outbound SMTP to mail relay",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0152",
+ "title": "Scheduled backup job completed",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.15,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0039",
+ "title": "Package manager fetched dependency",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0126",
+ "title": "Successful VPN login from known device",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0138",
+ "title": "Kubernetes liveness probe restart",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "pod restarted after failed healthcheck, self-healed",
+ "iocs": {
+ "srcIp": "156.146.4.193"
+ }
+ },
+ {
+ "id": "DEMO-0082",
+ "title": "Outbound SMTP to mail relay",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0059",
+ "title": "TLS certificate renewal",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0181",
+ "title": "New device enrolled to identity provider",
+ "source": "splunk",
+ "severity": "medium",
+ "riskScore": 0.78,
+ "username": "s.kim",
+ "raw": "unrecognized device added to identity provider"
+ },
+ {
+ "id": "DEMO-0061",
+ "title": "DNS query to CDN endpoint",
+ "source": "splunk",
+ "severity": "low",
+ "riskScore": 0.09,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0009",
+ "title": "Outbound SMTP to mail relay",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0055",
+ "title": "Successful VPN login from known device",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0186",
+ "title": "Several failed sign-ins then success",
+ "source": "m365",
+ "severity": "medium",
+ "riskScore": 0.75,
+ "hostname": "hr-laptop-22",
+ "username": "admin",
+ "raw": "5 failures then a success, possible fat-finger"
+ },
+ {
+ "id": "DEMO-0087",
+ "title": "User password change (self-service)",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0109",
+ "title": "TLS certificate renewal",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0077",
+ "title": "S3 bucket read from same account",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0001",
+ "title": "User password change (self-service)",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0146",
+ "title": "Successful VPN login from known device",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0135",
+ "title": "Scheduled backup job completed",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0100",
+ "title": "Windows Defender signature update",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "definitions updated to latest, routine",
+ "iocs": {
+ "srcIp": "126.134.190.51"
+ }
+ },
+ {
+ "id": "DEMO-0117",
+ "title": "Windows Defender signature update",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0094",
+ "title": "Scheduled backup job completed",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0121",
+ "title": "DNS query to CDN endpoint",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0156",
+ "title": "Firewall allowed established connection",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0026",
+ "title": "Package manager fetched dependency",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0112",
+ "title": "DNS query to CDN endpoint",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch",
+ "iocs": {
+ "srcIp": "46.230.80.131"
+ }
+ },
+ {
+ "id": "DEMO-0081",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0058",
+ "title": "TLS certificate renewal",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0129",
+ "title": "Outbound SMTP to mail relay",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0149",
+ "title": "Windows Defender signature update",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0122",
+ "title": "Outbound SMTP to mail relay",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0187",
+ "title": "Several failed sign-ins then success",
+ "source": "splunk",
+ "severity": "medium",
+ "riskScore": 0.77,
+ "username": "a.patel",
+ "raw": "5 failures then a success, possible fat-finger",
+ "iocs": {
+ "srcIp": "57.84.57.50"
+ }
+ },
+ {
+ "id": "DEMO-0195",
+ "title": "Lateral movement via SMB with dumped credentials",
+ "source": "okta",
+ "severity": "critical",
+ "riskScore": 0.91,
+ "hostname": "mail-gw-02",
+ "username": "contractor_31",
+ "techniques": [
+ "T1021.002",
+ "T1003.001",
+ "T1550.002"
+ ],
+ "raw": "credential dump observed, lateral movement to 3 hosts using mimikatz-harvested hashes",
+ "iocs": {
+ "srcIp": "48.253.213.84",
+ "dstIp": "206.22.201.14",
+ "fileHash": "19a99dcf309d579bc5b979a2d15408a3d5f48a23517b5690d9ae20d63789d18e",
+ "domain": "fadb88c6.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0098",
+ "title": "Scheduled backup job completed",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.15,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0013",
+ "title": "TLS certificate renewal",
+ "source": "sentinel",
+ "severity": "low",
+ "riskScore": 0.08,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0033",
+ "title": "Outbound SMTP to mail relay",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0060",
+ "title": "TLS certificate renewal",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "acme renewed cert for internal service",
+ "iocs": {
+ "srcIp": "13.227.127.141"
+ }
+ },
+ {
+ "id": "DEMO-0148",
+ "title": "Scheduled backup job completed",
+ "source": "okta",
+ "severity": "low",
+ "riskScore": 0.09,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0007",
+ "title": "S3 bucket read from same account",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.05,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0167",
+ "title": "User password change (self-service)",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "password rotated via portal, policy compliant",
+ "iocs": {
+ "srcIp": "19.91.4.7"
+ }
+ },
+ {
+ "id": "DEMO-0173",
+ "title": "Unusual login hour for user",
+ "source": "sentinel",
+ "severity": "medium",
+ "riskScore": 0.75,
+ "hostname": "web-prod-07",
+ "username": "a.patel",
+ "raw": "sign-in at 03:12 local, first time this quarter"
+ },
+ {
+ "id": "DEMO-0171",
+ "title": "DNS query to CDN endpoint",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch",
+ "iocs": {
+ "srcIp": "115.123.48.198"
+ }
+ },
+ {
+ "id": "DEMO-0164",
+ "title": "Successful VPN login from known device",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "user connected from managed laptop, mfa satisfied",
+ "iocs": {
+ "srcIp": "32.159.191.103"
+ }
+ },
+ {
+ "id": "DEMO-0054",
+ "title": "Successful VPN login from known device",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.05,
+ "raw": "user connected from managed laptop, mfa satisfied",
+ "iocs": {
+ "srcIp": "158.126.51.132"
+ }
+ },
+ {
+ "id": "DEMO-0030",
+ "title": "Firewall allowed established connection",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "return traffic on established session",
+ "iocs": {
+ "srcIp": "7.6.40.73"
+ }
+ },
+ {
+ "id": "DEMO-0035",
+ "title": "Kubernetes liveness probe restart",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0102",
+ "title": "Successful VPN login from known device",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "user connected from managed laptop, mfa satisfied",
+ "iocs": {
+ "srcIp": "224.18.104.90"
+ }
+ },
+ {
+ "id": "DEMO-0032",
+ "title": "Firewall allowed established connection",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0157",
+ "title": "Successful VPN login from known device",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0022",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.15,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0072",
+ "title": "Scheduled backup job completed",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0120",
+ "title": "TLS certificate renewal",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.11,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0185",
+ "title": "New device enrolled to identity provider",
+ "source": "splunk",
+ "severity": "medium",
+ "riskScore": 0.77,
+ "username": "s.kim",
+ "raw": "unrecognized device added to identity provider",
+ "iocs": {
+ "srcIp": "85.196.219.252"
+ }
+ },
+ {
+ "id": "DEMO-0131",
+ "title": "User password change (self-service)",
+ "source": "guardduty",
+ "severity": "low",
+ "riskScore": 0.06,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0114",
+ "title": "Scheduled backup job completed",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0004",
+ "title": "User password change (self-service)",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.13,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0045",
+ "title": "Firewall allowed established connection",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.06,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0105",
+ "title": "S3 bucket read from same account",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0066",
+ "title": "Successful VPN login from known device",
+ "source": "okta",
+ "severity": "low",
+ "riskScore": 0.14,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0020",
+ "title": "Scheduled backup job completed",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0074",
+ "title": "Kubernetes liveness probe restart",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "pod restarted after failed healthcheck, self-healed",
+ "iocs": {
+ "srcIp": "46.6.3.216"
+ }
+ },
+ {
+ "id": "DEMO-0118",
+ "title": "Kubernetes liveness probe restart",
+ "source": "guardduty",
+ "severity": "low",
+ "riskScore": 0.08,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0194",
+ "title": "Ransomware canary files encrypted on host",
+ "source": "crowdstrike",
+ "severity": "critical",
+ "riskScore": 0.97,
+ "hostname": "hr-laptop-22",
+ "username": "admin",
+ "techniques": [
+ "T1486",
+ "T1490"
+ ],
+ "raw": "mass file rename to .lockbit extension, ransomware note dropped, shadow copies deleted",
+ "iocs": {
+ "srcIp": "159.250.80.11",
+ "dstIp": "9.10.172.79",
+ "fileHash": "d1a40f64158cb7603765104ba7ccb2c86dd7f74300b4d7b9cb4cb9cd07dff541"
+ }
+ },
+ {
+ "id": "DEMO-0150",
+ "title": "Kubernetes liveness probe restart",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.05,
+ "raw": "pod restarted after failed healthcheck, self-healed",
+ "iocs": {
+ "srcIp": "74.57.22.14"
+ }
+ },
+ {
+ "id": "DEMO-0189",
+ "title": "Ransomware canary files encrypted on host",
+ "source": "sentinel",
+ "severity": "critical",
+ "riskScore": 0.95,
+ "hostname": "mail-gw-02",
+ "username": "root",
+ "techniques": [
+ "T1486",
+ "T1490"
+ ],
+ "raw": "mass file rename to .lockbit extension, ransomware note dropped, shadow copies deleted",
+ "iocs": {
+ "srcIp": "242.142.109.132",
+ "dstIp": "9.78.143.62",
+ "fileHash": "3ab1a4fa1fd42d3b48b53c77db2eed3304d3e36fd8c58f44f52dac3c87829ecd"
+ }
+ },
+ {
+ "id": "DEMO-0062",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0196",
+ "title": "Cobalt Strike beacon C2 detected",
+ "source": "elastic",
+ "severity": "critical",
+ "riskScore": 0.94,
+ "hostname": "dev-box-09",
+ "username": "a.patel",
+ "techniques": [
+ "T1071.001",
+ "T1573"
+ ],
+ "raw": "cobalt strike beacon calling home to c2 over https jitter pattern",
+ "iocs": {
+ "srcIp": "66.90.245.110",
+ "dstIp": "189.45.116.241",
+ "fileHash": "b46d81c9f16df4fe1479498eed6618ea601f2c661f75aa271137bbea93a03e69"
+ }
+ },
+ {
+ "id": "DEMO-0176",
+ "title": "Outbound connection to newly-seen domain",
+ "source": "splunk",
+ "severity": "medium",
+ "riskScore": 0.77,
+ "username": "admin",
+ "raw": "first-seen destination contacted by workstation"
+ },
+ {
+ "id": "DEMO-0136",
+ "title": "Scheduled backup job completed",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0130",
+ "title": "S3 bucket read from same account",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.04,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0161",
+ "title": "Windows Defender signature update",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "definitions updated to latest, routine",
+ "iocs": {
+ "srcIp": "162.211.118.107"
+ }
+ },
+ {
+ "id": "DEMO-0111",
+ "title": "S3 bucket read from same account",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "internal analytics job read logs bucket",
+ "iocs": {
+ "srcIp": "54.248.115.184"
+ }
+ },
+ {
+ "id": "DEMO-0147",
+ "title": "Package manager fetched dependency",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "npm install pulled cached tarball",
+ "iocs": {
+ "srcIp": "58.101.4.122"
+ }
+ },
+ {
+ "id": "DEMO-0125",
+ "title": "Windows Defender signature update",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0134",
+ "title": "Successful VPN login from known device",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0008",
+ "title": "TLS certificate renewal",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0177",
+ "title": "Elevated process spawned by office app",
+ "source": "splunk",
+ "severity": "medium",
+ "riskScore": 0.76,
+ "hostname": "jump-01",
+ "username": "a.patel",
+ "raw": "winword launched a child interpreter, no known template"
+ },
+ {
+ "id": "DEMO-0068",
+ "title": "Successful VPN login from known device",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0090",
+ "title": "Outbound SMTP to mail relay",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0038",
+ "title": "Windows Defender signature update",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0168",
+ "title": "S3 bucket read from same account",
+ "source": "splunk",
+ "severity": "low",
+ "riskScore": 0.1,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0103",
+ "title": "Outbound SMTP to mail relay",
+ "source": "sentinel",
+ "severity": "low",
+ "riskScore": 0.12,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0076",
+ "title": "Windows Defender signature update",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0075",
+ "title": "Firewall allowed established connection",
+ "source": "sentinel",
+ "severity": "low",
+ "riskScore": 0.04,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0165",
+ "title": "S3 bucket read from same account",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0160",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0107",
+ "title": "DNS query to CDN endpoint",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.15,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0096",
+ "title": "Successful VPN login from known device",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0024",
+ "title": "User password change (self-service)",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0023",
+ "title": "S3 bucket read from same account",
+ "source": "m365",
+ "severity": "low",
+ "riskScore": 0.09,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0079",
+ "title": "Kubernetes liveness probe restart",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0093",
+ "title": "TLS certificate renewal",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.04,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0006",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "low",
+ "riskScore": 0.1,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0041",
+ "title": "Package manager fetched dependency",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0070",
+ "title": "TLS certificate renewal",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0073",
+ "title": "Scheduled backup job completed",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0084",
+ "title": "Successful VPN login from known device",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0086",
+ "title": "Outbound SMTP to mail relay",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0021",
+ "title": "TLS certificate renewal",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0175",
+ "title": "Outbound connection to newly-seen domain",
+ "source": "crowdstrike",
+ "severity": "medium",
+ "riskScore": 0.74,
+ "hostname": "mail-gw-02",
+ "username": "j.doe",
+ "raw": "first-seen destination contacted by workstation",
+ "iocs": {
+ "srcIp": "57.5.95.154"
+ }
+ },
+ {
+ "id": "DEMO-0031",
+ "title": "Successful VPN login from known device",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0106",
+ "title": "User password change (self-service)",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0043",
+ "title": "Successful VPN login from known device",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0115",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0085",
+ "title": "Firewall allowed established connection",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.1,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0025",
+ "title": "Successful VPN login from known device",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0065",
+ "title": "DNS query to CDN endpoint",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch",
+ "iocs": {
+ "srcIp": "177.126.65.26"
+ }
+ },
+ {
+ "id": "DEMO-0142",
+ "title": "Windows Defender signature update",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0183",
+ "title": "Elevated process spawned by office app",
+ "source": "sentinel",
+ "severity": "medium",
+ "riskScore": 0.73,
+ "username": "svc_backup",
+ "raw": "winword launched a child interpreter, no known template",
+ "iocs": {
+ "srcIp": "61.208.92.242"
+ }
+ },
+ {
+ "id": "DEMO-0040",
+ "title": "Firewall allowed established connection",
+ "source": "splunk",
+ "severity": "low",
+ "riskScore": 0.15,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0184",
+ "title": "Unusual login hour for user",
+ "source": "sentinel",
+ "severity": "medium",
+ "riskScore": 0.75,
+ "username": "s.kim",
+ "raw": "sign-in at 03:12 local, first time this quarter"
+ },
+ {
+ "id": "DEMO-0053",
+ "title": "Outbound SMTP to mail relay",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0012",
+ "title": "Successful VPN login from known device",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.04,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0036",
+ "title": "Windows Defender signature update",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0193",
+ "title": "Suspected supply chain backdoor in build",
+ "source": "elastic",
+ "severity": "critical",
+ "riskScore": 0.9,
+ "hostname": "WIN-FIN-DB01",
+ "username": "root",
+ "techniques": [
+ "T1195.002"
+ ],
+ "raw": "supply chain: unexpected backdoor payload injected into ci artifact",
+ "iocs": {
+ "srcIp": "34.229.4.112",
+ "dstIp": "94.34.75.171",
+ "fileHash": "ce9179f940426d4f96928c1dcb9e14f2109de411ea6c8a9807c68dea6f9d8e0d",
+ "domain": "d0a26ebd.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0172",
+ "title": "Large file read from file share",
+ "source": "okta",
+ "severity": "medium",
+ "riskScore": 0.72,
+ "username": "admin",
+ "raw": "user read 400 files from finance share in 2 minutes",
+ "iocs": {
+ "srcIp": "147.45.197.80"
+ }
+ },
+ {
+ "id": "DEMO-0015",
+ "title": "Windows Defender signature update",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0127",
+ "title": "Firewall allowed established connection",
+ "source": "sentinel",
+ "severity": "low",
+ "riskScore": 0.09,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0092",
+ "title": "DNS query to CDN endpoint",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch"
+ },
+ {
+ "id": "DEMO-0137",
+ "title": "Firewall allowed established connection",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "return traffic on established session",
+ "iocs": {
+ "srcIp": "75.97.36.49"
+ }
+ },
+ {
+ "id": "DEMO-0005",
+ "title": "DNS query to CDN endpoint",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "resolved cdn.jsdelivr.net for asset fetch",
+ "iocs": {
+ "srcIp": "178.47.28.132"
+ }
+ },
+ {
+ "id": "DEMO-0071",
+ "title": "Firewall allowed established connection",
+ "source": "guardduty",
+ "severity": "low",
+ "riskScore": 0.1,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0037",
+ "title": "S3 bucket read from same account",
+ "source": "elastic",
+ "severity": "low",
+ "riskScore": 0.01,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0158",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0124",
+ "title": "TLS certificate renewal",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0095",
+ "title": "Outbound SMTP to mail relay",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "newsletter batch sent via approved relay",
+ "iocs": {
+ "srcIp": "242.15.212.32"
+ }
+ },
+ {
+ "id": "DEMO-0067",
+ "title": "Kubernetes liveness probe restart",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0047",
+ "title": "Kubernetes liveness probe restart",
+ "source": "okta",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0191",
+ "title": "Cobalt Strike beacon C2 detected",
+ "source": "splunk",
+ "severity": "critical",
+ "riskScore": 0.94,
+ "hostname": "mail-gw-02",
+ "username": "root",
+ "techniques": [
+ "T1071.001",
+ "T1573"
+ ],
+ "raw": "cobalt strike beacon calling home to c2 over https jitter pattern",
+ "iocs": {
+ "srcIp": "233.2.82.7",
+ "dstIp": "117.98.252.87",
+ "fileHash": "8030cfd114bff4f3cc9debcfc1e5769d1cade10620f515ca35bc4888fd86c8b8",
+ "domain": "7845b7f2.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0088",
+ "title": "Successful VPN login from known device",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0050",
+ "title": "S3 bucket read from same account",
+ "source": "m365",
+ "severity": "low",
+ "riskScore": 0.09,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0190",
+ "title": "Lateral movement via SMB with dumped credentials",
+ "source": "elastic",
+ "severity": "critical",
+ "riskScore": 0.93,
+ "hostname": "jump-01",
+ "username": "svc_backup",
+ "techniques": [
+ "T1021.002",
+ "T1003.001",
+ "T1550.002"
+ ],
+ "raw": "credential dump observed, lateral movement to 3 hosts using mimikatz-harvested hashes",
+ "iocs": {
+ "srcIp": "238.154.205.187",
+ "dstIp": "206.40.138.184",
+ "fileHash": "a248213e56cc6022d5a2b8b34d9a63b13966b63e31bc2c55610440208e3f9d54",
+ "domain": "d927fbcc.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0089",
+ "title": "Kubernetes liveness probe restart",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "pod restarted after failed healthcheck, self-healed",
+ "iocs": {
+ "srcIp": "222.168.3.78"
+ }
+ },
+ {
+ "id": "DEMO-0119",
+ "title": "S3 bucket read from same account",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0151",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0123",
+ "title": "TLS certificate renewal",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.04,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0128",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "splunk",
+ "severity": "low",
+ "riskScore": 0.01,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0091",
+ "title": "Firewall allowed established connection",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "return traffic on established session"
+ },
+ {
+ "id": "DEMO-0155",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.09,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0145",
+ "title": "Scheduled backup job completed",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "veeam backup finished nominal, 0 errors"
+ },
+ {
+ "id": "DEMO-0139",
+ "title": "S3 bucket read from same account",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.05,
+ "raw": "internal analytics job read logs bucket"
+ },
+ {
+ "id": "DEMO-0019",
+ "title": "S3 bucket read from same account",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "internal analytics job read logs bucket",
+ "iocs": {
+ "srcIp": "184.108.86.122"
+ }
+ },
+ {
+ "id": "DEMO-0174",
+ "title": "Large file read from file share",
+ "source": "sentinel",
+ "severity": "medium",
+ "riskScore": 0.74,
+ "hostname": "hr-laptop-22",
+ "username": "j.doe",
+ "raw": "user read 400 files from finance share in 2 minutes",
+ "iocs": {
+ "srcIp": "139.145.71.163"
+ }
+ },
+ {
+ "id": "DEMO-0011",
+ "title": "Windows Defender signature update",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0178",
+ "title": "New device enrolled to identity provider",
+ "source": "crowdstrike",
+ "severity": "medium",
+ "riskScore": 0.72,
+ "username": "svc_backup",
+ "raw": "unrecognized device added to identity provider"
+ },
+ {
+ "id": "DEMO-0104",
+ "title": "Scheduled backup job completed",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "veeam backup finished nominal, 0 errors",
+ "iocs": {
+ "srcIp": "67.167.151.46"
+ }
+ },
+ {
+ "id": "DEMO-0179",
+ "title": "Large file read from file share",
+ "source": "m365",
+ "severity": "medium",
+ "riskScore": 0.73,
+ "hostname": "dev-box-09",
+ "username": "a.patel",
+ "raw": "user read 400 files from finance share in 2 minutes",
+ "iocs": {
+ "srcIp": "229.41.250.239"
+ }
+ },
+ {
+ "id": "DEMO-0064",
+ "title": "Outbound SMTP to mail relay",
+ "source": "elastic",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0188",
+ "title": "Large file read from file share",
+ "source": "sentinel",
+ "severity": "medium",
+ "riskScore": 0.75,
+ "username": "svc_backup",
+ "raw": "user read 400 files from finance share in 2 minutes",
+ "iocs": {
+ "srcIp": "232.202.193.132"
+ }
+ },
+ {
+ "id": "DEMO-0049",
+ "title": "TLS certificate renewal",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.12,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0113",
+ "title": "Successful VPN login from known device",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0083",
+ "title": "Outbound SMTP to mail relay",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0017",
+ "title": "User password change (self-service)",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "password rotated via portal, policy compliant"
+ },
+ {
+ "id": "DEMO-0162",
+ "title": "Package manager fetched dependency",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0144",
+ "title": "TLS certificate renewal",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.14,
+ "raw": "acme renewed cert for internal service",
+ "iocs": {
+ "srcIp": "230.183.253.201"
+ }
+ },
+ {
+ "id": "DEMO-0153",
+ "title": "Package manager fetched dependency",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0097",
+ "title": "Antivirus quarantine of EICAR test",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.11,
+ "raw": "eicar test file quarantined during av validation"
+ },
+ {
+ "id": "DEMO-0170",
+ "title": "TLS certificate renewal",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.04,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0163",
+ "title": "Package manager fetched dependency",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.02,
+ "raw": "npm install pulled cached tarball"
+ },
+ {
+ "id": "DEMO-0069",
+ "title": "Outbound SMTP to mail relay",
+ "source": "splunk",
+ "severity": "low",
+ "riskScore": 0.04,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0116",
+ "title": "TLS certificate renewal",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "acme renewed cert for internal service"
+ },
+ {
+ "id": "DEMO-0078",
+ "title": "TLS certificate renewal",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.06,
+ "raw": "acme renewed cert for internal service",
+ "iocs": {
+ "srcIp": "74.80.180.253"
+ }
+ },
+ {
+ "id": "DEMO-0154",
+ "title": "Windows Defender signature update",
+ "source": "sentinel",
+ "severity": "info",
+ "riskScore": 0.13,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0028",
+ "title": "Windows Defender signature update",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.01,
+ "raw": "definitions updated to latest, routine"
+ },
+ {
+ "id": "DEMO-0016",
+ "title": "Successful VPN login from known device",
+ "source": "guardduty",
+ "severity": "info",
+ "riskScore": 0.07,
+ "raw": "user connected from managed laptop, mfa satisfied",
+ "iocs": {
+ "srcIp": "98.228.202.158"
+ }
+ },
+ {
+ "id": "DEMO-0034",
+ "title": "Successful VPN login from known device",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "user connected from managed laptop, mfa satisfied",
+ "iocs": {
+ "srcIp": "131.94.99.145"
+ }
+ },
+ {
+ "id": "DEMO-0042",
+ "title": "Kubernetes liveness probe restart",
+ "source": "m365",
+ "severity": "info",
+ "riskScore": 0.08,
+ "raw": "pod restarted after failed healthcheck, self-healed"
+ },
+ {
+ "id": "DEMO-0199",
+ "title": "Ransomware canary files encrypted on host",
+ "source": "splunk",
+ "severity": "critical",
+ "riskScore": 0.97,
+ "hostname": "mail-gw-02",
+ "username": "a.patel",
+ "techniques": [
+ "T1486",
+ "T1490"
+ ],
+ "raw": "mass file rename to .lockbit extension, ransomware note dropped, shadow copies deleted",
+ "iocs": {
+ "srcIp": "63.41.140.104",
+ "dstIp": "68.33.9.238",
+ "fileHash": "3c6801c81c260d19cdaa27b5056b631a7f0717662efb5e0b1eb31c2e1c6e62c9",
+ "domain": "e1151e99.badexample.test"
+ }
+ },
+ {
+ "id": "DEMO-0099",
+ "title": "Successful VPN login from known device",
+ "source": "crowdstrike",
+ "severity": "low",
+ "riskScore": 0.01,
+ "raw": "user connected from managed laptop, mfa satisfied"
+ },
+ {
+ "id": "DEMO-0101",
+ "title": "Outbound SMTP to mail relay",
+ "source": "splunk",
+ "severity": "info",
+ "riskScore": 0.03,
+ "raw": "newsletter batch sent via approved relay"
+ },
+ {
+ "id": "DEMO-0192",
+ "title": "Data exfiltration to external host",
+ "source": "elastic",
+ "severity": "critical",
+ "riskScore": 0.89,
+ "hostname": "WIN-FIN-DB01",
+ "username": "s.kim",
+ "techniques": [
+ "T1048",
+ "T1071.004"
+ ],
+ "raw": "exfiltration of 12GB to unknown external ip over dns tunneling",
+ "iocs": {
+ "srcIp": "232.11.185.254",
+ "dstIp": "108.73.234.166",
+ "fileHash": "ddbcc971445a075da0838601ac4a5058d2c777dcc4384f18d440f491cf35ce36"
+ }
+ },
+ {
+ "id": "DEMO-0044",
+ "title": "User password change (self-service)",
+ "source": "crowdstrike",
+ "severity": "info",
+ "riskScore": 0.05,
+ "raw": "password rotated via portal, policy compliant"
+ }
+ ]
+}
diff --git a/packages/aisoc-lite/src/fixtures/index.ts b/packages/aisoc-lite/src/fixtures/index.ts
new file mode 100644
index 000000000..f54705d1d
--- /dev/null
+++ b/packages/aisoc-lite/src/fixtures/index.ts
@@ -0,0 +1,19 @@
+/**
+ * Bundled deterministic demo alerts. Generated by `scripts/gen-fixtures.mjs`
+ * and inlined at build time (tsup + resolveJsonModule) so `npx aisoc triage
+ * --demo` needs zero network and zero credentials.
+ */
+
+import type { Alert } from "../verdict/types.js";
+import demo from "./demo-alerts.json" with { type: "json" };
+
+interface DemoFile {
+ count: number;
+ alerts: Alert[];
+}
+
+export function loadDemoAlerts(): Alert[] {
+ return (demo as DemoFile).alerts;
+}
+
+export const DEMO_ALERT_COUNT = (demo as DemoFile).count;
diff --git a/packages/aisoc-lite/src/index.ts b/packages/aisoc-lite/src/index.ts
new file mode 100644
index 000000000..282ef0fbc
--- /dev/null
+++ b/packages/aisoc-lite/src/index.ts
@@ -0,0 +1,33 @@
+/**
+ * Public library surface for `aisoc-lite`.
+ *
+ * The same deterministic verdict engine that powers the CLI is exported so the
+ * GitHub Action (`packages/aisoc-action`) and other consumers can score alerts
+ * without re-implementing the stages.
+ */
+
+export type {
+ Alert,
+ AlertIocs,
+ AlertVerdict,
+ EvidenceFactor,
+ Recommendation,
+ Severity,
+ TriageResult,
+ TriageSummary,
+ Verdict,
+} from "./verdict/types.js";
+
+export { scoreAlert, recommendationFor } from "./verdict/stages.js";
+export { triageBatch, summarize } from "./verdict/engine.js";
+export {
+ translateRule,
+ FORMAT_LABELS,
+ type DetectionFormat,
+ type TranslateOutput,
+ type TranslationResult,
+} from "./verdict/translate.js";
+export { loadDemoAlerts, DEMO_ALERT_COUNT } from "./fixtures/index.js";
+export { normalizeRecord, loadJsonl, loadAlerts, type SourceKind } from "./sources.js";
+export { renderShareArtifacts, renderMarkdownCard, renderSvgCard, type ShareArtifacts } from "./share.js";
+export { VERSION } from "./version.js";
diff --git a/packages/aisoc-lite/src/llm.ts b/packages/aisoc-lite/src/llm.ts
new file mode 100644
index 000000000..8e0528170
--- /dev/null
+++ b/packages/aisoc-lite/src/llm.ts
@@ -0,0 +1,127 @@
+/**
+ * Optional BYO-key LLM band.
+ *
+ * The deterministic engine (`src/verdict/`) is always the floor and always
+ * runs. When the user supplies their OWN key (ANTHROPIC_API_KEY or
+ * OPENAI_API_KEY) and opts in with `--llm`, this band re-ranks the alerts the
+ * deterministic engine flagged as `needs_review` — the ambiguous middle — and
+ * can nudge them toward escalate/suppress with a rationale.
+ *
+ * The key is read from the user's own environment and used to call the
+ * provider directly. It is never proxied through any AiSOC server. Demo and CI
+ * paths never touch this file.
+ */
+
+import type { Alert, Verdict } from "./verdict/types.js";
+
+export interface LlmRefinement {
+ alertId: string;
+ verdict: Verdict;
+ confidence: number;
+ rationale: string;
+}
+
+export interface LlmProvider {
+ name: "anthropic" | "openai";
+ model: string;
+}
+
+export function detectProvider(): LlmProvider | null {
+ if (process.env.ANTHROPIC_API_KEY) {
+ return { name: "anthropic", model: process.env.AISOC_LLM_MODEL || "claude-3-5-haiku-latest" };
+ }
+ if (process.env.OPENAI_API_KEY) {
+ return { name: "openai", model: process.env.AISOC_LLM_MODEL || "gpt-4o-mini" };
+ }
+ return null;
+}
+
+const SYSTEM = [
+ "You are a senior SOC analyst. For each alert, decide a verdict from exactly:",
+ "true_positive, likely_true_positive, needs_review, likely_benign.",
+ "Return ONLY compact JSON: {\"verdicts\":[{\"id\":\"..\",\"verdict\":\"..\",\"confidence\":0.0,\"rationale\":\"..\"}]}.",
+ "confidence is 0..1. Be conservative; prefer needs_review over guessing.",
+].join(" ");
+
+function buildUserPrompt(alerts: Alert[]): string {
+ const compact = alerts.map((a) => ({
+ id: a.id,
+ title: a.title,
+ severity: a.severity,
+ risk: a.riskScore,
+ techniques: a.techniques,
+ iocs: a.iocs,
+ raw: (a.raw ?? "").slice(0, 400),
+ }));
+ return `Triage these alerts and return JSON:\n${JSON.stringify(compact)}`;
+}
+
+async function callAnthropic(model: string, prompt: string): Promise<string> {
+ const resp = await fetch("https://api.anthropic.com/v1/messages", {
+ method: "POST",
+ headers: {
+ "content-type": "application/json",
+ "x-api-key": process.env.ANTHROPIC_API_KEY as string,
+ "anthropic-version": "2023-06-01",
+ },
+ body: JSON.stringify({
+ model,
+ max_tokens: 1500,
+ system: SYSTEM,
+ messages: [{ role: "user", content: prompt }],
+ }),
+ });
+ if (!resp.ok) throw new Error(`anthropic ${resp.status}`);
+ const data = (await resp.json()) as { content: { text?: string }[] };
+ return data.content?.map((c) => c.text ?? "").join("") ?? "";
+}
+
+async function callOpenAI(model: string, prompt: string): Promise<string> {
+ const base = process.env.OPENAI_BASE_URL || "https://api.openai.com/v1";
+ const resp = await fetch(`${base}/chat/completions`, {
+ method: "POST",
+ headers: {
+ "content-type": "application/json",
+ authorization: `Bearer ${process.env.OPENAI_API_KEY as string}`,
+ },
+ body: JSON.stringify({
+ model,
+ temperature: 0.1,
+ response_format: { type: "json_object" },
+ messages: [
+ { role: "system", content: SYSTEM },
+ { role: "user", content: prompt },
+ ],
+ }),
+ });
+ if (!resp.ok) throw new Error(`openai ${resp.status}`);
+ const data = (await resp.json()) as { choices: { message: { content: string } }[] };
+ return data.choices?.[0]?.message?.content ?? "";
+}
+
+function parseRefinements(text: string): LlmRefinement[] {
+ const start = text.indexOf("{");
+ const end = text.lastIndexOf("}");
+ if (start < 0 || end < 0) return [];
+ try {
+ const obj = JSON.parse(text.slice(start, end + 1)) as {
+ verdicts?: { id: string; verdict: Verdict; confidence: number; rationale?: string }[];
+ };
+ return (obj.verdicts ?? []).map((v) => ({
+ alertId: v.id,
+ verdict: v.verdict,
+ confidence: Math.max(0.05, Math.min(0.95, Number(v.confidence) || 0.5)),
+ rationale: v.rationale ?? "",
+ }));
+ } catch {
+ return [];
+ }
+}
+
+/** Refine a set of alerts with the user's own LLM. Throws on provider error. */
+export async function refineWithLlm(alerts: Alert[], provider: LlmProvider): Promise<LlmRefinement[]> {
+ if (alerts.length === 0) return [];
+ const prompt = buildUserPrompt(alerts);
+ const text = provider.name === "anthropic" ? await callAnthropic(provider.model, prompt) : await callOpenAI(provider.model, prompt);
+ return parseRefinements(text);
+}
diff --git a/packages/aisoc-lite/src/render/table.ts b/packages/aisoc-lite/src/render/table.ts
new file mode 100644
index 000000000..190638010
--- /dev/null
+++ b/packages/aisoc-lite/src/render/table.ts
@@ -0,0 +1,123 @@
+/**
+ * Terminal rendering for the verdict table + headline summary.
+ *
+ * No layout dependency — a small hand-rolled fixed-width table keeps the
+ * install tiny and the output stable across terminals and CI logs.
+ */
+
+import pc from "picocolors";
+import type { AlertVerdict, Recommendation, TriageResult, Verdict } from "../verdict/types.js";
+
+const VERDICT_LABEL: Record<Verdict, string> = {
+ true_positive: "TRUE POSITIVE",
+ likely_true_positive: "LIKELY TP",
+ needs_review: "NEEDS REVIEW",
+ likely_benign: "SUPPRESS (FP)",
+};
+
+function colorVerdict(v: Verdict, text: string): string {
+ switch (v) {
+ case "true_positive":
+ return pc.bold(pc.red(text));
+ case "likely_true_positive":
+ return pc.red(text);
+ case "needs_review":
+ return pc.yellow(text);
+ case "likely_benign":
+ return pc.dim(text);
+ default: {
+ const _never: never = v;
+ return _never;
+ }
+ }
+}
+
+const RECO_ICON: Record<Recommendation, string> = {
+ escalate: "→ escalate",
+ review: "→ review",
+ suppress: "→ suppress",
+};
+
+function pad(s: string, width: number): string {
+ // Pad based on visible length (strip ANSI) so colored cells still align.
+ const visible = s.replace(/\u001b\[[0-9;]*m/g, "");
+ const gap = Math.max(0, width - visible.length);
+ return s + " ".repeat(gap);
+}
+
+function truncate(s: string, max: number): string {
+ return s.length <= max ? s : s.slice(0, max - 1) + "…";
+}
+
+export interface RenderOptions {
+ /** Cap the number of rows printed (escalations always shown first). */
+ maxRows?: number;
+ /** Only show rows that need attention (TP + review), hiding suppressed noise. */
+ attentionOnly?: boolean;
+}
+
+export function renderTable(result: TriageResult, opts: RenderOptions = {}): string {
+ const rows: AlertVerdict[] = opts.attentionOnly
+ ? result.verdicts.filter((v) => v.verdict !== "likely_benign")
+ : result.verdicts;
+
+ const shown = typeof opts.maxRows === "number" ? rows.slice(0, opts.maxRows) : rows;
+ const lines: string[] = [];
+
+ const wId = 11;
+ const wVerdict = 14;
+ const wConf = 6;
+ const wTitle = 42;
+ const wEvidence = 34;
+
+ lines.push(
+ pc.bold(
+ pad("ALERT", wId) +
+ " " +
+ pad("VERDICT", wVerdict) +
+ " " +
+ pad("CONF", wConf) +
+ " " +
+ pad("TITLE", wTitle) +
+ " " +
+ pad("TOP EVIDENCE", wEvidence),
+ ),
+ );
+ lines.push(pc.dim("─".repeat(wId + wVerdict + wConf + wTitle + wEvidence + 8)));
+
+ for (const v of shown) {
+ const conf = `${Math.round(v.confidence * 100)}%`;
+ const topEvidence = v.evidence[0]?.detail ?? v.basis[0] ?? "—";
+ lines.push(
+ pad(pc.cyan(v.alertId), wId) +
+ " " +
+ pad(colorVerdict(v.verdict, VERDICT_LABEL[v.verdict]), wVerdict) +
+ " " +
+ pad(conf, wConf) +
+ " " +
+ pad(truncate(v.title, wTitle), wTitle) +
+ " " +
+ pc.dim(truncate(`${RECO_ICON[v.recommendation]} · ${topEvidence}`, wEvidence)),
+ );
+ }
+
+ if (shown.length < rows.length) {
+ lines.push(pc.dim(` … ${rows.length - shown.length} more (raise --max-rows to see all)`));
+ }
+ return lines.join("\n");
+}
+
+export function renderHeadline(result: TriageResult): string {
+ const s = result.summary;
+ const badge = result.deterministic ? pc.dim(" [deterministic · no LLM]") : pc.dim(" [LLM-assisted]");
+ const parts = [
+ pc.bold(pc.green("✓ ")) + pc.bold(s.headline) + badge,
+ " " +
+ pc.red(`${s.truePositive} escalate`) +
+ pc.dim(" · ") +
+ pc.yellow(`${s.needsReview} review`) +
+ pc.dim(" · ") +
+ pc.dim(`${s.suppressed} suppressed`),
+ ];
+ return parts.join("\n");
+}
diff --git a/packages/aisoc-lite/src/share.test.ts b/packages/aisoc-lite/src/share.test.ts
new file mode 100644
index 000000000..e09839642
--- /dev/null
+++ b/packages/aisoc-lite/src/share.test.ts
@@ -0,0 +1,31 @@
+import { describe, expect, it } from "vitest";
+import { renderMarkdownCard, renderSvgCard } from "./share.js";
+import { triageBatch } from "./verdict/engine.js";
+import { loadDemoAlerts } from "./fixtures/index.js";
+
+describe("share card — postable, redacted artifact", () => {
+ const result = triageBatch(loadDemoAlerts());
+
+ it("markdown embeds aggregate counts and the reproduce command", () => {
+ const md = renderMarkdownCard(result);
+ expect(md).toContain("triaged");
+ expect(md).toContain("**200**");
+ expect(md).toContain("npx aisoc triage --demo");
+ });
+
+ it("never leaks alert content (no IOCs, hostnames, titles)", () => {
+ const md = renderMarkdownCard(result);
+ const svg = renderSvgCard(result);
+ for (const artifact of [md, svg]) {
+ expect(artifact).not.toMatch(/ransomware|mimikatz|WIN-FIN-DB01|\b\d{1,3}(\.\d{1,3}){3}\b/);
+ }
+ });
+
+ it("svg is a valid standalone 1200x630 share card", () => {
+ const svg = renderSvgCard(result);
+ expect(svg).toContain("<svg");
+ expect(svg).toContain('width="1200"');
+ expect(svg).toContain('height="630"');
+ expect(svg).toContain("85.5%");
+ });
+});
diff --git a/packages/aisoc-lite/src/share.ts b/packages/aisoc-lite/src/share.ts
new file mode 100644
index 000000000..dcbcaad4d
--- /dev/null
+++ b/packages/aisoc-lite/src/share.ts
@@ -0,0 +1,100 @@
+/**
+ * `--share` report-card renderer: turns a triage run into a redacted,
+ * postable artifact (Markdown + a self-contained SVG card).
+ *
+ * Privacy: the card contains only aggregate counts and verdict-band metadata —
+ * never alert titles, IOCs, hostnames, or usernames. Nothing here can leak
+ * environment specifics, so it's safe to post without a redaction review.
+ *
+ * The SVG format is intentionally identical in spirit to the W3
+ * `packages/report-card` web renderer so a CLI card and a dashboard "share
+ * results" card look the same. Kept dependency-free so `npx aisoc` stays tiny.
+ */
+
+import { writeFile } from "node:fs/promises";
+import type { TriageResult } from "./verdict/types.js";
+
+export interface ShareArtifacts {
+ markdown: string;
+ svg: string;
+}
+
+export function renderMarkdownCard(result: TriageResult): string {
+ const s = result.summary;
+ const seconds = (s.elapsedMs / 1000).toFixed(2);
+ return [
+ "## AiSOC triage report card",
+ "",
+ `> ${s.headline}`,
+ "",
+ "| Metric | Value |",
+ "|---|---|",
+ `| Alerts triaged | **${s.total}** |`,
+ `| Escalated (TP / likely-TP) | **${s.truePositive}** |`,
+ `| Needs review | **${s.needsReview}** |`,
+ `| Suppressed as noise | **${s.suppressed}** |`,
+ `| Noise suppressed | **${s.noisePercent}%** |`,
+ `| Wall-clock | **${seconds}s** |`,
+ `| Mode | ${result.deterministic ? "deterministic (no LLM key)" : "LLM-assisted"} |`,
+ "",
+ "Aggregate counts only — no alert content, IOCs, or identities are included.",
+ "",
+ "Reproduce: `npx aisoc triage --demo` · Open source: https://github.com/beenuar/AiSOC",
+ "",
+ ].join("\n");
+}
+
+function esc(s: string): string {
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
+}
+
+/** A 1200×630 share card (X/LinkedIn/Slack unfurl aspect ratio) as standalone SVG. */
+export function renderSvgCard(result: TriageResult): string {
+ const s = result.summary;
+ const seconds = (s.elapsedMs / 1000).toFixed(1);
+ const bigNoise = `${s.noisePercent}%`;
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630" role="img" aria-label="AiSOC triage report card">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0" stop-color="#0b1020"/>
+ <stop offset="1" stop-color="#131a33"/>
+ </linearGradient>
+ </defs>
+ <rect width="1200" height="630" fill="url(#bg)"/>
+ <rect x="0" y="0" width="1200" height="8" fill="#7b2bbe"/>
+ <text x="64" y="96" fill="#e6e9f5" font-family="ui-sans-serif,system-ui,Segoe UI,Roboto,Arial" font-size="34" font-weight="700">AiSOC · alert triage</text>
+ <text x="64" y="150" fill="#8b93b7" font-family="ui-sans-serif,system-ui,Segoe UI,Roboto,Arial" font-size="24">${esc(result.deterministic ? "deterministic verdict engine · no LLM key" : "LLM-assisted verdict engine")}</text>
+
+ <text x="64" y="300" fill="#22c55e" font-family="ui-sans-serif,system-ui,Segoe UI,Roboto,Arial" font-size="150" font-weight="800">${bigNoise}</text>
+ <text x="64" y="356" fill="#8b93b7" font-family="ui-sans-serif,system-ui,Segoe UI,Roboto,Arial" font-size="28">of alert noise suppressed</text>
+
+ <g font-family="ui-sans-serif,system-ui,Segoe UI,Roboto,Arial">
+ <text x="64" y="470" fill="#e6e9f5" font-size="30" font-weight="700">${s.total}</text>
+ <text x="64" y="506" fill="#8b93b7" font-size="22">triaged</text>
+ <text x="320" y="470" fill="#f87171" font-size="30" font-weight="700">${s.truePositive}</text>
+ <text x="320" y="506" fill="#8b93b7" font-size="22">escalate</text>
+ <text x="560" y="470" fill="#fbbf24" font-size="30" font-weight="700">${s.needsReview}</text>
+ <text x="560" y="506" fill="#8b93b7" font-size="22">review</text>
+ <text x="800" y="470" fill="#94a3b8" font-size="30" font-weight="700">${s.suppressed}</text>
+ <text x="800" y="506" fill="#8b93b7" font-size="22">suppressed</text>
+ <text x="1040" y="470" fill="#e6e9f5" font-size="30" font-weight="700">${seconds}s</text>
+ <text x="1040" y="506" fill="#8b93b7" font-size="22">elapsed</text>
+ </g>
+
+ <text x="64" y="590" fill="#6b7394" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22">npx aisoc triage --demo · github.com/beenuar/AiSOC</text>
+</svg>
+`;
+}
+
+export function renderShareArtifacts(result: TriageResult): ShareArtifacts {
+ return { markdown: renderMarkdownCard(result), svg: renderSvgCard(result) };
+}
+
+/** Write the share artifacts to disk, returning the paths written. */
+export async function writeShareArtifacts(result: TriageResult, basePath: string): Promise<string[]> {
+ const { markdown, svg } = renderShareArtifacts(result);
+ const mdPath = basePath.endsWith(".md") ? basePath : `${basePath}.md`;
+ const svgPath = mdPath.replace(/\.md$/, ".svg");
+ await Promise.all([writeFile(mdPath, markdown, "utf8"), writeFile(svgPath, svg, "utf8")]);
+ return [mdPath, svgPath];
+}
diff --git a/packages/aisoc-lite/src/sources.ts b/packages/aisoc-lite/src/sources.ts
new file mode 100644
index 000000000..23d7664ae
--- /dev/null
+++ b/packages/aisoc-lite/src/sources.ts
@@ -0,0 +1,135 @@
+/**
+ * Source adapters: normalize alerts from various origins into the canonical
+ * `Alert` shape the verdict engine consumes.
+ *
+ * Included today:
+ * - `demo` — bundled deterministic fixture (zero creds, zero network)
+ * - `jsonl` — a local newline-delimited JSON file of alerts
+ *
+ * Live SIEM/EDR adapters (Splunk / Sentinel / Elastic / CrowdStrike) share the
+ * same normalization contract; each maps its native alert object through
+ * `normalizeRecord` below. The connectors themselves require credentials and
+ * are wired in `src/sources/` behind the interactive `triage` flow — the demo
+ * and jsonl paths are the always-free entrypoints.
+ */
+
+import { readFile } from "node:fs/promises";
+import { loadDemoAlerts } from "./fixtures/index.js";
+import type { Alert, Severity } from "./verdict/types.js";
+
+export type SourceKind = "demo" | "jsonl" | "splunk" | "sentinel" | "elastic" | "crowdstrike";
+
+const SEVERITIES: Severity[] = ["info", "low", "medium", "high", "critical"];
+
+function coerceSeverity(value: unknown): Severity {
+ const s = String(value ?? "").toLowerCase();
+ if ((SEVERITIES as string[]).includes(s)) return s as Severity;
+ // Common vendor synonyms.
+ if (["informational", "none", "notice"].includes(s)) return "info";
+ if (["warning", "warn", "moderate"].includes(s)) return "medium";
+ if (["severe", "urgent"].includes(s)) return "critical";
+ const num = Number(value);
+ if (!Number.isNaN(num)) {
+ if (num >= 9) return "critical";
+ if (num >= 7) return "high";
+ if (num >= 4) return "medium";
+ if (num >= 1) return "low";
+ }
+ return "info";
+}
+
+function coerceRisk(value: unknown): number | undefined {
+ const num = Number(value);
+ if (Number.isNaN(num)) return undefined;
+ // Vendors publish risk on 0–100 or 0–1; normalize to [0, 1].
+ return num > 1 ? Math.min(num / 100, 1) : Math.max(num, 0);
+}
+
+/**
+ * Best-effort normalization of an arbitrary record into an `Alert`. Tolerant of
+ * the common field spellings used by Splunk, Sentinel, Elastic ECS, and
+ * CrowdStrike so a raw export "just works" without a mapping file.
+ */
+export function normalizeRecord(rec: Record<string, unknown>, source: string, index: number): Alert {
+ const g = (...keys: string[]): unknown => {
+ for (const k of keys) {
+ if (rec[k] != null && rec[k] !== "") return rec[k];
+ }
+ return undefined;
+ };
+
+ const techniquesRaw = g("techniques", "mitre_techniques", "mitre", "threat.technique.id");
+ const techniques = Array.isArray(techniquesRaw)
+ ? techniquesRaw.map(String)
+ : typeof techniquesRaw === "string"
+ ? techniquesRaw.split(/[,\s]+/).filter(Boolean)
+ : undefined;
+
+ return {
+ id: String(g("id", "_id", "alert_id", "detection_id", "event_id") ?? `${source}-${index + 1}`),
+ title: String(g("title", "name", "rule_name", "message", "signal.rule.name", "search_name") ?? "Untitled alert"),
+ source,
+ severity: coerceSeverity(g("severity", "level", "priority", "urgency", "kibana.alert.severity")),
+ riskScore: coerceRisk(g("riskScore", "risk_score", "risk", "confidence", "score")),
+ hostname: g("hostname", "host", "host.name", "computer", "device.hostname") as string | undefined,
+ username: g("username", "user", "user.name", "account", "src_user") as string | undefined,
+ techniques,
+ iocs: {
+ srcIp: g("src_ip", "source.ip", "src", "SourceIp") as string | undefined,
+ dstIp: g("dst_ip", "destination.ip", "dest", "DestinationIp") as string | undefined,
+ domain: g("domain", "dns.question.name", "url.domain") as string | undefined,
+ fileHash: g("file_hash", "file.hash.sha256", "sha256", "hash") as string | undefined,
+ url: g("url", "url.full", "http.request.url") as string | undefined,
+ },
+ raw: typeof g("raw", "description", "_raw", "message") === "string"
+ ? (g("raw", "description", "_raw", "message") as string)
+ : JSON.stringify(rec),
+ timestamp: g("timestamp", "@timestamp", "_time", "created") as string | undefined,
+ };
+}
+
+/** Parse a newline-delimited JSON file (one alert object per line, or a JSON array). */
+export async function loadJsonl(path: string, sourceLabel = "jsonl"): Promise<Alert[]> {
+ const text = await readFile(path, "utf8");
+ const trimmed = text.trim();
+ let records: Record<string, unknown>[];
+ if (trimmed.startsWith("[")) {
+ records = JSON.parse(trimmed);
+ } else if (trimmed.startsWith("{") && trimmed.includes('"alerts"')) {
+ const obj = JSON.parse(trimmed);
+ records = Array.isArray(obj.alerts) ? obj.alerts : [obj];
+ } else {
+ records = trimmed
+ .split("\n")
+ .map((l) => l.trim())
+ .filter(Boolean)
+ .map((l) => JSON.parse(l));
+ }
+ return records.map((r, i) => normalizeRecord(r, sourceLabel, i));
+}
+
+/** Resolve alerts for a chosen source. */
+export async function loadAlerts(kind: SourceKind, opts: { file?: string; limit?: number } = {}): Promise<Alert[]> {
+ let alerts: Alert[];
+ switch (kind) {
+ case "demo":
+ alerts = loadDemoAlerts();
+ break;
+ case "jsonl":
+ if (!opts.file) throw new Error("jsonl source requires --file <path>");
+ alerts = await loadJsonl(opts.file);
+ break;
+ case "splunk":
+ case "sentinel":
+ case "elastic":
+ case "crowdstrike":
+ throw new Error(
+ `Live '${kind}' source needs credentials. For a zero-setup run use \`aisoc triage --demo\`, or export your alerts to JSONL and run \`aisoc triage --file alerts.jsonl\`. Live connector auth lands with the v8 CLI GA.`,
+ );
+ default: {
+ const _never: never = kind;
+ return _never;
+ }
+ }
+ return typeof opts.limit === "number" ? alerts.slice(0, opts.limit) : alerts;
+}
diff --git a/packages/aisoc-lite/src/telemetry.test.ts b/packages/aisoc-lite/src/telemetry.test.ts
new file mode 100644
index 000000000..4b3c09837
--- /dev/null
+++ b/packages/aisoc-lite/src/telemetry.test.ts
@@ -0,0 +1,49 @@
+import { afterEach, beforeEach, describe, expect, it } from "vitest";
+import { resolveTelemetry, buildPayload } from "./telemetry.js";
+import { triageBatch } from "./verdict/engine.js";
+import { loadDemoAlerts } from "./fixtures/index.js";
+
+describe("resolveTelemetry — opt-in only", () => {
+ const original = process.env.AISOC_TELEMETRY;
+ beforeEach(() => {
+ delete process.env.AISOC_TELEMETRY;
+ });
+ afterEach(() => {
+ if (original === undefined) delete process.env.AISOC_TELEMETRY;
+ else process.env.AISOC_TELEMETRY = original;
+ });
+
+ it("defaults to OFF", () => {
+ expect(resolveTelemetry({}).enabled).toBe(false);
+ });
+
+ it("--no-telemetry beats everything", () => {
+ process.env.AISOC_TELEMETRY = "1";
+ expect(resolveTelemetry({ telemetry: true, noTelemetry: true }).enabled).toBe(false);
+ });
+
+ it("--telemetry opts in", () => {
+ expect(resolveTelemetry({ telemetry: true }).enabled).toBe(true);
+ });
+
+ it("env AISOC_TELEMETRY=1 opts in; =0 opts out", () => {
+ process.env.AISOC_TELEMETRY = "1";
+ expect(resolveTelemetry({}).enabled).toBe(true);
+ process.env.AISOC_TELEMETRY = "0";
+ expect(resolveTelemetry({}).enabled).toBe(false);
+ });
+});
+
+describe("buildPayload — aggregate only, no alert content", () => {
+ it("contains only counts and metadata", () => {
+ const result = triageBatch(loadDemoAlerts());
+ const payload = buildPayload(result, "demo", "0.1.0");
+ const serialized = JSON.stringify(payload);
+ // No alert titles, IOCs, hostnames, or raw text may appear.
+ expect(serialized).not.toMatch(/ransomware|WIN-|mimikatz|\d+\.\d+\.\d+\.\d+/);
+ expect(payload).toMatchObject({ event: "triage", total: 200, source: "demo" });
+ expect(Object.keys(payload).sort()).toEqual(
+ ["deterministic", "elapsedMs", "event", "needsReview", "source", "suppressed", "total", "truePositive", "version"].sort(),
+ );
+ });
+});
diff --git a/packages/aisoc-lite/src/telemetry.ts b/packages/aisoc-lite/src/telemetry.ts
new file mode 100644
index 000000000..ecc522912
--- /dev/null
+++ b/packages/aisoc-lite/src/telemetry.ts
@@ -0,0 +1,84 @@
+/**
+ * Strictly opt-in, aggregate-only telemetry.
+ *
+ * Default: OFF. Nothing is sent unless the user passes `--telemetry` or sets
+ * `AISOC_TELEMETRY=1`. Even then, only run counts and verdict-band aggregates
+ * leave the machine — never alert content, IOCs, hostnames, filenames, or
+ * config. `--no-telemetry` and `AISOC_TELEMETRY=0` are hard overrides.
+ *
+ * The full contract is documented in TELEMETRY.md and printed on first use.
+ * Trust is the moat; this file must never grow to collect more.
+ */
+
+import type { TriageResult } from "./verdict/types.js";
+
+const ENDPOINT = process.env.AISOC_TELEMETRY_ENDPOINT || "https://telemetry.tryaisoc.com/v1/cli";
+
+export interface TelemetryDecision {
+ enabled: boolean;
+ reason: string;
+}
+
+/**
+ * Resolve whether telemetry is enabled. Precedence (highest first):
+ * 1. explicit `--no-telemetry` flag → off
+ * 2. explicit `--telemetry` flag → on
+ * 3. AISOC_TELEMETRY=0 → off
+ * 4. AISOC_TELEMETRY=1 → on
+ * 5. default → off
+ */
+export function resolveTelemetry(flags: { telemetry?: boolean; noTelemetry?: boolean }): TelemetryDecision {
+ if (flags.noTelemetry) return { enabled: false, reason: "--no-telemetry" };
+ if (flags.telemetry) return { enabled: true, reason: "--telemetry" };
+ const env = process.env.AISOC_TELEMETRY;
+ if (env === "0" || env === "false") return { enabled: false, reason: "AISOC_TELEMETRY=0" };
+ if (env === "1" || env === "true") return { enabled: true, reason: "AISOC_TELEMETRY=1" };
+ return { enabled: false, reason: "default (opt-in only)" };
+}
+
+/** The exact aggregate payload — nothing here can identify an alert or host. */
+export interface TelemetryPayload {
+ event: "triage";
+ version: string;
+ source: string;
+ total: number;
+ truePositive: number;
+ needsReview: number;
+ suppressed: number;
+ deterministic: boolean;
+ elapsedMs: number;
+}
+
+export function buildPayload(result: TriageResult, source: string, version: string): TelemetryPayload {
+ const s = result.summary;
+ return {
+ event: "triage",
+ version,
+ source,
+ total: s.total,
+ truePositive: s.truePositive,
+ needsReview: s.needsReview,
+ suppressed: s.suppressed,
+ deterministic: result.deterministic,
+ elapsedMs: s.elapsedMs,
+ };
+}
+
+/** Fire-and-forget send. Never blocks or fails the CLI; silent on error. */
+export async function sendTelemetry(payload: TelemetryPayload): Promise<boolean> {
+ try {
+ const controller = new AbortController();
+ const timer = setTimeout(() => controller.abort(), 2000);
+ await fetch(ENDPOINT, {
+ method: "POST",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify(payload),
+ signal: controller.signal,
+ });
+ clearTimeout(timer);
+ return true;
+ } catch {
+ // Telemetry must never degrade the tool. Swallow all errors.
+ return false;
+ }
+}
diff --git a/packages/aisoc-lite/src/verdict/engine.test.ts b/packages/aisoc-lite/src/verdict/engine.test.ts
new file mode 100644
index 000000000..5228c5baf
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/engine.test.ts
@@ -0,0 +1,39 @@
+import { describe, expect, it } from "vitest";
+import { triageBatch, summarize } from "./engine.js";
+import { loadDemoAlerts, DEMO_ALERT_COUNT } from "../fixtures/index.js";
+
+describe("triageBatch — demo fixture distribution", () => {
+ it("ships exactly 200 deterministic demo alerts", () => {
+ expect(DEMO_ALERT_COUNT).toBe(200);
+ expect(loadDemoAlerts()).toHaveLength(200);
+ });
+
+ it("produces the README headline distribution (12 TP / 17 review / 171 suppressed)", () => {
+ const result = triageBatch(loadDemoAlerts());
+ expect(result.summary.total).toBe(200);
+ expect(result.summary.truePositive).toBe(12);
+ expect(result.summary.needsReview).toBe(17);
+ expect(result.summary.suppressed).toBe(171);
+ expect(result.summary.noisePercent).toBe(85.5);
+ });
+
+ it("is deterministic — identical input yields identical verdicts", () => {
+ const a = triageBatch(loadDemoAlerts());
+ const b = triageBatch(loadDemoAlerts());
+ expect(a.verdicts.map((v) => [v.alertId, v.verdict, v.confidence])).toEqual(
+ b.verdicts.map((v) => [v.alertId, v.verdict, v.confidence]),
+ );
+ });
+
+ it("sorts escalations first", () => {
+ const result = triageBatch(loadDemoAlerts());
+ const firstBenignIdx = result.verdicts.findIndex((v) => v.verdict === "likely_benign");
+ const lastEscalateIdx = result.verdicts.map((v) => v.verdict).lastIndexOf("likely_true_positive");
+ expect(firstBenignIdx).toBeGreaterThan(lastEscalateIdx);
+ });
+
+ it("headline string matches the documented format", () => {
+ const s = summarize(triageBatch(loadDemoAlerts()).verdicts, 4200);
+ expect(s.headline).toBe("AiSOC triaged 200 alerts: 12 TP, 171 FP suppressed (85.5% noise), 17 need review — in 4.2s");
+ });
+});
diff --git a/packages/aisoc-lite/src/verdict/engine.ts b/packages/aisoc-lite/src/verdict/engine.ts
new file mode 100644
index 000000000..26776ad26
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/engine.ts
@@ -0,0 +1,61 @@
+/**
+ * Batch verdict engine + summary roll-up.
+ *
+ * `triageBatch` runs the deterministic per-alert scorer across a batch and
+ * produces the one-line, copy-pasteable headline the CLI prints and the
+ * `--share` report card embeds.
+ */
+
+import { scoreAlert } from "./stages.js";
+import type { Alert, AlertVerdict, TriageResult, TriageSummary } from "./types.js";
+
+/** Roll a set of per-alert verdicts up into the headline summary. */
+export function summarize(verdicts: AlertVerdict[], elapsedMs: number): TriageSummary {
+ const total = verdicts.length;
+ let truePositive = 0;
+ let needsReview = 0;
+ let suppressed = 0;
+
+ for (const v of verdicts) {
+ if (v.verdict === "true_positive" || v.verdict === "likely_true_positive") {
+ truePositive += 1;
+ } else if (v.verdict === "needs_review") {
+ needsReview += 1;
+ } else {
+ suppressed += 1;
+ }
+ }
+
+ const noisePercent = total > 0 ? Number(((suppressed / total) * 100).toFixed(1)) : 0;
+ const seconds = (elapsedMs / 1000).toFixed(elapsedMs < 10_000 ? 1 : 0);
+
+ const headline =
+ `AiSOC triaged ${total} alert${total === 1 ? "" : "s"}: ` +
+ `${truePositive} TP, ${suppressed} FP suppressed (${noisePercent}% noise), ` +
+ `${needsReview} need review — in ${seconds}s`;
+
+ return { total, truePositive, needsReview, suppressed, noisePercent, elapsedMs, headline };
+}
+
+/**
+ * Triage a batch of already-normalized alerts. Pure and deterministic:
+ * identical input always yields an identical result (modulo `elapsedMs`).
+ */
+export function triageBatch(alerts: Alert[], opts: { deterministic?: boolean } = {}): TriageResult {
+ const started = Date.now();
+ const verdicts = alerts.map(scoreAlert);
+ // Sort escalations first so the terminal table leads with what matters.
+ const order: Record<AlertVerdict["verdict"], number> = {
+ true_positive: 0,
+ likely_true_positive: 1,
+ needs_review: 2,
+ likely_benign: 3,
+ };
+ verdicts.sort((a, b) => order[a.verdict] - order[b.verdict] || b.confidence - a.confidence);
+ const elapsedMs = Date.now() - started;
+ return {
+ verdicts,
+ summary: summarize(verdicts, elapsedMs),
+ deterministic: opts.deterministic ?? true,
+ };
+}
diff --git a/packages/aisoc-lite/src/verdict/stages.test.ts b/packages/aisoc-lite/src/verdict/stages.test.ts
new file mode 100644
index 000000000..bf76d355b
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/stages.test.ts
@@ -0,0 +1,67 @@
+import { describe, expect, it } from "vitest";
+import { scoreAlert, recommendationFor, _internals } from "./stages.js";
+import type { Alert } from "./types.js";
+
+const base: Alert = { id: "A1", title: "t", source: "test", severity: "info" };
+
+describe("scoreAlert — parity with services/agents score_triage", () => {
+ it("clamps to [0.05, 0.95]", () => {
+ expect(_internals.CONF_FLOOR).toBe(0.05);
+ expect(_internals.CONF_CEIL).toBe(0.95);
+ const empty = scoreAlert(base);
+ expect(empty.confidence).toBeGreaterThanOrEqual(0.05);
+ const maxed = scoreAlert({
+ ...base,
+ riskScore: 1,
+ raw: "ransomware credential dump exfiltration",
+ techniques: ["T1", "T2", "T3", "T4"],
+ hostname: "h",
+ iocs: { srcIp: "1.1.1.1", dstIp: "2.2.2.2", domain: "d", fileHash: "f", url: "u" },
+ });
+ expect(maxed.confidence).toBeLessThanOrEqual(0.95);
+ });
+
+ it("uses the exact band boundaries", () => {
+ expect(_internals.verdictBand(0.8)).toBe("true_positive");
+ expect(_internals.verdictBand(0.79)).toBe("likely_true_positive");
+ expect(_internals.verdictBand(0.6)).toBe("likely_true_positive");
+ expect(_internals.verdictBand(0.59)).toBe("needs_review");
+ expect(_internals.verdictBand(0.4)).toBe("needs_review");
+ expect(_internals.verdictBand(0.39)).toBe("likely_benign");
+ });
+
+ it("critical keyword + risk + IOCs + MITRE → true_positive escalate", () => {
+ const v = scoreAlert({
+ ...base,
+ severity: "critical",
+ riskScore: 0.9,
+ raw: "ransomware note dropped, shadow copies deleted",
+ techniques: ["T1486", "T1490"],
+ hostname: "WIN-DB01",
+ iocs: { srcIp: "10.0.0.5", fileHash: "abc" },
+ });
+ expect(v.verdict).toBe("true_positive");
+ expect(v.recommendation).toBe("escalate");
+ expect(v.evidence.length).toBeGreaterThan(0);
+ });
+
+ it("no salient signal → likely_benign suppress", () => {
+ const v = scoreAlert({ ...base, title: "Scheduled backup completed", raw: "nominal" });
+ expect(v.verdict).toBe("likely_benign");
+ expect(v.recommendation).toBe("suppress");
+ });
+
+ it("weight stack matches the Python contribution caps", () => {
+ // risk 0.5 → 0.30 ; high keyword → 0.20 ; 1 IOC → 0.05 → 0.55 → likely_TP
+ const v = scoreAlert({ ...base, riskScore: 0.5, raw: "phishing email", iocs: { srcIp: "1.2.3.4" } });
+ expect(v.confidence).toBeCloseTo(0.55, 5);
+ expect(v.verdict).toBe("needs_review");
+ });
+
+ it("recommendationFor covers every verdict", () => {
+ expect(recommendationFor("true_positive")).toBe("escalate");
+ expect(recommendationFor("likely_true_positive")).toBe("escalate");
+ expect(recommendationFor("needs_review")).toBe("review");
+ expect(recommendationFor("likely_benign")).toBe("suppress");
+ });
+});
diff --git a/packages/aisoc-lite/src/verdict/stages.ts b/packages/aisoc-lite/src/verdict/stages.ts
new file mode 100644
index 000000000..02dc2d163
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/stages.ts
@@ -0,0 +1,179 @@
+/**
+ * Deterministic triage scorer — a faithful TypeScript port of
+ * `score_triage` in `services/agents/app/confidence/scoring.py`.
+ *
+ * Design constraints carried over verbatim from the Python original:
+ * 1. Pure functions — no I/O, no LLM calls. The LLM band layers on top.
+ * 2. Bounded — confidence clamped to [0.05, 0.95]. Never certainty, never
+ * impossibility.
+ * 3. Reasoned — every score returns a `basis` list so the analyst sees why.
+ *
+ * The weight stack and band thresholds are kept byte-for-byte identical to the
+ * server so a CLI verdict matches what the full stack would assign at triage.
+ * A parity test (`stages.test.ts`) pins the constants.
+ */
+
+import type {
+ Alert,
+ AlertVerdict,
+ EvidenceFactor,
+ Recommendation,
+ Verdict,
+} from "./types.js";
+
+const CONF_FLOOR = 0.05;
+const CONF_CEIL = 0.95;
+
+/** Critical-severity keyword set (matches scoring.py `_has_critical_keyword`). */
+const CRITICAL_KEYWORDS = [
+ "ransomware",
+ "lateral movement",
+ "credential dump",
+ "exfiltration",
+ "mimikatz",
+ "cobalt strike",
+ "c2",
+ "rootkit",
+ "supply chain",
+ "zero-day",
+ "data breach",
+] as const;
+
+/** High-severity keyword set (matches scoring.py `_has_high_keyword`). */
+const HIGH_KEYWORDS = [
+ "phishing",
+ "malware",
+ "exploit",
+ "privilege escalation",
+ "brute force",
+ "suspicious login",
+ "anomaly",
+ "backdoor",
+] as const;
+
+function clamp(value: number): number {
+ return Math.max(CONF_FLOOR, Math.min(CONF_CEIL, value));
+}
+
+function alertText(alert: Alert): string {
+ return `${alert.title} ${alert.raw ?? ""} ${JSON.stringify(alert.iocs ?? {})}`.toLowerCase();
+}
+
+function hasKeyword(text: string, keywords: readonly string[]): boolean {
+ return keywords.some((kw) => text.includes(kw));
+}
+
+function verdictBand(confidence: number): Verdict {
+ if (confidence >= 0.8) return "true_positive";
+ if (confidence >= 0.6) return "likely_true_positive";
+ if (confidence >= 0.4) return "needs_review";
+ return "likely_benign";
+}
+
+/** Map a verdict to the recommended analyst action. */
+export function recommendationFor(verdict: Verdict): Recommendation {
+ switch (verdict) {
+ case "true_positive":
+ case "likely_true_positive":
+ return "escalate";
+ case "needs_review":
+ return "review";
+ case "likely_benign":
+ return "suppress";
+ default: {
+ // Exhaustiveness guard — a new verdict tier must be handled explicitly.
+ const _never: never = verdict;
+ return _never;
+ }
+ }
+}
+
+/**
+ * Score a single alert into a verdict + confidence + weighted evidence.
+ *
+ * Weight stack (additive, then clamped), identical to `score_triage`:
+ * - vendor risk_score → min(risk * 0.6, 0.6)
+ * - critical keyword → +0.35 (else high keyword → +0.20)
+ * - IOC field count → min(hits * 0.05, 0.15)
+ * - MITRE technique count → min(n * 0.04, 0.12)
+ * - hostname present → +0.05
+ */
+export function scoreAlert(alert: Alert): AlertVerdict {
+ const basis: string[] = [];
+ const evidence: EvidenceFactor[] = [];
+ let weight = 0;
+
+ const risk = Number(alert.riskScore ?? 0) || 0;
+ if (risk > 0) {
+ const c = Math.min(risk * 0.6, 0.6);
+ weight += c;
+ basis.push(`vendor risk_score=${risk.toFixed(2)}`);
+ evidence.push({ factor: "vendor_risk", detail: `risk_score=${risk.toFixed(2)}`, contribution: c });
+ }
+
+ const text = alertText(alert);
+ if (hasKeyword(text, CRITICAL_KEYWORDS)) {
+ weight += 0.35;
+ basis.push("critical-severity keyword match in alert text");
+ evidence.push({ factor: "critical_keyword", detail: "critical keyword match", contribution: 0.35 });
+ } else if (hasKeyword(text, HIGH_KEYWORDS)) {
+ weight += 0.2;
+ basis.push("high-severity keyword match in alert text");
+ evidence.push({ factor: "high_keyword", detail: "high-severity keyword match", contribution: 0.2 });
+ }
+
+ const iocs = alert.iocs ?? {};
+ const iocHits = [iocs.srcIp, iocs.dstIp, iocs.domain, iocs.fileHash, iocs.url].filter(Boolean).length;
+ if (iocHits > 0) {
+ const c = Math.min(iocHits * 0.05, 0.15);
+ weight += c;
+ basis.push(`${iocHits} IOC field(s) present`);
+ evidence.push({ factor: "ioc_density", detail: `${iocHits} IOC field(s)`, contribution: c });
+ }
+
+ const techniques = alert.techniques ?? [];
+ if (techniques.length > 0) {
+ const c = Math.min(techniques.length * 0.04, 0.12);
+ weight += c;
+ basis.push(`${techniques.length} MITRE technique ID(s) attached`);
+ evidence.push({ factor: "mitre_coverage", detail: techniques.join(", "), contribution: c });
+ }
+
+ if (alert.hostname) {
+ weight += 0.05;
+ basis.push("hostname present (enables containment)");
+ evidence.push({ factor: "containment", detail: `host ${alert.hostname}`, contribution: 0.05 });
+ }
+
+ const confidence = clamp(weight);
+ const verdict = verdictBand(confidence);
+ const recommendation = recommendationFor(verdict);
+
+ if (basis.length === 0) {
+ basis.push("no salient signals — defaulting to floor confidence");
+ evidence.push({ factor: "no_signal", detail: "no salient signals", contribution: 0 });
+ }
+
+ evidence.sort((a, b) => Math.abs(b.contribution) - Math.abs(a.contribution));
+
+ return {
+ alertId: alert.id,
+ title: alert.title,
+ source: alert.source,
+ severity: alert.severity,
+ verdict,
+ confidence: Number(confidence.toFixed(4)),
+ recommendation,
+ basis,
+ evidence: evidence.slice(0, 3),
+ };
+}
+
+/** Exposed for the parity test — the exact constants the server pins. */
+export const _internals = {
+ CONF_FLOOR,
+ CONF_CEIL,
+ CRITICAL_KEYWORDS,
+ HIGH_KEYWORDS,
+ verdictBand,
+};
diff --git a/packages/aisoc-lite/src/verdict/translate.test.ts b/packages/aisoc-lite/src/verdict/translate.test.ts
new file mode 100644
index 000000000..be6505808
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/translate.test.ts
@@ -0,0 +1,27 @@
+import { describe, expect, it } from "vitest";
+import { translateRule } from "./translate.js";
+
+describe("translateRule — deterministic field-map", () => {
+ it("substitutes Sigma fields into SPL/KQL/ES|QL field names", () => {
+ const out = translateRule("CommandLine contains mimikatz and SourceIp", "sigma", ["spl", "esql"]);
+ const spl = out.results.find((r) => r.format === "spl")!;
+ const esql = out.results.find((r) => r.format === "esql")!;
+ expect(spl.rule).toContain("process_path");
+ expect(spl.rule).toContain("src_ip");
+ expect(spl.rule).toContain("| search");
+ expect(esql.rule).toContain("process.command_line");
+ expect(esql.rule).toContain("source.ip");
+ expect(esql.rule).toContain("FROM logs-*");
+ });
+
+ it("returns source unchanged when target equals source", () => {
+ const out = translateRule("EventID: 4688", "sigma", ["sigma"]);
+ expect(out.results[0]!.rule).toBe("EventID: 4688");
+ expect(out.results[0]!.notes).toMatch(/same as source/i);
+ });
+
+ it("always emits a no-LLM warning so users verify field names", () => {
+ const out = translateRule("EventID 4688", "sigma", ["kql"]);
+ expect(out.warnings.join(" ")).toMatch(/field-map|review/i);
+ });
+});
diff --git a/packages/aisoc-lite/src/verdict/translate.ts b/packages/aisoc-lite/src/verdict/translate.ts
new file mode 100644
index 000000000..cb8b391d9
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/translate.ts
@@ -0,0 +1,134 @@
+/**
+ * Deterministic, no-LLM detection-rule translation.
+ *
+ * A TypeScript port of the field-map substitution fallback in
+ * `services/api/app/api/v1/endpoints/translation.py`. This is the zero-key path
+ * that powers `aisoc translate <rule>` and the browser-side `/tools/translate`
+ * tool. It is intentionally a best-effort field remap (not a full Sigma AST
+ * compiler); a BYO-key LLM path can layer higher fidelity on top.
+ */
+
+export type DetectionFormat = "sigma" | "spl" | "kql" | "esql" | "yara_l2" | "udm";
+
+export const FORMAT_LABELS: Record<DetectionFormat, string> = {
+ sigma: "Sigma YAML",
+ spl: "Splunk SPL",
+ kql: "Microsoft Sentinel KQL",
+ esql: "Elastic ES|QL",
+ yara_l2: "Google Chronicle YARA-L2",
+ udm: "Google Chronicle UDM Search",
+};
+
+// Sigma → target field map (common ECS / OCSF fields). Byte-identical to the
+// server's `_FIELD_MAP` so CLI and API produce the same deterministic output.
+const FIELD_MAP: Record<string, Record<string, string>> = {
+ spl: {
+ EventID: "EventCode",
+ Image: "process_name",
+ CommandLine: "process_path",
+ TargetUserName: "user",
+ DestinationIp: "dest_ip",
+ SourceIp: "src_ip",
+ },
+ kql: {
+ EventID: "EventID",
+ Image: "NewProcessName",
+ CommandLine: "CommandLine",
+ TargetUserName: "TargetUserName",
+ DestinationIp: "RemoteIP",
+ SourceIp: "InitiatingProcessRemoteIP",
+ },
+ esql: {
+ EventID: "event.code",
+ Image: "process.executable",
+ CommandLine: "process.command_line",
+ TargetUserName: "user.name",
+ DestinationIp: "destination.ip",
+ SourceIp: "source.ip",
+ },
+ yara_l2: {
+ EventID: "metadata.product_event_type",
+ Image: "principal.process.file.full_path",
+ CommandLine: "principal.process.command_line",
+ TargetUserName: "target.user.userid",
+ DestinationIp: "target.ip",
+ SourceIp: "principal.ip",
+ },
+ udm: {
+ EventID: "metadata.product_event_type",
+ Image: "principal.process.file.full_path",
+ CommandLine: "principal.process.command_line",
+ TargetUserName: "target.user.userid",
+ DestinationIp: "target.ip",
+ SourceIp: "principal.ip",
+ },
+};
+
+export interface TranslationResult {
+ format: DetectionFormat;
+ label: string;
+ rule: string;
+ notes?: string;
+}
+
+export interface TranslateOutput {
+ sourceFormat: DetectionFormat;
+ results: TranslationResult[];
+ warnings: string[];
+}
+
+function wrap(fmt: DetectionFormat, rule: string): string {
+ switch (fmt) {
+ case "spl":
+ return `index=* sourcetype=WinEventLog\n| search ${rule}`;
+ case "kql":
+ return `SecurityEvent\n| where ${rule}`;
+ case "esql":
+ return `FROM logs-*\n| WHERE ${rule}`;
+ case "yara_l2":
+ return `rule translated_rule {\n meta:\n author = "AiSOC"\n condition:\n ${rule}\n}`;
+ case "udm":
+ return `// Chronicle UDM Search\n${rule}`;
+ case "sigma":
+ return rule;
+ default: {
+ const _never: never = fmt;
+ return _never;
+ }
+ }
+}
+
+/**
+ * Translate a rule from `sourceFormat` into each requested target format using
+ * pure field-map substitution. Deterministic and offline.
+ */
+export function translateRule(
+ sourceRule: string,
+ sourceFormat: DetectionFormat,
+ targetFormats: DetectionFormat[] = ["sigma", "spl", "kql", "esql"],
+): TranslateOutput {
+ const results: TranslationResult[] = [];
+ const warnings = [
+ "Deterministic field-map translation (no LLM). Review field names before deploying; set ANTHROPIC_API_KEY / OPENAI_API_KEY for higher-fidelity translation.",
+ ];
+
+ for (const fmt of targetFormats) {
+ if (fmt === sourceFormat) {
+ results.push({ format: fmt, label: FORMAT_LABELS[fmt], rule: sourceRule, notes: "Same as source." });
+ continue;
+ }
+ let rule = sourceRule;
+ const map = FIELD_MAP[fmt] ?? {};
+ for (const [src, tgt] of Object.entries(map)) {
+ rule = rule.split(src).join(tgt);
+ }
+ results.push({
+ format: fmt,
+ label: FORMAT_LABELS[fmt],
+ rule: wrap(fmt, rule),
+ notes: "Template translation — verify field names.",
+ });
+ }
+
+ return { sourceFormat, results, warnings };
+}
diff --git a/packages/aisoc-lite/src/verdict/types.ts b/packages/aisoc-lite/src/verdict/types.ts
new file mode 100644
index 000000000..aa00b3eb1
--- /dev/null
+++ b/packages/aisoc-lite/src/verdict/types.ts
@@ -0,0 +1,99 @@
+/**
+ * Shared types for the aisoc-lite deterministic verdict engine.
+ *
+ * These mirror the alert fields consumed by the production scorer in
+ * `services/agents/app/confidence/scoring.py` so a verdict rendered by the CLI
+ * lands in the same band the full stack would assign at triage time.
+ */
+
+export type Severity = "info" | "low" | "medium" | "high" | "critical";
+
+/**
+ * The five-tier verdict ladder produced at triage. Mirrors `score_triage`'s
+ * return contract exactly.
+ */
+export type Verdict =
+ | "true_positive"
+ | "likely_true_positive"
+ | "needs_review"
+ | "likely_benign";
+
+/** What the analyst should do with the alert, derived from the verdict. */
+export type Recommendation = "escalate" | "review" | "suppress";
+
+/** Indicators-of-compromise fields the scorer counts as enrichment anchors. */
+export interface AlertIocs {
+ srcIp?: string;
+ dstIp?: string;
+ domain?: string;
+ fileHash?: string;
+ url?: string;
+}
+
+/**
+ * Normalized alert shape. Source adapters (Splunk / Sentinel / Elastic /
+ * CrowdStrike / JSONL / demo) all normalize into this before scoring, so the
+ * verdict path is source-agnostic and fully deterministic.
+ */
+export interface Alert {
+ id: string;
+ title: string;
+ source: string;
+ severity: Severity;
+ /** Vendor-native risk score already normalized to [0, 1]. */
+ riskScore?: number;
+ hostname?: string;
+ username?: string;
+ techniques?: string[];
+ iocs?: AlertIocs;
+ /**
+ * Free-text blob (raw event / description). Scanned for the same critical /
+ * high keyword sets the Python scorer uses.
+ */
+ raw?: string;
+ /** Original vendor timestamp if present (ISO 8601). */
+ timestamp?: string;
+}
+
+/** A single weighted piece of evidence contributing to the verdict. */
+export interface EvidenceFactor {
+ factor: string;
+ detail: string;
+ contribution: number;
+}
+
+/** The verdict rendered for a single alert. */
+export interface AlertVerdict {
+ alertId: string;
+ title: string;
+ source: string;
+ severity: Severity;
+ verdict: Verdict;
+ /** Calibrated confidence in [0.05, 0.95]. */
+ confidence: number;
+ recommendation: Recommendation;
+ /** Human-readable reasoning bullets, strongest first. */
+ basis: string[];
+ /** Top-N weighted factors for the terminal table / share card. */
+ evidence: EvidenceFactor[];
+}
+
+/** Aggregate roll-up across a triaged batch. */
+export interface TriageSummary {
+ total: number;
+ truePositive: number;
+ needsReview: number;
+ suppressed: number;
+ noisePercent: number;
+ elapsedMs: number;
+ /** The one-line, copy-pasteable headline. */
+ headline: string;
+}
+
+/** Full result of a batch triage run. */
+export interface TriageResult {
+ verdicts: AlertVerdict[];
+ summary: TriageSummary;
+ /** True when no LLM key was used — the deterministic floor only. */
+ deterministic: boolean;
+}
diff --git a/packages/aisoc-lite/src/version.ts b/packages/aisoc-lite/src/version.ts
new file mode 100644
index 000000000..4c5e45aef
--- /dev/null
+++ b/packages/aisoc-lite/src/version.ts
@@ -0,0 +1,2 @@
+// Kept in sync with package.json "version" by the release workflow.
+export const VERSION = "0.1.0";
diff --git a/packages/aisoc-lite/tsconfig.json b/packages/aisoc-lite/tsconfig.json
new file mode 100644
index 000000000..966d436f0
--- /dev/null
+++ b/packages/aisoc-lite/tsconfig.json
@@ -0,0 +1,23 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ESNext",
+ "moduleResolution": "Bundler",
+ "ignoreDeprecations": "6.0",
+ "lib": ["ES2022"],
+ "types": ["node"],
+ "declaration": true,
+ "strict": true,
+ "noUncheckedIndexedAccess": true,
+ "noImplicitOverride": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "resolveJsonModule": true,
+ "verbatimModuleSyntax": true,
+ "isolatedModules": true,
+ "forceConsistentCasingInFileNames": true,
+ "outDir": "dist"
+ },
+ "include": ["src"],
+ "exclude": ["dist", "node_modules", "scripts", "**/*.test.ts"]
+}
diff --git a/packages/aisoc-lite/tsup.config.ts b/packages/aisoc-lite/tsup.config.ts
new file mode 100644
index 000000000..57489ff90
--- /dev/null
+++ b/packages/aisoc-lite/tsup.config.ts
@@ -0,0 +1,18 @@
+import { defineConfig } from "tsup";
+
+// The `src/cli.ts` entry begins with a `#!/usr/bin/env node` shebang, which
+// tsup preserves in the emitted `dist/cli.js` so `npx aisoc` can exec it.
+export default defineConfig({
+ entry: {
+ cli: "src/cli.ts",
+ index: "src/index.ts",
+ },
+ format: ["esm"],
+ target: "node20",
+ platform: "node",
+ dts: { entry: { index: "src/index.ts" } },
+ clean: true,
+ sourcemap: false,
+ minify: false,
+ splitting: false,
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 23b3feaa1..82069cbc2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -218,6 +218,25 @@ importers:
specifier: ^0.1.0
version: 0.1.0([email protected])
+ packages/aisoc-lite:
+ dependencies:
+ picocolors:
+ specifier: ^1.1.1
+ version: 1.1.1
+ devDependencies:
+ '@types/node':
+ specifier: ^25.9.2
+ version: 25.9.2
+ tsup:
+ specifier: ^8.3.0
+ typescript:
+ specifier: ^6.0.3
+ version: 6.0.3
+ vitest:
+ specifier: ^4.1.10
+ version: 4.1.10(@types/[email protected])([email protected])
+
packages/ocsf:
devDependencies:
typescript:
@@ -8291,6 +8310,17 @@ packages:
tinyrainbow: 2.0.0
dev: true
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==}
+ dependencies:
+ '@standard-schema/spec': 1.1.0
+ '@types/chai': 5.2.3
+ '@vitest/spy': 4.1.10
+ '@vitest/utils': 4.1.10
+ chai: 6.2.2
+ tinyrainbow: 3.1.0
+ dev: true
+
resolution: {integrity: sha512-7EHDquPthALSV0jhhjgEW8FXaviMx7rSqu8W6oqCoAuOhKov814P99QDV1pxMA3QPv21YudvJngIhjrNI4opLg==}
dependencies:
@@ -8319,6 +8349,23 @@ packages:
dev: true
+ resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==}
+ peerDependencies:
+ msw: ^2.4.9
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ msw:
+ optional: true
+ vite:
+ optional: true
+ dependencies:
+ '@vitest/spy': 4.1.10
+ estree-walker: 3.0.3
+ magic-string: 0.30.21
+ dev: true
+
resolution: {integrity: sha512-MCFc63czMjEInOlcY2cpQCvCN+KgbAn+60xu9cMgP4sKaLC5JNAKw7JH8QdAnoAC88hW1IiSNZ+GgVXlN1UcMQ==}
peerDependencies:
@@ -8354,6 +8401,13 @@ packages:
tinyrainbow: 3.1.0
dev: true
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==}
+ dependencies:
+ '@vitest/utils': 4.1.10
+ pathe: 2.0.3
+ dev: true
+
resolution: {integrity: sha512-nOPCmn2+yD0ZNmKdsXGv/UxMMWbMuKeD6GyYncNwdkYDxpQvrPSKYj2rWuDjC2Y4b6w6hjip5dBKFzEUuZe3vA==}
dependencies:
@@ -8361,6 +8415,15 @@ packages:
pathe: 2.0.3
dev: true
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==}
+ dependencies:
+ '@vitest/pretty-format': 4.1.10
+ '@vitest/utils': 4.1.10
+ magic-string: 0.30.21
+ pathe: 2.0.3
+ dev: true
+
resolution: {integrity: sha512-YhsdE6xAVfTDmzjxL2ZDUvjj+ZsgyOKe+TdQzqkD72wIOmHka8NuGQ6NpTNZv9D2Z63fbwWKJPeVpEw4EQgYxw==}
dependencies:
@@ -8376,6 +8439,10 @@ packages:
tinyspy: 4.0.4
dev: true
+ /@vitest/[email protected]:
+ resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==}
+ dev: true
+
resolution: {integrity: sha512-JFKxMx6udhwKh/Ldo270e17QX710vgunMkuPAvXjHSvC6oqLWAHhVhjg/I71q0u0CBSErIODV1Kjv0FQNSWjdg==}
dev: true
@@ -19000,7 +19067,7 @@ packages:
source-map: 0.7.6
sucrase: 3.35.1
tinyexec: 0.3.2
- tinyglobby: 0.2.16
+ tinyglobby: 0.2.17
tree-kill: 1.2.2
typescript: 6.0.3
transitivePeerDependencies:
@@ -19648,6 +19715,72 @@ packages:
dev: true
+ resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==}
+ engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
+ hasBin: true
+ peerDependencies:
+ '@edge-runtime/vm': '*'
+ '@opentelemetry/api': ^1.9.0
+ '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
+ '@vitest/browser-playwright': 4.1.10
+ '@vitest/browser-preview': 4.1.10
+ '@vitest/browser-webdriverio': 4.1.10
+ '@vitest/coverage-istanbul': 4.1.10
+ '@vitest/coverage-v8': 4.1.10
+ '@vitest/ui': 4.1.10
+ happy-dom: '*'
+ jsdom: '*'
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ '@edge-runtime/vm':
+ optional: true
+ '@opentelemetry/api':
+ optional: true
+ '@types/node':
+ optional: true
+ '@vitest/browser-playwright':
+ optional: true
+ '@vitest/browser-preview':
+ optional: true
+ '@vitest/browser-webdriverio':
+ optional: true
+ '@vitest/coverage-istanbul':
+ optional: true
+ '@vitest/coverage-v8':
+ optional: true
+ '@vitest/ui':
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+ dependencies:
+ '@types/node': 25.9.2
+ '@vitest/expect': 4.1.10
+ '@vitest/mocker': 4.1.10([email protected])
+ '@vitest/pretty-format': 4.1.10
+ '@vitest/runner': 4.1.10
+ '@vitest/snapshot': 4.1.10
+ '@vitest/spy': 4.1.10
+ '@vitest/utils': 4.1.10
+ es-module-lexer: 2.3.0
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ obug: 2.1.3
+ pathe: 2.0.3
+ picomatch: 4.0.5
+ std-env: 4.2.0
+ tinybench: 2.9.0
+ tinyexec: 1.1.2
+ tinyglobby: 0.2.17
+ tinyrainbow: 3.1.0
+ why-is-node-running: 2.3.0
+ transitivePeerDependencies:
+ - msw
+ dev: true
+
resolution: {integrity: sha512-6lvjbS3p9b4CrdCmguzbh2/4uoXhGE2q71R4OX5sqF9R1bo9Xd6fGrMAfvp5wnCzlBnFVdCOp6onuTQVbo8iUQ==}
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}