Skip to content
Malware Abuses AI Coding Agent Config Files in GitHub Campaign

Malware Abuses AI Coding Agent Config Files in GitHub Campaign

First seen 23 Nov 2026, 03:47 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 23, 2026 at 03:47 UTC
  • •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.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Timeline

2026-11-18
Campaign reported by GBHackers
GBHackers described malware using compromised GitHub content to target AI coding assistant users, abusing AGENTS.md and CLAUDE.md files.
Gbhackers
2026-11-23
Bitdefender publishes research on AI agent targeting
Bitdefender Labs reported 22 malicious GitHub links and said the campaign abuses agent instruction files, session-start hooks and MCP configurations.
www.bitdefender.com

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?
The articles say the campaign targets developers using tools such as Claude, Codex, Copilot and Cursor, especially when opening unfamiliar repositories and granting workspace trust. Impact on a given workstation depends on whether a malicious repository was opened.
How urgent is this?
Bitdefender reports 22 malicious links and a payload that can steal broad credential sets, but the articles do not confirm how many repositories or registries were actually compromised.
What should I do first?
Review agent instruction files, session-start hooks, MCP server definitions and editor tasks in unfamiliar repositories, and avoid granting workspace trust to them until inspected.