Security ·

LiteLLM 1.107.0 on PyPI was infected with a credential stealer

What happened

A malicious version of LiteLLM, a popular Python library that unifies calls to different AI APIs, sat on PyPI for about two hours before it was removed. Every time Python started, the package stole SSH, cloud and AI keys, and it also installed a backdoor that phoned home every hour. LiteLLM suspects GitHub tokens leaked from the logs of an internal setup that was exposed to the internet.

Why it matters

If you installed or updated LiteLLM on October 21, the advice is to rebuild the machine from scratch, pin version 1.106.2, and rotate every key the machine could reach. It's also a good reminder to pin dependency versions in your own projects.

Sources

More from this brief