schliewe.systems
← cd ../blog
#ref-radar#malware#ai-security#detection

What 194 flagged repos look like

An agent read all 194 repos ref-radar had flagged on 17 November 2026. 50 were attack tools, 68 were wrong flags, and two rules caused most of the mistakes.

$ whoami Jack Schliewe · 17 November 2026 · 6 min read

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

194 flagged reposattack tooling: 50dual-use: 37training labs: 9defensive tools: 30harmless, wronglyflagged: 68

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:

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:

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:

flag.js · a byte array is not an exploit
// 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

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.