This report shows the evidence for @astracode/byles-new@0.1.37. 8 of 10 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed.
Blocked by malware advisory
OpenSSF/OSV malware advisory MAL-2026-17340 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; the assessments disagree.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSV
OpenSSF/OSV advisory MAL-2026-17340 confirms this npm version as malicious.
Advisory
MAL-2026-17340
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @astracode/byles-new (npm)
Details
This package is part of a large family (100+ identified as of September 2026) of near-identical forks of the Baileys WhatsApp Web library that inject a covert channel-subscription action into the WhatsApp socket layer. On connect, the injected code issues an authenticated `w:mex` FOLLOW query (query_id 7871414976211147) against one or more attacker-chosen WhatsApp Channel/Newsletter JIDs, using the installer's own authenticated WhatsApp session -- silently subscribing the victim's account to channels it never asked to join.
The target JID(s) are hidden from casual source review via one of several obfuscation techniques observed across the family: a plain string literal, base64 encoding, base64+XOR, or a char-code array reconstructed at runtime. Some variants instead fetch a mutable, attacker-controlled remote JSON/JS list of target JIDs from GitHub or another host at runtime, letting the target list change after installation without a new npm publish. Every sample in the family shares the same underlying mechanism (a wrapped/patched socket-connect routine that fires the FOLLOW query some seconds after connect), even though the package name, JID value(s), and obfuscation/delivery method differ per fork.
The malicious action abuses the installer's own authenticated WhatsApp session to gain reach and subscribers for attacker-controlled channels; it does not exfiltrate credentials, establish persistence, or execute arbitrary remote code.
Affected package: @astracode/byles-new (npm), version(s): 0.1.37, 0.1.36, 0.1.35, 0.1.3, 0.0.99, 0.1.2, 0.1.1, 0.1.0.
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The install hook only checks the Node.js version, and the protocol data and WhatsApp endpoint align with the package’s stated library role. The unescaped shell command in video thumbnail processing presents a real but condition-dependent risk, so warn without blocking publication.
Static reason
One or more suspicious static signals were detected.
Trigger
A caller reaches video thumbnail extraction with attacker-controlled path or parameter values.
Impact
Potential command execution with the privileges of the process running the library; exploitability depends on whether untrusted input can reach the helper.
Mechanism
The helper interpolates time, input path, dimensions, and destination path into a command string without escaping, then passes it to exec.
Evidence
lib/Utils/messages-media.js
Independent scan evidence
public snapshot
AI called this Suspicious at 79.0% confidence as Critical Vulnerability with medium false-positive risk.
Evidence for AI warning decision
The preinstall hook runs a Node.js version check that exits on versions below 20.
Video thumbnail processing interpolates media paths and parameters into a shell command passed to exec, creating a command-injection risk if those values contain shell syntax.
The flagged constants file contains WhatsApp binary protocol tokens, and the oversized WAProto file imports protobufjs runtime helpers.
Evidence against
The package entrypoint exports a WhatsApp socket library and protocol utilities.
The default network origin is web.whatsapp.com, consistent with the package’s WhatsApp client purpose.
Behavioral surface
SourceChild process · Crypto · Filesystem · Network · Shell · Web socket
Supply chainHigh entropy strings · URL strings
ManifestGit dependency
Scanned 94 files · 1.25 MB of source
4 external domains referenced
mmg.whatsapp.net
raw.githubusercontent.com
web.whatsapp.com
www.whatsapp.com
Oversized source lightweight scan
WAProto/index.js7.85 MB file, sampled 256 KB
No sampled risky behavior triggered.
Findings
1 critical · 5 high · 5 medium · 5 low
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
This report applies to @astracode/byles-new@0.1.37.
The versions list below shows the verdict for each recorded version.
Avoid installing @astracode/byles-new@0.1.37. 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.