Rules File Audit — Security skill for Claude Code
Static audit of AI coding-assistant rules files (.cursorrules, CLAUDE.md, AGENTS.md, copilot-instructions.md) and agent permission configs: hidden Unicode, hidden instructions, exfiltration, auto-appr.
How to install Rules File Audit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open abhi12337/rules-file-audit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Rules File Audit does
Static audit of AI coding-assistant rules files (.cursorrules, CLAUDE.md, AGENTS.md, copilot-instructions.md) and agent permission configs: hidden Unicode, hidden instructions, exfiltration, auto-approve settings.
Alternatives in Security
- Token Scan — Meme coin and token security scan — checks for rug pull vectors (hidden mint, honeypot, fee manipulation, LP l 3.8k ★
- Trail Of Bits Claude-code-config — Opinionated production defaults from a top security firm: sandboxing, permissions, hooks, skills, MCP server c 1.6k ★
- Agentseal — Security toolkit for AI agents 344 ★
README
rules-file-audit
A static audit of the files that tell AI coding assistants what to do. Rules files are code that nobody reviews like code: an agent follows `.cursorrules`, `CLAUDE.md` or `copilot-instructions.md` on every task, with your permissions, and a malicious pull request, template or "awesome rules" pack can hide instructions in them that a reviewer never sees. rules-file-audit finds:
- Invisible and deceptive Unicode: Unicode tag characters (the "rules file backdoor"), with the hidden text decoded and shown; stacked variation selectors that smuggle bytes; bidi overrides ("Trojan Source"); zero-width characters that split words or carry a payload.
- Hidden content: instructions in HTML comments,
[//]: #comments anddisplay:none/font-size:0markup, text pushed off-screen by long whitespace runs, and base64 / hex blobs that decode to URLs, commands or instructions. - Dangerous instructions: download-and-run (
curl ... | sh), sending env vars, keys or code to a URL, reading~/.ssh/.env/ cloud credentials, and concealment ("do not tell the user", "silently add"). - Instructions that switch off safety: skip tests,
--no-verify, disable lint / security checks, turn off TLS verification, change the package registry, addpostinstallscripts. - Agent permission configs that auto-approve dangerous actions: Claude Code
bypassPermissions,Bash/Bash(curl:*)/Bash(rm:*)allow rules,enableAllProjectMcpServers,ANTHROPIC_BASE_URLredirects and hook commands; VS Codechat.tools.autoApproveand terminal auto-approve rules; Codexapproval_policy = "never". - Provenance: rules files not tracked by git, and rules that tell the agent to fetch more rules from a URL.
Every finding has a rule id, a severity, `file:line`, the offending text with every invisible character written out as `` (it never echoes a raw invisible character to your terminal), why it matters,
Related Skills
Skillaudit
Offline, LLM-free security scanner for AI-agent skills (SKILL.md, Claude Code, Codex, OpenClaw, MCP). Finds ma
Lgd Gate
One score, one permission tier. Static security + quality gate for AI agent skills (Claude Skills / MCP). Dete
Agent Context Doctor
Audit agent context files like AGENTS.md, CLAUDE.md, .cursor/rules/.mdc, .github/copilot-instructions.md, and
Agentsdoc
Audit your repo's AI agent instruction files (AGENTS.md, CLAUDE.md, .cursor/rules, copilot-instructions) for c
Agentscan
Security scanner for MCP servers and AI agent skills. Detects prompt injection, tool poisoning, hidden Unicode
Claude Code Repo Audit
Claude Code skill: audit an untrusted repo before you run it (fake interview take-homes, recruiter repos, zips
Related Agents
Copilot Assistant
GitHub Copilot coding agent onboarding specialist. Use PROACTIVELY when
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,
Kenaz
Audits the security of Claude Code plugins, MCP servers, and AI agents before installation. Analyzes executabl