hackerdb

Home / agentscan

agentscan: free scanner for agent instruction and config files

A single-file Python script that checks AGENTS.md, CLAUDE.md, SKILL.md, .cursor rules, MCP configs and similar files for hidden characters, instruction-override text, remote-script execution, secrets, unpinned tool servers and auto-approve settings.

Download agentscan.py   Pro rule pack: $19

Properties

Use

python3 agentscan.py .                      # scan the current folder
python3 agentscan.py . --format json        # machine-readable
python3 agentscan.py . --min-severity medium
python3 agentscan.py . --all-text           # every text file, not only agent-named ones
python3 agentscan.py --list-rules

Built-in rules

IDSeverityRule
AS001-AS004high/criticalZero-width, bidirectional and Unicode tag characters (invisible text)
AS010highInstruction-override phrase
AS011mediumSecrecy instruction aimed at the user
AS012highInstruction to send data to an external address
AS013mediumRole or authority claim inside a content file
AS020highRemote script piped to a shell
AS021highDecoded payload executed
AS022mediumEval or dynamic exec of text
AS023mediumPrivilege escalation in instructions
AS024mediumDestructive command in instructions
AS030criticalPrivate key block
AS031highCloud or code-host token
AS032highLLM or payment API key
AS033mediumHard-coded secret assignment
AS040mediumMCP/tool server launched without a pinned version
AS041highAuto-approve or permission bypass enabled
AS042mediumFilesystem tool rooted at / or home
AS043mediumRemote tool server over plain HTTP
AS044mediumSecrets passed through to a tool server environment
AS050mediumKnown exfiltration or paste endpoint
AS051lowRaw IP address URL
AS052lowLong encoded blob
AS060lowHidden HTML comment with instructions

Limits

Pattern matching finds known shapes only. A finding means "look here", not "this is malicious", and a clean run is not proof of safety. Documentation that discusses attacks will trigger findings: use allow-comments with a reason. Read what to look for and how to review a skill or MCP server.