← Back to feed

Bitdefender Labs Documents GitHub Malware Campaign Hiding Payloads in AI Agent Instruction Files

Date: 2026-11-19
Tags: supply-chain, malware, prompt-injection, mcp-security

Executive Summary

Bitdefender Labs identified 22 malicious GitHub links that conceal payloads inside the files and automation configurations AI coding assistants read when they join a project. The malware can steal developer credentials, cloud secrets, CI/CD tokens, package registry credentials, browser data, and password manager data, then plant fresh AI agent instructions to keep spreading. Defenders should treat agent instruction files, session start hooks, MCP configurations, and editor task files as untrusted code and scan developer workstations for unauthorized edits to them.

Campaign Summary

FieldDetail
Campaign / MalwareUnnamed GitHub AI agent malware campaign
AttributionUnknown (confidence: none)
TargetDevelopers using AI coding assistants and the repositories and CI/CD pipelines they can reach
VectorCompromised GitHub content and malicious repository configurations that abuse AI coding tool instruction files, hooks, MCP configs, and editor tasks
Statusactive
First Observed2026-11-17

Detailed Findings

According to Bitdefender Labs, researchers identified 22 malicious GitHub links containing files crafted to make AI assisted development tools run a concealed payload. The campaign goes beyond a script hidden in a repository because it abuses the files, rules, hooks, and configurations that AI coding tools use to understand a project and automate work, including agent instruction files, session start hooks, MCP configurations, and editor tasks.

Bitdefender Labs reported that once the payload launches it can steal developer credentials, cloud secrets, CI/CD tokens, package registry credentials, browser stored credentials, password manager data, SSH keys, .env files, API keys, and source control tokens. The malware also validates which accounts it can access, modifies repositories, infects software packages, and plants new AI agent instructions to spread further, and it searches a victim system for AI agent configurations to infect them with malicious instructions or execution hooks.

Stolen GitHub and GitLab credentials can be used to compromise additional repositories and expose other developers, turning a single infected workstation into a wider software supply chain problem. Researcher Andrei Anton-Aanei is credited with the analysis. No specific payload hashes, command and control domains, or package names were published in the report as retrieved.

MITRE ATT&CK Mapping

TechniqueIDContext
Supply Chain Compromise: Software Supply ChainT1195.002Malicious content planted in GitHub repositories and packages infects developers who consume them through AI coding tools.
Event Triggered ExecutionT1546The malware abuses session start hooks, editor tasks, and agent instruction files so execution fires when the AI coding tool loads or starts a session.

IOCs

Domains

_No IOCs published in the retrieved Bitdefender Labs text. Bitdefender states 22 malicious GitHub links were identified but does not list them in the captured excerpt; obtain the full report for concrete indicators._

Full URL Paths

_No IOCs published in the retrieved Bitdefender Labs text. Bitdefender states 22 malicious GitHub links were identified but does not list them in the captured excerpt; obtain the full report for concrete indicators._

Splunk Format

_No IOCs available for Splunk query_

Affected Platforms

GitHub
GitLab
AI coding assistants consuming agent instruction files, session start hooks, MCP configurations, and editor task definitions

Detection Recommendations

Monitor and version control agent instruction files, session start hooks, MCP server configurations, and editor task files for unexpected creation or modification, since these are the delivery mechanism. Alert on AI coding tool processes spawning shells or interpreters that immediately fetch remote content. Audit developer workstation access to credential stores including browser credential databases, password manager vaults, SSH keys, .env files, and source control tokens, and rotate any GitHub or GitLab credentials suspected of exposure. Restrict AI coding agent hooks and task execution to reviewed, pinned configuration and block unreviewed remote script execution from agent invoked tool calls.

References