{"id":"MAL-2026-5876","summary":"Malicious code in temp-development-package-test (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (14f3eeecfabfcb249c5f6ec2a20824355ac313ab18c677334076ca9501607ec8)\nAt install time, setup.py invokes install_sitecustomize(), which copies src/temp_development_package_test/setup/sitecustomize.py into Python's purelib site-packages directory as sitecustomize.py (setup.py:34 destination = site_packages / \"sitecustomize.py\"; setup.py:36 shutil.copy2(source, destination)). Python auto-imports sitecustomize on every interpreter startup, so this places an interpreter-wide hook outside the package's own namespace that fires for every subsequent Python process on the host — a classic persistence mechanism. The hook payload file is not actually shipped in this 0.2 sdist, so the install would currently raise FileNotFoundError, but the install-time mechanism and intent to write a global hook are unambiguous. The package metadata corroborates a throwaway / probe release: name, author, and summary are all the literal placeholder 'temp_development_package_test'; setup.py imports base64 but never uses it; cli.py imports from an unrelated, undeclared module 'pg_agent.orchestration.coordinator'. The combination — placeholder identity plus install-time write of a global interpreter hook — is not a legitimate package shape.\n\n## Source: kam193 (5cdc1d94dd0cfb62a4a0267ae52bf1a72dfa31a6854196b4bb220759b7c6e878)\nStarting with version 0.4, package installs a sitecustomize.py that executes during Python engine initialization. The embeded code uses mshta to download malicious code, as in other packages from the campaign.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-easyaillm\n\n\nReasons (based on the campaign):\n\n\n - Downloads and executes a remote executable.\n\n\n - obfuscation\n\n\n - malware\n\n\n - tool:mshta\n","modified":"2026-07-09T16:32:06.444795494Z","published":"2026-06-16T09:48:43Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-06-16T09:48:43.333965Z","versions":["0.1","0.2","0.3","0.4"],"source":"kam193","sha256":"e3c86f2cd8d50f754a3ad16c1daeda56d43f655d6025fa24c7fa91bcbdfd84dc","import_time":"2026-06-16T10:17:17.181851951Z","id":"pypi/2026-06-easyaillm/temp-development-package-test"},{"source":"kam193","sha256":"dcb57e25c8993eacafd70b6d4add3460419c7f2c7083ee50397700f1e1238d4c","import_time":"2026-06-16T12:17:04.382979281Z","id":"pypi/2026-06-easyaillm/temp-development-package-test","modified_time":"2026-06-16T09:48:43.333965Z","versions":["0.1","0.2","0.3","0.4"]},{"versions":["0.1","0.2","0.3","0.4"],"source":"kam193","sha256":"5cdc1d94dd0cfb62a4a0267ae52bf1a72dfa31a6854196b4bb220759b7c6e878","import_time":"2026-06-17T09:49:36.178013694Z","id":"pypi/2026-06-easyaillm/temp-development-package-test","modified_time":"2026-06-16T09:48:43.333965Z"},{"modified_time":"2026-07-08T22:40:32Z","versions":["0.1"],"source":"amazon-inspector","sha256":"d13efa8d6d49d2f7018bd432d115e87064d4e2ad8a9cc56e00d9514739f178ae","import_time":"2026-07-08T22:51:26.349905541Z","id":"IN-MAL-2026-008838"},{"sha256":"126aa8a85eddebf7fb68ce845c1fe85e9991a6584da5fe768aa4ffb1bd089592","import_time":"2026-07-08T23:27:58.005381709Z","id":"IN-MAL-2026-008993","modified_time":"2026-07-08T23:03:11Z","versions":["0.3"],"source":"amazon-inspector"},{"versions":["0.2"],"source":"amazon-inspector","sha256":"14f3eeecfabfcb249c5f6ec2a20824355ac313ab18c677334076ca9501607ec8","import_time":"2026-07-09T16:20:47.772482618Z","id":"IN-MAL-2026-009170","modified_time":"2026-07-09T15:38:38Z"}],"iocs":{"urls":["https://pastebin.com/raw/hEF5HaFc","https://pastebin.com/raw/yBcUM1QBs","https://pastebin.com/raw/yBcUM1QB","http://fixars.top","https://tmpfiles.org/dl/wawHVGgfydD7/6a306c5f03a52.exe","http://62.60.226.243/public_files/98r4aXA.txt","http://62.60.226.243/public_files/16sas.jpg?12711313"],"domains":["fixars.top"]}},"references":[{"type":"EVIDENCE","url":"https://www.virustotal.com/gui/file/1a5beab4a6facb46b4afc5f8526e1327e6c7d740ccaf34c6a921ac18eff29427/detection"},{"type":"EVIDENCE","url":"https://www.virustotal.com/gui/file/4c99c8edfc4444f46932f14afccb2952a3850df765765f9ac793d69f318c192f/detection"},{"type":"EVIDENCE","url":"https://www.virustotal.com/gui/file/0649f50ead3695f41c1243883200bdb775410bcd8c8fb88277740a625a154e25"},{"type":"EVIDENCE","url":"https://www.virustotal.com/gui/file/926e8f1a7f349ff1eef31f89fa8ffe265c30b92e310e8bea19962d38f8c32129"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/temp-development-package-test"},{"type":"PACKAGE","url":"https://pypi.org/project/temp-development-package-test/0.1/"},{"type":"PACKAGE","url":"https://pypi.org/project/temp-development-package-test/0.3/"},{"type":"PACKAGE","url":"https://pypi.org/project/temp-development-package-test/0.2/"}],"affected":[{"package":{"name":"temp-development-package-test","ecosystem":"PyPI","purl":"pkg:pypi/temp-development-package-test"},"versions":["0.1","0.2","0.3","0.4"],"database_specific":{"cwes":[{"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","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"temp_development_package_test-0.1.tar.gz","hashes":{"blake2b_256":"beda7811e6f950f492dab1b1c55f19333325ee6edc099909c7c4ff5ffd3bb900","md5":"379a9f9b285bd0d4ee912cfa2706dcf4","sha256":"f970296e2960b874e1367f13a31089fc080c25d4bd419a1fe8040113d647260b"}}],"evidence_files":[{"path":"setup.py","sha256":"193f7b99ed544d86d40f6860997d9f664acb03382ffd4462c29181fea1b64643","tlsh":"3321d02b8477baf454e25d545e265822faa7d33fed2040ceb6bc83582f7140586a78ac"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/temp-development-package-test/MAL-2026-5876.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"ANALYST"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}