Knight Agent: Out-of-Band Incident Command Center for Banking Breaches
Every breach needs a knight.
Inspiration
When banks get hacked, internal communication tools become hostile ground. In major enterprise breaches, attackers lingered invisibly inside corporate Slack, Teams, and email networks, monitoring remediation in real time. Coordinating defense inside a compromised perimeter hands the attacker your playbook.
At the same time, the regulatory stopwatch starts immediately:
- SEC Item 1.05: Requires formal disclosure within four business days ((96\text{ hours})) of determining an incident is material.
- State Data Breach Laws: Enforce strict statutory notice deadlines and customer thresholds across state Attorneys General.
We built Knight Agent as an uncompromised crisis command post operating completely outside the bank's network—unifying security, fraud, legal, and executive teams from minute zero through recovery.
What It Does
- Out-of-Band Command Room: Deployed off-network, decoupled from compromised Active Directory or enterprise SSO.
- Real-Time NIST State Machine: Coordinates teams through NIST SP 800-61 stages (
Triage(\rightarrow)Containment(\rightarrow)Eradication(\rightarrow)Recovery). - Autonomous Fraud Containment (Capital One Nessie API): Ingests live banking telemetry. Upon hitting
Containment, unauthorized transfers where (\text{amount} \ge \$10,000) freeze immediately via API. - Regulatory Radar (Winstead PC Track): Cross-references exfiltrated customer records against state breach laws and SEC Item 1.05 rules, prioritizing notices by legal urgency.
- AI Regulatory Counsel (Google Gemini): Translates live in-memory database telemetry into ready-to-file SEC Item 1.05 8-K disclosures and state notice letters.
- Two-Person Integrity & Role Isolation: Enforces five server-side roles (
admin,lead,responder,legal,viewer). Remediations require two separate keys to execute and verify, while#legalremains attorney-client privileged. - Tamper-Evident SHA-256 Merkle Chain: Logs every incident action to an append-only cryptographic hash chain with instant in-browser mathematical verification: $$\text{Hash}n = \text{SHA-256}\big(\text{Action}_n \,|\, \text{Timestamp}_n \,|\, \text{ActorIdentity}_n \,|\, \text{Hash}{n-1}\big)$$
How We Built It
- SpacetimeDB Maincloud: In-memory WebAssembly module (
breach-room) running database and server logic together with zero traditional middleware. State pushes to all operators over sub-millisecond WebSockets. - Frontend: React, Vite, and Tailwind CSS with a rapid terminal UI and hotkey navigation (
1,2,3). - Capital One Nessie API: Real customer accounts, balances, and transfer velocities mapped to regional jurisdictions (TX, NC, TN, GA).
- Google Cloud & Gemini API: Generates structured legal disclosures directly from live incident database state.
- Cryptographic Audit Engine: In-browser SHA-256 Merkle verifier confirming historical log integrity.
Challenges We Faced
- WASM Identity Types: Aligning SpacetimeDB’s strongly typed cryptographic identities with CLI and frontend reducers required building custom in-app provisioning workflows.
- Deterministic Banking Telemetry: Integrating asynchronous Nessie transaction streams into atomic, race-condition-free SpacetimeDB reducers.
- Statutory Scoring Matrix: Balancing consumer counts with remaining statutory filing hours using a dynamic priority function: $$\text{Priority Score} = w_1 \cdot \frac{N_{\text{affected}}}{\text{Threshold}} + w_2 \cdot \frac{1}{\Delta t_{\text{deadline}}}$$
What We Learned
- Database-as-a-Server: SpacetimeDB eliminates state glue and polling, turning the database into a collaborative event loop.
- Legal Engineering: Technical containment and statutory compliance must be engineered together during an active breach.
- Crisis UX: High-density dashboards, hotkeys, and two-person checks prevent critical human error under extreme cognitive load.
What's Next
- Direct SEC EDGAR & AG Submission: Streaming verified disclosures into official government endpoints via authenticated APIs.
- 50-State & Global Matrix: Expanding compliance engines to all 50 states, EU DORA, and GDPR.
- Air-Gapped Mobile Nodes: Enabling command operations from personal mobile devices when corporate hardware is seized for forensics.
Built With
spacetimedb, webassembly, react, vite, typescript, tailwindcss, capital-one-nessie-api, google-gemini, sha-256
Built With
- gemini
- nessie
- react
- sha-256
- spacetimedb
- tailwindcss
- typescript
- vite
