rechargeapps RubyGems: dependency-confusion malware exfiltrates environment variables to webhook.site on install and load
Severity: critical · Patch status: no-fix-needed · Since 2026-11-18
A malicious gem 'rechargeapps' version 999.0.0 was published to RubyGems as a dependency-confusion squat on an internal-sounding package name. Its extension build script (run during gem install) reads /proc/self/environ (falling back to ENV) and POSTs it base64-encoded to a hardcoded webhook.site endpoint, with a second curl-based repost. Requiring the gem also POSTs the full process environment, pid and hostname to the same URL. The gem is otherwise empty, indicating its sole purpose is harvesting CI/build-host secrets such as tokens, cloud keys and registry credentials. No patched version exists; the gem was removed from the advisory's fix path entirely. Any CI or developer machine that installed or loaded the gem should be treated as having leaked its environment variables.
What to do
- Search Gemfile.lock, CI logs and RubyGems install history for 'rechargeapps' version 999.0.0
- Treat any host that installed or required the gem as compromised: rotate all environment-variable secrets (tokens, cloud keys, registry credentials)
- Review webhook.site and egress logs for callbacks to https://webhook.site/5f869495-8820-4e0a-b759-8c61e0b0d6ce
- Configure private gem mirrors / Gemfile source pinning to prevent dependency confusion on internal gem names
- Block egress to webhook.site from build and CI environments
Sources
All live incidents on Threat Watch