AFK Guard

Find leaked secrets, catch canary hits, check MCP configs.

Free · open source · Apache-2.0 · runs on your machine

Short answer: AFK Guard is a command-line tool for people who run AI agents. Release 0.1.0 has three core commands, scan, canary and mcp-check, plus two extras, inject-check and dashboard. It needs Python 3.9+ and only the standard library. It makes no outbound network calls: the optional canary webhook only points at a listener you run yourself (canary listen binds to 127.0.0.1 by default).

Install

pip install afk-guard
afk-guard --help

To pin this release: pip install afk-guard==0.1.0

Links: afk-guard 0.1.0 on PyPI · source on GitHub · v0.1.0 release notes.

What it does

Also included

Try it

afk-guard scan ~/projects --counts-only
afk-guard canary plant ./sandbox --kinds aws,github,env
afk-guard mcp-check ./repo --no-discover --pin-state .afk/mcp-pins.json
afk-guard inject-check ./untrusted/page.txt
afk-guard dashboard --example -o afk-guard-dashboard.html

Exit codes are CI-friendly: scan returns 1 when it finds a real credential, mcp-check returns 1 on an advisory hit or pin drift, and inject-check returns 1 when severity is high.

What it will not do

About the advisory data

The bundled list in mcp-check comes from the AFK Cyber Desk feed. Titles, dates, CVE ids and source links are copied by id. Package names and fixed versions were transcribed by hand and are not independently verified, so where no fixed version is known the result says “check version”, never “safe”. Follow the source link before acting. This is described in the project README.

Stay in the loop

Get Agent Field Kit updates by email: one note per release.

AFK Guard is open-source software provided as is, under the Apache-2.0 license. It is a starting point for your own checks, not legal, security or compliance advice. Agent Field Kit is independent.