Malicious code in secp256k1-lib (npm)
The npm package 'secp256k1-lib' is a malicious package that mimics the name of a legitimate cryptography library but contains no cryptographic functionality. Its main file is a heavily obfuscated JavaScript bundle that, upon being required, executes code that instantiates an HTTP client targeting a hidden destination. The package appears to be designed as a credential or wallet-stealer loader, leveraging name confusion to trick users into installing it. Multiple versions of this package (1.0.0, 1.0.1, 1.0.2, 1.0.3) are affected. There is no CVSS score or vendor advisory available, and no known exploits in the wild have been reported.
AI Analysis
Technical Summary
The 'secp256k1-lib' npm package is a malicious package impersonating the widely used 'secp256k1' cryptography library. It contains an obfuscated 33KB JavaScript bundle that executes upon import, creating an HTTP client (using axios) that communicates with a runtime-constructed, hidden remote destination. The package lacks any legitimate cryptographic functionality and is likely designed to steal credentials or wallets by exploiting user trust in the package name. The obfuscation and hidden network activity indicate a loader for malicious payloads. Four specific versions (=1.0.0, =1.0.1, =1.0.2, =1.0.3) are known to be affected. No official patch or remediation guidance is provided, and no active exploitation has been documented.
Potential Impact
If installed, this malicious package can execute obfuscated code that initiates network communication to unknown remote hosts, potentially leading to credential or wallet theft. The impact includes compromise of sensitive user data and possible downstream effects depending on what the attacker does with the stolen information. Because the package masquerades as a legitimate cryptographic library, users may be tricked into installing it, increasing the risk of compromise.
Mitigation Recommendations
Users and developers should avoid installing or using the 'secp256k1-lib' package. Remove any instances of this package from projects and dependency trees. Since no official patch or fix is available, the primary mitigation is to rely on trusted sources and verify package authenticity before installation. Use official, well-maintained cryptographic libraries instead of similarly named or suspicious packages. Monitor dependency manifests and lockfiles for this package and remove it promptly if found.
Malicious code in secp256k1-lib (npm)
Description
The npm package 'secp256k1-lib' is a malicious package that mimics the name of a legitimate cryptography library but contains no cryptographic functionality. Its main file is a heavily obfuscated JavaScript bundle that, upon being required, executes code that instantiates an HTTP client targeting a hidden destination. The package appears to be designed as a credential or wallet-stealer loader, leveraging name confusion to trick users into installing it. Multiple versions of this package (1.0.0, 1.0.1, 1.0.2, 1.0.3) are affected. There is no CVSS score or vendor advisory available, and no known exploits in the wild have been reported.
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 'secp256k1-lib' npm package is a malicious package impersonating the widely used 'secp256k1' cryptography library. It contains an obfuscated 33KB JavaScript bundle that executes upon import, creating an HTTP client (using axios) that communicates with a runtime-constructed, hidden remote destination. The package lacks any legitimate cryptographic functionality and is likely designed to steal credentials or wallets by exploiting user trust in the package name. The obfuscation and hidden network activity indicate a loader for malicious payloads. Four specific versions (=1.0.0, =1.0.1, =1.0.2, =1.0.3) are known to be affected. No official patch or remediation guidance is provided, and no active exploitation has been documented.
Potential Impact
If installed, this malicious package can execute obfuscated code that initiates network communication to unknown remote hosts, potentially leading to credential or wallet theft. The impact includes compromise of sensitive user data and possible downstream effects depending on what the attacker does with the stolen information. Because the package masquerades as a legitimate cryptographic library, users may be tricked into installing it, increasing the risk of compromise.
Mitigation Recommendations
Users and developers should avoid installing or using the 'secp256k1-lib' package. Remove any instances of this package from projects and dependency trees. Since no official patch or fix is available, the primary mitigation is to rely on trusted sources and verify package authenticity before installation. Use official, well-maintained cryptographic libraries instead of similarly named or suspicious packages. Monitor dependency manifests and lockfiles for this package and remove it promptly if found.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14255
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4c0acd9273b4925241a
Added to database: 08/19/2026, 13:50:56 UTC
Last enriched: 08/19/2026, 14:26:09 UTC
Last updated: 08/19/2026, 14:26:09 UTC
Views: 2
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.
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.