{"id":"MAL-2026-6247","summary":"Malicious code in requests-enhancer (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (950c9d9155d6ba10a8d63c365fc6c7cc97d8bc6210165f93282d9e198ed3dd62)\nMalicious package with a chain of multiple manual dependencies to finally download malicious code. During import, it manually downloads a dependency from GitHub repository \"Hexa-devy/netflow-utils\", which then attempts to download \"codexio-boop/platform_syslib\". The last one contains obfuscated code that during installation connects with node22.lunes[.]host:3258 and downloads encrypted payload. The payload is executed, and it then starts another loop of connections to node22.lunes[.]host:22240 and awaits next payloads to execute. During analysis, this stage did not deliver any payload. On every stage, short-living generated tokens are used.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-requests-enhancer\n\n\nReasons (based on the campaign):\n\n\n - backdoor\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 - The malicious code is intentionally included in a dependency of the package\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n","modified":"2026-06-20T23:45:58.223951509Z","published":"2026-06-20T23:24:02Z","database_specific":{"iocs":{"urls":["https://github.com/codexio-boop/platform_syslib/archive/refs/heads/master.zip","https://github.com/Hexa-devy/netflow-utils/archive/refs/heads/master.zip","http://node22.lunes.host:3258/sync?v=","http://node22.lunes.host:3258/go?n=","http://node22.lunes.host:22240/update?v="]},"malicious-packages-origins":[{"versions":["1.4.2"],"source":"kam193","sha256":"950c9d9155d6ba10a8d63c365fc6c7cc97d8bc6210165f93282d9e198ed3dd62","modified_time":"2026-06-20T23:24:02.247136Z","import_time":"2026-06-20T23:31:19.136908039Z","id":"pypi/2026-06-requests-enhancer/requests-enhancer"}]},"references":[{"type":"WEB","url":"https://github.com/Hexa-devy/netflow-utils/blob/4f33b53019b11b99889ec860d486d550701f6e9d/pyproject.toml#L35"},{"type":"WEB","url":"https://github.com/codexio-boop/platform_syslib/blob/236340da65e23865eb1a9a6e4ed94d163ae80452/setup.py"},{"type":"WEB","url":"https://github.com/codexio-boop/platform_syslib/blob/236340da65e23865eb1a9a6e4ed94d163ae80452/connkit/__init__.py"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/requests-enhancer"}],"affected":[{"package":{"name":"requests-enhancer","ecosystem":"PyPI","purl":"pkg:pypi/requests-enhancer"},"versions":["1.4.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/requests-enhancer/MAL-2026-6247.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}