{"id":"MAL-2026-3403","summary":"Malicious code in textwrap-formatter (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (18da24e92fd40457ad3df2af568c07d41b35f44e6e07e8fac3bf0eafba9c2154)\nDuring installation, obfuscated code exfiltrates cryptocurrency wallet data to a hardcoded location and places a backdoor through a new authorized SSH key. Information about the placed backdoor is sent back to the attacker, and sshd configuration is adjusted to ensure the successful remote connection.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-05-ninja-core-utils\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 - obfuscation\n\n\n - crypto-related\n\n\n - exfiltration-crypto\n\n\n - backdoor\n","modified":"2026-05-12T22:05:11.941140Z","published":"2026-05-09T16:56:23Z","database_specific":{"malicious-packages-origins":[{"sha256":"18da24e92fd40457ad3df2af568c07d41b35f44e6e07e8fac3bf0eafba9c2154","source":"kam193","import_time":"2026-05-09T17:23:17.197007257Z","modified_time":"2026-05-09T16:56:23.52583Z","id":"pypi/2026-05-ninja-core-utils/textwrap-formatter","versions":["1.2.4","1.2.5"]},{"sha256":"ec3c4972c82dc17c39d06d5cbb6eeb3fc330a6bf31a986fd33e44563d167dfbd","source":"kam193","import_time":"2026-05-12T21:56:03.346641471Z","modified_time":"2026-05-09T16:56:23.52583Z","id":"pypi/2026-05-ninja-core-utils/textwrap-formatter","versions":["1.2.4","1.2.5"]}],"iocs":{"ips":["144.126.142.148"],"urls":["http://144.126.142.148:5555/tao","http://144.126.142.148:5555/report"]}},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/textwrap-formatter"}],"affected":[{"package":{"name":"textwrap-formatter","ecosystem":"PyPI","purl":"pkg:pypi/textwrap-formatter"},"versions":["1.2.4","1.2.5"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/textwrap-formatter/MAL-2026-3403.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}