title: LiteLLM 1.107.0 Supply Chain Payload Artefacts
id: 02e51bf6-5f1d-47a6-881a-f105c1bf71e1
status: experimental
description: |
    Detects files written by the malicious litellm 1.107.0 wheels published to PyPI on 2026-10-21:
    the cook.pth startup hook and its cook.py stealer in site-packages, and the marker and lock files
    the stealer and the hourly remote code loader create in /tmp.
references:
    - https://docs.litellm.ai/blog/security-incident-oct-21-2026
    - https://www.stepsecurity.io/blog/litellm-1-107-0-compromised-pypi-backdoored-wheels-credential-stealer
    - https://socket.dev/blog/litellm-compromise
author: Chabnco
date: 2026-10-25
tags:
    - attack.initial-access
    - attack.t1195.002
    - attack.persistence
    - attack.t1546.018
    - detection.emerging-threats
logsource:
    product: linux
    category: file_event
detection:
    selection_hook:
        TargetFilename|endswith:
            - '/site-packages/cook.pth'
            - '/site-packages/cook.py'
            - '/dist-packages/cook.pth'
            - '/dist-packages/cook.py'
    selection_tmp:
        - TargetFilename: '/tmp/remote_code_loader.lock'
        - TargetFilename|startswith: '/tmp/.pc_once_'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: critical
