Bitdefender identified malicious GitHub repositories containing AGENTS.md or CLAUDE.md instructions intended to induce AI coding assistants to run a setup.js file, alongside some direct .claude startup hook approaches. The report linked 22 malicious repository URLs and described token or environment credential theft functionality and further distribution…
Inspect the ClaimsCase · DiggingBeagle record
Malicious repositories instructed coding agents to execute credential-stealing setup code
Bitdefender identified malicious GitHub repositories containing AGENTS.md or CLAUDE.md instructions intended to induce AI coding assistants to run a setup.js file, alongside some direct .claude startup hook approaches.
Published by DiggingBeagle:
The report does not establish that every repository visitor executed the payload, or that the incidents share an operator with unrelated npm advisories. Bitdefender identified malicious GitHub repositories containing AGENTS.
Assessment profile
Assessment method- Setting
- production
- Exploitation
- observed live
- Evidence
- Grade B
- Remediation
- mitigation available
- AI role
- AGAINST AI
Basis and provenance
Bitdefender inspected malicious live repository links, agent-instruction files and payload capabilities, but did not measure affected user installations or completed data exfiltration. Impact grade is left null rather than converting a vendor statistic, controlled attack result or unmeasured installed-base exposure into a standardized realized-harm score.
Assessed Nov 19, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-DB264-AGENT-FILES-MALWARE-REPOS-BOUNDARY · CLM-DB264-AGENT-FILES-MALWARE-REPOS-MECHANISM · Bitdefender: AI agents targeted through repository instructions and startup hooks
At a glance
Repository instructions are attacker-controlled content, not authorization to execute setup commands under the developer workstation identity.
Read the implicationsSuccessful infection and exfiltration counts. Precise chronology and common control of all related repositories.
Limits and uncertaintyFull account
Bitdefender identified malicious GitHub repositories containing AGENTS.md or CLAUDE.md instructions intended to induce AI coding assistants to run a setup.js file, alongside some direct .claude startup hook approaches.
The report linked 22 malicious repository URLs and described token or environment credential theft functionality and further distribution through developer package ecosystems. The report does not establish that every repository visitor executed the payload, or that the incidents share an operator with unrelated npm advisories.
Repository instructions are attacker-controlled content, not authorization to execute setup commands under the developer workstation identity.
The attack has two independent execution routes. Project guidance placed in AGENTS.md or CLAUDE.md can persuade an assistant to run a setup script, whereas a checked-in .claude hook may execute under the local agent configuration without that conversational step. In both routes, attacker-owned repository content reaches developer-host privileges; the report does not show the same operator behind separate malicious npm advisories.
Claims & evidence
CLM-DB264-AGENT-FILES-MALWARE-REPOS-BOUNDARYThe report linked 22 malicious repository URLs and described token or environment credential theft functionality and further distribution through developer package ecosystems. The report does not establish that every repository visitor executed the payload, or that the incidents share an operator with unrelated npm advisories.supported
Basis: reported finding
- supportsBitdefender: AI agents targeted through repository instructions and startup hooksindependent technical reproduction
Malicious AGENTS.md and CLAUDE.md instructions; observed setup.js and hook behavior
CLM-DB264-AGENT-FILES-MALWARE-REPOS-MECHANISMBitdefender identified malicious GitHub repositories containing AGENTS.md or CLAUDE.md instructions intended to induce AI coding assistants to run a setup.js file, alongside some direct .claude startup hook approaches.supported
Basis: reported finding
- supportsBitdefender: AI agents targeted through repository instructions and startup hooksindependent technical reproduction
Malicious AGENTS.md and CLAUDE.md instructions; observed setup.js and hook behavior
Implications
Repository instructions are attacker-controlled content, not authorization to execute setup commands under the developer workstation identity.
Controls and mitigations
- Treat newly cloned repository instruction files, agent hooks and setup scripts as untrusted code; examine them before granting execution and avoid sharing host credentials with initial inspection sessions.
Unknowns and contradictions
- Successful infection and exfiltration counts.
- Precise chronology and common control of all related repositories.
Sources and citation
Material revision history
- Nov 19, 2026 · Published version · first publication · revision 266