MAL-2026-21132

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/enkash-pg/MAL-2026-21132.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21132
Published
2026-12-04T11:56:19Z
Modified
2026-12-04T12:30:17Z
Summary
Malicious code in enkash-pg (RubyGems)
Details

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

Source: amazon-inspector (9d1650b5e956f4d968ddf2af7f95f9d8e476d6e3fa310ff1e1fdce237b4d0ec0)

enkash-pg 1.0.0 ships no payment-SDK functionality; its lib/enkash_pg.rb is an inert stub. The gemspec declares a native extension (extensions: - ext/extconf.rb) while the package contains no C/C++/Rust sources. ext/extconf.rb, which runs automatically during gem install, performs an unconditional HTTPS GET to the hardcoded host https://workinc.top/oob/o1-76e3ec8d88e33838b1370c650492580e29872b90 with pkg=enkash-pg-rubygems&phase=install, falls back to a curl subprocess if the Ruby HTTP call fails, and then writes a no-op Makefile (all:\n\ttrue) so the build appears to succeed. lib/enkash_pg.rb repeats the same callback with phase=require when the library is loaded. The destination domain is unrelated to the claimed publisher's documented domain and the callback is undisclosed, confirming out-of-band code execution and host reachability on the installing machine to a third party. The extension declaration with no native code exists solely to obtain install-time execution.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023233",
            "import_time":  "2026-12-04T12:16:56.711129957Z",
            "modified_time":  "2026-12-04T11:56:19Z",
            "sha256":  "9d1650b5e956f4d968ddf2af7f95f9d8e476d6e3fa310ff1e1fdce237b4d0ec0",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / enkash-pg

Package

Name
enkash-pg
Purl
pkg:gem/enkash-pg

Affected ranges

Affected versions

1.*
1.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/extconf.rb",
            "sha256":  "68cbf0a0fd14e266e55e468eeb171255e93c613eea6da988ec1ef2e080d88801",
            "tlsh":  "fcf0e1831f419177a958c1a263075180eb7bee1118832c81e4fc6148a98ae1db263072"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "enkash-pg-1.0.0.gem",
            "hashes":  {
                "sha256":  "c537284301bb6347bb63013012424198088aa1421ec6d61c6547869d8f7feec5"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/enkash-pg/MAL-2026-21132.json"