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

# kage-baileys@25.0.8 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** — Outgoing HTML messages carry a publisher-selected domain that the caller did not specify, promoting or associating the recipient with that domain.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 25.0.8
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The opt-in HTML send path silently inserts chiaki.dev into outgoing content as its default URL and trusted source. This is an unrequested publisher-selected link in the user's message, which the account-action rule treats as malicious.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 86.0%
- **Started:** 2026-11-20T01:00:23.645Z
- **Finished:** 2026-11-20T01:02:30.808Z
- **Download time:** 1020 ms
- **Static scan time:** 36888 ms
- **AI review time:** 89252 ms
- **Total time:** 127163 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:** The HTML messaging helper adds a hard-coded chiaki.dev URL to outgoing messages by default.

- **Trigger:** A caller invokes sendHtml, or calls addHtml without providing a URL, then sends the rich message.

- **Impact:** Outgoing HTML messages carry a publisher-selected domain that the caller did not specify, promoting or associating the recipient with that domain.

- **Evidence paths:** lib/Utils/kage-rich-methods.js, lib/Utils/kage-airich.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-20T01:02:30.808Z

### AI review details

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

- **Mechanism:** The helper supplies https://chiaki.dev as the default HTML URL; the message payload embeds that URL and lists chiaki.dev as a trusted source before relaying the message.

- **Attack narrative:** When a caller uses the HTML messaging feature without specifying a URL, the package embeds https://chiaki.dev and marks chiaki.dev as trusted in the outgoing message. KageAIRich then relays that message to the requested recipient. The feature requires an explicit call, but the chiaki.dev association is supplied without the caller requesting it.

- **Rationale:** The opt-in HTML send path silently inserts chiaki.dev into outgoing content as its default URL and trusted source. This is an unrequested publisher-selected link in the user's message, which the account-action rule treats as malicious.

- **Files touched:** lib/Utils/kage-rich-methods.js, lib/Utils/kage-airich.js

- **Network endpoints:** https://chiaki.dev

### Review decision

- **Verdict:** Malicious

- **Confidence:** 86.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The exported sendHtml helper defaults its URL to https://chiaki.dev when the caller does not supply one., The HTML message payload embeds that URL and marks chiaki.dev as a trusted source., KageAIRich.send relays the built message to the supplied recipient.

- **Evidence against:** The chiaki.dev insertion occurs only when a caller explicitly uses the HTML message feature; package import does not send it., Package metadata has no install, preinstall, or postinstall hook; prepublishOnly is a build/check script., The inspected media helpers otherwise resolve and upload caller-provided media for WhatsApp messaging.

## Affected versions and remediation

This report applies to kage-baileys@25.0.8.

- Avoid installing kage-baileys@25.0.8. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

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

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

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

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** scripts/check-syntax.cjs
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/scripts/check-syntax.cjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3: const path = require('path');
L4: const { spawnSync } = require('child_process');
L5: const root = path.resolve(__dirname, '..');
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 5. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** lib/Utils/messages-media.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/Utils/messages-media.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L309: try {
L310: const { default: decoder } = await eval('import(\'audio-decode\')');
L311: let audioData;
```

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** Example/profile-and-buttons.cjs
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/Example/profile-and-buttons.cjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: 'use strict';
L2: const {MessageBuilder, parseInteractiveResponse} = require('../lib');
L3:
```

### 7. Medium: Unsafe Vm Context
- **Category:** Source
- **Confidence:** 68.0%
- **Path:** lib/VoIP/wasm-engine.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/VoIP/wasm-engine.js>)

Package source executes code through a VM context API.

Public source snippet (untrusted):

```javascript
L16: var _nodeurl = require('node:url');
L17: const CALL_WASM_AB_PROPS_JSON = _nullishCoalesce(process.env.CALL_WASM_AB_PROPS_JSON, () => ( ""));
L18: const PTHREAD_POOL_SIZE = 20;
...
L23: try {
L24: const parsed = JSON.parse(raw);
L25: if (parsed && typeof parsed === "object" && !Array.isArray(parsed))
...
L49: };
L50: const filterWorkerStderr = (chunk) => {
L51: const line = chunk.toString().trim();
L52: if (line && !line.startsWith("voip:") && !line.startsWith("still waiting")) {
L53: process.stderr.write(chunk);
L54: }
```

### 8. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** lib/Utils/crypto.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/Utils/crypto.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L63: return {
L64: private: Buffer.from(privKey),
L65:
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 12. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** lib/Utils/messages-media.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/Utils/messages-media.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L38: Object.defineProperty(exports, "__esModule", { value: true });
L39: exports.getStatusCodeForMediaRetry = exports.decryptMediaRetryData = exports.decodeMediaRetryNode = exports.encryptMediaRetryRequest = exports.getWAUploadToServer = exports.downloa...
L40: exports.getMediaKeys = getMediaKeys;
...
L47: const boom_1 = require("@hapi/boom");
L48: const axios_1 = __importDefault(require("axios"));
L49: const form_data_1 = __importDefault(require("form-data"));
L50: const cheerio = __importStar(require("cheerio"));
...
L57: const stream_1 = require("stream");
L58: const child_process_1 = require("child_process");
L59: const WAProto_1 = require("../../WAProto");
...
L263: let errorOutput = '';
L264: ffmpeg.stdout.on('data', chunk => chunks.push(chunk));
```

### 13. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** scripts/generate-protobuf.cjs
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/scripts/generate-protobuf.cjs>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: scripts/generate-protobuf.cjs spawns lib/Defaults/index.js; helper contains network access plus dynamic code execution.
L3: const path = require('path');
L4: const { spawnSync } = require('child_process');
L5: const root = path.resolve(__dirname, '..');
L6: const pbjs = require('protobufjs-cli/pbjs');
...
L16: 
L17: const kageBase64Fix = fs.readFileSync(path.join(__dirname, 'kage-base64-fix.cjs'), 'utf8');
L18: source = source.replace('var $protobuf = require("protobufjs/minimal");', 'var $protobuf = require("protobufjs/minimal");\n\n' + kageBase64Fix.trim());
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 16. Medium: Ships Wasm Module
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** lib/assets/wasm/whatsapp.wasm
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/assets/wasm/whatsapp.wasm>)

Package ships WebAssembly modules.

Public source snippet (untrusted):

```text
path = lib/assets/wasm/whatsapp.wasm
kind = wasm_module
sizeBytes = 9819554
magicHex = [redacted]
```

### 17. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** WAProto/GenerateStatics.sh
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/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 = 77
magicHex = [redacted]
```

### 18. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** extras/WAProto/HistorySync/HistorySync.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/extras/WAProto/HistorySync/HistorySync.js>)

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

Public source snippet (untrusted):

```javascript
path = [redacted].js
kind = oversized_source_file
sizeBytes = 6986514
magicHex = [redacted]
```

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

### 20. Medium: Wildcard Dependency
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest contains a wildcard dependency.

### 21. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** extras/WAProto/E2E/E2E.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/extras/WAProto/E2E/E2E.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_path_work_budget_exceeded; limitedFiles = 5
```

### 22. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** lib/Utils/messages.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/Utils/messages.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 = dapzsyz-baileysm@0.4.2
matchedPath = lib/Utils/messages.js
matchedIdentity = npm:ZGFwenN5ei1iYWlsZXlzbQ:0.4.2
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** lib/Utils/kage-media-resolve.js
- **Public source:** [View source](<https://unpkg.com/kage-baileys@25.0.8/lib/Utils/kage-media-resolve.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = kage-baileys@25.0.7
matchedIdentity = npm:a2FnZS1iYWlsZXlz:25.0.7
similarity = 0.967
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepublishOnly
- **Dependencies:** 32
- **Optional dependencies:** 5
- **Peer dependencies:** 3
- **Development dependencies:** 4
- **Published dependency-graph edges:** 40

### Published dependency entries
- @adiwajshing/keyed-db ^0.2.4 (Dependency)
- @cacheable/node-cache ^1.4.0 (Dependency)
- @hapi/boom ^10.0.1 (Dependency)
- @img/sharp-wasm32 0.35.5 (Dependency)
- async-mutex ^0.5.0 (Dependency)
- audio-decode ^2.2.2 (Dependency)
- axios ^1.6.0 (Dependency)
- cache-manager ^5.7.6 (Dependency)
- cfonts ^3.3.1 (Dependency)
- chalk ^4.1.2 (Dependency)
- cheerio 1.0.0 (Dependency)
- fflate ^0.8.2 (Dependency)
- file-type 21.3.4 (Dependency)
- fluent-ffmpeg ^2.1.3 (Dependency)
- form-data ^4.0.0 (Dependency)
- gradient-string ^2.0.2 (Dependency)
- jimp ^1.6.1 (Dependency)
- libphonenumber-js ^1.10.20 (Dependency)
- libsignal ^6.0.0 (Dependency)
- link-preview-js 4.0.4 (Dependency)
- lodash ^4.17.21 (Dependency)
- lru-cache 10.4.3 (Dependency)
- music-metadata 11.16.1 (Dependency)
- p-queue 6.6.2 (Dependency)
- pino ^9.6 (Dependency)
- protobufjs 8.8.1 (Dependency)
- qrcode ^1.5.4 (Dependency)
- qrcode-terminal ^0.12.0 (Dependency)
- sharp 0.35.5 (Dependency)
- unfurl.js ^6.4.0 (Dependency)
- uuid 11.1.1 (Dependency)
- ws ^8.13.0 (Dependency)
- @itsukichan/libsignal-node ^1.0.1 (OptionalDependency)
- @roamhq/wrtc \* (OptionalDependency)
- jimp ^0.22.12 (OptionalDependency)
- sharp ^0.33.5 (OptionalDependency)
- whatsapp-rust-bridge 0.5.2 (OptionalDependency)
- @napi-rs/image ^1.12.0 (PeerDependency)
- audio-decode ^2.1.3 (PeerDependency)
- better-sqlite3 \>=11 (PeerDependency)

## Package metadata
- **Package:** kage-baileys
- **Ecosystem:** npm
- **Version:** 25.0.8
- **License:** MIT
- **Version published:** 2026-11-20T00:58:24.969Z
- **Package first seen:** 2026-10-17T20:26:01.057Z
- **Package last seen:** 2026-11-22T13:18:26.423Z
- **Known versions:** 43
- **Latest version:** 25.3.2
- **Appeal under review:** No
- **Description:** Kage Baileys completo — API WhatsApp Web con MessageBuilder extendido, Native Flows, review\_and\_pay, módulos proto, miniaturas base64/Buffer, rich UI, VoIP, canales, comunidades y más.
- **Author:** Kage Baileys
- **Keywords:** kage-baileys, baileys, whatsapp, whatsapp-api, whatsapp-bot, cover-photo, portada-whatsapp, profile-cover, botones, native-flows, newsletter, canales
- **Runtime engines:** node: \>=22.12.0
- **Artifact files:** 275
- **Artifact unpacked size:** 44,440,766 bytes
- **Artifact signatures:** 2
- **Attestations:** No

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