MAL-2026-20322
Vulnerability from ossf_malicious_packages – Published: 2026-11-21 11:53 – Updated: 2026-11-21 23:11 – Source website| Ecosystem | Package | Versions |
|---|---|---|
| PyPI |
instantscrape
|
0.1.00.1.50.1.8
|
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
No description from this source.
| Type | Indicator | Hashes |
|---|---|---|
| Evidence file |
src/instantscrape/init_scarper.py
|
sha256
15cc56621745f2ff45057a03dfdd446ee25c2be55d2ab540d248f7c230532b3atlsh
ed11501f791a2a2a8ae19740268222d44916523bff718008fe4cc27d37fa9b042d9e88 |
| Evidence file |
setup.py
|
sha256
c521e119492dbee958130ebc0708a4f13c881ae9de70e2bdea131176e4d7a0betlsh
3601c00f65772b32a8c1479095b346922b236e656fa0c4e9f4ff8134474b464a60fda7 |
| Package archive |
instantscrape-0.1.8-py3-none-any.whl
|
blake2b_256
142f6e0eb3c665d5c17c111688a4bf76a3c355e93e9d06cd38fa75c9b7790698md5
2d4ce542c2ff9c6919dd43da228b5f18sha256
a9ce342a50ac29735d2b8b90045823119983ad8bbab00df2daa3057ec5ad5c97 |
| Package archive |
instantscrape-0.1.8.tar.gz
|
blake2b_256
5e474ae28b7b797543a6788df5404d7e098172906e2df26e07262a2273f5e8efmd5
d51ab2006cc362c863338eb1beb7c5basha256
c3e8b63331058b61fdadd2ffd456ed9d16888977ecae20e39810b95fdc4e3a22 |
- CWE-506 - Embedded Malicious Code
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
},
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"evidence_files": [
{
"artifacts": [
"instantscrape-0.1.8.tar.gz",
"instantscrape-0.1.8-py3-none-any.whl"
],
"path": "src/instantscrape/init_scarper.py",
"sha256": "15cc56621745f2ff45057a03dfdd446ee25c2be55d2ab540d248f7c230532b3a",
"tlsh": "ed11501f791a2a2a8ae19740268222d44916523bff718008fe4cc27d37fa9b042d9e88"
},
{
"artifacts": [
"instantscrape-0.1.8.tar.gz"
],
"path": "setup.py",
"sha256": "c521e119492dbee958130ebc0708a4f13c881ae9de70e2bdea131176e4d7a0be",
"tlsh": "3601c00f65772b32a8c1479095b346922b236e656fa0c4e9f4ff8134474b464a60fda7"
}
],
"package_integrity": [
{
"filename": "instantscrape-0.1.8-py3-none-any.whl",
"hashes": {
"blake2b_256": "142f6e0eb3c665d5c17c111688a4bf76a3c355e93e9d06cd38fa75c9b7790698",
"md5": "2d4ce542c2ff9c6919dd43da228b5f18",
"sha256": "a9ce342a50ac29735d2b8b90045823119983ad8bbab00df2daa3057ec5ad5c97"
}
},
{
"filename": "instantscrape-0.1.8.tar.gz",
"hashes": {
"blake2b_256": "5e474ae28b7b797543a6788df5404d7e098172906e2df26e07262a2273f5e8ef",
"md5": "d51ab2006cc362c863338eb1beb7c5ba",
"sha256": "c3e8b63331058b61fdadd2ffd456ed9d16888977ecae20e39810b95fdc4e3a22"
}
}
]
}
},
"package": {
"ecosystem": "PyPI",
"name": "instantscrape"
},
"versions": [
"0.1.0",
"0.1.5",
"0.1.8"
]
}
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
},
{
"contact": [
"https://github.com/kam193",
"https://bad-packages.kam193.eu/"
],
"name": "Kamil Ma\u0144kowski (kam193)",
"type": "REPORTER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "pypi/2026-11-instantscrape/instantscrape",
"import_time": "2026-11-21T12:15:16.255457501Z",
"modified_time": "2026-11-21T11:53:10.895746Z",
"sha256": "080884e1b90e6717f2e13d434608203eb24db65a5071803022d3d12b6a7032d5",
"source": "kam193",
"versions": [
"0.1.0",
"0.1.5",
"0.1.8"
]
},
{
"id": "IN-MAL-2026-022974",
"import_time": "2026-11-21T23:10:18.83260701Z",
"modified_time": "2026-11-21T22:44:57Z",
"sha256": "2468ac9ed09c09513d1bdb6c8e4c8ad622b3368ac23ce9005f461a24a5bbf7ca",
"source": "amazon-inspector",
"versions": [
"0.1.8"
]
},
{
"id": "IN-MAL-2026-022979",
"import_time": "2026-11-21T23:10:19.327625441Z",
"modified_time": "2026-11-21T23:02:54Z",
"sha256": "c686d2223600d1e566907147f1f905b5ecd66809e16c8541262283e425b8bfae",
"source": "amazon-inspector",
"versions": [
"0.1.5"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c686d2223600d1e566907147f1f905b5ecd66809e16c8541262283e425b8bfae)\nThe 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==\u0027nt\u0027) this moves the bundled pip.webp to the user\u0027s 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] -\u003e 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.\n\n## Source: kam193 (080884e1b90e6717f2e13d434608203eb24db65a5071803022d3d12b6a7032d5)\nDuring installation or import, package executes an embedded malicious executable acting as an infostealer.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-instantscrape\n\n\nReasons (based on the campaign):\n\n\n - infostealer\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - files-exfiltration\n\n\n - obfuscation\n",
"id": "MAL-2026-20322",
"modified": "2026-11-21T23:11:57.256145381Z",
"published": "2026-11-21T11:53:10Z",
"references": [
{
"type": "EVIDENCE",
"url": "https://www.virustotal.com/gui/file/3800ce32ef2a665826b22f98d22f7767b27d53662b9c1a634f768ec5d78f56fa/detection"
},
{
"type": "EVIDENCE",
"url": "https://tria.ge/261121-nyg7paey4t/behavioral1"
},
{
"type": "WEB",
"url": "https://bad-packages.kam193.eu/pypi/package/instantscrape"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/instantscrape/0.1.8/"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/instantscrape/0.1.5/"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in instantscrape (PyPI)"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.