aws_sdk_wrapper (RubyGems) · Malicious Code
Affects aws_sdk_wrapperSource GCVE Database
Malicious package : remove aws_sdk_wrapper and rotate any secrets on hosts that installed it.
Data as of 19 Nov 2026, 09:49 UTC
Malicious package
Published to RubyGems · OSV MAL-2026-20210
What to do
Remove aws_sdk_wrapper from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsaws_sdk_wrapper | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The aws_sdk_wrapper RubyGem is a malicious package that impersonates an AWS SDK wrapper but contains no legitimate SDK functionality. It steals AWS IAM role credentials and sensitive environment variables by querying the EC2 Instance Metadata Service and scraping database-related environment variables. This exfiltration occurs both during gem installation and when the gem is required in a Ruby process, sending data to a hardcoded external webhook URL. The package also collects host fingerprint data and ECS task metadata to aid credential theft.