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

# @badzz88/baileys@8.4.2 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
**Allowed — no malicious behavior detected** — No malicious behavior detected. 16 low-signal pattern(s) reviewed.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 8.4.2
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

The lifecycle hook runs a Node.js compatibility check, while the inspected media and protocol code is consistent with a WhatsApp client library. The flagged helper is malformed and no reviewed source establishes an active attack.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-10-09T03:20:31.756Z
- **Finished:** 2026-10-09T03:20:58.626Z
- **Download time:** 780 ms
- **Static scan time:** 1584 ms
- **AI review time:** 24505 ms
- **Total time:** 26870 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** No attack was identified in the inspected source. The install hook checks the Node.js version, and the reviewed media code supports the package’s WhatsApp media functionality.

- **Trigger:** Package installation invokes the preinstall Node.js version check; media operations run when called by the application.

- **Impact:** No malicious effect was established from the inspected behavior.

- **Review source:** ai\_review

- **Reviewed:** 2026-10-09T03:20:58.626Z

### AI review details

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

- **Mechanism:** The install check reads the Node.js major version and exits for versions below 20. Media utilities handle caller-supplied media and upload through refreshed media connection details.

- **Rationale:** The lifecycle hook runs a Node.js compatibility check, while the inspected media and protocol code is consistent with a WhatsApp client library. The flagged helper is malformed and no reviewed source establishes an active attack.

### Review decision

- **Verdict:** Clean

- **Confidence:** 88.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The preinstall hook runs a Node.js version check; prepare and prepack are empty., The high-secret finding is in a protocol token table, with adjacent entries that are protocol strings and values., The flagged WAProto helper is malformed and its file rewrite is not referenced by the inspected lifecycle hook., The media utility processes supplied buffers and streams; its upload helper uses connection information returned by the WhatsApp media refresh function., The preinstall helper exits only when the Node.js major version is below 20.

## Affected versions and remediation

This report applies to @badzz88/baileys@8.4.2.

- Review the evidence and your use of @badzz88/baileys@8.4.2 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## 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.2/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. High: High Secret
- **Category:** Secrets
- **Confidence:** 85.0%
- **Path:** lib/WABinary/constants.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.2/lib/WABinary/constants.js>)

Package contains a high-severity secret pattern.

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 600
```

### 5. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** lib/Utils/validate-connection.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.2/lib/Utils/validate-connection.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L107: pull: false,
L108: devicePairingData: {
L109: buildHash: appVersionBuf,
...
L134: const { details, hmac, accountType } = proto.ADVSignedDeviceIdentityHMAC.decode(deviceIdentityNode.content);
L135: let hmacPrefix = Buffer.from([]);
L136: if (accountType !== undefined && accountType === proto.ADVEncryptionType.HOSTED) {
...
L158: ]);
L159: account.deviceSignature = Curve.sign(signedIdentityKey.private, deviceMsg);
L160: const identity = createSignalIdentity(lid, accountSignatureKey);
```

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

Package source references network APIs.

### 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.2/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.2/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 = 12145764
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: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** WAProto/fix-import.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.2/WAProto/fix-import.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 4
```

### 15. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/Utils/messages-media.js
- **Public source:** [View source](<https://unpkg.com/@badzz88/baileys@8.4.2/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 = @lekzo/baileys@0.0.6
matchedPath = lib/Utils/messages-media.js
matchedIdentity = npm:QGxla3pvL2JhaWxleXM:0.0.6
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

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

Google API key in lib/WABinary/constants.js

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 600
```

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

## Package metadata
- **Package:** @badzz88/baileys
- **Ecosystem:** npm
- **Version:** 8.4.2
- **License:** MIT
- **Version published:** 2026-06-26T09:04:10.998Z
- **Package first seen:** 2026-10-09T03:19:29.258Z
- **Package last seen:** 2026-10-12T18:56:06.442Z
- **Known versions:** 38
- **Latest version:** 0.0.1-security
- **Appeal under review:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@badzz88/baileys/v/8.4.2>)
