Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

aws-enumerateiamPyPI

Malicious code in aws-enumerateiam (PyPI) Remove it immediately and rotate any exposed credentials.

MAL-2025-191686
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall aws-enumerateiam

What this malware does

Before 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.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2025-08-aws-enumerate

Reasons (based on the campaign):

  • exfiltration-generic

  • action-hidden-in-lib-usage

  • exfiltration-credentials

Malicious versions

3 flagged
1.0.01.0.11.0.2

Indicators of compromise (SHA-256)

8d791e3fca589d90934a79ee3a601d20361d83e0420175ddfd9aecc98e1f0fb7
c108190780b32337fdce8748948935ac4229f0236710653f363b80a95dfbcd17
932a89b134a2b2fe407fef9cd90fb9ec01363e500140e8747f9428e7bf860c41
1b89c3d77d9a31a8a92f0848e7fc4486ab167e545036a74a76ab7d9500a50a20
adc5fcb4d46510080b1f5a44215aa116cd4e4db43c1062ec427b665b682a86ca

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for aws-enumerateiam (3 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging aws-enumerateiam across your stack and pipelines.

  2. If you installed it — respond

    aws-enumerateiam is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If aws-enumerateiam was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks aws-enumerateiam before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. aws-enumerateiam on PyPI has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2025-08-aws-enumerateRLMA-2025-06554RLUA-2026-00128

References

Credits

  • Kamil Mańkowski (kam193)
  • ReversingLabs · finder

Detect & block this

O3 blocks aws-enumerateiam-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

aws-enumerateiam (PyPI) malicious package — MAL-2025-191686 | O3 Security