{"id":"MAL-2026-18094","summary":"Malicious code in pafex (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f048e6c59bed3c95094e9baaf28b7234a917300b81a4c81db0eb0a3f859ff4e3)\nNo install-time or import-time network I/O, credential access, subprocess execution, or other installer-harm behavior was observed in this package version. No lifecycle hooks performing privileged or external actions, no.pth side effects, and no evidence of exfiltration, dropper, backdoor, or silent-relay patterns.\n\n## Source: kam193 (8ad1f51a6f081ac9e46b3d3ffa2d0b9b150b1600caf826d940f4e3d1992cda16)\nIn this campaign, the main package (resion) has an embeded pickle disguised as a config. A related dependency (pafex) contains code to load the pickle. During unpickling, malicious code embeded in the pickle file is automatically executed. It then establishes persistence via a PTH file and downloads the next stage payload. During analysis, the final remote payload was just a stub\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-10-webreader\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - obfuscation\n\n\n - The malicious code is intentionally included in a dependency of the package\n\n\n - Downloads and executes a remote malicious script.\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - rat\n\n\n - persistence\n\n\n - abuses-pth\n","modified":"2026-12-04T21:15:04.401585693Z","published":"2026-10-20T13:23:10Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/2026-10-webreader/pafex","import_time":"2026-10-20T14:18:32.001110670Z","modified_time":"2026-10-20T13:23:10.441051Z","sha256":"8ad1f51a6f081ac9e46b3d3ffa2d0b9b150b1600caf826d940f4e3d1992cda16","source":"kam193","versions":["2.3"]},{"source":"amazon-inspector","versions":["2.3"],"id":"IN-MAL-2026-022161","import_time":"2026-10-29T14:14:30.992212586Z","modified_time":"2026-10-29T13:56:41Z","sha256":"f048e6c59bed3c95094e9baaf28b7234a917300b81a4c81db0eb0a3f859ff4e3"},{"modified_time":"2026-10-20T13:23:10.441051Z","sha256":"c93c0154e8b1093a4259c8aa1eb8bf6ec56e2d6cc49bd3ededb063f38c850f72","source":"kam193","versions":["2.3"],"id":"pypi/2026-10-webreader/pafex","import_time":"2026-12-04T21:10:25.447436365Z"}],"iocs":{"domains":["frjmzbjbhwvtdnsuodmu.supabase.co"],"urls":["https://api.npoint.io/40e32d283a9d97e59252/a","https://api.npoint.io/69f11497b6c48bb2b2c5/p"]}},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pafex"},{"type":"PACKAGE","url":"https://pypi.org/project/pafex/2.3/"},{"type":"WEB","url":"https://www.island.io/blog/devgating-the-pypi-malware-that-stays-silent-until-it-finds-a-developer"}],"affected":[{"package":{"name":"pafex","ecosystem":"PyPI","purl":"pkg:pypi/pafex"},"versions":["2.3"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pafex/MAL-2026-18094.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"blake2b_256":"426d384da44ba204c3dad4c9d1cb5203a35c3573dfe7a4816835e5ebb83c6ee1","md5":"3038e0551a4c7688c72a385bbfc89871","sha256":"081ca1d3213e0fdea322b9bb8ef23fdc0dc04f7f36eb20d94e223997c3e4a2c6"},"filename":"pafex-2.3-py3-none-any.whl"},{"hashes":{"sha256":"fa64d0ac2b6f53aad612cbb6efdfacaf61df93c647aa8638c207297e892a76d1","blake2b_256":"5a24f079ad5cca6fedffc1e2833db69473e66c07fd57ed147ea2dea8b87f549f","md5":"8df6d9a7be962fcf1505734242e4f450"},"filename":"pafex-2.3.tar.gz"}]}}}],"schema_version":"1.9.2","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":"REPORTER"}]}