MAL-2026-21155

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/uznex-api/MAL-2026-21155.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21155
Published
2026-12-04T23:38:16Z
Modified
2026-12-05T00:45:06Z
Summary
Malicious code in uznex-api (RubyGems)
Details

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

Source: amazon-inspector (afb22e94075c4f18cb57402e5496620c87e6d6174cbfd9d38f0567e661f97ffe)

The gemspec declares extconf.rb as a native extension, so the script executes automatically during gem install. Rather than configuring a build, extconf.rb collects host and process identifiers (hostname, working directory, user, PID), container fingerprints read from /proc/1/cmdline and /proc/1/cgroup, Gemfile and Gemfile.lock contents, the installed gem list, and a filtered dump of environment variables selected by credential-shaped patterns (TOKEN, KEY, SECRET, AWS, GITHUB, NPM, GEM, BUNDLE, KUBE, DOCKER). The collected JSON is sent via an HTTPS PUT to a hardcoded bucket endpoint at uznex-front.s3.eu-central-1.amazonaws.com under an /i18372/beacon/ path. The gem's library code is an inert stub providing no advertised functionality, and no native source tree accompanies the declared extension. Developer and CI environments routinely hold deploy, registry, and cloud credentials in exactly the variables matched by this filter.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023238",
            "import_time":  "2026-12-05T00:28:40.650904381Z",
            "modified_time":  "2026-12-04T23:38:16Z",
            "sha256":  "afb22e94075c4f18cb57402e5496620c87e6d6174cbfd9d38f0567e661f97ffe",
            "source":  "amazon-inspector",
            "versions":  [
                "100.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / uznex-api

Package

Name
uznex-api
Purl
pkg:gem/uznex-api

Affected ranges

Affected versions

100.*
100.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":  "extconf.rb",
            "sha256":  "fc8b630497b2d8bc890cf1a7c5cfb4e44e00c5e6f5be437502fea54aabb9454a",
            "tlsh":  "6a3153624a12ac01eda265e63c47a6113bbbeb074a143c31f164f4082f8ce9d53fadd6"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "uznex-api-100.0.0.gem",
            "hashes":  {
                "sha256":  "1924b4093561276fac356efc64a2ce69794bc697e502ac337a97237ba7430c78"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/uznex-api/MAL-2026-21155.json"