Malicious code in coinscan (PyPI)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (021da2d8a1de0971203de68e083eeb30efc18b58ebc5b36ecde89eb03b02cf9e) setup.py imports coinscan.telemetry and calls check() during install. check() fetches a JSON manifest from https://thisisafalsepositive.st/cdn/v2/coinscan/manifest.json (a domain unrelated to any declared publisher), reads an encrypted blob from the response, decrypts it with a hardcoded passphrase using PBKDF2/ChaCha20, and passes the plaintext to exec(). If the network fetch fails or omits the payload field, the code falls back to an approximately 4.4KB base64 blob shipped in coinscan/_payload.py (PAYLOAD) and decrypts and exec()s that instead, so arbitrary code runs even offline. Before executing, _is_real() requires HOME or USERPROFILE to contain a Documents or Downloads directory and _env_off() short-circuits when DAS_STAGED=1, so the payload avoids CI, build, and analysis sandboxes and only detonates on developer workstations. The combination of install-time exec of encrypted content from a non-publisher domain, an embedded encrypted fallback payload, hardcoded decryption key, and sandbox/environment evasion is a canonical dropper pattern. ## Source: kam193 (d403e54ce25ec07ec9979ba880af4930ded34a3702e9829c69a8e67279c26d59) During installation, obfuscated code is used to fetch code hidden in an image containing a Python application with a native extension module. This module holds an obfuscated infostealer which collec
MAL-2026-17197
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-17197
coinscan
Source reference: /affected/0/package/name
- Affected versions
- 0.1.0
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "coinscan",
"purl": "pkg:pypi/coinscan",
"ecosystem": "PyPI"
},
"versions": [
"0.1.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/coinscan/MAL-2026-17197.json",
"indicators": {
"evidence_files": [
{
"path": "coinscan/telemetry.py",
"tlsh": "0d5171f5eb4a6423d242d2558825d0a4932abd2b7e536a307ccc63285f9207382b368d",
"sha256": "503e08ff154c13b54289378feeeb23bbadeca19367403f8a3f12cf8e26bcb532"
},
{
"path": "coinscan/_payload.py",
"tlsh": "81c17d55487c247ceaa150d3638adc5742d2e93dc3c549aeef4f6f9a32147c16b43b11",
"sha256": "9b3e07a6027c4f8caae6a1024fe3d698c4f92295c095e5781198cb465828a14e"
}
],
"package_integrity": [
{
"hashes": {
"md5": "9ae156f067f3079d99d981fec362029f",
"sha256": "4dd9521839c85b4751b8d828a209d50709060802ed44ef1cdc742f67efc5c56d",
"blake2b_256": "33a827c9c6a4631a5e02e0d42aaf68f34363255f52b5a694ff5d5a4bfa67142a"
},
"filename": "coinscan-0.1.0.tar.gz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #23699 · Revision 1
- Added to Heist Feed
- Publisher date