Vulnerability MAL-2026-21125
Summary
Malicious code in entiergo.org/merkletree-basic (Go)
Details
From v0.2.0, NewTree and NewTreeWithHashStrategy take a new content argument and, when it is not nil, pass fmt.Sprint of it to BenchmarkVerifyByLeafSize in benchmarks/common.go. When the SHA-256 of that string equals a hard-coded value (different in v0.2.0 and v0.3.0), the routine uses the digest as an AES-256-GCM key to decrypt a Go project bundled at benchmarks/cmd/depthchart/main into go/telemetry/local under the user configuration directory, and starts it with a detached go run (hidden window on Windows) with the string on its standard input. The key is the hard-coded value itself, so the project decrypts without that string: it posts an X25519 public key to a Slack channel with an embedded bot token, then polls a second Slack channel and, with the piped string as passphrase, a contract at 0x7c36a96E619244066953f8AFd09B8D25D14BE69A on chain ID 421614 (Arbitrum Sepolia) for encrypted Go or JavaScript, which it writes as chromeupdate.go or chromeupdate.js and runs. entiergo.org/merkletree v0.5.1 and v0.5.2 pass the caller's content list to NewTree from their default constructors.