{
 "id": "AIR-2023-0010",
 "slug": "pytorch-nightly-pypi-package-compromised-with-malicious-depe",
 "title": "PyTorch-Nightly PyPI Package Compromised with Malicious Dependency",
 "summary": "Threat actors uploaded a malicious dependency matching the name of a PyTorch-nightly package to PyPI, performing a supply chain attack. The compromised packages exposed sensitive data on infected Linux machines before PyTorch announced the incident.",
 "type": "attack_on_ai",
 "categories": [
  "supply_chain"
 ],
 "severity": 3,
 "targets": [
  "framework_or_tooling"
 ],
 "products": [
  "PyTorch-nightly"
 ],
 "incident_date": "2022-12-25",
 "incident_date_precision": "day",
 "first_reported": "2023-03-31",
 "sources": [
  {
   "url": "https://github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V015.json",
   "publisher": "AVID",
   "title": "AVID-2023-V015: Linux packages for PyTorch's pre-release version, called Pytorch-nightly, were compromised from December 25 to 30, 2022 by a malicious binary uploaded to the Python Package Index (PyPI) code repository.",
   "published_at": "2023-03-31"
  },
  {
   "url": "https://atlas.mitre.org/studies/AML.CS0015",
   "publisher": "MITRE ATLAS",
   "title": "Compromised PyTorch Dependency Chain",
   "published_at": "2023-03-31"
  },
  {
   "url": "https://pytorch.org/blog/compromised-nightly-dependency",
   "publisher": "pytorch.org",
   "title": "PyTorch statement on compromised dependency",
   "published_at": "2023-03-31"
  },
  {
   "url": "https://bleepingcomputer.com/news/security/pytorch-discloses-malicious-dependency-chain-compromise-over-holidays",
   "publisher": "BleepingComputer",
   "title": "Analysis by BleepingComputer",
   "published_at": "2023-03-31"
  }
 ],
 "source_count": 4,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_avid",
 "tags": [
  "supply_chain",
  "dependency_confusion",
  "pypi"
 ],
 "created_at": "2026-10-18T06:56:23.100Z",
 "updated_at": "2026-10-18T06:56:23.100Z"
}
