Credential leak · July 28, 2025

PyPI phishing via pypj.org captured maintainer logins and led to malicious num2words releases

In late July 2025 phishing emails titled "[PyPI] Email verification" sent maintainers to pypj.org, a lookalike that proxied the real PyPI so it could capture passwords, one-time 2FA codes and session cookies. PyPI says four accounts were phished and one was used to create an API token and upload malicious num2words 0.5.15 and 0.5.16. If you entered PyPI credentials on a lookalike site, change your password, review your account's security history and revoke API tokens; if you installed those num2words versions, follow advisory PYSEC-2025-72.

DisclosedJuly 28, 2025
Earliest known activityJuly 26, 2025
AffectedPyPI, num2words
TypeCredential leak
StatusResolved

What was exposed

PyPI account credentials. Because pypj.org relayed every request to the real pypi.org, it captured not only passwords but also time-based one-time 2FA codes and session cookies, which defeats TOTP-based 2FA. PyPI says four accounts were taken over this way. With one of them the attacker created an API token and published malware in num2words 0.5.15 and 0.5.16, which the account owner removed within hours. Anyone who installed those two versions ran attacker code, so the credentials on that machine or CI runner were also exposed. Recipients were chosen from email addresses in public package metadata.

Am I affected?

Maintainers: you are affected if you clicked a link in a "[PyPI] Email verification" email from pypj.org, or any PyPI-looking email whose link did not go to pypi.org, and signed in. Check your account's Security History on pypi.org for logins, token creation or uploads you do not recognise. Users: you are affected if any environment installed num2words 0.5.15 or 0.5.16; check lockfiles, pip freeze output and container images. PyPI's report does not describe the malware's behaviour in detail, so treat affected machines as compromised.

What to do now

  1. If you entered credentials on a lookalike site: change your PyPI password, revoke and recreate your API tokens, and review Security History for unexpected events.
  2. Switch PyPI 2FA to WebAuthn (a security key or passkey), which PyPI notes resists phishing because it is bound to the real site, and remove dormant accounts.
  3. Prefer trusted publishing from CI over long-lived PyPI API tokens.
  4. Check for num2words 0.5.15 or 0.5.16, follow PYSEC-2025-72, and rotate credentials on any machine that installed them.
  5. Block and search logs for pypj.org and the other indicators PyPI published.

Keys to rotate

Guides to the credentials this incident put at risk:

Timeline

  1. Users first report the phishing emails to PyPI, according to its incident report. Source
  2. PyPI warns users about emails from noreply@pypj.org, stresses that PyPI itself was not breached, and adds a homepage banner. The registrar places the domain on ClientHold the same day. Source
  3. PyPI publishes an incident report: four accounts phished, two attacker-created API tokens revoked, num2words 0.5.15 and 0.5.16 removed, and advisory PYSEC-2025-72 published. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • Phishing domain pypj.org, sender noreply@pypj.org, subject "[PyPI] Email verification".
  • IP addresses 45.9.148.108 and 45.9.148.85, and domains modirosa.com and necub.com, listed by PyPI.
  • num2words versions 0.5.15 and 0.5.16.

What this changes for credential handling

  • A relaying phishing site defeats one-time codes but not origin-bound credentials. BotPassword fills only on the exact domain a login was saved for, and passkey support is planned for v1.

Frequently asked questions

Am I affected by the PyPI incident?

Maintainers: you are affected if you clicked a link in a "[PyPI] Email verification" email from pypj.org, or any PyPI-looking email whose link did not go to pypi.org, and signed in. Check your account's Security History on pypi.org for logins, token creation or uploads you do not recognise. Users: you are affected if any environment installed num2words 0.5.15 or 0.5.16; check lockfiles, pip freeze output and container images. PyPI's report does not describe the malware's behaviour in detail, so treat affected machines as compromised.

What was exposed in the PyPI incident?

PyPI account credentials. Because pypj.org relayed every request to the real pypi.org, it captured not only passwords but also time-based one-time 2FA codes and session cookies, which defeats TOTP-based 2FA. PyPI says four accounts were taken over this way. With one of them the attacker created an API token and published malware in num2words 0.5.15 and 0.5.16, which the account owner removed within hours. Anyone who installed those two versions ran attacker code, so the credentials on that machine or CI runner were also exposed. Recipients were chosen from email addresses in public package metadata.

Which keys should I rotate?

Rotate any PyPI credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.