MAL-2026-20322: Malicious code in instantscrape (PyPI)

Published Nov 21, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (c686d2223600d1e566907147f1f905b5ecd66809e16c8541262283e425b8bfae) 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 packagedata. 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/initscarper.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.

Source: kam193 (080884e1b90e6717f2e13d434608203eb24db65a5071803022d3d12b6a7032d5) 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

Affected Software

1 affected component
pip/instantscrape=0.1.0, =0.1.5, =0.1.8

Event History

Nov 21, 2026
Advisory Published
via OSV·11:53 AM
Data Sourced
via OSV·11:53 AM
DescriptionAffected Software
Updated
via OSV·11:15 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203