{"id":"MAL-2025-191686","summary":"Malicious code in aws-enumerateiam (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (c108190780b32337fdce8748948935ac4229f0236710653f363b80a95dfbcd17)\nBefore creating the boto3 client, package exfiltrates user's credentials. In this version, the exfiltrating is masked as connecting to an AWS component. The URL to the component is expected to be hex-encoded. In fact, the related GitHub project uses it as a dependency and sets as the URL the attacker-controlled domain. In this way, the AWS libraries are abused to generate the request to the malicious infrastructure and exfiltrate credentials.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-08-aws-enumerate\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-generic\n\n\n - action-hidden-in-lib-usage\n\n\n - exfiltration-credentials\n","modified":"2026-03-19T12:50:54.836351Z","published":"2025-11-18T23:47:36Z","database_specific":{"iocs":{"domains":["api.aliyun-sdk-requests.xyz","aliyun-sdk-requests.xyz"],"urls":["https://api.aliyun-sdk-requests.xyz/aws","https://github.com/kohlersbtuh15/accesskey_tools"]},"malicious-packages-origins":[{"id":"pypi/2025-08-aws-enumerate/aws-enumerateiam","import_time":"2025-12-02T22:30:54.959979014Z","modified_time":"2025-11-18T23:47:36.353225Z","sha256":"8d791e3fca589d90934a79ee3a601d20361d83e0420175ddfd9aecc98e1f0fb7","source":"kam193","versions":["1.0.2","1.0.1","1.0.0"]},{"import_time":"2025-12-02T23:07:18.000475059Z","modified_time":"2025-11-18T23:47:36.353225Z","sha256":"c108190780b32337fdce8748948935ac4229f0236710653f363b80a95dfbcd17","source":"kam193","versions":["1.0.2","1.0.1","1.0.0"],"id":"pypi/2025-08-aws-enumerate/aws-enumerateiam"},{"id":"RLMA-2025-06554","import_time":"2025-12-24T10:07:30.11401291Z","modified_time":"2025-12-23T08:38:01Z","sha256":"932a89b134a2b2fe407fef9cd90fb9ec01363e500140e8747f9428e7bf860c41","source":"reversing-labs","versions":["1.0.0","1.0.1","1.0.2"]},{"sha256":"1b89c3d77d9a31a8a92f0848e7fc4486ab167e545036a74a76ab7d9500a50a20","source":"kam193","versions":["1.0.0","1.0.1","1.0.2"],"id":"pypi/2025-08-aws-enumerate/aws-enumerateiam","import_time":"2025-12-30T22:39:04.044534138Z","modified_time":"2025-11-18T23:47:36.353225Z"},{"id":"RLUA-2026-00128","import_time":"2026-03-19T12:19:27.931717825Z","modified_time":"2026-03-18T12:11:42Z","sha256":"adc5fcb4d46510080b1f5a44215aa116cd4e4db43c1062ec427b665b682a86ca","source":"reversing-labs"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/aws-enumerateiam"}],"affected":[{"package":{"name":"aws-enumerateiam","ecosystem":"PyPI","purl":"pkg:pypi/aws-enumerateiam"},"versions":["1.0.2","1.0.1","1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/aws-enumerateiam/MAL-2025-191686.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":"REPORTER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}