{"id":"MAL-2026-20322","aliases":[],"title":"Malicious code in instantscrape (PyPI)","originalDescription":" --- _-= 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 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 adv","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.virustotal.com/gui/file/3800ce32ef2a665826b22f98d22f7767b27d53662b9c1a634f768ec5d78f56fa/detection","type":"evidence"},{"url":"https://tria.ge/261121-nyg7paey4t/behavioral1","type":"evidence"},{"url":"https://bad-packages.kam193.eu/pypi/package/instantscrape","type":"web"},{"url":"https://pypi.org/project/instantscrape/0.1.8/","type":"package"},{"url":"https://pypi.org/project/instantscrape/0.1.5/","type":"package"}],"sources":[{"name":"osv","at":"2026-11-22T00:52:34.620Z","url":"https://osv.dev/vulnerability/MAL-2026-20322","license":"CC-BY 4.0","firstSeenAt":"2026-11-21T23:46:31.250Z"}],"firstSeenAt":"2026-11-21T23:46:31.250Z","publishedAt":"2026-11-21T11:53:10.000Z","modifiedAt":"2026-11-21T23:15:04.197Z"}