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

# diezyyasha-baileys@9.1.5 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** — Can facilitate harassment or abuse of WhatsApp pairing/registration flows.

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

An exported runtime API can repeatedly request WhatsApp pairing codes for a supplied number. A separate exported check function creates local auth-state storage and sends a WhatsApp registration-code request; neither runs during installation.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 91.0%
- **Started:** 2026-08-07T00:33:51.049Z
- **Finished:** 2026-08-07T00:35:08.254Z
- **Download time:** 506 ms
- **Static scan time:** 438 ms
- **AI review time:** 76261 ms
- **Total time:** 77205 ms

## Security analysis

### Published attack-surface review

- **Summary:** An exported runtime API can repeatedly request WhatsApp pairing codes for a supplied number. A separate exported check function creates local auth-state storage and sends a WhatsApp registration-code request; neither runs during installation.

- **Trigger:** Caller invokes reqPairing or checkWhatsApp on a created socket.

- **Impact:** Can facilitate harassment or abuse of WhatsApp pairing/registration flows.

- **Evidence paths:** package.json, engine-requirements.js, lib/index.js, lib/Socket/chats.js, lib/Utils/use-multi-file-auth-state.js, lib/Utils/messages-media.js, lib/Utils/generics.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-07T00:35:08.254Z

### AI review details

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

- **Mechanism:** Runtime pairing-code spam and SMS-registration requests.

- **Rationale:** Source inspection confirms an explicit, reachable abuse-oriented pairing-code capability, but no automatic malicious install chain or credential exfiltration. Flag as a warning for dangerous dual-use behavior.

- **Files touched:** lib/Socket/chats.js, .npm/creds.json

- **Network endpoints:** wss://web.whatsapp.com/ws/chat, https://v.whatsapp.net/v2, https://web.whatsapp.com/sw.js, https://raw.githubusercontent.com/z4phdev/baileys/master/src/Defaults/baileys-version.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for:** lib/Socket/chats.js exports reqPairing, which repeatedly requests pairing codes and labels output “Spam”., checkWhatsApp creates a .npm auth-state directory and requests SMS registration codes., lib/index.js clears the terminal and prints branding on every module import.

- **Evidence against:** package.json preinstall only runs engine-requirements.js, which checks Node major version and exits if below 20., No install-time network, credential harvesting, shell execution, or foreign config mutation was found., messages-media.js child\_process use is limited to ffmpeg thumbnail generation from caller-supplied media., Observed endpoints support WhatsApp protocol, registration, media, or an explicit version utility.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

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

### 2. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

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

Package source references network APIs.

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

Package source references filesystem APIs.

### 6. Critical: Trojan Source Unicode
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** lib/index.js
- **Public source:** [View source](<https://unpkg.com/diezyyasha-baileys@9.1.5/lib/index.js>)

Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.

Public source snippet (untrusted):

```javascript
L22: contains invisible/control Unicode U+200E (left-to-right mark)
<U+200E>██████╗ ██╗███████╗███████╗██╗   ██╗
```

### 7. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** lib/index.js
- **Public source:** [View source](<https://unpkg.com/diezyyasha-baileys@9.1.5/lib/index.js>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.main -> lib/index.js
Reachable file contains a blocking source-risk pattern.
```

### 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: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** WAProto/index.js
- **Public source:** [View source](<https://unpkg.com/diezyyasha-baileys@9.1.5/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 = 8472622
magicHex = [redacted]
```

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

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

Package manifest contains a git dependency.

### 13. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/Utils/messages-media.js
- **Public source:** [View source](<https://unpkg.com/diezyyasha-baileys@9.1.5/lib/Utils/messages-media.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = my-auto-follow@1.0.3
matchedPath = lib/Utils/messages-media.js
matchedIdentity = npm:bXktYXV0by1mb2xsb3c:1.0.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepare, preinstall
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** diezyyasha-baileys
- **Ecosystem:** npm
- **Version:** 9.1.5
- **License:** MIT
- **Version published:** 2026-08-05T10:22:09.878Z
- **Package first seen:** 2026-08-06T17:12:24.635Z
- **Package last seen:** 2026-08-07T12:55:05.825Z
- **Known versions:** 14
- **Latest version:** 0.0.1-security
- **Appeal under review:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/diezyyasha-baileys/v/9.1.5>)
- [OSV advisory](<https://osv.dev/vulnerability/MAL-2026-13443>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/9.0.0>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/8.6.59>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/8.6.58>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/8.6.62>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/9.1.3>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/8.6.61>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/9.1.5>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/9.2.0>)
- [PACKAGE](<https://www.npmjs.com/package/diezyyasha-baileys/v/8.6.57>)
- [ADVISORY](<https://github.com/advisories/GHSA-78fc-2672-hcjg>)
