hn.today

Toolfence-scan – static checks for Cursor/Claude/Copilot skills

github.com9 points0 comments
Screenshot of Toolfence-scan – static checks for Cursor/Claude/Copilot skills

ToolFence Scan is an open-source command-line security checker for configuration and instruction files used by AI coding agents. Its purpose is to help developers inspect skills, prompts, agent instructions, Cursor rules, and MCP server configurations before installing or trusting them. It discovers common files such as SKILL.md, AGENTS.md, CLAUDE.md, GitHub Copilot instructions, and MCP JSON configs, and can inventory them before applying checks. The project frames scanning as an early step in a broader workflow: identify risky content before it can influence an agent or gain access to tools.

The version described, 0.1.3, checks for hidden Unicode, prompt injection, instructions to conceal actions or bypass confirmation, credential theft language, hard-coded keys, suspicious network destinations, overly broad MCP permissions, and remote-execution patterns such as piping downloads into a shell. Findings have severity ratings, and users can make scans fail at a chosen severity, export text, SARIF, or HTML reports, and suppress specific lines or files. High- and critical-severity findings can also produce a rules fragment for ToolFence Gate, though the instructions warn against blindly replacing existing policy. The repository includes planted unsafe examples for testing, a GitHub Actions workflow, and guidance for adding rules; its documentation also addresses false positives and missed malware.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.