Incident report

Ultralytics YOLOv8 PyPI Supply Chain Compromise Deploying XMRig Cryptominer

Between December 4 and December 7, 2024, attackers compromised the widely used `ultralytics` YOLOv8 computer-vision package on PyPI, publishing trojanized releases `8.3.41`, `8.3.42`, `8.3.45`, and `8.3.46`. Root-cause analysis by Wiz and Ultralytics traced the intrusion to a GitHub Actions `pull_request_target` script-injection flaw that leaked repository tokens and enabled unauthorized PyPI publishes. Installing the compromised library inside developer environments, CI pipelines, or Google Colab notebooks silently downloaded and launched an XMRig cryptocurrency miner consuming victim CPU and GPU compute. Maintainers revoked tokens, yanked affected releases, hardened workflow triggers, and migrated to trusted OIDC publishing.

Incident record

Reported
Severity
Critical
Vector
Supply Chain
Affected system type
Computer Vision Python Libraries & CI/CD Pipelines
Reference URI
https://www.wiz.io/blog/ultralytics-ai-library-hacked-via-github-for-cryptomining

Inspect in Interactive Incidents Hub

Defensive lesson

Eliminate unsafe pull_request_target shell interpolations in ML repositories, pin dependency hashes, and publish Python wheels exclusively via PyPI Trusted Publishers (OIDC).

Research citation

Referenced techniques