www.bitdefender.com Malware Abuses AI Coding Agent Config Files in GitHub Campaign
Article Content
- •Malware campaign uses 22 malicious GitHub links to target developers using AI coding assistants, per Bitdefender Labs.
- •Agent instruction files (AGENTS.md, CLAUDE.md) and session-start hooks are abused to trigger a concealed JavaScript payload.
- •Payload can steal source-control, cloud, CI/CD, package registry, SSH and password-manager credentials.
- •Stolen GitHub or GitLab credentials may enable planting malicious configurations in other repositories and republishing infected packages.
- •Defenders should review agent instructions, startup hooks, MCP definitions and editor tasks before granting workspace trust.
Bitdefender Labs researcher Andrei Anton-Aanei identified 22 malicious GitHub links containing files designed to make AI coding assistants execute a concealed payload, according to Bitdefender. The campaign abuses agent instruction files such as AGENTS.md and CLAUDE.md, which were presented as signed initialization artifacts and urged silent execution without review. A second route uses a session-start hook in project settings to launch the payload; in interactive Claude Code sessions this depends on workspace trust, while noninteractive and SDK sessions do not show that prompt. The payload, described as a multistage loader using encoding, encryption and compression, can collect source-control tokens, cloud secrets, CI/CD and package registry tokens, SSH keys, browser data and password-manager data. It validates stolen tokens against provider APIs. It searches for configurations associated with 14 coding tools, including Claude, Codex, Copilot and Cursor, and can alter instructions, hooks or MCP server definitions. Per the payload's documented capabilities, stolen GitHub or GitLab credentials could be used to plant malicious configurations in other repositories and attempt to republish infected packages to npm, PyPI, RubyGems or JFrog; the articles state this is not evidence that every targeted repository or registry was compromised. No CVEs are cited, and the articles do not report on current remediation status beyond recommended review steps.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (2)
Following this threat?
Track JFrog in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.
Free account · no card needed
Common questions
Am I affected if I use AI coding agents?
How urgent is this?
What should I do first?
Continue Reading
PHP Security Updates Patch 18 Flaws, Including CVSS 9.2 PHP-FPM Request Smuggling Bug Security updates for PHP addressing 18 vulnerabilities across the core engine, session handling, PHP-FPM, and CGI were released on 19 November 2026, according to CERT-PH. The most critical flaw, CVE-2026-129289, is a PHP-FPM request smuggling vulnerability rated CVSS 9.2, which CERT-PH says may allow unauthenticated…