Post-Authorization Observability โ€” Fig 0.1

Traditional security
stops at the door.
We watch the room.

A fully containerized, local-first behavioral analysis and kinetic response SOC for Agentic AI infrastructure. Powered by deterministic DRIFT policies and a probabilistic LLM judge.

v0.7.2ยท 7 Arsenal signaturesยท 25/25 live-fireยท 50 API routesยท Apache 2.0
butterclaw โ€” docker compose logs -f

The Problem With Authorized Agents

Traditional security perimeters fail when an authorized AI Agent is compromised.

An Indirect Prompt Injection or Cross-Site WebSocket Hijack doesn't need to break through your firewall. The agent is already inside, holding your OAuth tokens. ButterClaw acts as an LLM-in-the-middle SOC โ€” watching behavior, not just entry points.

Zero
telemetry
SQLite
only
No outbound
data

Fig 0.2 โ€” 6-Node Decoupled Architecture

The Sentinel Pipeline

1

The Watcher

watcher.py

High-speed Python daemon tailing raw OS-level logs. Auto-serializes state on SIGTERM.

2

The Brain

Gemma 4:e4b

Local reasoning engine. Evaluates a 5-event sliding window for behavioral drift. Temperature: 0.3.

3

API & Policy

server.py / policy_engine.py

Central nervous system. HMAC-SHA256 auth. 3-scope DRIFT pipeline. 15 operators. No eval().

4

The ButterVault

buttervault.py

Zero-trust Fernet-encrypted credential store. Fires live HTTP DELETE to revoke OAuth tokens before local wipe.

5

The Dispatcher

alert_dispatcher.py

Air-gapped alert routing. 6 channels, 9 event types. Alert-then-burn ordering guaranteed.

6

The UI Suite

Docker + Nginx TLS

Dark mode control panel isolated behind Nginx reverse proxy. Oopsie logs, policy management, payload testing.

Fig 0.7

UI Dashboard Preview

A look inside the Sentinel.

ButterClaw Live Demo
ButterClaw live demo

Arsenal live-fire: regex signatures evaluated against the policy engine in real-time.

ButterVault UI
ButterVault UI

ButterVault credential management โ€” active assassination status.

Alert Dispatcher - ntfy
ntfy alert

Air-gapped ntfy push notification on verdict_critical event.

Arsenal Live-Fire Suite
Arsenal live-fire test suite

25/25 live-fire test suite โ€” 74+ positive and negative regex cases, stdlib only.

Fig 0.3

The Arsenal

7 sanitizer-aware regex signatures, rebuilt in v0.6.7

ID Name Severity

All 7 validated against 74+ positive and negative cases. 25/25 live-fire suite โ€” stdlib only, no new dependencies.

Fig 0.4

Adjustable Paranoia

Switch at runtime without restart. The Sentinel scales with your threat model.

LVL 1

Observe

Background scanning. Arsenal signatures fire but kinetic responses are suppressed.

LVL 2

SIGKILL

Arsenal + Guardian Brain verdict โ†’ SIGKILL on matched processes. ButterVault remains sealed.

LVL 3

โ˜ข๏ธ Gibson

Active OAuth token assassination + Fernet vault shred + mobile alert on external origin detection.

๐Ÿงˆ ButterVault

Zero-trust credential obliteration

Fernet-encrypted at rest. On breach detection, ButterVault doesn't just lock the door โ€” it burns the house down. Live HTTP DELETE/POST requests revoke GitHub OAuth and API tokens globally before the local vault is atomically shredded. The Gibson sequence fires before the local wipe.

Alert-then-burn: the Dispatcher fires before the Gibson, so you know exactly what happened.

buttervault โ€” gibson sequence
โ˜ข๏ธ [VAULT] GIBSON SEQUENCE โ€” INITIATED
โ†’ Sending DELETE /applications/{id}/token... 200 OK
โ†’ GitHub OAuth token: REVOKED
โ†’ Sending POST /oauth2/revoke... 200 OK
โ†’ Google OAuth token: REVOKED
โ†’ Fernet master key: DERIVING wipe key...
โ†’ Local vault entries: SHREDDED (14 records)
โ†’ SQLite DB: ZEROED
[COMPLETE] Credential surface: eliminated.
โšก Time elapsed: 1.3s

Fig 0.5

How It Fits

LangSmith and LangFuse log what your agent did. ButterClaw intervenes.

ButterClaw Halo LangSmith WAF

Fig 0.6

Mission Log

Every release has a codename.

Ready to secure your local agents?

ButterClaw is open-source. Clone the repo, spin up Docker, arm the Vault.

terminal
git clone https://github.com/butterclaw-tech/butterclaw
cd butterclaw && docker compose up -d --build
# First boot: grab your ๐Ÿ”‘ API key from docker compose logs -f butterclaw

Requires Docker + Ollama on host. Consumer GPU recommended โ€” CPU fallback works.