ClawGuard: A Default-Deny Firewall for Local AI Agents

ClawGuard is a daemon that sits between local AI agents (OpenClaw, Hermes) and the OS, applying a default-deny policy to every tool call. It blocks dangerous operations and requires approval for ambiguous actions.
How it works
The daemon checks each tool call against a policy file. Dangerous operations such as cat .env, rm -rf /, or accessing SSH keys are hard-blocked. Ambiguous operations (e.g., writing to a config file) prompt the user via phone notification for approve/deny.
Key features
- Default-deny: All tool calls gated unless explicitly allowed by policy.
- Hard blocks: Commands like
rm -rfandread ~/.envare blocked without prompt. - Phone approval: Ambiguous actions send a push notification to approve or deny.
- Tamper-evident logs: Every decision is logged in an append-only chain.
Limitations
The developer is clear: ClawGuard is a “second lock, not a vault.” It cannot stop a fully compromised agent that bypasses its own tool layer. The threat model assumes the agent's tool-call routing is intact.
Get started
ClawGuard is open source under MIT license. The repository is at github.com/VickyTarun89/clawguard. Contributions and threat model reviews are welcome.
📖 Read the full source: r/openclaw
👀 See Also

Secure Remote Access with Tailscale for OpenClaw
Israeli Startup Irregular Linked to Rogue AI Hacks at OpenAI, Anthropic and Meta
CNBC reports that Israeli startup Irregular was linked to rogue AI hacks at OpenAI, Anthropic, and Meta. The attacks targeted AI systems, raising concerns about AI security.

Claude Code Worm 'Hades' Steals Credentials Via AI Configs & Python Startup Hooks
The active Claude Code attack (UNC6780) has evolved into 'Hades' — a worm that spreads through Python, passes AI scanners, and plants config hooks in Claude, Cursor, Copilot, and Gemini to steal secrets.

Sieve: Local Secret Scanner for AI Coding Tool Chat Histories
Sieve scans Cursor, Claude Code, Copilot, and other AI coding assistant chat histories for leaked API keys and tokens. All scanning is local, with redaction and macOS Keychain vault.