Реклама партнера — Название партнёра
UNIT.City — місце, де люди працюють... КРАЩЕ! Обирай свій простір просто зараз 👉

A key, password and cloud access stealer has been built into the popular Python library litellm

Malicious code was discovered in the litellm library, which is used to work with LLM models. The infected version could automatically collect access keys, passwords, tokens, and other secrets from a computer or server and send them to attackers.

Leave a comment
A key, password and cloud access stealer has been built into the popular Python library litellm

Malicious code was discovered in the litellm library, which is used to work with LLM models. The infected version could automatically collect access keys, passwords, tokens, and other secrets from a computer or server and send them to attackers.

According to DOU, citing the project team’s GitHub, the dangerous version was the litellm==1.82.8 version published on PyPI. It had a built-in file called litellm_init.pth, which was automatically launched every time Python was started, even if the developer did not import the library itself in the code. This is what makes the incident particularly dangerous: it was enough to simply install the package for the malicious script to start running in the background.

According to the developers of litellm, the malicious code collected not only regular passwords. It also included SSH keys, i.e. files that allow you to log in to servers without manually entering a password, AWS, GCP and Azure credentials, Kubernetes and Docker configs, environment variables with tokens, CI/CD secrets, database accesses, shell history and even private SSL keys. The collected information was then archived, encrypted and sent to the models.litellm.cloud domain, which was disguised as the official infrastructure of the project, although the real litellm website operates on the domain litellm.ai.

The litellm team explicitly called the incident a supply chain compromise. This means that the infection did not occur due to an individual user error, but rather through the package itself, which developers installed as a trusted dependency. This could potentially affect programmers' local machines, CI/CD pipelines, Docker containers, and production servers. Developers were advised to immediately uninstall version 1.82.8, check for the presence of litellm_init.pth, and replace any secrets that might be available on the infected machine.

OpenAI acquires Python tools developer Astral to compete with Anthropic
OpenAI acquires Python tools developer Astral to compete with Anthropic
On the topic
OpenAI acquires Python tools developer Astral to compete with Anthropic
Python developers targeted by new phishing attacks: how to stay safe
Python developers targeted by new phishing attacks: how to stay safe
On the topic
Python developers targeted by new phishing attacks: how to stay safe
Python became the most popular programming language according to the TIOBE index. Which languages ​​​​were left behind and how the dynamics have changed over 30 years
Python became the most popular programming language according to the TIOBE index. Which languages ​​​​were left behind and how the dynamics have changed over 30 years
On the topic
Python became the most popular programming language according to the TIOBE index. Which languages ​​​​were left behind and how the dynamics have changed over 30 years
Read the country's main IT news in our Telegram
Read the country’s main IT news in our Telegram
On the topic
Read the country’s main IT news in our Telegram

This is not the first time that an attack has targeted not the final product, but the dependencies that automatically pull in thousands of projects. That is why the story with litellm is important even for those who have never heard of this library: one malicious package in a popular repository can give attackers immediate access to servers, clouds, and internal infrastructure of companies.

Previously, dev.ua wrote about how, according to GitHub Octoverse, the TypeScript programming language (Microsoft’s JavaScript variant) became the most popular language on GitHub and overtook Python.

Also Read
Запускай код прямо в браузері: найкращі онлайн-компілятори для C++, PHP, Python, Java, C#, Go і не тільки
Запускай код прямо в браузері: найкращі онлайн-компілятори для C++, PHP, Python, Java, C#, Go і не тільки
Запускай код прямо в браузері: найкращі онлайн-компілятори для C++, PHP, Python, Java, C#, Go і не тільки
Не завжди є доступ до улюбленої IDE, або час на її запуск. Але коли потрібно швидко перевірити якийсь простий функціонал або втілити нову ідею, стане у пригоді онлайн-компілятор.
1 comment
Мануал для джуна. Python Developer: запитання на співбесіді, практичні завдання та поради для початківців
Мануал для джуна. Python Developer: запитання на співбесіді, практичні завдання та поради для початківців
Мануал для джуна. Python Developer: запитання на співбесіді, практичні завдання та поради для початківців
Джунів, які шукають роботу, проходять купу співбесід та отримують відмови замість оферів, під час війни побільшало. А все тому, що до співбесід необхідно ретельно готуватися. dev.ua продовжує серію матеріалів про те, що треба знати джунам для проходження співбесіди й отримання омріяного оферу від першого роботодавця.  Олександр Ковтунов, Python Software engineer компанії Ajax Systems, який також проводить співбесіди для junior- і middle-фахівців, розповів про професію Python Developer і надав поради, як початківцям долучитися до професії.
Хочу стати програмістом. З чого почати і як вибрати між Java Script, PHP, Python та іншими
Хочу стати програмістом. З чого почати і як вибрати між Java Script, PHP, Python та іншими
Хочу стати програмістом. З чого почати і як вибрати між Java Script, PHP, Python та іншими
Діана Смелікова, операційний директор Wezom Academy, у своєму блозі на DOU пояснила, з чого почати вивчати програмування та яким мовам варто налагодити перевагу на початковому етапі. Ось 5 важливих порад від неї.
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.