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
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
- Supply Chain Compromise: Software AML.T0010.001
- User Execution: Malicious Package AML.T0011.001
- Cost Harvesting: Resource-Intensive Queries AML.T0034.001
- Exploit Automated Artifact Processing Pipeline AML.T0119
- Event Triggered Execution AML.T0142