Skip to content

Back to the catalog

The Hacker News (@TheHackersNews) on X
x.comthread

The Hacker News (@TheHackersNews) on X

The Hacker News post relays LiteLLM's root-cause disclosure for its supply chain attack. A master key leaked on GitHub in May was never revoked. Attackers used it to reach the Agent Platform, steal a GitHub owner token, and publish a malicious PyPI release in October. A reply says the agent tool held the org owner's personal CLI login, which skips GitHub's 2FA re-check.

TL;DR Summarizes LiteLLM's postmortem: an unrevoked leaked master key led to a stolen GitHub owner token and a malicious PyPI release.
Document

What it is

The Hacker News relayed LiteLLM's root-cause disclosure for its PyPI supply chain attack. Two replies add the part the post omits: what to do about it. The post links the LiteLLM writeup, which this page does not include.

How it works

The chain, as stated in the post:

  1. A master key leaked on GitHub in May and was never revoked.
  2. In October, attackers used it to reach LiteLLM's Agent Platform.
  3. They stole a GitHub owner token and published a malicious PyPI release.

One reply, which says it draws on LiteLLM's own writeup, gives the reason the blast radius was so large. The agent tool held the GitHub org owner's personal CLI login rather than a restricted bot account. The reply states that CLI tokens skip GitHub's 2FA re-check, so the one key gave owner access to every repo.

What to do

Two replies on the post give these actions:

  • Revoke a leaked key first and investigate second. A key that leaks and stays valid stays exploitable, whatever the postmortem says.
  • Set spend caps on the LLM provider side, not only in application code, so a leaked key hits a ceiling.

The first reply points to a third check: look at which credentials your agent tools hold. A personal owner CLI login in an agent is the failure it describes.

Caveats

The post is a short relay. It gives no dates beyond "May" and "October", no affected package versions, no indicators of compromise, and no remediation steps from LiteLLM. The 2FA-skipping claim and the personal-login detail come from a reply, not from the post, and were not checked against the LiteLLM writeup. The spend-cap advice is one replier's practice, not LiteLLM's guidance.

Technologies named here

  • LiteLLM
  • GitHub
  • LiteLLM Agent Platform
  • GitHub CLI tokens
  • PyPI
  • LiteLLM GitHub organization
  • Provider-side spend caps

Techniques named here

Threat actors named here

  • Unnamed attackers behind the LiteLLM supply chain attack