NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

instantscrapePyPI

Advisory published Updated

instantscrape is a confirmed malicious PyPI package (MAL-2026-20322) that steals credentials and exfiltrates sensitive data (malicious versions 0.1.0, 0.1.5, 0.1.8). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in instantscrape (PyPI)

MAL-2026-20322
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall instantscrape

What this malware does

The package advertises an Instagram scraper but its exported functions are empty stubs. The tarball and wheel ship an 8.4 MB Windows PE (Go-compiled) as src/instantscrape/pip.webp, declared as package_data. The top-level main.py unconditionally calls init() on import; on Windows (os.name=='nt') this moves the bundled pip.webp to the user's home directory as pip.exe (filename reconstructed from the reversed literal "exe.pip"[::-1]) and launches it via ctypes.windll.shell32.ShellExecuteW with the "runas" verb, triggering a UAC elevation prompt. A sentinel file name is likewise hidden as a reversed literal ("ses.retsboLneddiH"[::-1] -> HiddenLobsters.ses), and the payload uses a.webp extension to masquerade as an image. setup.py additionally registers a custom install cmdclass that invokes python src/instantscrape/init_scarper.py after install, routing the sdist install path to the same dropper module. The combination of an opaque bundled Windows executable, reversed-string filename obfuscation, extension masquerade, an empty advertised API, and automatic elevated execution on import is a trojan dropper, not a scraper library.

During installation or import, package executes an embedded malicious executable acting as an infostealer.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-11-instantscrape

Reasons (based on the campaign):

  • infostealer

  • The package overrides the install command in setup.py to execute malicious code during installation.

  • files-exfiltration

  • obfuscation

Malicious versions

3 flagged
0.1.00.1.50.1.8

Indicators of compromise (SHA-256)

080884e1b90e6717f2e13d434608203eb24db65a5071803022d3d12b6a7032d5
2468ac9ed09c09513d1bdb6c8e4c8ad622b3368ac23ce9005f461a24a5bbf7ca
c686d2223600d1e566907147f1f905b5ecd66809e16c8541262283e425b8bfae

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for instantscrape (3 malicious versions).

  2. If you installed it — respond

    instantscrape is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If instantscrape was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. instantscrape on PyPI has been identified as a malicious package (versions 0.1.0, 0.1.5, 0.1.8 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2026-11-instantscrapeIN-MAL-2026-022974IN-MAL-2026-022979

References

Credits

  • Amazon Inspector · finder
  • Kamil Mańkowski (kam193) · reporter

Detect & block this

O3 blocks instantscrape-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

instantscrape (PyPI) malicious package — MAL-2026-20322 | O3 Security