GHSA-2m5f-25jv-5v28
Malicious code in aws-sdk-v4 (npm)
Impact
## Source: amazon-inspector (3753967ef5752d68dd0880c092d77ab42bb18fe5e081c258961572581cb81aa7) Package aws-sdk-v4 impersonates @aws-sdk/client-s3 and, on require() of index.js, JSON-stringifies process.env together with hostname, username, home directory, platform, and current working directory, base64-encodes the blob, and sends it as a Telegram Bot API sendMessage request to a hardcoded bot token and chat_id 8969499041 at api.telegram.org. A temporary flag file gates repeat executions. Any secrets present in the installer's environment (CI tokens, cloud credentials, API keys) are transmitted to the attacker on first import. The package additionally exposes wallet-shaped functions (createWallet, signTransaction, generateMnemonic) inconsistent with its advertised AWS SDK purpose, reinforcing the deceptive-naming delivery vector. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/7a679fd5edc3e2ed705b5a123e342a2da922e3ba/osv/malicious/npm/aws-sdk-v4/MAL-2026-13218.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | aws-sdk-v4 | = 3.650.0 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-2m5f-25jv-5v28
- https://github.com/ossf/malicious-packages/blob/7a679fd5edc3e2ed705b5a123e342a2da922e3ba/osv/malicious/npm/aws-sdk-v4/MAL-2026-13218.json
- https://www.npmjs.com/package/aws-sdk-v4/v/3.650.0
- https://github.com/ossf/malicious-packages/blob/672afd706555c110bda936d989979013c03d62f2/osv/malicious/npm/aws-sdk-v4/MAL-2026-13218.json