Malicious code in txs-lib-sdk (npm)
Description
The npm package txs-lib-sdk version 1.0.2 contains malicious code that executes arbitrary Node.js commands on the host system. Its getTransactions() API reads a disguised file, decodes and deobfuscates a payload, then executes it with full system privileges. This behavior is hidden through multiple layers of obfuscation and is not legitimate for the package's stated purpose. 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 txs-lib-sdk npm package (version 1.0.2) includes a malicious backdoor triggered via its advertised getTransactions() API. This API internally loads a disguised JSON file (database.js) containing a base64-encoded and Caesar-shifted payload in the 'mark' field. The payload is decoded, concatenated, and executed dynamically using the Function constructor, which is accessed indirectly via globalThis.constructor.constructor. The executed code has full access to Node.js capabilities including filesystem, network, and child process execution. The package uses multi-layer obfuscation techniques such as splitting and reassembling identifiers ('setTimeout', 'Function', 'Buffer', 'require', 'process') and deferred execution to conceal this behavior. This constitutes a supply-chain attack vector allowing arbitrary code execution on any system using this package.
Potential Impact
Systems with txs-lib-sdk version 1.0.2 installed are fully compromised, as the package enables arbitrary code execution with full Node.js privileges. This can lead to complete system takeover, data theft, secret/key exposure, and persistent backdoors. The compromise extends beyond the package itself, as attackers may have installed additional malicious software. Immediate secret/key rotation is required for affected systems.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package version. The package should be immediately removed from all systems. All secrets and keys stored on compromised systems must be rotated from a secure, unaffected environment. Due to the full system compromise risk, assume persistent backdoors may exist and conduct a thorough incident response. Monitor for any suspicious activity related to this package. Patch status is not yet confirmed — check vendor advisories or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14198
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4c7acd9273b49252884
Added to database: 08/19/2026, 13:51:03 UTC
Last enriched: 09/29/2026, 21:37:28 UTC
Last updated: 10/02/2026, 13:52:40 UTC
Views: 24
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.