MAL-2026-18599

Vulnerability from ossf_malicious_packages – Published: 2026-11-04 02:58 – Updated: 2026-11-04 03:15 – Source website
Malicious package
Summary
Malicious code in w002yardprobe (RubyGems)
Affected package
Ecosystem Package Versions
RubyGems w002yardprobe
0.0.40.0.5
Details
Amazon Inspector IN-MAL-2026-022533 Reported 2026-11-04 02:58

The gem ships a .yardopts file containing --load./script.rb, which causes YARD to execute script.rb whenever documentation is generated for the gem (locally via yard doc, in CI, or on doc-hosting services such as RubyDoc.info). script.rb collects host identifiers — Socket.gethostname, current working directory, UID, and RUBY_VERSION — and POSTs them via Net::HTTP.post_form to the hardcoded third-party collector https://webhook.site/97fa3c6a-3fad-4d2d-8312-15dc37e41e66. The same script also rewrites lib/w002yardprobe.rb in place (substituting a MARKSLOT token with a runtime stamp) and drops sentinel files W002SCRIPT_RAN.txt and W002EGRESS_OK.txt in the detected build directory (e.g. /build), indicating the gem is instrumented to probe a documentation-build sandbox. The package self-identifies as a probe; the exfiltration and build-environment mutation are the gem's purpose. The trigger is YARD doc generation rather than gem install or require, so the harm materializes against whichever host (developer workstation, CI runner, or doc-hosting pipeline) processes the gem's documentation.

Amazon Inspector IN-MAL-2026-022534 Reported 2026-11-04 02:58

No description from this source.

Indicators
Type Indicator Hashes
Evidence file script.rb
sha256 1a9aaf4ada6ff1225a0c9066bcc9ba27f91ce8eaf928fcfed5e32939e21a4f89
tlsh dc4142725cc14d7b67e0e4483e2c1550f762614fc70418703aad426a2f65d3ba2b5bfb
Package archive w002yardprobe-0.0.4.gem
sha256 2c92205c8a1ecbffe953de63a4308e7de19bff714f6b01a67f1780bd38f39794
CWE
  • CWE-506 - Embedded Malicious Code
Credits
Amazon Inspector inspector-research@amazon.com

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "script.rb",
              "sha256": "1a9aaf4ada6ff1225a0c9066bcc9ba27f91ce8eaf928fcfed5e32939e21a4f89",
              "tlsh": "dc4142725cc14d7b67e0e4483e2c1550f762614fc70418703aad426a2f65d3ba2b5bfb"
            }
          ],
          "package_integrity": [
            {
              "filename": "w002yardprobe-0.0.4.gem",
              "hashes": {
                "sha256": "2c92205c8a1ecbffe953de63a4308e7de19bff714f6b01a67f1780bd38f39794"
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "RubyGems",
        "name": "w002yardprobe"
      },
      "versions": [
        "0.0.4",
        "0.0.5"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-022534",
        "import_time": "2026-11-04T03:13:46.189246589Z",
        "modified_time": "2026-11-04T02:58:29Z",
        "sha256": "5252a1d5dd27d6e0edd3c1fc3936ff09d93b2fcc8e5544afc09fe7fb7d90bee5",
        "source": "amazon-inspector",
        "versions": [
          "0.0.4"
        ]
      },
      {
        "id": "IN-MAL-2026-022533",
        "import_time": "2026-11-04T03:13:46.098494137Z",
        "modified_time": "2026-11-04T02:58:21Z",
        "sha256": "721580f8eda44ad5ee7604f5ba0648e8830302f784e3e4a995e02ca7359c909e",
        "source": "amazon-inspector",
        "versions": [
          "0.0.5"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (721580f8eda44ad5ee7604f5ba0648e8830302f784e3e4a995e02ca7359c909e)\nThe gem ships a `.yardopts` file containing `--load./script.rb`, which causes YARD to execute `script.rb` whenever documentation is generated for the gem (locally via `yard doc`, in CI, or on doc-hosting services such as RubyDoc.info). `script.rb` collects host identifiers \u2014 `Socket.gethostname`, current working directory, UID, and `RUBY_VERSION` \u2014 and POSTs them via `Net::HTTP.post_form` to the hardcoded third-party collector `https://webhook.site/97fa3c6a-3fad-4d2d-8312-15dc37e41e66`. The same script also rewrites `lib/w002yardprobe.rb` in place (substituting a `MARKSLOT` token with a runtime stamp) and drops sentinel files `W002SCRIPT_RAN.txt` and `W002EGRESS_OK.txt` in the detected build directory (e.g. `/build`), indicating the gem is instrumented to probe a documentation-build sandbox. The package self-identifies as a probe; the exfiltration and build-environment mutation are the gem\u0027s purpose. The trigger is YARD doc generation rather than `gem install` or `require`, so the harm materializes against whichever host (developer workstation, CI runner, or doc-hosting pipeline) processes the gem\u0027s documentation.\n",
  "id": "MAL-2026-18599",
  "modified": "2026-11-04T03:15:39Z",
  "published": "2026-11-04T02:58:21Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://rubygems.org/gems/w002yardprobe/versions/0.0.4"
    },
    {
      "type": "PACKAGE",
      "url": "https://rubygems.org/gems/w002yardprobe/versions/0.0.5"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in w002yardprobe (RubyGems)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.