roles-royce (PyPI) · Malicious Code
Affects roles-royceSource GCVE Database
Malicious package : remove roles-royce and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:07 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10927
What to do
Remove roles-royce 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
| Product | Affected | Fixed in |
|---|---|---|
| PyPIroles-royce | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The roles-royce PyPI package version 2.1.1 contains malicious code that executes at import time. It runs a hidden routine that collects sensitive files such as SSH private keys, cloud credentials, wallet keystores, shell histories, and environment files from the user's system. The stolen data, along with environment variables and Kubernetes service account tokens, is compressed, encoded, and exfiltrated to two hardcoded IP addresses. This malicious behavior is disguised as a compatibility check and is unrelated to the package's advertised functionality as a Zodiac Roles transaction builder.