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

# astrabail@1.2.4 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 by malware advisory** — OpenSSF/OSV malware advisory MAL-2026-18937 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; the assessments disagree.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Trusted malware advisory block
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 1.2.4
- **Selected version is latest:** Yes
- **Analysis source:** OpenSSF/OSV malicious advisory (OpenSSF/OSV)

OpenSSF/OSV malware advisory MAL-2026-18937 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; the assessments disagree.

LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.

- **LPM AI reviewed:** 2026-11-10T02:31:41.265Z

OpenSSF/OSV advisory MAL-2026-18937 confirms this npm version as malicious. astrabail is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363394395254196@newsletter, 120363406005175144@newsletter and the channel invite code(s) 0029Vazo6KM8kyyJ4eWh3A25, using the victim's...

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 92.0%
- **Started:** 2026-11-10T02:30:26.674Z
- **Finished:** 2026-11-10T02:31:41.265Z
- **Download time:** 511 ms
- **Static scan time:** 34327 ms
- **AI review time:** 39749 ms
- **Total time:** 74591 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:** Undisclosed runtime public-IP lookup for hosting detection and promotion.

- **Trigger:** The application's WhatsApp connection reaches the open state after makeWASocket is called.

- **Impact:** The IP lookup reveals the caller’s public IP to the lookup service; the package then displays a hosting-specific promotional message.

- **Evidence paths:** lib/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-10T02:31:41.265Z

### AI review details

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

- **Mechanism:** The wrapper requests the caller’s public IP from api.ipify.org and compares it with a hard-coded IP address.

- **Rationale:** The package performs an undisclosed public-IP lookup after a WhatsApp connection opens, apparently to identify hosting and show a promotion. This merits a warning as runtime telemetry; the flagged key is a protocol token and the shell helper is ordinary code generation.

- **Network endpoints:** https://api.ipify.org

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 92.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for AI warning decision:** After the WhatsApp connection opens, the exported makeWASocket wrapper calls checkAstrahostPanel once., checkAstrahostPanel requests the caller’s public IP from api.ipify.org and compares it with a hard-coded hosting IP to show a promotional message.

- **Evidence against:** The manifest lists build and documentation scripts, with no install lifecycle hook., The flagged Google-style key appears among WhatsApp binary protocol dictionary tokens, not in a credential collection or transmission flow., The shell helper only runs protobuf code-generation commands.

## Affected versions and remediation

This report applies to astrabail@1.2.4.

- Avoid installing astrabail@1.2.4. 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: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: High Secret
- **Category:** Secrets
- **Confidence:** 85.0%
- **Path:** lib/WABinary/constants.js
- **Public source:** [View source](<https://unpkg.com/astrabail@1.2.4/lib/WABinary/constants.js>)

Package contains a high-severity secret pattern.

Public source snippet (untrusted):

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

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

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L295: try {
L296: const { default: decoder } = await eval('import(\'audio-decode\')')
L297: let audioData
```

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

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L42: return {
L43: private: Buffer.from(privKey),
L44: public: Buffer.from(pubKey.slice(1))
```

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

Package source references network APIs.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

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

Public source snippet (untrusted):

```javascript
path = WAProto/HistorySync/HistorySync.js
kind = oversized_source_file
sizeBytes = 7180238
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: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** WAProto/E2E/E2E.js
- **Public source:** [View source](<https://unpkg.com/astrabail@1.2.4/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 = 4
```

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

Google API key in lib/WABinary/constants.js

Public source snippet (untrusted):

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

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 24
- **Optional dependencies:** 0
- **Peer dependencies:** 5
- **Development dependencies:** 18
- **Published dependency-graph edges:** 29

### Published dependency entries
- @adiwajshing/keyed-db ^0.2.4 (Dependency)
- @cacheable/node-cache 1.5.3 (Dependency)
- @hapi/boom ^9.1.3 (Dependency)
- @saazkira/libsignal-node ^1.1.0 (Dependency)
- async-mutex ^0.5.0 (Dependency)
- audio-decode ^2.2.2 (Dependency)
- axios ^1.12.1 (Dependency)
- cache-manager ^5.7.6 (Dependency)
- chalk ^4.1.2 (Dependency)
- cheerio ^1.0.0-rc.10 (Dependency)
- fflate ^0.8.2 (Dependency)
- gradient-string ^2.0.2 (Dependency)
- libphonenumber-js ^1.10.20 (Dependency)
- libsignal github:Danimaru-ze/astra-libsignal (Dependency)
- link-preview-js ^3.0.14 (Dependency)
- lodash ^4.17.21 (Dependency)
- lru-cache ^11.1.0 (Dependency)
- music-metadata ^7.12.3 (Dependency)
- pino ^9.6 (Dependency)
- protobufjs ^7.2.4 (Dependency)
- qrcode-terminal ^0.12.0 (Dependency)
- uuid ^10.0.0 (Dependency)
- whatsapp-rust-bridge 0.5.3 (Dependency)
- ws ^8.13.0 (Dependency)
- audio-decode ^2.2.2 (PeerDependency)
- jimp ^0.22.12 (PeerDependency)
- link-preview-js ^3.0.14 (PeerDependency)
- qrcode-terminal ^0.12.0 (PeerDependency)
- sharp ^0.34.1 (PeerDependency)

## Package metadata
- **Package:** astrabail
- **Ecosystem:** npm
- **Version:** 1.2.4
- **License:** MIT
- **Version published:** 2026-08-11T16:22:18.304Z
- **Package first seen:** 2026-11-10T02:15:24.853Z
- **Package last seen:** 2026-11-10T02:32:38.950Z
- **Known versions:** 13
- **Latest version:** 1.2.4
- **Appeal under review:** No
- **Description:** Professional Whatsapp Web API Library
- **Author:** Danimaru-ze
- **Maintainers:** danimaru-ze
- **Keywords:** astra, whatsapp, whatsapp-api, whatsapp-web, whatsapp-bot, automation, multi-device
- **Runtime engines:** node: \>=20.0.0
- **Artifact files:** 285
- **Artifact unpacked size:** 41,468,647 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/astrabail/v/1.2.4>)
- [Repository](<https://github.com/Danimaru-ze/AstraBail>)
- [Homepage](<https://whatsapp.com/channel/0029Vazo6KM8kyyJ4eWh3A25>)
- [Issues](<https://github.com/Danimaru-ze/AstraBail/issues>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-18937>)
- [PACKAGE](<https://www.npmjs.com/package/astrabail>)
- [WEB](<https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/>)
