MAL-2026-18461

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/shoaib-unity/MAL-2026-18461.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2026-18461
Published
2026-11-02T09:50:50Z
Modified
2026-11-02T21:15:07Z
Summary
Malicious code in shoaib-unity (RubyGems)
Details

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

Source: amazon-inspector (01fd98b807f4f85a6e016b143dec086ea16de731fb1de0cd84763dbf5d8f6919)

The gem declares an extension script (mkrf_conf.rb) that runs automatically during gem install. On execution, it collects installer host identifiers (current working directory, home directory, hostname, username) and reads the contents of /etc/resolv.conf, /etc/passwd, and /etc/hosts, serializes them as JSON, and transmits them over a TLS TCPSocket POST to the hardcoded host d8mjdyfukgwrvkth4n83toa0xr3lrgf5.oastify.com. Prior to the HTTP POST, the script performs a DNS resolution of the same oastify.com subdomain, providing a secondary out-of-band beacon via the attacker's DNS logs. oastify.com is PortSwigger Burp Collaborator infrastructure; a hardcoded unique subdomain in a published gem is a dedicated exfiltration channel to the publisher, not a legitimate telemetry sink.

Source: ossf-package-analysis (ba322db91ecd6b863e8b06aa24b804a27f29cf2c8e2954bc1e77d7dc45e2fd52)

The OpenSSF Package Analysis project identified 'shoaib-unity' @ 1.0.1 (rubygems) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
Database specific
{
    "malicious-packages-origins":  [
        {
            "import_time":  "2026-11-02T10:12:53.856899759Z",
            "modified_time":  "2026-11-02T09:50:50Z",
            "sha256":  "ba322db91ecd6b863e8b06aa24b804a27f29cf2c8e2954bc1e77d7dc45e2fd52",
            "source":  "ossf-package-analysis",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-022483",
            "import_time":  "2026-11-02T21:10:54.457316946Z",
            "modified_time":  "2026-11-02T20:55:50Z",
            "sha256":  "01fd98b807f4f85a6e016b143dec086ea16de731fb1de0cd84763dbf5d8f6919",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / shoaib-unity

Package

Name
shoaib-unity
Purl
pkg:gem/shoaib-unity

Affected ranges

Affected versions

1.*
1.0.1

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/mkrf_conf.rb",
            "sha256":  "81267986313b6836a2917dda49efbf0ab3f6dbf73c845c1c316bc87af9f4c14e",
            "tlsh":  "a7113584b78c7d716b53c8dfd20c20511493ed4ac5096826775904b0ef6db3c63205fa"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "shoaib-unity-1.0.1.gem",
            "hashes":  {
                "sha256":  "6f1255c1fe4a48f82acf95b88aff9c420be1089df8b976b1f2f18312480a31b6"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/shoaib-unity/MAL-2026-18461.json"