Malicious torchtriton Hijacks PyTorch: How a Supply‑Chain Attack Stole Linux Data

A PyTorch‑nightly supply‑chain attack introduced a malicious "torchtriton" package on PyPI that exfiltrated IP addresses, hostnames, usernames and SSH keys from Linux systems, prompting an urgent uninstall notice and a swift response from the PyTorch team.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Malicious torchtriton Hijacks PyTorch: How a Supply‑Chain Attack Stole Linux Data

All users who installed the nightly PyTorch build on Linux between Dec 25‑30 2022 were urged to uninstall immediately.

The warning comes from an official PyTorch statement that a malicious dependency named "torchtriton" was uploaded to PyPI, mimicking the legitimate torchtriton library.

The malicious package contains code that exfiltrates IP addresses, current working directory, hostnames, usernames, and SSH keys, and includes a harmful Triton binary.

Because the package name matches the official one, PyPI’s priority rules caused the fake torchtriton to be installed by default, constituting a supply‑chain attack.

Users can check whether they are affected by searching for the malicious binary in the installed package directory (PYTHON_SITE_PACKAGES/triton/runtime/triton).

PyTorch responded by renaming the dependency to "pytorch‑triton" and publishing a virtual package on PyPI to block future hijacks, and they urged affected users to uninstall the compromised version and upgrade.

Investigations traced the data‑exfiltration domain to a newly registered domain, and the attacker claimed the activity was for "ethical research," though no official comment has been made by PyTorch.

Regarding SSH keys, Linux has certain vulnerabilities, while iOS and Android do not allow Python packages to steal them; the best mitigation is to apply the principle of least privilege and consider having the package audited.
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Linuxinformation securityPyTorchmalwaresupply chain attacktorchtriton
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.