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

Source: https://botpassword.com/incidents/2025-07-pypi-pypj-phishing
Disclosed: 2025-07-28 · Type: Credential leak · Status: Resolved · Updated: 2026-10-25

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.

Identifiers: PYSEC-2025-72

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

## Who is 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

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

- [PyPI](https://botpassword.com/keys/pypi)

## Timeline

- 2025-07-26: Users first report the phishing emails to PyPI, according to its incident report. ([source](https://blog.pypi.org/posts/2025-07-31-incident-report-phishing-attack/))
- 2025-07-28: 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](https://blog.pypi.org/posts/2025-07-28-pypi-phishing-attack/))
- 2025-07-31: 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](https://blog.pypi.org/posts/2025-07-31-incident-report-phishing-attack/))

## Indicators

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

## Sources

- https://blog.pypi.org/posts/2025-07-28-pypi-phishing-attack/
- https://blog.pypi.org/posts/2025-07-31-incident-report-phishing-attack/
