{"slug": "toolfence-scan-static-checks-for-cursor-claude-copilot-skills", "title": "Toolfence-scan – static checks for Cursor/Claude/Copilot skills", "summary": "ToolFence released toolfence-scan@0.1.3, an open-source CLI that statically scans Cursor, Claude and GitHub Copilot skills, rules, agent files and MCP configs for prompt injection, hidden Unicode, credential exfiltration and over-broad permissions before installation. The scanner ships eight rules — including critical-severity prompt-injection, hide-from-user, credential-exfil and hardcoded-secret checks and high-severity hidden-unicode, network-exfil, mcp-overbroad and remote-exec checks — and runs via `npx toolfence-scan .`, with SARIF, HTML and text output plus a `--fail-on high` flag for CI. High and critical findings can be exported with `--emit-gate-rules` as a rules fragment for ToolFence Gate, and the unscoped npm name `skill-scan` is blocked because it is too similar to the existing `skillscan` package.", "body_md": "**ToolFence Scan** — pre-install security for AI coding agents.\n\nScan **Cursor / Claude / GitHub Copilot** skills, instructions, prompts, and **MCP configs** for prompt injection, hidden Unicode, credential risks, and over-broad permissions **before** you trust them.\n\nPart of [ToolFence](https://toolpause.netlify.app/#suite):\n\n**Scan** what you install → **Gate** what can hurt you → **Radar** on cost and risk.\n\n```\nnpx toolfence-scan .\n```\n\n(`skill-scan` is also installed as a CLI alias.)\n\n```\n# From this package (fixtures include known-bad skills)\nnpx toolfence-scan ./fixtures --format text --fail-on high\n```\n\nExpect critical/high findings on the planted bad skills (and a non-zero exit).\n\nAgainst your own repo:\n\n```\nnpx toolfence-scan .\nnpx toolfence-scan . --format sarif --output results.sarif\nnpx toolfence-scan . --format html --output report.html\nnpx toolfence-scan . --fail-on high\nnpx toolfence-scan . --emit-gate-rules --output gate-rules.json\n```\n\nFull walkthrough: [Scan → Gate](https://toolpause.netlify.app/docs/scan-then-gate).\n\n| Kind | Examples | \n|---|---|\n| Skills | `SKILL.md` ,`.cursor/skills/**` ,`.github/skills/**` ,`.claude/skills/**` | \n| Cursor rules | `.cursorrules` ,`.cursor/rules/**` | \n| Agents | `AGENTS.md` ,`CLAUDE.md` ,`GEMINI.md` | \n| **GitHub Copilot** | `.github/copilot-instructions.md` ,`.github/instructions/*.instructions.md` ,`.github/prompts/*.prompt.md` ,`.github/agents/*.md` | \n| MCP | `.cursor/mcp.json` ,`.vscode/mcp.json` ,`mcp.json` ,`claude_desktop_config.json` | \n\nAlso: `toolfence-scan inventory .` lists discovered files by kind before rules run.\n\nSee [RULES.md](https://github.com/StockGorilla/skill-scan/blob/main/RULES.md) for the full catalog.\n\n| Rule | Severity | Catches | \n|---|---|---|\n| `hidden-unicode` | high | Bidi / zero-width concealment | \n| `prompt-injection` | critical | Ignore-previous / jailbreak / disable safety | \n| `hide-from-user` | critical | Conceal actions / run without confirmation | \n| `credential-exfil` | critical | Secret reads / send-credentials language | \n| `hardcoded-secret` | critical | AWS/GitHub/OpenAI/Slack/Google key shapes | \n| `network-exfil` | high | Paste/callback hosts, Discord webhooks, raw IPs | \n| `mcp-overbroad` | high | Wildcard tools, auto-approve, shell MCP | \n| `remote-exec` | high | `curl \\| bash` ,`iwr \\| iex` | \n\nSuppress a line with `# skill-scan-ignore` / `# skill-scan-ignore-next-line`, or add globs to `.skill-scanignore`.\n\nHigh/critical findings can emit a **Rules fragment** for [Gate](https://toolpause.fly.dev):\n\n```\nnpx toolfence-scan . --emit-gate-rules --output gate-rules.json\n```\n\nIncludes `policy.*`, ready-to-paste `paste.deny_tools` / `paste.tool_overrides_json`, and `how_to_apply` steps (also printed to stderr). Merge carefully into Inbox → Rules — don’t blind-overwrite production policy.\n\nGuide: [Scan → Gate](https://toolpause.netlify.app/docs/scan-then-gate).\n\n```\n- run: npx toolfence-scan . --format sarif --output skill-scan.sarif --fail-on high\n- uses: github/codeql-action/upload-sarif@v3\n  with:\n    sarif_file: skill-scan.sarif\n```\n\nThis monorepo also runs `.github/workflows/skill-scan.yml` against the package build.\n\n```\ngit clone https://github.com/StockGorilla/skill-scan.git\ncd skill-scan\nnpm install\nnpm test          # build + fixture self-test (expects findings)\nnode dist/cli.js --help\n```\n\n(Also vendored in the ToolFence monorepo under `packages/skill-scan`.)\n\n- [RULES.md](https://github.com/StockGorilla/skill-scan/blob/main/RULES.md) — rule catalog\n- [CONTRIBUTING.md](https://github.com/StockGorilla/skill-scan/blob/main/CONTRIBUTING.md) — add a rule + fixture\n- [SECURITY.md](https://github.com/StockGorilla/skill-scan/blob/main/SECURITY.md) — false positives / missed malware\n\n`toolfence-scan@0.1.3` — OSS wedge for **ToolFence Scan**. Scoped alias `@toolfence/scan` can follow when the npm org lands.\n\n**Note:** The unscoped name `skill-scan` is blocked on npm (too similar to existing `skillscan`).", "url": "https://wpnews.pro/news/toolfence-scan-static-checks-for-cursor-claude-copilot-skills", "canonical_source": "https://github.com/StockGorilla/skill-scan", "published_at": "2026-11-24 02:07:18+00:00", "updated_at": "2026-11-24 02:12:07.569290+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "developer-tools", "ai-tools"], "entities": ["ToolFence", "ToolFence Scan", "toolfence-scan", "Cursor", "Claude", "GitHub Copilot", "Model Context Protocol", "npm"], "also_reported_by": [], "takeaway": "Run `npx toolfence-scan . --fail-on high` in CI to block skills, agent files and MCP configs that trip the critical prompt-injection, hide-from-user, credential-exfil or hardcoded-secret rules before they are trusted.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/toolfence-scan-static-checks-for-cursor-claude-copilot-skills", "markdown": "https://wpnews.pro/news/toolfence-scan-static-checks-for-cursor-claude-copilot-skills.md", "text": "https://wpnews.pro/news/toolfence-scan-static-checks-for-cursor-claude-copilot-skills.txt", "jsonld": "https://wpnews.pro/news/toolfence-scan-static-checks-for-cursor-claude-copilot-skills.jsonld"}}