Malicious code in tx-guard-snap (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (fce7ebfc771355b732949df26e92e2ec8a80c0de7cda46bcb865687c33d572ff) tx-guard-snap advertises itself as a real-time transaction security analysis MetaMask Snap but performs no analysis. Its onTransaction handler unconditionally POSTs the user's transaction fields (from, to, value, data, chainId, timestamp) to a hardcoded endpoint (http://localhost:8888/tx in the shipped build, labeled 'C2_URL' in source), exfiltrating every signed transaction's parameters to an author-controlled destination. In parallel, the Snap always returns a critical-severity 'Security Warning' panel claiming the destination address 'has been flagged in 3 threat databases', regardless of the actual destination — the source comment describes this as a 'fake security warning to victim'. The combination — deceptive security-tool cover story, unconditional transaction-data exfiltration to a hardcoded endpoint, and fabricated warning UI intended to desensitize users or steer them away from legitimate transactions — is a malicious Snap template. The loopback URL in this specific build is trivially swapped to a remote host by republishing. ## Source: ghsa-malware (aa637cf60fc7dbe1dde1abcc33e254a7fff316f7f8edd922fdf948bd8d99b06f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The 'tx-guard-snap' package in the npm ecosystem is identified as malicious. Installation or execution of this package results in a full compromise of the host system, potentially granting an attacker complete control. Due to the nature of the compromise, simply uninstalling the package may not remove all malicious artifacts or backdoors. The advisory recommends treating any affected system as fully compromised and rotating all secrets and keys from a separate, secure environment.
Potential Impact
Full system compromise on any computer with the package installed or running. Potential unauthorized access to all stored secrets and keys. Persistence of malicious code beyond package removal is likely, increasing risk of ongoing unauthorized control.
Mitigation Recommendations
Remove the 'tx-guard-snap' package immediately. Rotate all secrets and keys stored on the affected system from a different, secure computer. Because full system compromise is possible, consider rebuilding or thoroughly cleaning the affected system to ensure removal of all malicious components. No official patch or fix is available as this is a malicious package rather than a vulnerability in legitimate software.
Malicious code in tx-guard-snap (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (fce7ebfc771355b732949df26e92e2ec8a80c0de7cda46bcb865687c33d572ff) tx-guard-snap advertises itself as a real-time transaction security analysis MetaMask Snap but performs no analysis. Its onTransaction handler unconditionally POSTs the user's transaction fields (from, to, value, data, chainId, timestamp) to a hardcoded endpoint (http://localhost:8888/tx in the shipped build, labeled 'C2_URL' in source), exfiltrating every signed transaction's parameters to an author-controlled destination. In parallel, the Snap always returns a critical-severity 'Security Warning' panel claiming the destination address 'has been flagged in 3 threat databases', regardless of the actual destination — the source comment describes this as a 'fake security warning to victim'. The combination — deceptive security-tool cover story, unconditional transaction-data exfiltration to a hardcoded endpoint, and fabricated warning UI intended to desensitize users or steer them away from legitimate transactions — is a malicious Snap template. The loopback URL in this specific build is trivially swapped to a remote host by republishing. ## Source: ghsa-malware (aa637cf60fc7dbe1dde1abcc33e254a7fff316f7f8edd922fdf948bd8d99b06f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 'tx-guard-snap' package in the npm ecosystem is identified as malicious. Installation or execution of this package results in a full compromise of the host system, potentially granting an attacker complete control. Due to the nature of the compromise, simply uninstalling the package may not remove all malicious artifacts or backdoors. The advisory recommends treating any affected system as fully compromised and rotating all secrets and keys from a separate, secure environment.
Potential Impact
Full system compromise on any computer with the package installed or running. Potential unauthorized access to all stored secrets and keys. Persistence of malicious code beyond package removal is likely, increasing risk of ongoing unauthorized control.
Mitigation Recommendations
Remove the 'tx-guard-snap' package immediately. Rotate all secrets and keys stored on the affected system from a different, secure computer. Because full system compromise is possible, consider rebuilding or thoroughly cleaning the affected system to ensure removal of all malicious components. No official patch or fix is available as this is a malicious package rather than a vulnerability in legitimate software.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6943
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-8w4p-m2h2-2wj5"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4e4f16c9d9e3dbe328e796
Added to database: 07/08/2026, 13:22:30 UTC
Last enriched: 07/08/2026, 13:54:39 UTC
Last updated: 07/29/2026, 04:32:05 UTC
Views: 42
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.