# liteLLM compromised? Is this true?

**URL:** <https://discuss.python.org/t/litellm-compromised-is-this-true/106679>\
**Category:** Python Help\
**Created:** [March 25, 2026, 11:57am UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679 "2026-03-25T11:57:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-rob](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/c-rob/32/17261_2.png) [@c-rob](https://discuss.python.org/u/c-rob)\
**Post date:** [March 25, 2026, 11:57am UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/1 "2026-03-25T11:57:40Z")

</div>

I hope this isn’t true. I’m not claiming its true. I’m asking for help to confirm this is true or not.

This seems important so I’m providing some links. Go to each link and read the whole thing. I would like to know if this has been confirmed somewhere.

I went to the [litellm page](https://pypi.org/project/litellm/) and I only see version 1.82.6 not the claimed corrupt 1.82.8. Did pypi roll back the change?

NOTE: My understanding is litellm could be installed with other packages because it’s a dependency.

Quoted post:

> LiteLLM has been compromised, Do not update We just discovered that LiteLLM pypi release 1.82.8. It has been compromised, it contains litellm\_init.pth with base64 encoded instructions to send all the credentials it can find to remote server + self-replicate. link below. [https://x.com/hnykda/status/2036414330267193815](https://x.com/hnykda/status/2036414330267193815)

EDITS:

1. Thanks to @Stefan2 here is the blog entry for LiteLLM about this: [Security Update: Suspected Supply Chain Incident | liteLLM](https://docs.litellm.ai/blog/security-update-march-2026)

---

<div class="post-metadata">

**Author:** ![c-rob](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/c-rob/32/17261_2.png) [@c-rob](https://discuss.python.org/u/c-rob)\
**Post date:** [March 25, 2026, 12:37pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/3 "2026-03-25T12:37:28Z")

</div>

The quoted material is now formatted as such.

---

<div class="post-metadata">

**Author:** ![facelessuser](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/facelessuser/32/1971_2.png) [@facelessuser](https://discuss.python.org/u/facelessuser)\
**Post date:** [March 25, 2026, 2:04pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/4 "2026-03-25T14:04:54Z")

</div>

There are issues that give more detail: [[Security]: CRITICAL: Malicious litellm\_init.pth in litellm 1.82.8 — credential stealer · Issue #24512 · BerriAI/litellm · GitHub](https://github.com/BerriAI/litellm/issues/24512). As far as I’m aware it is true.

---

<div class="post-metadata">

**Author:** ![AlSweigart](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/alsweigart/32/12237_2.png) [@AlSweigart](https://discuss.python.org/u/AlSweigart)\
**Post date:** [March 25, 2026, 2:42pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/5 "2026-03-25T14:42:23Z")

</div>

By the time I saw the post on Reddit about this, PyPI had already taken down the package. My thanks to the PyPI and packaging and security folks for responding to this quickly.

Every few months or so, there’s a blog post or news article about “we found malware on the Python Package Index!!!” and it’s always overblown. Yes, the fact that anyone can upload Python packages to PyPI means that anyone can upload malware. But the impact is almost always negligible or nonexistent. These articles will say stuff like “the affected package was downloaded over 600 times” without mentioning that there are many PyPI mirrors that automatically download all packages (sometimes with multiple repeat downloads). This doesn’t mean 600 people were affected. If you look at these articles, they never name an actual individual or organizations. (That would require actual journalistic investigation; they’d rather just copy a number off a PyPI stat tracker.)

Maintaining open source infrastructure is an often a thankless and unpaid task. It’s not whether malware gets uploaded to PyPI but how PyPI responds. PyPI has developed several automated measures for detecting and responding to a whole host of security issues. I think the PyPI folks (both PSF staff and volunteers) do an exceptional job, despite what people might believe from reading clickbait.

---

<div class="post-metadata">

**Author:** ![facelessuser](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/facelessuser/32/1971_2.png) [@facelessuser](https://discuss.python.org/u/facelessuser)\
**Post date:** [March 25, 2026, 2:45pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/6 "2026-03-25T14:45:07Z")

</div>

This was a pretty scary attack though. Only because it was caught was damage mitigated.

---

<div class="post-metadata">

**Author:** ![Rosuav](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rosuav/32/3429_2.png) [@Rosuav](https://discuss.python.org/u/Rosuav)\
**Post date:** [March 25, 2026, 2:46pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/7 "2026-03-25T14:46:07Z")

</div>

This looks like a good time for litellm to upload a “new” package that’s just the previous clean version with a new number. An upload of 1.82.9 with a comment that it’s identical to 1.82.6 would mean that the solution, for anyone who’s compromised, is simply “upgrade to the clean version”.

---

<div class="post-metadata">

**Author:** ![Rosuav](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/rosuav/32/3429_2.png) [@Rosuav](https://discuss.python.org/u/Rosuav)\
**Post date:** [March 25, 2026, 2:51pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/8 "2026-03-25T14:51:57Z")

</div>

Eww, the spam comments on that tracker issue are _bonkers_. I hope that isn’t normal for the project.

---

<div class="post-metadata">

**Author:** ![facelessuser](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/facelessuser/32/1971_2.png) [@facelessuser](https://discuss.python.org/u/facelessuser)\
**Post date:** [March 25, 2026, 3:02pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/9 "2026-03-25T15:02:58Z")

</div>

> Eww, the spam comments on that tracker issue are _bonkers_. I hope that isn’t normal for the project.

I have no idea 🤷.

---

<div class="post-metadata">

**Author:** ![oscarbenjamin](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/oscarbenjamin/32/1209_2.png) [@oscarbenjamin](https://discuss.python.org/u/oscarbenjamin)\
**Post date:** [March 25, 2026, 3:29pm UTC](https://discuss.python.org/t/litellm-compromised-is-this-true/106679/11 "2026-03-25T15:29:49Z")

</div>

I think the spam bot comments are being directed there specifically by the attackers to obscure public discussion.
