Open-source SOC kit for Microsoft customers who already use GitHub Copilot agents. Crosswire gives a team a durable cast of specialist agents that get better with use: they hunt in Microsoft Defender XDR and Microsoft Sentinel, cross-compare threat intel, and propose gated auto-response that a human must approve before anything executes.
The product idea builds on bradygaster/squad and @bradygaster/squad-sdk: charters, compounding history, parallel fan-out, and inspectable decisions — wrapped in a TanStack Start control plane instead of leaving everything in a repo-only Copilot workflow.
Status: v1 (Phases 0–8 plus Later) is implemented; the v1 ship gate (#84) waits on a walk-through on a real Azure deploy. v2 (milestone) adds live Sentinel/Defender executors with rollback-as-proposal, approved scheduled hunts, Teams/Slack notifications, parallel Lead fan-out and hunt reports. The milestones and issues are the build plan (Phases 0–8 plus Later).
- microsoft-security-logging-guide — What to log: product-by-product guidance on getting high-value security logs from Microsoft products into Microsoft Sentinel and Microsoft Defender XDR.
- soc-ready-logging — OWASP and ACSC ISM aligned security logging guidance, schemas, wrappers, starter SIEM detections and agent skills for custom software vendors.
- Bower — Self-hosted security log normaliser and Australian privacy gateway that selects, redacts, buffers and proves delivery of custom-app and multi-cloud events into Microsoft Sentinel.
- blueboard and crosswire (you are here) — Open-source SOC workspaces on top of those logs: blueboard is a shared incident board where AI agents and SOC analysts detect, enrich, contain and eradicate together over MCP with human-approved actions; crosswire is a Copilot and Squad agent kit for hunting in Defender XDR and Sentinel, cross-comparing threat intel and proposing gated response.
- SOC, MDR, and Microsoft security teams that hunt in Defender XDR and Sentinel
- Teams already using GitHub Copilot agents (or planning to)
- People who want an open-source kit they can self-host in Docker, with Azure as the first documented deploy target
- A later commercial / hosted layer is intentionally out of v1 (see the Later milestone)
| Capability | v1 |
|---|---|
| Analyst UI | TanStack Start dashboard + TanStack AI basic-chat |
| Auth | Better Auth with Entra ID OIDC first (SAML later) |
| Agents | Security cast: Lead, Hunter, Intel, Responder, Scribe. Squad-shaped charters and memory; model on Azure OpenAI (ADR 0004) |
| Hunting | Live Advanced Hunting / Graph and Sentinel queries, with human review of proposed KQL |
| Response | Propose → human approve → execute (Sentinel playbooks / Logic Apps / Defender isolate). Dry-run by default; v2 adds live Microsoft executors on a separate response app and rollback as a gated proposal. |
| Threat intel | pwn.watch ingest + org watchlists (keywords, CVE, vendor, tag) and a daily digest. cve.watch is unavailable, so CISA KEV is the CVE source (details). |
| Cloudflare Radar | Not in v1. Optional, flag-off IP/domain enrichment on the compare view (Later) |
| Packaging | Docker (runs anywhere). First deploy guide targets Azure Container Apps (or App Service), Azure Database for PostgreSQL, and Key Vault |
| Hosting | No Cloudflare Workers/Pages/D1 as a runtime |
| Agent | Role |
|---|---|
| Lead | Scopes hunts, routes work, signs off recommendations |
| Hunter | Defender XDR Advanced Hunting and Sentinel lake / incident queries |
| Intel | Watchlist matching, pwn.watch (and later other TI), cross-source compare |
| Responder | Drafts gated response proposals; never executes without approval |
| Scribe | Compresses hunt outcomes and analyst feedback into org memory |
Requirements: Node 24 (.nvmrc), pnpm 10 (corepack enable), Docker.
git clone https://github.com/jusso-dev/crosswire && cd crosswire
corepack enable && pnpm install
cp .env.example .env # set BETTER_AUTH_SECRET and APP_ENCRYPTION_KEY (openssl rand -hex 32)
docker compose up -d postgres
pnpm db:migrate
pnpm dev # http://localhost:3000, then "Create an account"Or run everything in Docker: docker compose up --build (app, Postgres, worker; Redis optional via
--profile redis).
No tenant needed: hunting has a demo mode and TI can be
loaded from recorded fixtures (pnpm ingest:pwn --fixtures test/fixtures/pwnwatch).
Chat needs a model: Azure OpenAI with Entra ID sign-in (no key), or any OpenAI-compatible endpoint.
See docs/chat-model.md.
| Command | What it does |
|---|---|
pnpm dev / pnpm build / pnpm start |
Develop, build, run the production server |
pnpm lint / pnpm typecheck / pnpm test |
The checks CI runs (tests use in-process Postgres) |
pnpm db:generate / pnpm db:migrate |
Create / apply Drizzle migrations |
pnpm ingest:pwn / pnpm ingest:cve |
Ingest pwn.watch and CISA KEV (polite, cached) |
pnpm match:watches / pnpm digest:daily |
Match watchlists, build daily digests |
pnpm expire:proposals / pnpm compact-memory |
Expire stale proposals, compact agent memory |
pnpm worker |
Background worker running the jobs above on a schedule |
pnpm bootstrap / pnpm fixtures:load / pnpm db:status |
First org + admin, [DEMO] data, migration status |
- App: TanStack Start + React, TanStack AI basic-chat (
POST /api/chat, SSE) - Auth: Better Auth (
tanstackStartCookies), local email/password, Entra ID OIDC - Data: Postgres + Drizzle (Compose locally; Azure Database for PostgreSQL in the first deploy)
- Agents: charters in
.squad/, Crosswire-hosted runtime with Azure OpenAI (Entra ID, keyless), Copilot custom agents in.github/agents/(ADR 0004) - Secrets: env files locally; Azure Key Vault references in production
- CI/CD: GitHub Actions on GitHub-hosted runners (lint, typecheck, tests, image build); manual-approval deploy to Azure
apps/web TanStack Start control plane (dashboard, chat, hunts, watches, approvals)
src/routes Pages and HTTP endpoints (/api/chat, /api/auth/*, /healthz, /readyz)
src/fns Server functions (session-guarded) used by the UI
src/server Auth, DB schema, agents, TI, hunting, response, CLI jobs
drizzle/ SQL migrations
test/ Vitest suites (PGlite) and recorded TI fixtures
.squad/ Security cast charters, team and routing
.github/ Copilot custom agents + CI and deploy workflows
infra/ Azure Bicep and prod Compose env example
docs/ ADRs, runbooks, auth, hunting, response, TI
- Architecture: ADRs (0001 overview)
- Setup: configuration, auth and Entra SSO
- Product areas: agents and memory, watchlists and TI, hunting (incl. scheduled hunts and reports), gated response (incl. live executors and rollback), Teams/Slack notifications, Copilot agents
- Threat intel sources: pwn.watch, cve.watch status and CISA KEV substitute
- Local Docker and any Docker host (
docker-compose.prod.yml) - Azure Container Apps (Bicep in
infra/azure/, manual-approval GitHub Actions) - Customer Entra setup (SSO vs hunting permissions)
- Go-live checklist and Day-1 operator playbook
- Runbooks: bootstrap, migrations, custom domain + TLS, rollback, backup and restore, staging
- Releasing (latest release, CHANGELOG) and the v1 ship gate
- Post-deploy smoke:
pnpm smoke https://<host>; end-to-end tests (also run in CI):pnpm build && PG_E2E_URL=<disposable database> pnpm test:e2e
See CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md (report vulnerabilities privately).
Work is tracked as epics and child issues under these milestones:
| Phase | Milestone | Theme |
|---|---|---|
| Meta | — | v1 definition of done |
| 0 | Phase 0 — Foundation | App scaffold, Docker Compose, env, CI, community files, ADRs |
| 1 | Phase 1 — Auth | Better Auth, Entra OIDC, orgs, session guards, auth audit |
| 2 | Phase 2 — Dashboard + Chat | App shell, dashboard empty states, TanStack AI chat, approval inbox stub |
| 3 | Phase 3 — Squad / Copilot | SDK spike, security cast, memory, Copilot wiring, learning loop |
| 4 | Phase 4 — Watch + TI | pwn.watch, watchlists, matcher, daily digest, TI compare (no Radar) |
| 5 | Phase 5 — Hunting | Live Defender XDR + Sentinel hunting, hunt cases, safe KQL |
| 6 | Phase 6 — Gated response | Proposals, approval, executors, dry-run, RBAC, audit |
| 7 | Phase 7 — Azure deploy | Production Docker, Azure first-target, runbooks, probes, SBOM scan, optional staging |
| 8 | Phase 8 — Prod + first use | Prod hardening, release, go-live checklist, first successful operator use (SSO → watch → hunt → gated dry-run) |
| Later | Later | Cloudflare Radar connector, SAML SSO, commercial notes, MSSP backlog |
| v2 | v2 — Response depth + operator workflow | Response connector, live Sentinel/Defender executors, rollback as proposal, scheduled hunts, Teams/Slack, parallel fan-out, hunt reports (epic #95) |
Browse all issues: github.com/jusso-dev/crosswire/issues
All milestones: github.com/jusso-dev/crosswire/milestones
Crosswire is built for human-led security operations:
- Agents may propose hunts and responses.
- Destructive or tenant-changing actions require an explicit approval (and can expire unused).
- Phase 5 hunting must not issue destructive Graph calls.
- Phase 6 executors are feature-flagged and must support dry-run.
- Every agent action and approval is auditable.
- v1 is not considered shipped until Phase 8’s first-use / ship-gate checklist passes on the Azure deploy (dry-run ON by default).
Do not point this kit at a production tenant without reviewing the Entra app permissions and running dry-run first.
MIT. Open-source kit first; a hosted commercial offering is a later conversation, not a v1 deliverable.
- bradygaster/squad — persistent specialist agents
- TanStack Start and TanStack AI chat recipe
- Better Auth and SSO plugin
- Microsoft Security Copilot / Sentinel hunting docs (customer tenant; you bring the app registration)