MAL-2026-6943

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tx-guard-snap/MAL-2026-6943.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6943
Aliases
  • GHSA-8w4p-m2h2-2wj5
Published
2026-07-07T15:29:37Z
Modified
2026-07-09T16:32:03.570369137Z
Summary
Malicious code in tx-guard-snap (npm)
Details

-= 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-07-07T15:29:38Z",
            "source": "ghsa-malware",
            "import_time": "2026-07-07T16:09:37.842545327Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-8w4p-m2h2-2wj5",
            "sha256": "aa637cf60fc7dbe1dde1abcc33e254a7fff316f7f8edd922fdf948bd8d99b06f"
        },
        {
            "modified_time": "2026-07-09T15:42:31Z",
            "source": "amazon-inspector",
            "import_time": "2026-07-09T16:20:50.437768385Z",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-009197",
            "sha256": "fce7ebfc771355b732949df26e92e2ec8a80c0de7cda46bcb865687c33d572ff"
        }
    ]
}
References
Credits

Affected packages

npm / tx-guard-snap

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "ca11ab5578ba20344d87f19565fb80462667d08b1e667c78778c902a1f9c6ace1736cc",
            "path": "src/index.js",
            "sha256": "0e4868c235473952ae9e7ab112b6e2cbcef2b689be9d95c0d4d92f99b593004d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tx-guard-snap/MAL-2026-6943.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]