MAL-2026-20137

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/rechargeapps/MAL-2026-20137.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20137
Published
2026-11-18T20:26:52Z
Modified
2026-11-18T20:45:04Z
Summary
Malicious code in rechargeapps (RubyGems)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (e3adc43a1ce04c304a176f8f8861b89b99f7df1b0a4f940bdcf1274f24ff157f)

The gem's extension build script (run during gem install) reads /proc/self/environ (falling back to ENV) and POSTs it base64-encoded to the hardcoded endpoint https://webhook.site/5f869495-8820-4e0a-b759-8c61e0b0d6ce, with a second curl-based repost of /proc/self/environ to the same URL. The library entry point additionally performs a top-level Net::HTTP POST of the full process environment (ENV.to_a, base64-packed) along with pid and hostname to the same webhook.site URL every time require 'rechargeapps' is evaluated. The build Makefile is a no-op stub and the module body is otherwise empty, so these two network callbacks are the gem's sole behavior. The published artifact is version 999.0.0 with placeholder metadata (homepage example.com, devops@example.com), consistent with a dependency-confusion squat targeting an internal name 'rechargeapps' to capture CI and build-host environment variables (tokens, cloud keys, registry credentials) at install and load time.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022827",
            "import_time":  "2026-11-18T20:36:30.194658081Z",
            "modified_time":  "2026-11-18T20:26:52Z",
            "sha256":  "e3adc43a1ce04c304a176f8f8861b89b99f7df1b0a4f940bdcf1274f24ff157f",
            "source":  "amazon-inspector",
            "versions":  [
                "999.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / rechargeapps

Package

Name
rechargeapps
Purl
pkg:gem/rechargeapps

Affected ranges

Affected versions

999.*
999.0.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "ext/rechargeapps/extconf.rb",
            "sha256":  "e9d9b120c85097d2bc38f4c44652d213b045515dacff5b0416db8040998673c9",
            "tlsh":  "200112f3b2105c25df94c39c310d984dba33f308818d2c54e6704990e69462b723ac91"
        },
        {
            "path":  "lib/rechargeapps.rb",
            "sha256":  "8cf75924a5e3cfefac0cb4c3989552e550b1ae0559048ea0b39b473edddafad5",
            "tlsh":  "e6f0c0ebb2d80415dbd0d3d8716d6e4a6e77d218414d1c54f53041d46a8ce35233a8a0"
        },
        {
            "path":  "metadata.yaml",
            "sha256":  "7a23c36becbab60b073774efd2022d51ae35c9432dd65a64ec9662ebc4e89551",
            "tlsh":  "7011ab8076c6e47af001dbea88002707f3b2d55dbfe6290299a7c3d203c453e274f161"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "rechargeapps-999.0.0.gem",
            "hashes":  {
                "sha256":  "5fae55c59bdb2194b6987a78bdf0d14a77bea9d246d32a68f5f7482658f97842"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/rechargeapps/MAL-2026-20137.json"