Hi, I am loading the site

Lawing Tech

​

Skip to content
Lawing Tech

Technology watch

News

What matters in cybersecurity, cloud and telecoms, CCTV, software, artificial intelligence and public sector IT, with the essential tech news from Benin and the world. Every article is built on public sources, cited at its end.

Loading the news

Back to news

LiteLLM 1.107.0 Compromised: A Python Hook Attack Steals Sensitive Credentials in Professional Environments

A compromised version of LiteLLM 1.107.0, released on October 21, 2026, introduces a malicious payload executed through Python startup mechanisms. According to Microsoft, this attack targets sensitive credentials in development environments, cloud infrastructures, and AI tools. PyPI and Docker have removed the infected version, but risks persist for unpatched systems.

by Lawing Tech Newsroom (3 min read)

computer keyboard
Video: LiteLLM 1.107.0 Credential Stealer: How to Check and Fix (Workflow Bench, YouTube)

How the Compromised Version of LiteLLM 1.107.0 Infiltrated Python Environments

The malicious version of LiteLLM 1.107.0 was distributed via the Python Package Index (PyPI) and official Docker images, despite no explicit import of LiteLLM in user code. According to Microsoft, attackers exploited a flaw in the publication workflow using stolen GitHub credentials to redirect builds to a lookalike repository named Berri-AI/litellm (with an extra hyphen).

Three malicious files (cook.pth, cook.py, and sitecustomize.py) were injected into the package before its build. These files, placed in the directory litellm-1.107.0.data/purelib/, are copied into the Python library path during installation. Upon starting the Python interpreter, they execute automatically, regardless of the running application.

Removing the package or its release tag is not enough for full recovery, as installed Python hooks persist in the infected environment.

clavier d'ordinateur
Illustrative photo: computer keyboard (Alexander-design, CC0)

The Technical Mechanisms of Data Theft and Exfiltration

Microsoft outlines two attack vectors: a credential collector operating via a path extension (on Windows) and a Unix-oriented loader using specific configurations. The collector targets authentication materials stored in developer tools, AI applications, cloud environments, browsers, and infrastructures, as confirmed by observations on Windows and macOS.

An integrated database module in the payload attempts to read records from the tables LiteLLM_CredentialsTable and LiteLLM_ProxyModelTable, while Python’s os and requests modules are used to parse and exfiltrate sensitive files, including SSH keys, AWS credentials, browser passwords, and shell command history. According to Dev.to, a persistent daemon process contacts an attacker-controlled server hourly to execute arbitrary commands.

Persistent risks remain despite the removal of the infected version

PyPI removed version 1.107.0 of LiteLLM on October 21, 2026, and the Docker images labeled latest, main-latest, and main-stable have been marked as compromised. However, Microsoft warns that removing the package or its release tag is not enough for full recovery, as installed Python hooks persist in the environment. Systems using tools like pip install --upgrade or CI/CD pipelines with elevated permissions remain exposed, especially if dependencies are not locked with a specific digest (such as litellm==1.106.2).

Endor Labs highlights that the compromise relies on a malicious line added to the Maturin configuration (data = "cook"), absent from the official version. Infected artifacts include wheels, Docker images, and source distributions, all built from an altered source revision.

What this means here: implications for Beninese and West African businesses and administrations

For businesses and government agencies in Benin and West Africa using AI tools, CI/CD pipelines, or Python environments for development, this attack underscores the importance of systematically verifying third-party dependencies, particularly through tools like pip-audit or container provenance analysis. Organizations should:

  • Update immediately to litellm==1.106.2 or an earlier uncompromised version, avoiding the latest or main tags in Docker registries.
  • Lock dependency versions in requirements.txt or Dockerfile to prevent uncontrolled automatic updates.
  • Strengthen access controls for development accounts and CI/CD workflows, limiting approval permissions and using temporary SSH keys or tokens.
  • Monitor unusual activity in Python environments, such as persistent processes or unauthorized outgoing connections to external servers.

Administrations using cloud infrastructure (AWS, for example) or local AI tools must also audit their configurations to detect any lingering traces of this compromise, particularly in credential tables or proxies used by LiteLLM.

Sources

  1. Inside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooksMicrosoft Security Blog, 23 October 2026
  2. [SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed)GitHub (BerriAI/litellm), 21 October 2026
  3. PyPI's litellm 1.107.0 Compromised: Malicious Code Steals Data, Executes Commands; Update UrgentlyDev.to, 22 October 2026
  4. LiteLLM 1.107.0 Compromised: Python Startup Hooks Steal Cloud, AI, and Proxy CredentialsEndor Labs, 21 October 2026

Prepared by Lawing Tech's technology watch from the sources cited. Our editorial charter

Latest articles

  1. Moonshot AI Launches Kimi K3.1 Pro: An Open-Weight Model with 2.8T/104B Parameters and a 1 Million-Token Context
  2. SafePay Ransomware: 600 Organizations Targeted, Authorities Warn of Active Threat
  3. Kazakhstan Deploys 400 NVIDIA GPUs to Accelerate Its AI Ecosystem
  4. pgrecon 0.7.3: an open-source tool for migrating Oracle to PostgreSQL with transparency and clear limitations
  5. PCSC Security and Davista.ai Revolutionize Access Management with Predictive Intelligence
  6. ECOWAS Accelerates Deployment of ECOQMARK and Strengthens Renewable Energy Skills Certification
  7. PHP releases emergency patches for two critical vulnerabilities exploited before official disclosure
  8. Google Research Validates an AI Model to Assess Gestational Age Without Ultrasound Experts
  9. Hanwha Vision Launches the SPS-A8016: An All-in-One Camera to Secure Indoor Spaces with AI and Audio
  10. Digital Africa invests in ChipChip to revolutionize digital agriculture in Ethiopia
  11. PHP releases emergency patches for two undisclosed critical RCE vulnerabilities on October 21, 2026
  12. i14 optimizes its Laplace 3B model on AWS Trainium2 with PyTorch for ultra-efficient linear attention
  13. Amazon ECS Gateway: A Turnkey Solution to Simplify ECS Container Ingress Networking
  14. Gallagher Security Receives NPSA Approval for Its High Sec T30 Biometric Keyboard: A Benchmark in Critical Security
  15. Stanbic Bank Ghana and RD Technologies Test Stablecoins for B2B Cross-Border Payments to Asia
  16. CERT-FR warns of actively exploited critical vulnerabilities: from Windows to Danfoss, systems under scrutiny
  17. TwelveLabs Pegasus 1.5 on Amazon Bedrock: Video Segmentation and Real-Time Processing Now Accessible
  18. The ARCEP of Benin Publishes the Updated List of Approved Radio Equipment and Terminals as of September 30, 2026
  19. ECOWAS and AES: a framework cooperation agreement in preparation after the Dakar ministerial meeting
  20. Drone attack on the chemical tanker Wine Trader: nine Beninese sailors among the missing in the Black Sea
  21. SiteGuard Server Edition: A Critical Flaw (CVE-2026-106931) Exploited to Gain Server Control
  22. The Regulatory Council Rejects Allegations of Irregularities in the GBESSOKE Programme: What Consequences for Public and Private Actors?
  23. Chain Attack via ConnectWise Cloud Backup: How Hackers Exploited Microsoft 365
  24. Databricks Generalizes Multi-Statement Transactions on Its Lakehouse: A Revolution for Data Consistency
  25. The UK’s CMA considers granting Microsoft strategic status in professional software
  26. GSMA Reveals How Digital Reforms Could Connect an Additional 1.13 Million Malagasy People by 2031
  27. Badlands Security Acquires Cosmic Fischer: Consolidating Security Solutions in New York
  28. The ARMP excludes a PRMP from public procurement for five years: principles of equality and transparency violated
  29. BlockStrap: A Critical Flaw in Magento and Adobe Commerce Exposes Servers to Arbitrary Code Execution
  30. AWS Uses Amazon Bedrock AgentCore to Monitor AI Agent Quality in Production and Fix Critical Errors
  31. GCB Bank PLC Joins CIPS to Accelerate Yuan Payments Between Ghana and China
  32. Threat Actors Exploit Critical Flaw in Collabora Online to Compromise Nextcloud
  33. The CNIL lifts injunction against Google after compliance with cookie and ad rules in Gmail
  34. Lumana and Convergint Join Forces for Global AI Video Surveillance
  35. The ARMP trains public actors on the Technical Audit Framework for Public Procurement at the CREFCoP
  36. Palo Alto Networks warns of a critical flaw CVE-2026-0322 exploited in attacks targeting its firewalls
  37. MTN Launches 2026 Hackathon to Accelerate AI, Fintech, and AI-RAN Networks Across Africa
  38. Airtel Gabon and ZTE Launch Africa Central’s First Massive MIMO FDD+TDD Antenna
  39. Axis Communications Unveils AXIS OS 13: Enhanced Cybersecurity and Network Device Integration
  40. The FGI-AC 2026 in N’Djamena: Digital Sovereignty and Innovation in Central Africa

All the news