Malicious code in adrandom (PyPI)
The adrandom package on PyPI contained malicious code that executed spyware and information-stealing malware. It was part of a campaign by the EsqueleSquad group that published nearly 6,000 malicious packages across PyPI and NPM.
- Disclosed
- Last updated
- Blast radius
- Potentially thousands of installations; part of a large-scale malicious package campaign affecting both PyPI and NPM ecosystems.
- Ecosystems
- Attack vectors
- Threat actor
- Affected entities
- adrandomPyPI package containing malicious code
The adrandom package published on PyPI was identified as containing malicious code designed to execute spyware and information-stealing malware on affected systems. This package was part of a coordinated campaign by the EsqueleSquad group.\n\nThe EsqueleSquad group published nearly 6,000 malicious packages across both PyPI and NPM ecosystems as part of this campaign. The malicious packages were identified and documented by the OpenSSF's malicious-packages repository.\n\nThe incident has been cataloged under the identifier MAL-2023-2501 in the OpenSSF malicious packages database, indicating detection and documentation of the threat.
Indicators of compromise
- Packages
- adrandom
Remediation
- Remove adrandom from all environments and dependency lists
- Audit systems that may have installed adrandom for signs of compromise, including unauthorized access, data exfiltration, or spyware artifacts
- Review PyPI and NPM package dependencies for other packages published by EsqueleSquad or identified in the OpenSSF malicious-packages repository
- Implement package verification and scanning in CI/CD pipelines to detect malicious packages before installation
- Monitor for indicators of compromise related to information-stealing malware
Sources
- GitHub Advisory GHSA-cc59-84q9-p8rh · GitHub Advisory Database
Cite this entry
"Malicious code in adrandom (PyPI)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 21, 2026; last updated July 21, 2026. https://supplychainattack.org/incident/malicious-code-in-adrandom-pypi-buvz2d
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedhigh
Malicious code in morpho-sdk (PyPI)
The morpho-sdk package on PyPI contained malicious code that exfiltrates basic host information (IP address, username) during installation. The package overrides the install command in setup.py to execute the malicious payload when installed.
PyPICompromised package - resolvedcritical
Malicious code in dlmm-sdk (PyPI)
dlmm-sdk, a PyPI package, was compromised with malicious code that exfiltrates environment variables, credential files, and cryptocurrency wallet directory listings upon import. The malicious campaign (2026-08-dlmm) was identified and attributed to OpenSSF's malicious-packages repository.
PyPICompromised package - resolvedcritical
Malicious code in joule-btp-extension (PyPI)
Malicious code was published in joule-btp-extension on PyPI (version 0.1.6). The package contained code to exfiltrate system information, establish reverse shells, and communicate with domains associated with malicious activity. The incident appears to have been an internal test accidentally uploaded to a public repository.
PyPICompromised package - resolvedhigh
Malicious code in euler-sdk (PyPI)
The euler-sdk package on PyPI contained malicious code that exfiltrates basic host information (IP address, username) during installation. The package overrides the install command in setup.py to execute the malicious payload when installed.
PyPICompromised package