The report
A developer can review a repository without executing its code and still expose a coding assistant to instructions written by the repository owner. In research published in November 2026, Bitdefender described malicious GitHub projects whose AGENTS.md and CLAUDE.md files told AI assistants to run a JavaScript setup script. Other observed projects placed execution hooks under .claude. The malicious code sought developer credentials and contained mechanisms to spread through software publishing accounts, according to the technical report.
How a README-adjacent file reached execution
The repository files were lower-trust task data, but agent instruction conventions gave them an apparent operational role. In the instruction-driven route, a coding assistant that complied with the local agent guidance could invoke setup.js as a seemingly ordinary environment-preparation step. In the hook-driven route, the execution trigger did not require the model to decide to run the same instruction. These are related routes with different preconditions and should not be described as one prompt-injection exploit.
Bitdefender associated 22 repository links with the observed campaign. That is a count of identified malicious locations, not a download count, an installation count or a confirmed victim population. The report's credential-theft and propagation capabilities do not establish that every person or agent visiting those projects ran the payload. The Case dossier records what has been observed and what remains unidentified.
The control point sits before the next command
A project-specific instruction file should be treated as repository-authored content, not a grant of authority over the developer's machine. A reviewer can inspect the exact proposed command and the local hooks before giving an agent execution access, while isolating package-manager credentials, cloud tokens and publishing secrets from untrusted workspaces. Merely adding another instruction telling the model to be cautious would not disable a hook that executes outside the chat.
The campaign also illustrates why matching a malicious repository to an unrelated malicious npm package by theme alone would be unsound. The presence of agent-related names, setup scripts and credential theft does not establish shared operators or a single distribution chain. The evidence supports the specific repository mechanisms, with attribution and actual downstream compromise still open.