Releases 200-line local agent sandbox audit tool
Understand this story
Developer Mnr39X has released agent-canary on Hacker News, a local Python tool of about 200 lines with zero external dependencies, used to check whether AI agent sandboxes such as Claude Code, Cursor, OpenClaw, n8n Nod, and Codex leak .env files or ~/.ssh keys or generate outbound network traffic. The tool listens only on 127.0.0.1, and the author says data never leaves the local machine; it is MIT-licensed and limited to defensive self-auditing of environments you own.
AI overview based on source reports · Updated 13 hr ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AIShow HN: 200-line local Python harness to audit AI agent sandbox leaks
agent-canary is a zero-dependency, localhost-only Python harness that runs a read-only four-check audit of an AI agent sandbox's credential isolation, .env secret hygiene, blast-radius reachability (cloud metadata and local databases), and outbound egress. It also provides an init command to create a canary sandbox with fake keys and a prompt-injection fixture, plus a 127.0.0.1:9999 listener that logs when an agent exfiltrates a canary. The author cites the November 17 PyPI compromise of Microsoft's agent-framework (v1.26.1/v1.26.2) and Signal's November 20 default OS screenshot blocking as motivation, and includes a UFW hardening script for Ubuntu 24.04.
Activity for this story
- Current comparable activity
- 7
- Peak comparable activity
- 10Dec 3 00:00
- Change in the past 24 hours
- –
Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.