{"id":"MAL-2026-3371","summary":"Malicious code in pycacheopt (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (cf50eae305079227b5283e08547cc201f941624c95e49460c3e6544cdd1e221b)\nThe extension module hides code that in specific circumstances executes given code. The malicious action is hidden only in the extension module with the same-named Python code file containing only benign code.\n\nThis campaign was first detected by Aikido Security.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-05-pycacheopt\n\n\nReasons (based on the campaign):\n\n\n - other\n\n\n - The package contains code to detect if it is running in a sandbox environment.\n","modified":"2026-05-07T21:02:50.623995Z","published":"2026-05-07T20:07:37Z","database_specific":{"malicious-packages-origins":[{"source":"kam193","import_time":"2026-05-07T20:53:07.343289919Z","id":"pypi/2026-05-pycacheopt/pycacheopt","versions":["0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7"],"sha256":"cf50eae305079227b5283e08547cc201f941624c95e49460c3e6544cdd1e221b","modified_time":"2026-05-07T20:07:37.880286Z"}]},"references":[{"type":"WEB","url":"https://app.aikido.dev/reports/malware/software-supply-chain-attacks?packageId=934457"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pycacheopt"}],"affected":[{"package":{"name":"pycacheopt","ecosystem":"PyPI","purl":"pkg:pypi/pycacheopt"},"versions":["0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pycacheopt/MAL-2026-3371.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}