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

Inspect INC-OBS-007 in Interactive Incidents & Cases Hub

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

Mapped defensive controls

Source citation records