VYPR

npm · Malicious package advisory

Malware

@akapaki/baileys

GHSA-374f-3p4p-9qwf

Malicious code in @akapaki/baileys (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: amazon-inspector (c14fdf44df68d2544cc235039ef40a99c7df7bcbfc968e8d5809762031f0dd16)
@akapaki/[email protected] is an unofficial republish of the Baileys WhatsApp library under a new scope (author `paki`, empty README, repository `pernapasquale647-dotcom/paki-baileys`). Its package.json declares the `libsignal` dependency as `github:pernapasquale647-dotcom/paki-libsignal` — a personal GitHub source with no commit SHA, tag, or integrity pin. `npm install` will fetch whatever the repo's default branch currently contains and run any lifecycle scripts inside it on the installer's machine, giving the repository owner unilateral, unaudited control over code executed at install time. The shipped lib/ has not been diffed against upstream Baileys, so behavioral drift from the legitimate library cannot be excluded.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/1fa66229c45e3a6dd673735c281e98120464c409/osv/malicious/npm/@akapaki/baileys/MAL-2026-17285.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/1fa66229c45e3a6dd673735c281e98120464c409/osv/malicious/npm/@akapaki/baileys/MAL-2026-17285.json
- https://www.npmjs.com/package/@akapaki/baileys/v/1.0.0
- https://www.npmjs.com/package/@akapaki/baileys/v/1.0.1
- https://www.npmjs.com/package/@akapaki/baileys/v/1.0.2
- https://github.com/advisories/GHSA-374f-3p4p-9qwf

Compromised versions (1)

  • = 1.0.0

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