Skip to main content
Block #9

Hackers Inject Crypto Theft Code Into Popular AI Tool

Crypto News

Hackers Inject Crypto Theft Code Into Popular AI Tool

Lieke van Dijk
hackers injecteren crypto diefstalcode in populaire ai tool
3 min

The crypto community was recently shaken by a targeted attack on the popular Python library LiteLLM. What began as a routine installation led to the distribution of malware specifically designed to steal sensitive data, such as cryptocurrency wallets and cloud credentials. These incidents paint a worrying picture of current security risks within crypto infrastructure.

On 24 March, between 10:39 and 16:00 UTC, an attacker managed to publish two malicious versions of LiteLLM—1.82.7 and 1.82.8—to the Python Package Index (PyPI) via a compromised maintainer account. LiteLLM is known for aggregating over a hundred large language model providers and boasts a significant user base, with no fewer than 96,083,740 downloads in the past month. This high popularity makes it an attractive target for attackers.

The risks associated with the two versions differed. Version 1.82.7 required a direct function import to activate malicious code, while version 1.82.8 installed a .pth file in the Python environment, causing the malicious code to execute automatically every time Python started. This illustrates a disturbing vulnerability in how developers interact with their tools. Machines that had installed this version executed compromised code immediately upon the next Python startup.

Targeted Attack on Crypto Data

The malware specifically targeted crypto information, such as Bitcoin wallet configuration files, Ethereum keystore directories, and Solana configuration files. Solana, in particular, received significant attention, with targeted searches for validator keypairs, voting account keys, and other sensitive information essential for validator operations. The impact of this cannot be underestimated; the theft of an authorisation key could grant an attacker full control over validator operations and rewards.

Furthermore, the malware collected SSH keys, environment variables, and other cloud credentials, granting attackers broader access to victims' infrastructure. The danger of an infostealer that harvests both wallet data and other sensitive information is that it can lead to immediate and severe exploitation.

The malware specifically targeted crypto information, such as Bitcoin wallet configuration files, Ethereum keystore directories, and Solana configuration files.

This attack is only a small part of a broader campaign. The attacks are linked to previously observed incidents, such as the Trivy incidents, and share the same logic: using tooling rich in secrets provides faster access to sensitive information.

The positive turn in this situation includes the speed of detection and the lack of any confirmed crypto thefts to date. PyPI quarantined both versions around 11:25 UTC on the same day. Additionally, LiteLLM responded quickly by removing the malicious versions and replacing their maintainer credentials.

If defenders rotated their secrets in time and checked their systems, the damage should remain limited to credential exposure. This incident may also accelerate the adoption of better security practices, such as replacing long-lived API tokens with short-lived, OIDC-based identities.

However, the incident also underscores the need for crypto teams to implement stricter role separation. This means keeping critical material offline and paying closer attention to how credentials are managed. The LiteLLM incident highlights the need for hermetically sealed builds and strict control over dependencies.

3 questions

Q&A

The questions from this article, neatly compiled.

The attack highlights the need for stricter security measures within crypto projects. It illustrates how vulnerabilities in popular libraries can lead to large-scale data breaches and the exploitation of financial assets.

  • hackers
Lieke van Dijk

Written by

Lieke van Dijk

Tech editor · Utrecht (NL)

Expertise

TechnologyAISecurity

Lieke writes about blockchain technology, AI, and security. She tests protocols and wallets herself and explains why a technical choice matters to users.

Stay in the loop

Follow Block #9.

By 7 a.m. you already know

Every Monday, Wednesday, Friday and Sunday morning at 07:00, the overview in your inbox.

Free. Unsubscribe in one click.

Practice without real money or test your knowledge?

Read more

Other interesting articles

All articles
Block Notes

By 7 a.m. you already know

Monday, Wednesday and Friday the news that matters. Sunday morning the whole week in one overview. No hype, no noise.

  • Monday, Wednesday, Friday and Sunday morning at 07:00
  • 2 min
  • No spam

Free. Unsubscribe in one click.