Skip to main content
MalwarePublished Updated

py-worm (PyPI) · Malicious Code

Affects py-wormSource GCVE Database

0

Malicious package : remove py-worm and rotate any secrets on hosts that installed it.

Data as of 29 Oct 2026, 18:07 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-17883

What to do

Remove py-worm from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIpy-wormAffected
  • =0.1.0
  • =2.0.0
  • =2.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The py-worm package on PyPI contains malicious code in its agentaix module that downloads and executes a mutable remote Python script without user visibility on Windows. This remote script acts as a remote access trojan (RAT), enabling persistence via an HKCU Run registry entry, polling a command server for instructions, and supporting file upload, download, deletion, and command execution. Versions 0.1.0, 2.0.0, and 2.0.1 of py-worm are affected. The remote payload is mutable, meaning its exact behavior can change over time. This package is classified as malware due to its clear intent to exfiltrate files, maintain persistence, and execute remote commands.

References

Community reviews

Loading reviews…