Malicious code in nordpass (npm)
Description
The 'nordpass' npm package impersonates the legitimate NordPass password manager and contains malicious code that executes during installation. It uses obfuscated JavaScript to read sensitive system files, derive cryptographic keys, decode and execute embedded payloads, and includes anti-analysis and kill-switch mechanisms. Additionally, it stages a native binary on the host. The package also communicates with a domain linked to malicious activity, posing a risk of remote attacker-controlled code execution during npm install.
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 'nordpass' npm package (versions 1.0.0, 1.0.2, and 1.0.4) impersonates the NordPass password manager and presents itself as an authentication module. Its postinstall script compiles native code and runs an obfuscated ~100 KB JavaScript file that reads /etc/passwd to derive XOR keys combined with hardcoded constants. It base64-decodes and XOR-decrypts an embedded payload, then executes it via eval(). The code includes anti-debugging checks such as NODE_OPTIONS '--inspect' detection, timing gates, and environment variable kill switches. A native binary is staged during installation. The package also communicates with a domain associated with malicious activity, enabling attacker-controlled code execution on the installer's machine at install time.
Potential Impact
Installation of this package results in execution of attacker-controlled code on the host machine with the privileges of the installing user. The malicious code reads sensitive system files, evades analysis, and stages a native binary, potentially enabling further compromise. Communication with a malicious domain indicates possible data exfiltration or command and control. This poses a significant security risk to users who install this package.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'nordpass' npm package versions 1.0.0, 1.0.2, and 1.0.4. Verify package authenticity before installation and prefer official sources. Monitor for updates from the package maintainer or npm security advisories for remediation guidance. Consider removing the package and scanning affected systems for compromise if installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10743
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a5a00a091ae9bcd3f7eee34
Added to database: 07/17/2026, 10:14:56 UTC
Last enriched: 09/17/2026, 17:35:20 UTC
Last updated: 10/02/2026, 14:30:12 UTC
Views: 102
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.