Documented Incident · INC-OBS-007 · Critical severity
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 dossier metadata
- Case ID
INC-OBS-007- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Software Development & AI Tooling
- Attack vector
- Supply Chain
- 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 takeaway
Eliminate unsafe pull_request_target shell interpolations in ML repositories, pin dependency hashes, and publish Python wheels exclusively via PyPI Trusted Publishers (OIDC).
Mapped AI security 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
Mapped defensive controls
- Code Signing AML.M0013
- Verify AI Artifacts AML.M0014
- Vulnerability Scanning AML.M0016
- Maintain an AI Bill of Materials AML.M0023
Source citation records
- Ultralytics AI Library Hacked via GitHub Actions for Cryptomining · Wiz Research ·