Executive Summary
In May 2026, a LiteLLM Agent Platform master key was accidentally committed to a public GitHub repository and never revoked. On October 10, 2026, an unknown threat actor exploited this unrevoked credential to access the Agent Platform, extract a broadly scoped GitHub CLI OAuth token belonging to an organization owner, and harvest secrets from internal CI/CD workflows via malicious cache.yml files pushed to short-lived throwaway branches. On October 21, the attacker redirected the release pipeline to a lookalike repository and published the backdoored LiteLLM 1.107.0 to PyPI, Docker Hub, and GHCR—delivering a credential-stealing infostealer and persistent Python backdoor to downstream users across the AI developer ecosystem.
This incident exemplifies the compounding risk of a single unrevoked secret in an AI-native supply chain: one leaked master key cascaded into organization-wide repository access, CI/CD pipeline hijack, and mass credential exfiltration targeting AI API keys, cloud credentials, and developer tool tokens. As agentic AI frameworks become critical infrastructure, secrets hygiene and pipeline integrity controls are emerging as top-tier enterprise security priorities.
Why This Matters Now
LiteLLM is a widely adopted open-source LLM gateway used in enterprise AI deployments. The 2026 compromise demonstrates that AI orchestration platforms are now high-value supply chain targets: a single unrevoked master key enabled attacker-controlled code to reach thousands of Python environments globally, with malware activating at Python startup—even without an explicit LiteLLM import—making detection and remediation significantly harder than traditional package-level attacks.
Attack Path Analysis
An attacker discovered an unrevoked LiteLLM Agent Platform master key accidentally committed to a public GitHub repository in May 2026, used it in October 2026 to authenticate into the Agent Platform and extract a broadly-scoped GitHub CLI OAuth token belonging to an organization owner. Leveraging that token, the attacker escalated to owner-level GitHub organization access, injected malicious CI/CD workflows into short-lived throwaway branches to harvest additional secrets across dozens of platforms, pivoted the release pipeline to an attacker-controlled lookalike repository, published a trojaned LiteLLM 1.107.0 package to PyPI and container registries, and exfiltrated credentials and tokens to attacker-controlled webhook endpoints, ultimately poisoning the open-source supply chain and deploying a persistent Python backdoor on every downstream consumer system.
Kill Chain Progression
This analysis maps confirmed threat intelligence to the full cloud kill chain to show where defensive gaps would emerge as an attack progresses.
Initial Compromise
Description
On May 27, 2026, a LiteLLM configuration file containing the Agent Platform master key was committed to the public LiteLLM-Labs/lite-harness GitHub repository. Although the commit was force-pushed over, the master key was never revoked. On October 10, 2026, an attacker operating from IP 69.48.229[.]143 used this exposed, unrevoked master key to authenticate directly into the LiteLLM Agent Platform deployment, gaining an initial authenticated foothold without exploiting any vulnerability.
MITRE ATT&CK® Techniques
Unsecured Credentials: Credentials In Files
Supply Chain Compromise: Compromise Software Supply Chain
Steal Application Access Token
Command and Scripting Interpreter: Python
Event Triggered Execution
Exfiltration Over Web Service: Exfiltration to Code Repository
Indicator Removal: File Deletion
Valid Accounts: Cloud Accounts
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
NIST SP 800-53 Rev 5 – Configuration Change Control / Supply Chain Protection
Control ID: CM-3 / SA-12
PCI DSS 4.0 – Protection of Stored Account Data / Multi-Factor Authentication for Administrative Access
Control ID: Requirement 3.5 / 8.3
DORA (Digital Operational Resilience Act) - EU 2022/2554 – ICT-Related Incident Detection and Response / Reporting of Major ICT-Related Incidents
Control ID: Article 10 / Article 19
NIS2 Directive - EU 2022/2555 – Incident Handling / Supply Chain Security
Control ID: Article 21(2)(b) / Article 21(2)(e)
CISA Zero Trust Maturity Model 2.0 – Least Privilege Access Enforcement / CI/CD Pipeline Integrity
Control ID: Identity Pillar - Advanced / Applications & Workloads Pillar
ISO/IEC 27001:2022 – Configuration Management / Secure Development Life Cycle / Information Security for Use of Cloud Services
Control ID: A.8.9 / A.8.25 / A.5.23
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
LiteLLM's PyPI supply-chain compromise directly threatens software teams; malicious 1.107.0 package harvests SSH keys, Git credentials, and cloud API tokens, enabling lateral movement and full credential exfiltration across developer environments.
Information Technology/IT
Leaked master key and unscoped GitHub OAuth tokens exposed AWS Bedrock, OpenAI, and PostgreSQL credentials; IT organizations face privilege escalation and egress exfiltration risks mapped to NIST.800-53.AC-6 and PCI.4.0.7.2.4 compliance frameworks.
Computer/Network Security
Attacker exfiltrated GitGuardian API keys, neutralizing secret-scanning defenses; security firms relying on LiteLLM for AI-driven threat pipelines face compromised detection visibility and command-and-control blind spots per ZTMM.CrossCutting.Visibility controls.
Internet
AI gateway and agentic platform providers using LiteLLM face persistent Python backdoor execution risks; auto-exfiltration to attacker-controlled endpoints circumvents egress policy enforcement mapped to NIST.CSF.PR.DS-5 and ZTMM.Data controls.
Sources
- Leaked LiteLLM Master Key Let Attackers Steal GitHub Tokens and Hijack Release Pipelinehttps://thehackernews.com/2026/10/leaked-litellm-master-key-let-attackers.htmlVerified
- LiteLLM Security Incident Oct 21 2026 Attack Chainhttps://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chainVerified
- LiteLLM Attack Timeline - Socket Security Investigationhttps://socket.dev/blog/litellm-attack-timelineVerified
- Inside the LiteLLM 1.107.0 Supply Chain Compromise: Credential Theft Through Python Startup Hookshttps://www.microsoft.com/en-us/security/blog/2026/10/23/inside-the-litellm-1-107-0-supply-chain-compromise-credential-theft-through-python-startup-hooks/Verified
- LiteLLM Compromised in Supply Chain Attackhttps://thehackernews.com/2026/10/litellm-compromised-in-supply-chain.htmlVerified
- LiteLLM 1.107.0 PyPI Wheel Contains a Credential Stealer and Persistent Python Backdoorhttps://opensourcemalware.com/blog/litellm-1-107-0-pypi-wheel-contains-a-credential-stealer-and-persistent-python-backdoorVerified
- LiteLLM GitHub Issue 47826 - Incident Discussion and Timelinehttps://github.com/BerriAI/litellm/issues/47826#issuecomment-6374891275Verified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.
This incident demonstrates how a single exposed credential in a publicly accessible repository granted an attacker cascading access across CI/CD pipelines, secret stores, and downstream package registries. Aviatrix Zero Trust CNSF would likely reduce the attacker's reachability across workload boundaries and constrain the outbound paths used to exfiltrate harvested secrets to external endpoints.
Control: Cloud Native Security Fabric (CNSF)
Mitigation: CNSF identity-aware access boundaries would likely reduce the reachability of the Agent Platform deployment to only explicitly authorized workload identities and networks, making it harder for an unanticipated source IP using a stale credential to interact with the platform as if it were a trusted internal service.
Control: Zero Trust Segmentation
Mitigation: Zero Trust segmentation would likely constrain how broadly a workload's stored credentials can be accessed or forwarded across service boundaries, reducing the likelihood that a single compromised application service could hand off organization-owner-level tokens to an unanticipated caller without crossing a defined policy boundary.
Control: East-West Traffic Security
Mitigation: East-west traffic enforcement would likely reduce the attacker's ability to freely pivot between internal pipeline services and secret stores, as lateral communication paths between CI/CD workloads and downstream credential environments would be subject to policy-defined boundaries rather than implicitly trusted internal routing.
Control: Multicloud Visibility & Control
Mitigation: Multicloud visibility and control would likely surface unexpected outbound connections to newly registered or uncategorized external domains from within pipeline and workload environments, reducing the window during which C2 channels to endpoints like webhook.site or litellm.dev could operate undetected across cloud boundaries.
Control: Egress Security & Policy Enforcement
Mitigation: Egress security and policy enforcement would likely constrain the outbound paths available to CI/CD workloads and installed packages, reducing the ability of unauthorized HTTP POST transmissions carrying compressed credential bundles to reach arbitrary external endpoints without matching a defined egress policy.
Even with prior CNSF controls reducing attacker reachability and egress paths in earlier stages, the downstream impact on consumer systems installing the trojaned package from public registries would likely remain significant, though the blast radius within controlled cloud workload environments could be reduced by the segmentation and egress constraints applied upstream.
Impact at a Glance
Affected Business Functions
- Open-Source Package Distribution (PyPI / Docker Hub / GHCR)
- CI/CD Release Pipeline Integrity
- AI/LLM API Gateway and Agent Orchestration Services
- Secrets and Credential Management Across Cloud and Developer Tooling
Estimated downtime: 1 days
Estimated loss: N/A
The attack exposed a broad set of highly sensitive credentials and secrets harvested from LiteLLM's internal systems and from any downstream Python environment that installed the malicious version 1.107.0. Exfiltrated data includes: GitHub CLI OAuth tokens with organization-owner privileges, GitHub App private keys and identifiers, API keys for Anthropic, OpenAI, AWS Bedrock, Together AI, Tavily, and GitGuardian, Linear workspace browser session state (Playwright storage), PostgreSQL database connection strings and credentials, Redis endpoint addresses and authentication passwords, SSH private keys and configuration files, Git and GitLab tokens, environment variables, and package manager authentication tokens for npm, PyPI, pip, Yarn, Maven, Gradle, Composer, RubyGems, and Cargo. Any user who installed LiteLLM 1.107.0 and then ran Python in the affected environment was at risk of having all of the above categories harvested from their own systems and exfiltrated to attacker-controlled infrastructure at litellm[.]dev/healthcheck. The persistent Unix backdoor component could execute arbitrary attacker-supplied code hourly, extending exposure indefinitely beyond the initial infection window.
Recommended Actions
Key Takeaways & Next Steps
- • Enforce Egress Security & Policy Enforcement for CI/CD outbound traffic: The exfiltration of secrets to attacker-controlled webhook.site endpoints and litellm[.]dev could have been blocked by CNSF egress controls with FQDN/URL filtering enforcing an allowlist of approved outbound destinations from build and agent environments, preventing data loss to unauthorized external endpoints.
- • Apply Zero Trust Segmentation to Agent Platform and CI/CD identities: The LiteLLM Agent Platform master key granted unrestricted access; identity-based microsegmentation and least-privilege policy (ZT Segmentation) should have scoped the master key's reachable services and ensured the embedded GitHub OAuth token was restricted to the minimum required repository scope, limiting the blast radius of a credential compromise.
- • Leverage Multicloud Visibility & Control to detect anomalous CI/CD automation: Centralized traffic observability and anomaly detection over the GitHub organization's control plane activity—such as unexpected branch creation, workflow injection, branch protection overrides, and release pipeline redirection from an atypical IP—would have surfaced the attacker's actions in near real-time, enabling rapid incident response before the malicious release was published.
- • Deploy Encrypted Traffic inspection (HPE) and Inline IPS to detect and block malicious exfiltration payloads: While secrets were exfiltrated over HTTPS, enforcing TLS inspection at egress points combined with Inline IPS (Suricata) signature coverage for known credential-harvesting patterns and C2 beaconing to newly registered domains (litellm[.]dev) would have provided an additional detection and blocking layer against the outbound data transfer.
- • Implement East-West Traffic Security between agent services and CI/CD pipelines: Workload-to-workload segmentation between the LiteLLM Agent Platform, GitHub Actions runners, and internal secret stores would have prevented the compromised agent platform credential from being used to pivot into the CI/CD workflow injection path, containing lateral movement even after initial credential exposure.



