Rules File Backdoor / Mar 2025
Would the Rules File Backdoor have hit your repo?
Instructions an agent reads but a reviewer cannot see. Paste a public GitHub repo and Ready checks for this pattern and seven more, with the file, the line and the fix for each.
Public GitHub repos. No sign-up. Your code is not stored.
Invisible characters in a file agents read
The pattern behind Rules File Backdoor
.cursor/rules/style.mdc:3
Use tabs for indentation.- Prefer small functions.[U+202E 214 hidden characters]
Fix: Delete the hidden characters, then read what the line says without them.
- popular open-source repos run a third-party GitHub Action pinned to a tag. WeaveAI Ready scan, 26 Oct 2026.
- 14 of 50
- popular open-source repos run a third-party GitHub Action pinned to a tag. WeaveAI Ready scan, 26 Oct 2026.
- documented attacks the check is built from, each with a public source.
- 8
- documented attacks the check is built from, each with a public source.
- lines of your code kept. The clone is deleted when the scan ends.
- 0
- lines of your code kept. The clone is deleted when the scan ends.
Rules File Backdoor / Mar 2025
What happened
Invisible Unicode in Cursor and Copilot rule files carried instructions the developer never saw, steering the assistant to write malicious code.
The Hacker News, Mar 2025What Ready checks for it
Invisible and text-reversing characters in CLAUDE.md, AGENTS.md, .cursorrules, Cursor and Copilot rule files, and skills.
What it checks
The three places recent attacks got in.
CI workflows
- Third-party actions on a tag
- Outsider text in shell steps
- PR code run with secrets
- write-all tokens, self-hosted runners
- AI agents outsiders can trigger
Agent setup
- Hidden characters in rule files
- Unpinned or plain-http MCP servers
- Permission checks switched off
- Every MCP server auto-approved
- Hooks that reach the network
Secrets
- Cloud, GitHub, Stripe, OpenAI, Anthropic keys
- Supabase service keys, npm tokens
- Keys written into MCP configs
- Committed .env files
- .env missing from .gitignore
Not checked yet: known-vulnerable dependencies, and keys in old commits.
Built from real attacks
Each one used something you can see in a repo.
- Oct 2026Tensorlake npm wormCode that runs by itself when someone opens the repo in an agent or an editor.Check for this
- Sep 2026actions-cool (Mini Shai-Hulud)Third-party GitHub Actions referenced by a tag someone else controls.Check for this
- Apr 2026Comment and ControlAn AI agent in CI that reads text anyone can write, holding the workflow's secrets.Check for this
- 2026SANDWORM_MODE npm wormAgent configs that start any MCP server they find, with nobody approving it.Check for this
- Sep 2025Shai-Hulud npm wormTools that install whatever version was published last, every time they run.Check for this
- Aug 2025Nx s1ngularityOutsider text pasted into a CI shell step, and agents allowed to run anything.Check for this
- Mar 2025tj-actions/changed-filesThird-party GitHub Actions referenced by a tag someone else can move.Check for this
- Mar 2025Rules File BackdoorInstructions an agent reads but a reviewer cannot see.This page
What you get
Free to check. Pay only for the full report.
Free check
$0
no account
- Which of the eight attack patterns your repo has
- Security score and the two worst risks
- A readiness score for coding agents
Full report
$1.50
a run, in packs of 10. First one free.
- Every risk with its file, line and fix
- An agent's review of all 8 readiness sections
- A .mcp.json for your stack, and the full trace
Teams
Talk to us
private or many repos
- Private repositories
- Many repos at once
- Your own agents scanning over MCP
“I ran the scan on our repo expecting a good score. We got a bad one. The fixes took an afternoon, and our agents stopped hunting for where things live.”
Prices in USD, excl. taxes. Re-scanning an unchanged commit is free.
Questions
What people ask before they scan.
What does Ready check?
Security: the patterns behind eight documented attacks, in CI workflows, agent setup and committed secrets. Readiness: 87 checks in eight sections on how well a coding agent can work in the repo, with an agent's review on top in the full report.
Does a clean result mean my repo is safe?
No. It means none of the patterns Ready checks were found in the current commit. It does not yet check dependencies for known vulnerabilities or look for keys in old commits, and no scanner sees everything.
Is my code stored?
No. The repo is cloned into a sandbox that is deleted when the scan ends. The report keeps file paths and line numbers, never file contents, and never the value of a key it finds.
Can it check a private repo?
Not from this page: the free check takes public GitHub repositories. For private repos or many repos, email us.
Can my own agents run scans?
Yes. Ready is also an MCP server: with an API key your coding agent can start a scan, read the report and the trace, and get the MCP recommendations for the repo.
Why these eight attacks?
Each is a documented incident with a public source, and each used a pattern you can see in a repository. An attack is added only when Ready checks for the pattern behind it.
Would the Rules File Backdoor have hit your repo?
Public GitHub repos. No sign-up. Your code is not stored.