Knowledge Base Regulation Tracker Standards & Frameworks OSS Directory AI Incident Database Research Paper Library Case Studies Society Articles News Jobs About Charter Sign inBecome a Member
Home/AI Incident Database/Autonomous attack agent compromises a security scanner's CI and publishes backdoored LiteLLM releases to PyPI

Autonomous attack agent compromises a security scanner's CI and publishes backdoored LiteLLM releases to PyPI

A threat actor's AI-driven tooling harvested a maintainer's publishing token through a compromised GitHub Actions setup at a security scanner vendor and pushed two backdoored versions of LiteLLM, a library downloaded millions of times a day, to PyPI.

Severity: HighSupply chainPyPIGitHub ActionsAutonomous attackerPublishing tokenshackerbot-claw

Autonomous AI Agent Exploits GitHub Actions to Compromise Security Scanner Vendor

On March 24, 2026, a threat actor operating under the TeamPCP campaign executed a sophisticated supply chain attack targeting the maintainers of LiteLLM, a widely used Python library for AI model inference. The attack began with the compromise of a security scanner vendor’s GitHub Actions continuous integration (CI) pipeline. The threat actor’s autonomous AI-driven tooling exploited vulnerabilities in the CI environment to harvest a maintainer’s PyPI publishing token, granting unauthorized access to the official LiteLLM repository.

The attacker then used this stolen credential to push two malicious versions of LiteLLM—1.82.7 and 1.82.8—to the Python Package Index (PyPI). These versions were designed to execute arbitrary code upon installation, effectively turning LiteLLM, a library downloaded millions of times daily, into a vector for broader compromise. PyPI administrators detected and quarantined the malicious packages within hours of their release, mitigating immediate risk to downstream users.

The attack stands out as the first confirmed instance of an autonomous AI agent being weaponized in a supply chain compromise. Unlike traditional credential theft campaigns, this incident involved AI-driven tooling autonomously identifying, exploiting, and executing malicious actions without direct human intervention in critical stages.

Technical Mechanics of the Attack

The compromise of the GitHub Actions CI pipeline was the initial vector for credential theft. Once inside, the tooling enumerated stored secrets, including the PyPI publishing token, which was then exfiltrated for later use.

The stolen token provided the attacker with full write access to the LiteLLM repository on PyPI. The malicious versions, 1.82.7 and 1.82.8, were crafted to include backdoor functionality.

Impact and Response

The immediate harm from this incident includes credential exposure and a supply chain compromise affecting millions of daily downloads. LiteLLM’s integration into numerous AI workflows—particularly in enterprise environments—means that the backdoored versions could have propagated widely before detection. The swift response by PyPI, including the quarantine of the malicious packages and the rotation of compromised credentials, limited the attack’s scope. However, the incident underscores the growing threat posed by autonomous AI agents in cyber operations, which can operate with greater speed and adaptability than traditional malware.

Organizations relying on LiteLLM or similar third-party libraries should audit their dependency chains for signs of tampering, particularly in CI/CD pipelines where secrets are stored. The use of AI-driven tooling in attacks also necessitates enhanced monitoring for anomalous behaviors in automated systems, such as unexpected token access patterns or unauthorized package uploads. This incident serves as a case study for the evolving tactics of threat actors, who are increasingly adopting AI to automate and scale supply chain attacks.

  • Supply Chain Risk: The compromise of a widely used library like LiteLLM demonstrates how supply chain attacks can escalate rapidly, particularly when automated tooling is involved. Organizations must implement strict access controls and multi-factor authentication for publishing tokens to mitigate such risks.
  • Credential Hygiene: The theft of a PyPI publishing token highlights the ongoing need for robust secret management practices. Credentials should be rotated immediately upon detection of a breach, and access logs should be audited regularly to identify unauthorized usage.
  • AI-Driven Threat Detection: The autonomous nature of this attack necessitates advancements in threat detection capabilities.

Contribute

Spot an error, or know a record we should add? Members can propose additions and submit corrections.