MAL-2026-10659: Malicious code in @sauruslord/libsignal (npm)
The npm package @sauruslord/libsignal version 2.0.2 impersonates the legitimate libsignal-node package but contains malicious code. Upon requiring the package, it waits one second, then overwrites a file in the installer's @whiskeysockets/baileys dependency with attacker-controlled code. This code abuses the installer's authenticated WhatsApp session to auto-follow an attacker-controlled newsletter channel without user consent. The package also terminates the host application shortly after import. The original overwritten file is destroyed with no backup restoration. Any system with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
The malicious npm package @sauruslord/[email protected] masquerades as Open Whisper Systems' libsignal-node but delivers unrelated and harmful code. When index.js is required, after a delay, install.js locates the installer's @whiskeysockets/baileys directory and overwrites lib/Socket/newsletter.js with a stub that silently uses the installer's authenticated WhatsApp session to auto-follow an attacker-controlled newsletter channel. The original newsletter.js is destroyed without backup. Additionally, the package schedules process.exit(0) 20 seconds after import, terminating the host application. Declared dependencies are manipulated to pull in placeholder or typosquatted packages. This results in persistent compromise of any developer environment that imports this package and depends on @whiskeysockets/baileys.
Potential Impact
Systems with @sauruslord/[email protected] installed are fully compromised. The attacker's code hijacks the authenticated WhatsApp session of the host to auto-follow a malicious newsletter channel without user consent. The malicious package overwrites files in other dependencies on disk, causing persistent infection. The host application is forcibly terminated shortly after loading the package. Secrets and keys stored on the compromised system may be exposed, requiring immediate rotation from a clean environment. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the @sauruslord/libsignal package version 2.0.2 is recommended. Due to the severity and persistence of the compromise, all secrets, keys, and credentials stored on the affected system should be rotated from a separate, trusted device. Consider rebuilding the affected environment from a clean state to ensure complete eradication of the malicious code and any secondary payloads. Monitor for any unauthorized WhatsApp activity related to the compromised session.
MAL-2026-10659: Malicious code in @sauruslord/libsignal (npm)
Description
The npm package @sauruslord/libsignal version 2.0.2 impersonates the legitimate libsignal-node package but contains malicious code. Upon requiring the package, it waits one second, then overwrites a file in the installer's @whiskeysockets/baileys dependency with attacker-controlled code. This code abuses the installer's authenticated WhatsApp session to auto-follow an attacker-controlled newsletter channel without user consent. The package also terminates the host application shortly after import. The original overwritten file is destroyed with no backup restoration. Any system with this package installed should be considered fully compromised.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The malicious npm package @sauruslord/[email protected] masquerades as Open Whisper Systems' libsignal-node but delivers unrelated and harmful code. When index.js is required, after a delay, install.js locates the installer's @whiskeysockets/baileys directory and overwrites lib/Socket/newsletter.js with a stub that silently uses the installer's authenticated WhatsApp session to auto-follow an attacker-controlled newsletter channel. The original newsletter.js is destroyed without backup. Additionally, the package schedules process.exit(0) 20 seconds after import, terminating the host application. Declared dependencies are manipulated to pull in placeholder or typosquatted packages. This results in persistent compromise of any developer environment that imports this package and depends on @whiskeysockets/baileys.
Potential Impact
Systems with @sauruslord/[email protected] installed are fully compromised. The attacker's code hijacks the authenticated WhatsApp session of the host to auto-follow a malicious newsletter channel without user consent. The malicious package overwrites files in other dependencies on disk, causing persistent infection. The host application is forcibly terminated shortly after loading the package. Secrets and keys stored on the compromised system may be exposed, requiring immediate rotation from a clean environment. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the @sauruslord/libsignal package version 2.0.2 is recommended. Due to the severity and persistence of the compromise, all secrets, keys, and credentials stored on the affected system should be rotated from a separate, trusted device. Consider rebuilding the affected environment from a clean state to ensure complete eradication of the malicious code and any secondary payloads. Monitor for any unauthorized WhatsApp activity related to the compromised session.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10659
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-p9pv-49fq-8f6m"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a577ed568715ace43b3f892
Added to database: 07/15/2026, 12:36:37 UTC
Last enriched: 07/15/2026, 12:45:39 UTC
Last updated: 07/16/2026, 03:35:56 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.