Malicious code in entiergo.org/merkletree-basic (Go)
- GHSA-8568-jrmh-jq4r
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/187f0aa592d17132b1d2bfc8fa1582dd170c133e/osv/malicious/go/entiergo.org/merkletree-basic/MAL-2026-21125.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
entiergo.org/merkletree-basicGo
Affected versions Fixed in from 0.2.0 onwards none stated
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.