Malicious code in gmo-payment-carrier (RubyGems)
- GHSA-93rp-j336-vgfm
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/991edcfcf3b0f3d40ad386c23b06853971dc28de/osv/malicious/rubygems/gmo-payment-carrier/MAL-2026-20212.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
gmo-payment-carrierRubyGems
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.