NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

aws_sdk_wrapperRubyGems

Advisory published Updated

aws_sdk_wrapper is a confirmed malicious RubyGems package (MAL-2026-20210) that steals credentials and exfiltrates sensitive data (malicious version 0.0.99). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in aws_sdk_wrapper (RubyGems)

MAL-2026-20210
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
gem uninstall aws_sdk_wrapper

What this malware does

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.

Malicious versions

1 flagged
0.0.99

Indicators of compromise (SHA-256)

d7d404dac5d62c717d33c80682fe93f240bb31f71d0886311752dfbfdb390abe

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for aws_sdk_wrapper (version 0.0.99).

  2. If you installed it — respond

    aws_sdk_wrapper is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If aws_sdk_wrapper was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. aws_sdk_wrapper on RubyGems has been identified as a malicious package (version 0.0.99 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-022889

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks aws_sdk_wrapper-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

aws_sdk_wrapper (RubyGems) malicious package — MAL-2026-20210 | O3 Security