{"id":"MAL-2026-4260","summary":"Malicious code in defi-risk-scanner (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (45b618fa404f25ea0884a054044392931fa8b2903892b4bacc2282c2a4f1e5d1)\nDuring import, the package downloads a remote JS script that then exfiltrates environmental variables, dotenv files, cryptowallets data and other sensitive informations. It's part of a broader campaign across PyPI, NPM and Github.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-05-eth-security-auditor\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - exfiltration-env-variables\n\n\n - crypto-related\n\n\n - Downloads and executes a remote malicious script.\n\n\n - exfiltration-crypto\n\n\n - exfiltration-credentials\n","modified":"2026-05-24T06:30:53.988262433Z","published":"2026-05-22T21:32:19Z","database_specific":{"malicious-packages-origins":[{"sha256":"45b618fa404f25ea0884a054044392931fa8b2903892b4bacc2282c2a4f1e5d1","versions":["0.1.0"],"id":"pypi/2026-05-eth-security-auditor/defi-risk-scanner","source":"kam193","modified_time":"2026-05-22T21:32:19.479746Z","import_time":"2026-05-22T21:55:13.068629611Z"},{"sha256":"45f69aefe8e36a19a8861e0edb87e1950438c121d26ae17a62a79c1083642490","versions":["0.1.0"],"id":"pypi/2026-05-eth-security-auditor/defi-risk-scanner","source":"kam193","modified_time":"2026-05-22T21:32:19.479746Z","import_time":"2026-05-24T06:19:57.538774781Z"}],"iocs":{"domains":["ddjidd564.github.io"],"urls":["https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner-light.js","https://ddjidd564.github.io/defi-security-best-practices/payloads/risk-profiler.js"]}},"references":[{"type":"WEB","url":"https://github.com/ddjidd564"},{"type":"WEB","url":"https://github.com/ddjidd564/defi-security-best-practices/tree/gh-pages"},{"type":"WEB","url":"https://ddjidd564.github.io/defi-security-best-practices/wallet-verify.py"},{"type":"WEB","url":"https://github.com/orgs/modelcontextprotocol/discussions/761"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/defi-risk-scanner"}],"affected":[{"package":{"name":"defi-risk-scanner","ecosystem":"PyPI","purl":"pkg:pypi/defi-risk-scanner"},"versions":["0.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/defi-risk-scanner/MAL-2026-4260.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}