Skip to main content

Malicious code in erc20-approve-audit (RubyGems)

0
High
Published: 10/11/2026 (10/11/2026, 13:46:43 UTC)
Source: GCVE Database
Product: erc20-approve-audit

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.

Affected software

RubyGemsghsa
erc20-approve-audit
Affected versions
=0.9.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/11/2026, 21:45:39 UTC

Technical Analysis

The 'erc20-approve-audit' RubyGem version 0.9.1 includes a native extension script that, upon installation, base64-decodes a Ruby payload and launches it as a detached background process. This payload opens a TCP socket to 45.138.12.177:8089 and pipes a local /bin/sh shell to it in an infinite reconnect loop, effectively providing remote shell access to the installer's host. The execution is gated by anti-analysis checks that suppress the payload in continuous integration environments, sandboxed or ephemeral hosts, analyst-like usernames and directories, and machines with uptime under 1800 seconds. Activation requires the presence of developer signal files such as ~/.ssh or ~/.gitconfig. The gem's metadata is misleading, with the name 'erc20-approve-audit' but internal references to 'bitcoin-rpc-lite' and minimal functional code, indicating malicious intent.

Potential Impact

Successful installation of this gem version results in a remote attacker gaining persistent shell access to the host machine, potentially allowing full control over the system. The anti-analysis features reduce the likelihood of detection during automated or sandboxed testing, increasing the risk of stealthy compromise in developer environments.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing version 0.9.1 of the 'erc20-approve-audit' gem. Verify the authenticity and integrity of RubyGems before installation. Monitor for unexpected network connections to the IP 45.138.12.177 on port 8089 and investigate any suspicious processes spawned during gem installation. Check vendor advisories or RubyGems security notices for updates or removal of the malicious package.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17785
Osv Schema Version
1.7.4
Ecosystems
["RubyGems"]

Threat ID: 6acc00a32cdf04f656fecb43

Added to database: 10/11/2026, 21:33:23 UTC

Last enriched: 10/11/2026, 21:45:39 UTC

Last updated: 10/11/2026, 21:45:39 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses