Skip to main content

Bitdefender details malware targeting AI coding assistants

24 NOVEMBER 2026·2 MIN READ·1 SOURCE

Bitdefender Labs says it uncovered a malware campaign using compromised GitHub content to target developers who use AI coding assistants. The researcher identified 22 malicious GitHub links.

Key takeaways · 4

  • 01

    Review files that can influence AI-tool behavior before opening an unfamiliar repository in an AI-enabled environment, as Bitdefender advises.

  • 02

    The identified campaign used 22 malicious GitHub links, according to Bitdefender researcher Andrei Anton-Aanei.

  • 03

    The malware can validate stolen tokens against provider APIs and batch collected records for dispatch.

  • 04

    Bitdefender says AI Guardian detected the malicious instruction file in all 22 samples in internal tests conducted on November 10.

How the campaign gets a foothold

Bitdefender Labs says the campaign uses compromised GitHub content to target developers who use AI coding assistants[1]. Researcher Andrei Anton-Aanei identified 22 malicious GitHub links[1]. The campaign abuses instruction files, hooks and configurations used by AI coding tools to understand projects and automate work[1]. Similar files in the malicious content were intended to persuade AI assistants to execute setup.js, presented as a legitimate, security-sensitive project component[1]. After a developer opens and trusts a repository, a configuration file can cause a shell command to run[1].

A multi-stage JavaScript loader

Bitdefender describes setup.js as a multi-stage JavaScript loader designed to make analysis more difficult[1]. The outer script is a 3.75 MB single-line file[1]. Bitdefender says it decompresses a 4.67 MB bundle, resolves or downloads the Bun runtime, and pipes the bundle to bun run[1]. The described sequence means that repository configuration and setup files are relevant to how the campaign launches its payload, not merely to how a coding assistant interprets a project[1].

From credentials to repository changes

Bitdefender says the malware can steal credentials and tokens across developer and enterprise environments, validate stolen tokens against provider APIs, and batch collected records for dispatch[1]. After execution, it searches the victim’s home directory for AI-agent configuration files and retains results associated with 14 AI-agent names[1]. Where it finds a suitable target, it can inject malicious instructions, session-start hooks or MCP server configurations[1]. It checks account identity, available repositories, token scopes and permission to push changes[1]. For each target repository, it can inspect up to 50 branches[1].

What Bitdefender recommends and offers

If stolen account permissions allow, the malware can commit files intended to influence or trigger AI coding environments[1]. It can also modify package metadata and workflows, create GitLab pipeline schedules, and attempt to republish infected packages through npm, PyPI, RubyGems and JFrog[1]. Bitdefender advises developers to review files that can influence tool behavior before opening an unfamiliar repository in an AI-enabled environment[1]. In internal tests conducted on November 10, Bitdefender AI Guardian detected the malicious instruction file in all 22 identified samples[1]. Bitdefender says AI Guardian blocks a matching malicious session before prompts are sent or agent tool calls run; it is available as a free open beta for macOS, including support for compatible environments such as Claude Code and OpenClaw[1].

For teams using AI coding assistants, the story is a reminder to treat repository instructions and configuration as part of the security review—not just as project documentation. A review of these files before trust is granted can be added to existing repository intake and credential-protection practices.

Why it matters
For teams

AI training for your team

kju.ai is built for teams: daily sessions, team analytics, and rollout support for your organization.

How this developed

  1. 24 November 2026

    Bitdefender details malware targeting AI coding assistants

Sources

AI fluency, one session a day, built for your work.