---
canonical: "https://firewall.lpm.dev/npm/@badzz88/baileys/v/8.4.9"
markdown: "https://firewall.lpm.dev/npm/@badzz88/baileys/v/8.4.9.md"
package: "@badzz88/baileys"
report_status: "published"
title: "@badzz88/baileys@8.4.9 npm security report"
verdict: "malicious"
version: "8.4.9"
---

# @badzz88/baileys@8.4.9 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Blocked & quarantined** — Alters the user's followed-newsletter state without an explicit API call.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 8.4.9
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

Creating a WhatsApp socket silently follows three package-selected newsletters for the authenticated account. This is a concrete, unconsented account mutation.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 98.0%
- **Started:** 2026-07-31T09:43:51.339Z
- **Finished:** 2026-07-31T09:45:07.023Z
- **Download time:** 506 ms
- **Static scan time:** 2790 ms
- **AI review time:** 72386 ms
- **Total time:** 75684 ms

## Security analysis

### Published attack-surface review

- **Summary:** Creating a WhatsApp socket silently follows three package-selected newsletters for the authenticated account. This is a concrete, unconsented account mutation.

- **Trigger:** Runtime creation of a socket through makeWASocket.

- **Impact:** Alters the user's followed-newsletter state without an explicit API call.

- **Evidence paths:** package.json, engine-requirements.js, src/index.js, src/Socket/index.js, src/Socket/newsletter.js, src/Defaults/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-07-31T09:45:07.023Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** Delayed hard-coded WhatsApp newsletter FOLLOW queries.

- **Attack narrative:** When an application creates the package's normal WhatsApp socket, the newsletter layer schedules three FOLLOW queries after 90 seconds. Each target newsletter ID is hard-coded and Base64-obfuscated, bypassing the caller-facing newsletterFollow API. The requests are sent through the authenticated WhatsApp connection, silently modifying the account's subscriptions.

- **Rationale:** The package contains deliberate, concealed runtime account mutations unrelated to requested socket functionality. Its benign Node-version preinstall check does not mitigate this behavior.

- **Files touched:** src/Socket/newsletter.js, src/Socket/index.js, src/index.js

- **Network endpoints:** wss://web.whatsapp.com/ws/chat

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** src/Socket/newsletter.js schedules three hidden newsletter FOLLOW requests 90 seconds after socket construction., The follow targets are Base64-obfuscated hard-coded newsletter JIDs, not caller inputs., makeWASocket builds the newsletter socket chain, so ordinary runtime socket creation triggers the actions.

- **Evidence against:** package.json preinstall only enforces Node.js \>=20 in engine-requirements.js., No install-time network, credential harvesting, or foreign control-surface writes found.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.9/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.preinstall = node ./engine-requirements.js
```

### 2. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. High: High Secret
- **Category:** Secrets
- **Confidence:** 85.0%
- **Path:** src/WABinary/constants.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.9/src/WABinary/constants.js>)

Package contains a high-severity secret pattern.

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 604
matchedText = 'AIzaSyD...Lk',
```

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** WAProto/fix-import.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.9/WAProto/fix-import.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: const { readFileSync, writeFileSync } = require('fs');
L2: const { exit } = require('process');
```

### 5. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 6. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 7. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 8. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 9. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 10. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** WAProto/GenerateStatics.sh
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.9/WAProto/GenerateStatics.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = WAProto/GenerateStatics.sh
kind = build_helper
sizeBytes = 302
magicHex = [redacted]
```

### 11. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** WAProto/index.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.9/WAProto/index.js>)

Package contains source files above the normal full-analysis size ceiling.

Public source snippet (untrusted):

```javascript
path = WAProto/index.js
kind = oversized_source_file
sizeBytes = 12844070
magicHex = [redacted]
```

### 12. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 13. Medium: Git Dependency
- **Category:** Manifest
- **Confidence:** 85.0%

Package manifest contains a git dependency.

### 14. High: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** src/WABinary/constants.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.9/src/WABinary/constants.js>)

Google API key in src/WABinary/constants.js

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 604
matchedText = 'AIzaSyD...Lk',
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** preinstall
- **Dependencies:** 15
- **Optional dependencies:** 0
- **Peer dependencies:** 4
- **Development dependencies:** 22
- **Published dependency-graph edges:** 19

### Published dependency entries
- @adiwajshing/keyed-db ^0.2.4 (Dependency)
- @cacheable/node-cache ^3.0.1 (Dependency)
- @hapi/boom ^10.0.1 (Dependency)
- async-mutex ^0.5.0 (Dependency)
- cache-manager ^7.2.8 (Dependency)
- chalk ^4.1.2 (Dependency)
- libphonenumber-js ^1.13.3 (Dependency)
- lru-cache ^11.5.0 (Dependency)
- music-metadata ^11.12.3 (Dependency)
- p-queue ^9.3.0 (Dependency)
- pino ^10.3.1 (Dependency)
- protobufjs ^7.6.1 (Dependency)
- qrcode-terminal ^0.12.0 (Dependency)
- whatsapp-rust-bridge-baron github:7ucg/whatsapp-rust-bridge (Dependency)
- ws ^8.21.0 (Dependency)
- audio-decode ^2.1.3 (PeerDependency)
- jimp ^1.6.0 (PeerDependency)
- link-preview-js ^3.2.0 (PeerDependency)
- sharp ^0.32.5 (PeerDependency)

## Package metadata
- **Package:** @badzz88/baileys
- **Ecosystem:** npm
- **Version:** 8.4.9
- **License:** MIT
- **Version published:** 2026-07-30T12:50:51.107Z
- **Package first seen:** 2026-07-13T01:43:50.801Z
- **Package last seen:** 2026-08-09T05:48:22.181Z
- **Known versions:** 6
- **Latest version:** 8.5.2
- **Appeal under review:** No
- **Description:** Baileys Whatsapp Api Modification By Badzz88
- **Author:** Badzz88
- **Keywords:** whatsapp, whatsapp-web, whatsapp-api, baileys, multi-device, wasm, rust, automation, md
- **Runtime engines:** node: \>=20.0.0
- **Artifact files:** 136
- **Artifact unpacked size:** 19,111,881 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@badzz88/baileys/v/8.4.9>)
- [Repository](<https://github.com/Badzz88/baileys.git>)
- [Homepage](<https://github.com/Badzz88/baileys>)
- [Issues](<https://github.com/Badzz88/baileys/issues>)
