MAL-2026-20212

Vulnerability from ossf_malicious_packages – Published: 2026-11-19 09:08 – Updated: 2026-11-27 00:31 – Source website
Malicious package
Summary
Malicious code in gmo-payment-carrier (RubyGems)
Affected package
Ecosystem Package Versions
RubyGems gmo-payment-carrier
0.0.99
Details
Amazon Inspector IN-MAL-2026-022888 Reported 2026-11-19 09:08

The gem executes credential-theft code on two surfaces. At install time, extconf.rb (invoked during gem install) collects host identity (hostname, whoami, uname -a, pwd, local IPv4), performs an IMDSv2 token request against 169.254.169.254 and reads the IAM role plus security-credentials, enumerates ECS task metadata, and sweeps environment variables matching DATABASE/DB_/MYSQL/AURORA/POSTGRES/REDIS/RDS, then HTTP GETs the collected data to a hardcoded collector at https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. The library entry point lib/gmo-payment-carrier.rb unconditionally require_relative 'runtime_payload', which repeats the same IMDSv2 credential harvest, ECS metadata read, DB env-var sweep, and host-recon exfil to the same webhook.site URL on every require 'gmo-payment-carrier'. Both paths target the installer / CI / production host and ship AWS IAM role credentials and database secrets to a third-party collector unrelated to any declared publisher.

OpenSSF Package Analysis Reported 2026-11-19 09:15

The OpenSSF Package Analysis project identified 'gmo-payment-carrier' @ 0.0.99 (rubygems) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.
Indicators
Type Indicator Hashes
Evidence file ext/gmo-payment-carrier/extconf.rb
sha256 45855ecfdd3577b4a1b5ef0d0bc78ce74931051925ae30aa6b87b56c554a9b66
tlsh 82417545a6d93462da949571fc1e42137b11e70f1e8c2650aec04ecd1fade3bb2336e1
Evidence file lib/runtime_payload.rb
sha256 3722a762ad6ab7bc694d3e19e806bd221d1530d5b1cbe8a2a92825d6d4ba278c
tlsh 04415589ead93472da945571fc1902126b11e70f1a882b50aed08edd1f6cf3bf1376e0
Package archive gmo-payment-carrier-0.0.99.gem
sha256 66bfdd78ea5da36a7599435e4e6c4202c08df2b634c21b8ceda0a7f42571f976
CWE
  • CWE-506 - Embedded Malicious Code
References

{
  "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/gmo-payment-carrier/extconf.rb",
              "sha256": "45855ecfdd3577b4a1b5ef0d0bc78ce74931051925ae30aa6b87b56c554a9b66",
              "tlsh": "82417545a6d93462da949571fc1e42137b11e70f1e8c2650aec04ecd1fade3bb2336e1"
            },
            {
              "path": "lib/runtime_payload.rb",
              "sha256": "3722a762ad6ab7bc694d3e19e806bd221d1530d5b1cbe8a2a92825d6d4ba278c",
              "tlsh": "04415589ead93472da945571fc1902126b11e70f1a882b50aed08edd1f6cf3bf1376e0"
            }
          ],
          "package_integrity": [
            {
              "filename": "gmo-payment-carrier-0.0.99.gem",
              "hashes": {
                "sha256": "66bfdd78ea5da36a7599435e4e6c4202c08df2b634c21b8ceda0a7f42571f976"
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "RubyGems",
        "name": "gmo-payment-carrier"
      },
      "versions": [
        "0.0.99"
      ]
    }
  ],
  "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": [
      {
        "id": "IN-MAL-2026-022888",
        "import_time": "2026-11-19T09:13:05.339767091Z",
        "modified_time": "2026-11-19T09:08:31Z",
        "sha256": "98f131dbde032aa5e99feeaa4175c1fbccf2f634cad07c43ee2b4a0a86044d1b",
        "source": "amazon-inspector",
        "versions": [
          "0.0.99"
        ]
      },
      {
        "import_time": "2026-11-27T00:30:26.489480550Z",
        "modified_time": "2026-11-19T09:15:22Z",
        "sha256": "07e023905035c12b1ac038a3fe75b5de84965c65321eb325170be7bebd5b57ad",
        "source": "ossf-package-analysis",
        "versions": [
          "0.0.99"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (98f131dbde032aa5e99feeaa4175c1fbccf2f634cad07c43ee2b4a0a86044d1b)\nThe gem executes credential-theft code on two surfaces. At install time, extconf.rb (invoked during `gem install`) collects host identity (hostname, whoami, `uname -a`, pwd, local IPv4), performs an IMDSv2 token request against 169.254.169.254 and reads the IAM role plus security-credentials, enumerates ECS task metadata, and sweeps environment variables matching DATABASE/DB_/MYSQL/AURORA/POSTGRES/REDIS/RDS, then HTTP GETs the collected data to a hardcoded collector at https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. The library entry point lib/gmo-payment-carrier.rb unconditionally `require_relative \u0027runtime_payload\u0027`, which repeats the same IMDSv2 credential harvest, ECS metadata read, DB env-var sweep, and host-recon exfil to the same webhook.site URL on every `require \u0027gmo-payment-carrier\u0027`. Both paths target the installer / CI / production host and ship AWS IAM role credentials and database secrets to a third-party collector unrelated to any declared publisher.\n\n## Source: ossf-package-analysis (07e023905035c12b1ac038a3fe75b5de84965c65321eb325170be7bebd5b57ad)\nThe OpenSSF Package Analysis project identified \u0027gmo-payment-carrier\u0027 @ 0.0.99 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n",
  "id": "MAL-2026-20212",
  "modified": "2026-11-27T00:31:59.460184429Z",
  "published": "2026-11-19T09:08:31Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://rubygems.org/gems/gmo-payment-carrier/versions/0.0.99"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in gmo-payment-carrier (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.