canarycat
README.md
# CanaryCat v7.0 — The AI Agent Crash-Test Lab & Local MCP Firewall

**Test the Agent. Wrap the Tool. Auto-Harden the Risk.**
CanaryCat is a **zero-dependency, local-first (`127.0.0.1`)** AI Agent security crash-test lab and runtime MCP firewall. It combines **20 core & OWASP Agentic scenarios**, **40 market-wide adversarial agent archetypes**, **6 multi-agent cooperative kill chains**, a **transparent MCP Firewall Proxy (`canarycat wrap`)**, an **Auto-Hardening Patcher**, and a **pure-code WebGL2 3D Optical Detective Cat Dashboard**.
https://github.com/user-attachments/assets/68977f8c-8213-43e0-90c2-709ecdcdd942
## 30-Second Quickstart
**No `npm install` required** (Node.js >= 18):
```bash
# 1. Start the 127.0.0.1 hardened lab + 3D Detective Cat Dashboard
npm start
# Or double-click start-canarycat.bat (Windows) / start-canarycat.command (macOS)
# 2. Run the full 95-test security, adversarial & cooperative kill-chain suite
npm test
# 3. Run the 5-round Red vs Blue Arena & Evolutionary Payload Mutator
npm run arena
# 4. Transparently firewall ANY existing MCP server (GitHub, Gmail, FS, DB...)
node ./src/cli/index.mjs wrap -- npx -y @modelcontextprotocol/server-filesystem ./
# 5. Audit your local mcp.json Blast-Radius & auto-protect (with instant rollback)
node ./src/cli/index.mjs audit-config examples/mcp-client-config.json
node ./src/cli/index.mjs protect path/to/mcp.json
node ./src/cli/index.mjs rollback path/to/mcp.json
# 6. Auto-generate System Prompt + Policy + CLAUDE.md hardening patches
npm run harden
```
## Core Capabilities (v7.0)
- **Transparent MCP Firewall (`canarycat wrap`)**: Pins SHA-256 tool schemas to block live Rug Pulls, quarantines poisoned MCP tool descriptions, enforces `GuardianGate` + SQL/Shell/Web3/Cloud guards, and taints sessions on untrusted tool outputs.
- **Live Human-in-the-Loop Approval Cards**: High-risk `ASK` actions surface directly in the 3D Dashboard as one-click **Approve Once** (HMAC-SHA256 parameter-bound single-use token) or **Deny** cards.
- **40-Archetype Full-Horizon Matrix + 6 Cooperative Kill Chains**: Covers stealth 14-way polymorphic exfiltration (Base64/Base32/Caesar/Cyrillic/Acrostic), Coding/Shell, Finance/TOCTOU, Email, Browser/SSRF, Vision, Real `%PDF-1.4` RAG, MCP Time-Bomb Rug Pull, Cross-File Skill Taint, Sleeper Memory, SQL, Voice, Desktop GUI, Cloud/K8s, Git/CI, Web3, Cron, GDPR, Mobile Deep-Link, Meta-Agent, Embodied IoT, Spatial AR, Deepfake/C2PA, Science Lab, A2A Commerce, Youth Safety, ARIA Accessibility, and SecOps.
- **Session Taint Context + Global CanaryVault Linkage**: Any untrusted external input downgrades downstream trust across all domains; any canary leak triggers real-time 3D Detective Cat red alerts and causal lineage graphs.
- **Ed25519 Signed AgBOM Passports, Cross-Restart Baselines & SARIF 2.1.0**: Tamper-evident safety passports, disk-persisted trend charts, and GitHub Code Scanning CI exports.
- **Hybrid 5ms Rule + Optional Local LLM Semantic Judge**: Fast deterministic rules with optional local Ollama/LLM Layer-2 review for nuanced natural-language domains.
## Honest Detection Boundaries
CanaryCat strictly binds `127.0.0.1` and never claims system-wide HTTPS MITM or external chat-window inspection. See [`docs/limitations.md`](docs/limitations.md), [`docs/architecture.md`](docs/architecture.md), [`docs/threat-model.md`](docs/threat-model.md), and [`docs/evidence-model.md`](docs/evidence-model.md).
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues