MAL-2026-20211
Vulnerability from ossf_malicious_packages – Published: 2026-11-19 09:08 – Updated: 2026-11-27 00:31 – Source website| Ecosystem | Package | Versions |
|---|---|---|
| RubyGems |
gmo-payment
|
0.0.99
|
The gem ships a native-extension build script (extconf.rb) that runs automatically during gem install. It collects host identifiers (hostname, whoami, uname output, working directory, local IPv4), queries the AWS Instance Metadata Service (both IMDSv1 and IMDSv2) to retrieve IAM role security credentials, pulls ECS task metadata, harvests environment variables matching DATABASE/DB_/MYSQL/AURORA/POSTGRES/REDIS/RDS, and POSTs the collected data to the hardcoded endpoint https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. The script then writes an empty Makefile to disguise the lack of an actual build. A second stage in lib/gmo/payment.rb unconditionally require_relatives runtime_payload.rb, whose top-level code repeats the same IMDS credential fetch, ECS metadata lookup, and database/cache environment variable harvest on every require of the gem, exfiltrating to the same webhook endpoint. The file is self-labeled as a malicious native extension hook.
The OpenSSF Package Analysis project identified 'gmo-payment' @ 0.0.99 (rubygems) as malicious.
It is considered malicious because:
- The package executes one or more commands associated with malicious behavior.
| Type | Indicator | Hashes |
|---|---|---|
| Evidence file |
ext/gmo-payment/extconf.rb
|
sha256
45855ecfdd3577b4a1b5ef0d0bc78ce74931051925ae30aa6b87b56c554a9b66tlsh
82417545a6d93462da949571fc1e42137b11e70f1e8c2650aec04ecd1fade3bb2336e1 |
| Evidence file |
lib/runtime_payload.rb
|
sha256
3722a762ad6ab7bc694d3e19e806bd221d1530d5b1cbe8a2a92825d6d4ba278ctlsh
04415589ead93472da945571fc1902126b11e70f1a882b50aed08edd1f6cf3bf1376e0 |
| Package archive |
gmo-payment-0.0.99.gem
|
sha256
2ea2b445f3826fabc868b89da6dc6c77b9a7c3c6a89db9e04b003b04f86a6d3b |
- CWE-506 - Embedded Malicious Code
| URL | Tags |
|---|---|
| https://rubygems.org/gems/gmo-payment/versions/0.0.99 | PACKAGE |
{
"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/extconf.rb",
"sha256": "45855ecfdd3577b4a1b5ef0d0bc78ce74931051925ae30aa6b87b56c554a9b66",
"tlsh": "82417545a6d93462da949571fc1e42137b11e70f1e8c2650aec04ecd1fade3bb2336e1"
},
{
"path": "lib/runtime_payload.rb",
"sha256": "3722a762ad6ab7bc694d3e19e806bd221d1530d5b1cbe8a2a92825d6d4ba278c",
"tlsh": "04415589ead93472da945571fc1902126b11e70f1a882b50aed08edd1f6cf3bf1376e0"
}
],
"package_integrity": [
{
"filename": "gmo-payment-0.0.99.gem",
"hashes": {
"sha256": "2ea2b445f3826fabc868b89da6dc6c77b9a7c3c6a89db9e04b003b04f86a6d3b"
}
}
]
}
},
"package": {
"ecosystem": "RubyGems",
"name": "gmo-payment"
},
"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-022887",
"import_time": "2026-11-19T09:13:05.161892246Z",
"modified_time": "2026-11-19T09:08:19Z",
"sha256": "4536bede455c58b0be6819cbc85b4566d1c567bfedc370aac7f97a3aacc9776b",
"source": "amazon-inspector",
"versions": [
"0.0.99"
]
},
{
"import_time": "2026-11-27T00:30:26.306607650Z",
"modified_time": "2026-11-19T09:15:22Z",
"sha256": "c9b87ccdc74909b46e60711583fddccf433e4939b8debbb15c198a9324f08e30",
"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 (4536bede455c58b0be6819cbc85b4566d1c567bfedc370aac7f97a3aacc9776b)\nThe gem ships a native-extension build script (extconf.rb) that runs automatically during `gem install`. It collects host identifiers (hostname, whoami, uname output, working directory, local IPv4), queries the AWS Instance Metadata Service (both IMDSv1 and IMDSv2) to retrieve IAM role security credentials, pulls ECS task metadata, harvests environment variables matching DATABASE/DB_/MYSQL/AURORA/POSTGRES/REDIS/RDS, and POSTs the collected data to the hardcoded endpoint https://webhook.site/4b2354a7-67fd-4641-92ac-e18bac8c09e8. The script then writes an empty Makefile to disguise the lack of an actual build. A second stage in lib/gmo/payment.rb unconditionally require_relatives runtime_payload.rb, whose top-level code repeats the same IMDS credential fetch, ECS metadata lookup, and database/cache environment variable harvest on every `require` of the gem, exfiltrating to the same webhook endpoint. The file is self-labeled as a malicious native extension hook.\n\n## Source: ossf-package-analysis (c9b87ccdc74909b46e60711583fddccf433e4939b8debbb15c198a9324f08e30)\nThe OpenSSF Package Analysis project identified \u0027gmo-payment\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-20211",
"modified": "2026-11-27T00:31:59.408551816Z",
"published": "2026-11-19T09:08:19Z",
"references": [
{
"type": "PACKAGE",
"url": "https://rubygems.org/gems/gmo-payment/versions/0.0.99"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in gmo-payment (RubyGems)"
}
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.
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
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.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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.