Engineering brief

Why Your AI Agents Need a Security Firewall, Not a Prompt Guard

AI Engineer1 min read · saves 18 min

At a glance

Relevance
Practical value
Warnings
None

Deno's Claw Patrol treats AI agents as untrusted software, blocking destructive actions at the protocol level—not the prompt level. For teams running agents with production access, this is the security model you're missing.

Production agents need network-level security, not just model alignment or HTTP proxies.

Summary

Ryan Dahl details Deno's internal incident-response agent system, which grants Opus agents rewrite access to production Postgres, Kubernetes, ClickHouse, AWS, and Slack. While Opus is well-aligned, prompt injection from external support systems makes agents fundamentally untrusted.

Dahl argues that security cannot rely on agent alignment or proxy-level HTTP guards. Instead, Deno built Claw Patrol, an open-source proxy that parses every byte of outbound traffic at the protocol level—including non-HTTP protocols like Postgres—and enforces granular rules written in HCL.

Claw Patrol supports credential injection (so agents never see secrets), a rule system with unit tests, and human-in-the-loop approval via Slack or an LLM judge. It runs over Tailscale/WireGuard, acting as a secure exit node for agent VMs.

The key tradeoff: this approach adds significant operational overhead. Teams must maintain a thousand-line HCL rule file, test fixtures, and manage credential stores. However, for production systems where agents can cause real damage, it may be the only viable approach.

Watch the video

This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.

Related breakdowns

Get TL;DW

Too Long; Didn't Watch.

A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.

Free. Weekly. No hype.

Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.