MAL-2026-20210

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 aws_sdk_wrapper (RubyGems)
Affected package
Ecosystem Package Versions
RubyGems aws_sdk_wrapper
0.0.99
Details
Amazon Inspector IN-MAL-2026-022889 Reported 2026-11-19 09:08

The gem presents itself as an AWS SDK wrapper but ships no SDK functionality. Two code paths perform identical credential theft against the installer. First, ext/.../extconf.rb runs automatically during gem install via the gemspec extensions: entry: it queries the EC2 Instance Metadata Service (IMDSv2 and IMDSv1) at 169.254.169.254 to read the host's IAM role security credentials, collects host fingerprint data (hostname, whoami, uname, pwd, local IP), ECS task metadata, and every environment variable matching DATABASE/MYSQL/POSTGRES/REDIS/RDS, and POSTs the data to the hardcoded endpoint https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. It then writes a stub Makefile so the build appears to succeed and no native source is actually compiled. Second, lib/runtime_payload.rb is loaded unconditionally from lib/aws_sdk_wrapper.rb, so require 'aws_sdk_wrapper' repeats the same IMDS credential read, host fingerprint, DB env scrape, and ECS metadata exfiltration to the same webhook.site URL in any consumer process. The gem name mimics the AWS SDK namespace; the package is a lure whose only behavior is credential exfiltration at install time and at require time.

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

The OpenSSF Package Analysis project identified 'aws_sdk_wrapper' @ 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/aws_sdk_wrapper/extconf.rb
sha256 45855ecfdd3577b4a1b5ef0d0bc78ce74931051925ae30aa6b87b56c554a9b66
tlsh 82417545a6d93462da949571fc1e42137b11e70f1e8c2650aec04ecd1fade3bb2336e1
Evidence file lib/runtime_payload.rb
sha256 3722a762ad6ab7bc694d3e19e806bd221d1530d5b1cbe8a2a92825d6d4ba278c
tlsh 04415589ead93472da945571fc1902126b11e70f1a882b50aed08edd1f6cf3bf1376e0
Evidence file metadata.yaml
sha256 44281ae9973a06e111d79b000b37e7b6056d517dd89ec2c3f46763dd00b25db5
tlsh be11809175c6f4bbf402f2ee88402603e3b2d558be52399d45e7c19a43c415e270a112
Package archive aws_sdk_wrapper-0.0.99.gem
sha256 7b1ca113f18bb8b3a31b7d0671a4e7bd396a2609cf8e7b97826dfba56fce7c00
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/aws_sdk_wrapper/extconf.rb",
              "sha256": "45855ecfdd3577b4a1b5ef0d0bc78ce74931051925ae30aa6b87b56c554a9b66",
              "tlsh": "82417545a6d93462da949571fc1e42137b11e70f1e8c2650aec04ecd1fade3bb2336e1"
            },
            {
              "path": "lib/runtime_payload.rb",
              "sha256": "3722a762ad6ab7bc694d3e19e806bd221d1530d5b1cbe8a2a92825d6d4ba278c",
              "tlsh": "04415589ead93472da945571fc1902126b11e70f1a882b50aed08edd1f6cf3bf1376e0"
            },
            {
              "path": "metadata.yaml",
              "sha256": "44281ae9973a06e111d79b000b37e7b6056d517dd89ec2c3f46763dd00b25db5",
              "tlsh": "be11809175c6f4bbf402f2ee88402603e3b2d558be52399d45e7c19a43c415e270a112"
            }
          ],
          "package_integrity": [
            {
              "filename": "aws_sdk_wrapper-0.0.99.gem",
              "hashes": {
                "sha256": "7b1ca113f18bb8b3a31b7d0671a4e7bd396a2609cf8e7b97826dfba56fce7c00"
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "RubyGems",
        "name": "aws_sdk_wrapper"
      },
      "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-022889",
        "import_time": "2026-11-19T09:13:05.497778155Z",
        "modified_time": "2026-11-19T09:08:39Z",
        "sha256": "d7d404dac5d62c717d33c80682fe93f240bb31f71d0886311752dfbfdb390abe",
        "source": "amazon-inspector",
        "versions": [
          "0.0.99"
        ]
      },
      {
        "import_time": "2026-11-27T00:30:26.608176818Z",
        "modified_time": "2026-11-19T09:25:21Z",
        "sha256": "2c307ff588f1539eb19db3483fbaa2b34dafede08e8552a88f96d08cb7ea2436",
        "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 (d7d404dac5d62c717d33c80682fe93f240bb31f71d0886311752dfbfdb390abe)\nThe gem presents itself as an AWS SDK wrapper but ships no SDK functionality. Two code paths perform identical credential theft against the installer. First, ext/.../extconf.rb runs automatically during `gem install` via the gemspec `extensions:` entry: it queries the EC2 Instance Metadata Service (IMDSv2 and IMDSv1) at 169.254.169.254 to read the host\u0027s IAM role security credentials, collects host fingerprint data (hostname, whoami, uname, pwd, local IP), ECS task metadata, and every environment variable matching DATABASE/MYSQL/POSTGRES/REDIS/RDS, and POSTs the data to the hardcoded endpoint https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. It then writes a stub Makefile so the build appears to succeed and no native source is actually compiled. Second, lib/runtime_payload.rb is loaded unconditionally from lib/aws_sdk_wrapper.rb, so `require \u0027aws_sdk_wrapper\u0027` repeats the same IMDS credential read, host fingerprint, DB env scrape, and ECS metadata exfiltration to the same webhook.site URL in any consumer process. The gem name mimics the AWS SDK namespace; the package is a lure whose only behavior is credential exfiltration at install time and at require time.\n\n## Source: ossf-package-analysis (2c307ff588f1539eb19db3483fbaa2b34dafede08e8552a88f96d08cb7ea2436)\nThe OpenSSF Package Analysis project identified \u0027aws_sdk_wrapper\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-20210",
  "modified": "2026-11-27T00:31:59.384615032Z",
  "published": "2026-11-19T09:08:39Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://rubygems.org/gems/aws_sdk_wrapper/versions/0.0.99"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in aws_sdk_wrapper (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.