# Inside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooks

DevFeed: [Inside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooks](<https://devfeed.tech/articles/inside-the-litellm-1-107-0-supply-chain-compromise-credential-theft-through-python-startup-hooks-98535.md>)

Original publisher: [Read original article](<https://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/>)

Author: Microsoft Security Research, Mahesh Mandava, Srinivasan Govindarajan, Sagar Patil and Suriyaraj Natarajan

Published: 2026-10-23T18:12:19Z

Content type: news

Language: en

Sources: [Microsoft Security](<https://devfeed.tech/sources/microsoft-security-blog.md>)

Topics: [litellm attack](<https://devfeed.tech/topics/litellm-attack.md>), [Credential theft](<https://devfeed.tech/topics/credential-theft.md>), [software supply-chain attack](<https://devfeed.tech/topics/software-supply-chain-attack.md>), [litellm](<https://devfeed.tech/topics/litellm.md>), [malicious packages](<https://devfeed.tech/topics/malicious-packages.md>), [supply-chain-security](<https://devfeed.tech/topics/supply-chain-security.md>), [Endpoint security](<https://devfeed.tech/topics/endpoint-security.md>), [Threat monitoring](<https://devfeed.tech/topics/threat-monitoring.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [credential-based attacks](<https://devfeed.tech/topics/credential-based-attacks.md>), [import](<https://devfeed.tech/topics/import.md>), [AI software supply chain security](<https://devfeed.tech/topics/ai-software-supply-chain-security.md>)

Tags: [compromise](<https://devfeed.tech/tags/compromise.md>), [credential-theft](<https://devfeed.tech/tags/credential-theft.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [litellm](<https://devfeed.tech/tags/litellm.md>), [python](<https://devfeed.tech/tags/python.md>), [startup](<https://devfeed.tech/tags/startup.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [supply-chain-attack](<https://devfeed.tech/tags/supply-chain-attack.md>), [supply-chain-compromise](<https://devfeed.tech/tags/supply-chain-compromise.md>)

## AI overview

LiteLLM 1.107.0 carried Python startup files that could launch credential theft whenever Python started in an affected environment, even if an application never imported LiteLLM. The recovered collector gathered accessible developer, cloud, browser, infrastructure, and LiteLLM proxy data, encrypted it, and attempted to send it to an attacker-controlled endpoint. A separate Unix-oriented loader could retrieve and execute more Python code, but Microsoft did not confirm that second-stage activity. The excerpt says package presence alone does not prove collection or compromise, and deleting the LiteLLM directory may leave startup files behind. Response guidance includes isolating affected systems, avoiding Python or pip there during investigation, rebuilding from verified artifacts, rotating reachable credentials from a clean machine, and correlating hashes, process, network, and identity evidence. Microsoft also provides Defender detections and hunting queries, which are investigation leads rather than standalone verdicts.

## Source excerpt

Microsoft Threat Intelligence analyzes the LiteLLM 1.107.0 compromise, including Python startup hooks, credential theft, remote code loading, detections, and mitigations. The post Inside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooks appeared first on Microsoft Security Blog.