ref-radar flags a repo "dangerous code: read, don't run" before it goes live. On 17 November 2026 that was 194 repos. An agent read all 194 with ref-radar's own tools: trees, manifests, outlines, text search, file reads. Nothing was cloned, built, or run. Files held back as possible traps stayed unread. The notes are structure: layout, APIs, order of operations. No payloads.
What's in there
Attack tooling: command-and-control frameworks, Active Directory and Entra ID kits, wireless and radio tools, web exploit collections, cloud and container tooling, and agents that run penetration tests. Dual-use is scanners and recon tools.
No worms, no credential stealers, no malware loaders. ref-radar keeps live malware out and quarantines a repo that carries a known worm's files. That held. The stealer move, sweep credentials and send them out, showed up once, as a test case inside a scanner's suite.
Shapes that repeat
The attack tooling repeats a few shapes:
- One module per technique. A
modules/orplugins/folder with one file per attack, CVE or target, and a core that loads them by name. 27 repos. It's the most common shape in the attack tooling, across Active Directory, web, wireless, Android and LLM attack kits alike. - A server and an implant. An operator server in one folder and the agent it controls in another, often with several ways to talk (HTTPS, DNS, sometimes a SaaS API used as the channel). 16 repos.
- Directory enumeration, then credential material. Read users, groups and certificate templates from Active Directory or Microsoft Graph, find a misconfiguration, then request a token or certificate. 15 repos in the identity family, and a text search found the directory attribute names in 9 of the 10 it checked.
- Raw radio frames. Monitor mode, crafted 802.11 frames and rogue access points. 8 repos; 7 of the 8 contain the tell-tale terms.
- Attack corpora for LLMs. Collections of jailbreak and injection prompts, or agents that run them. 8 repos.
Install-time execution (postinstall, setup.py hooks, session-start plugin hooks) showed up in 13 of 56 flagged repos the search checked, and in none of the 13 attack tools it checked. In this catalog the auto-run hooks are ordinary projects that download a binary or print a status line. The attack tools expect you to run them.
Repos built to fool agents
Three repos are aimed at the AI agents that read code, on purpose:
- One poisons reverse-engineering agents. It plants decoy symbols and poisoned text tuned to mislead one specific AI reverse-engineering tool, and writes its own MCP config and skill into the user's home agent settings.
- One is a honeypot for attacking agents. It's HTTP middleware that rewrites pages to carry instructions aimed at any agent browsing them, next to a fake MCP endpoint and decoy credentials.
- One is a scanner's test fixture. A skill that looks ordinary. Its helper reads environment variables and sends the sensitive-looking ones out. It exists so the scanner has something to catch.
And one ordinary repo, a well-known Active Directory library, ships a CLAUDE.md asking agents to run a PowerShell command. It's almost certainly a harmless developer setup step, and the agent reading it correctly ignored it. But it's exactly the shape a trap would take, which is the point: a repo's agent files are input, and an agent has to treat them as data.
"Has a CLAUDE.md" is not the signal. 59 of the 194 ship agent instruction files, and almost all are ordinary. The narrower flags: an instruction file that names a command or a URL, hidden characters or comments with orders, an MCP config pointing at a server the project does not own, or code that writes the user's own agent settings.
Where my scanner is wrong
About 68 of the 194 flags are wrong: the repos are harmless. Most of the mistakes come from two rules.
Shellcode bytes. The rule that looks for raw machine-code byte arrays flagged 39 repos, and 28 of them were harmless: cryptography test vectors, firmware images, font tables, and detection tools' own test data. The 194 also include VirusTotal's own YARA-X and the rizin reverse-engineering framework. When I went to fix the rule, neither turned out to be this rule's doing: YARA-X is flagged for a line in one of its own YARA rules, and rizin's flag is a stale record from an older scan. Bytes alone don't run. Shellcode needs memory it's allowed to execute, so a better rule wants both the byte array and a call that makes memory executable or starts code in another process, and trusts a file under tests/ or fixtures/ less:
// ref-radar flagged 39 repos for "raw shellcode bytes", and 28 were
// harmless: test vectors, firmware, fonts. Bytes alone don't run.
// Shellcode needs memory it can execute, so a useful rule wants both:
// a long byte array, and a call that makes memory executable or runs
// code in another process, in the same file. And it should trust a
// file under tests/ or fixtures/ less.
// This version flags any long byte array. Make every test pass.
function flag(file) {
return file.byteArrayLength >= 256;
}
console.log(flag({ path: 'src/loader.c', byteArrayLength: 512, text: 'VirtualAlloc(...PAGE_EXECUTE_READWRITE)' }));
console.log(flag({ path: 'fonts/glyphs.c', byteArrayLength: 4096, text: 'static const unsigned char glyphs[]' }));
Agent files. I first blamed these for dozens of the wrong flags. Checking the rules showed that was wrong: no rule fires on an agent file just for being there, and a test now pins that. The 59 repos that ship them were flagged for something else.
The trap labels themselves. Eight repos carry ref-radar's "agent trap" or "compromised" label. On a review of the manifests that wire those files in, all eight look harmless: installers that download a prebuilt binary, plugin hooks that show a status line, a scanner script that carries worm indicators as data, a script nothing calls, and a recorded test fixture. The flagged files are held back from reads, so the review couldn't confirm it, and that's a gap too: the owner needs a way to see a held-back file to clear or confirm the label.
A bug the review found. ref-radar's code search is rate-limited to about 20 calls a minute, and over the limit it returned no matches instead of an error. The agent's first round of counts came back wrong for that reason and had to be thrown away. A rate limit should say so.
All of this is filed as issues on ref-radar, along with one repo that should get the lure label: a "proof of concept" for a PHP version that never existed, shipping a 46 KB "quick fix" shell script.
How far to trust this
- Every count is a lower bound. Text search skips very common words, caps its results, and was rate-limited.
- Safety filters stopped the deeper read of 18 command-and-control and post-exploitation repos. Those descriptions come from the catalog entries, not the code.
- The categories are one agent's reading. I checked them against the summaries. A second reader would move a few borders.
A byte array, a hook, or a CLAUDE.md is common. The combinations that mattered here were bytes plus executable memory, a hook plus a download, and an instruction file plus a command.