Case · 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:

Scope

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.

At a glance

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

Link to claim
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

Link to claim

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

  1. Nov 19, 2026 · Published version · first publication · revision 266