-= Per source details. Do not edit below this line.=-
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.
The OpenSSF Package Analysis project identified 'shoaib-unity' @ 1.0.1 (rubygems) as malicious.
It is considered malicious because:
{
"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"
]
}
]
}[
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
]
{
"evidence_files": [
{
"path": "ext/mkrf_conf.rb",
"sha256": "81267986313b6836a2917dda49efbf0ab3f6dbf73c845c1c316bc87af9f4c14e",
"tlsh": "a7113584b78c7d716b53c8dfd20c20511493ed4ac5096826775904b0ef6db3c63205fa"
}
],
"package_integrity": [
{
"filename": "shoaib-unity-1.0.1.gem",
"hashes": {
"sha256": "6f1255c1fe4a48f82acf95b88aff9c420be1089df8b976b1f2f18312480a31b6"
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/shoaib-unity/MAL-2026-18461.json"