{"id":"MAL-2025-989","summary":"Malicious code in swapoc (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (fc650deb79ebf195b7e2ca4aeef3e25c9a26632fbc108f4bfabe54199f0b3b49)\nPackages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.\n\n\n---\n\nCategory: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.\n\n\nCampaign: GENERIC-simple-tests\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","modified":"2026-03-19T12:41:33.681962Z","published":"2024-08-23T22:55:41Z","database_specific":{"malicious-packages-origins":[{"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6"],"id":"RLMA-2025-00530","source":"reversing-labs","import_time":"2025-02-03T18:38:09.654266471Z","modified_time":"2025-02-03T17:07:57Z","sha256":"491882f5ec689643f516000ca78e0c2f1f19d444bd92ec1cfd9c43298c34a944"},{"sha256":"05bf0d435484ca71fcc73aae1b5036b3d76d50e496dba26335a9b9737e5b48b1","id":"pypi/GENERIC-simple-tests/swapoc","source":"kam193","import_time":"2025-12-02T22:30:56.425722262Z","modified_time":"2024-08-23T22:55:41Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"sha256":"fc650deb79ebf195b7e2ca4aeef3e25c9a26632fbc108f4bfabe54199f0b3b49","id":"pypi/GENERIC-simple-tests/swapoc","source":"kam193","import_time":"2025-12-02T23:07:19.610053936Z","modified_time":"2024-08-23T22:55:41Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","1.0.1","1.0.0","2.0.0"],"id":"pypi/GENERIC-simple-tests/swapoc","source":"kam193","import_time":"2025-12-10T21:38:58.714017363Z","modified_time":"2024-08-23T22:55:41Z","sha256":"77bd8dd8454c2b18cde0b9d384168e5398ed0ca2651bbc0f6f31f1fbd0e2a452"},{"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","1.0.0","1.0.1","2.0.0"],"id":"pypi/GENERIC-simple-tests/swapoc","source":"kam193","import_time":"2025-12-30T22:39:04.351472436Z","modified_time":"2024-08-23T22:55:41Z","sha256":"6db35fa7696ff4da055d698afa9f4db8ab11464d468b9d010f904ffb66550f8c"},{"sha256":"85ef7e91cbc108187e5d91141fc30f18ffefab27066f3e7ccabc5b50686c71ef","id":"RLUA-2026-00792","source":"reversing-labs","import_time":"2026-03-19T12:20:31.057832967Z","modified_time":"2026-03-18T12:19:10Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/swapoc"}],"affected":[{"package":{"name":"swapoc","ecosystem":"PyPI","purl":"pkg:pypi/swapoc"},"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","1.0.1","1.0.0","2.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/swapoc/MAL-2025-989.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"ANALYST"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}