erc20-approve-audit (RubyGems) · Malicious Code
Affects erc20-approve-auditSource GCVE Database
Malicious package : remove erc20-approve-audit and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:28 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-17785
What to do
Remove erc20-approve-audit from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemserc20-approve-audit | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The RubyGem 'erc20-approve-audit' version 0.9.1 contains malicious code in its native extension script that executes automatically during installation. This code decodes and runs a Ruby payload that establishes a persistent reverse shell connection to a hardcoded IP address, allowing remote shell access to the host. The payload includes anti-analysis measures to avoid detection in CI environments, sandboxed hosts, and short uptime machines, and activates only when certain developer-related files are present. The gem's advertised identity does not match its actual contents, indicating deliberate deception.