mal-2026-18461

osv_rubygems
Description

--- _-= 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.

Timeline
Published
unknown
Last Modified
unknown
CVSS Details

CVSS details not available.

Affected Products

No product information available.

Weaknesses (CWE)
References
Linked Vulnerabilities

No linked vulnerabilities found.

{
  "affected": [
    {
      "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"
      },
      "package": {
        "ecosystem": "RubyGems",
        "name": "shoaib-unity",
        "purl": "pkg:gem/shoaib-unity"
      },
      "versions": [
        "1.0.1"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    },
    {
      "contact": [
        "https://github.com/ossf/package-analysis",
        "https://openssf.slack.com/channels/package_analysis"
      ],
      "name": "OpenSSF: Package Analysis",
      "type": "FINDER"
    }
  ],
  "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"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (01fd98b807f4f85a6e016b143dec086ea16de731fb1de0cd84763dbf5d8f6919)\nThe 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.\n\n## Source: ossf-package-analysis (ba322db91ecd6b863e8b06aa24b804a27f29cf2c8e2954bc1e77d7dc45e2fd52)\nThe OpenSSF Package Analysis project identified 'shoaib-unity' @ 1.0.1 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n",
  "id": "MAL-2026-18461",
  "modified": "2026-11-02T21:15:06.976400822Z",
  "published": "2026-11-02T09:50:50Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://rubygems.org/gems/shoaib-unity/versions/1.0.1"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "Malicious code in shoaib-unity (RubyGems)"
}
View JSON API Download JSON