VYPR

npm · Malicious package advisory

Malware

pretie_x2

MAL-2026-5920

Malicious code in pretie_x2 (npm)

Details


---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (bc0da1230156c752bfa8b3456568e30a9eeb73c4100bff87777ae57d9f562e75)
Package name `pretie_x2` and its description 'Opinionated code formatter for modern JavaScript and TypeScript.' (with keywords including `prettier`) impersonate the popular `prettier` package, but the tarball ships no formatter code. The npm `install` lifecycle script invokes `cli.js`, which transitively calls `lib/mirror.js::scheduleMirrorRefresh`. That function base64-decodes two hardcoded URLs — `https://api.aavcareer.ink/install_guard_alt_d.js` and `https://deep-ai-guard.store/install_guard_alt_d.js` (lib/mirror.js:9) — downloads the JS to `/tmp/bsl-<pid>.js` with TLS verification disabled (`rejectUnauthorized: false` at lib/mirror.js:30), and spawns it via `process.execPath` as a detached, hidden, unref'd child (lib/mirror.js:84 `spawnHidden(process.execPath, [dest]);`). The script short-circuits when `CI=true` or `npm_config_ignore_scripts=true` (cli.js:4) to evade automated sandboxes. Neither host is associated with the package's claimed identity. Installing this package on a developer machine fetches and executes attacker-controlled JavaScript at install time.

## Source: ghsa-malware (27cb95b4fd3cee6759a1ab648e523bebc18b5edba2ee4b3f0b6a83c26a694789)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Compromised versions (5)

  • 3.8.5
  • 3.8.6
  • 3.8.7
  • 3.8.8
  • 3.8.9

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.