# eslint-config-prettier: eslint-config-prettier: a typosquatted npnjs.com phish pushed a Windows DLL into millions of builds

> **Safety notice:** Read-only scan of local lockfiles.

- **Incident date:** Jul 18–19, 2025
- **Disclosed:** Jul 19, 2025
- **Source disclosure:** https://github.com/prettier/eslint-config-prettier/issues/339

## Reproduction lab
Verify your workspace lockfiles are free of the July 2025 versions and test running package installs with lifecycle scripts disabled.

```bash
bash check-eslint-prettier-compromise.sh
npm config get ignore-scripts
```

## Policies and detection rules

### `check-eslint-prettier-compromise.sh`
Check lockfiles for compromised eslint-config-prettier versions (CVE-2025-54313).

```sh
#!/usr/bin/env bash
set -euo pipefail
grep -rnE '"eslint-config-prettier".*(8\.10\.1|9\.1\.1|10\.1\.6|10\.1\.7)' \
  package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null \
  && echo "ALERT: Compromised CVE-2025-54313 version present" \
  || echo "Clean: no compromised eslint-config-prettier versions found"
```

## Indicators of compromise
- **Domain:** `npnjs[.]com` (undefined)
- **File:** `node-gyp.dll (dropped by install.js)` (undefined)
- **Package:** `eslint-config-prettier@8.10.1, 9.1.1, 10.1.6, 10.1.7` (undefined)
