Skip to main content

Malicious code in txs-lib-sdk (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 01:17:26 UTC)
Source: GCVE Database
Product: txs-lib-sdk

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

npmghsa
txs-lib-sdk
Affected versions
=1.0.2

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

AILast updated: 09/29/2026, 21:37:28 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses