1 line
4.8 KiB
JSON
1 line
4.8 KiB
JSON
{"schema_version":"1.9.2","id":"MAL-2026-19259","published":"2026-11-13T19:47:37Z","modified":"2026-11-14T20:45:04.768567953Z","summary":"Malicious code in qap793gl4l (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3e78b140d24e4de0cdeffdfb0bd94d6e6a595fdadf4b68baf18af869badf4ca1)\nsetup.py overrides the build_py command so that during sdist install it calls hello.fetch(), which downloads hello.bat from raw.githubusercontent.com/misdry01/bookish-octo-lamp/refs/heads/main/hello.bat (a personal GitHub account on the mutable main branch, no pinning, no hash or signature check) and launches it via subprocess.Popen(['cmd.exe','/d','/c', path], creationflags=CREATE_NO_WINDOW), hiding the window. The wheel's bdist_wheel override additionally writes a qap793gl4l_boot.pth file containing 'import qap793gl4l_boot' into the site-packages root, so on every subsequent interpreter start site.py auto-imports qap793gl4l_boot, which re-invokes hello.fetch() and runs the remote batch file the same way. A temp-directory marker gates execution to once per machine but is trivially deletable, making the channel re-armable. vmcheck.py also implements DMI-based VM/sandbox detection, and update() refuses to run inside detected VMs via VMBlockedError, which is analyst-evasion scaffolding consistent with the dropper. The author controls the bytes served from the mutable URL and can change them at any time without republishing the package.\n\n## Source: kam193 (3b70be66ff6d01cbf23ac275f3311a3ce40aa24fad549f7b742266d881998946)\nContinuation of a campaign executing remote code. During analysis of this package, the remote Github repository did not yet host the malicious code.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-testing1345\n\n\nReasons (based on the campaign):\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - Downloads and executes a remote malicious script.\n\n\n - rat\n","affected":[{"package":{"name":"qap793gl4l","ecosystem":"PyPI","purl":"pkg:pypi/qap793gl4l"},"versions":["0.1.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"artifacts":["qap793gl4l-0.1.1.tar.gz"],"path":"setup.py","sha256":"cd4831a0b2730d28879532c3a436e091f9e9908418dbe99b9e8ed9ab1a2993ee","tlsh":"0a7185b788009bb2d78141b1614fc3ba933545337bd0516078ef856c0f9f0aa85b75e5"},{"artifacts":["qap793gl4l-0.1.1.tar.gz"],"path":"src/qap793gl4l_boot.py","sha256":"8aee0b5523b3819918def798eb268b040e19e41c840c37699642588f8b5f3c09","tlsh":"b52120b3a60196328b11d138955ec36de33da826bdda5164b8acc0393bda12fc2f5385"},{"artifacts":["qap793gl4l-0.1.1.tar.gz"],"path":"src/qap793gl4l/vmcheck.py","sha256":"37665cc02be8864ea6426a2dfbf39f4d1ddbcc7c47f67a9eb3fa3d665eaed35a","tlsh":"91625187e5247ca2894780658c5bd182ab3134431e5034357afcc168bf6e95fa3bdbbe"}],"package_integrity":[{"filename":"qap793gl4l-0.1.1.tar.gz","hashes":{"blake2b_256":"e0b8673e7c1ee30c6ccd5d017b044296628021cc34eeec8523cab8ea6f9964ea","md5":"12d61230b00898460efc91ff91151e48","sha256":"99c530ee926291a5a4281de5d94757fb6071a6bccde2a2e1b9c65a6d5ab21de6"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/qap793gl4l/MAL-2026-19259.json"}}],"references":[{"type":"EVIDENCE","url":"https://tria.ge/261113-wal5qset2s"},{"type":"EVIDENCE","url":"https://www.virustotal.com/gui/file/ce97b675a86bfff5e73e218e8d9d17458857d2328b1b55acd87f644001ca865f/detection"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/qap793gl4l"},{"type":"PACKAGE","url":"https://pypi.org/project/qap793gl4l/0.1.1/"}],"database_specific":{"iocs":{"domains":["helper-exe.vercel.app"],"urls":["https://helper-exe.vercel.app/hello.bat","https://file.garden/autlsl_4glu4x2U5/c_b8a1b1.zip","https://file.garden/autlsl_4glu4x2U5/m_7cf722","https://pomf2.lain.la/f/qj4sh0sj.png","https://raw.githubusercontent.com/misdry01/bookish-octo-lamp/refs/heads/main/hello.bat"]},"malicious-packages-origins":[{"id":"pypi/2026-11-testing1345/qap793gl4l","import_time":"2026-11-13T20:11:32.344196339Z","modified_time":"2026-11-13T19:47:37.731285Z","sha256":"3b70be66ff6d01cbf23ac275f3311a3ce40aa24fad549f7b742266d881998946","source":"kam193","versions":["0.1.1"]},{"id":"IN-MAL-2026-022779","import_time":"2026-11-14T20:36:15.1955449Z","modified_time":"2026-11-14T20:22:57Z","sha256":"3e78b140d24e4de0cdeffdfb0bd94d6e6a595fdadf4b68baf18af869badf4ca1","source":"amazon-inspector","versions":["0.1.1"]}]},"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"}]} |