# MAL-2026-6943: Malicious code in tx-guard-snap (npm)


- **Type:** Malicious package
- **Package:** `tx-guard-snap` (npm)
- **Published:** 7 Jul 2026
- **Also known as:** GHSA-8w4p-m2h2-2wj5

## What is MAL-2026-6943?

MAL-2026-6943 is a malicious package in tx-guard-snap, published on 7 Jul 2026. 

### Official description

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.

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.

## What should I do about MAL-2026-6943?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-6943 is a malicious package: tx-guard-snap (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-6943/ (Markdown: https://insights.sbomify.com/MAL-2026-6943/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-6943

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-6943/
Summaries are generated and may contain mistakes; the official description above is the record.
