instantscrape (PyPI): malicious infostealer runs on install/import and exfiltrates files
Severity: critical · Patch status: unpatched · Since 2026-11-21
The PyPI package instantscrape was published with embedded malicious code in versions 0.1.0, 0.1.5, and 0.1.8. According to the GitHub Advisory Database, the package overrides the install command in setup.py to execute malicious code during installation, and it can also execute an embedded malicious executable during import. The payload acts as an infostealer, with files-exfiltration and obfuscation reported. The advisory is rated critical and lists no patched versions, so any environment that installed or imported these releases may be compromised. No specific victim organisations or in-the-wild exploitation details were stated in the source. Organisations should treat affected installs as potentially compromised and rotate credentials and secrets exposed to those environments.
What to do
- Immediately remove or quarantine instantscrape versions 0.1.0, 0.1.5, and 0.1.8 from all Python environments and dependency lockfiles.
- Audit CI/CD logs, package installs, and imports for instantscrape; treat any host or build runner that installed or imported it as compromised.
- Rotate credentials, API tokens, SSH keys, cloud keys, and other secrets accessible from affected environments.
- Scan affected systems for indicators of infostealer activity and outbound file exfiltration; review setup.py and package artifacts for obfuscated payloads.
- Block the affected package versions in internal package indexes and monitor for further malicious releases under the same name.
Sources
All live incidents on Threat Watch