NetSight
criticalMalware report

GHSA-f88f-66w3-r384

Malicious code in request-guard (RubyGems)

Impact

## Source: amazon-inspector (5724f6df96af48a04d14a3a986d2ea3b31c90a66e68cfde9e116adf187e42964) The gem's native-extension build script ext/req_throttle_mini/extconf.rb base64-decodes a Ruby payload, writes it to a random file under Dir.tmpdir, and spawns it with the Ruby interpreter before calling create_makefile. The decoded payload opens a TCP connection to the hardcoded bare IP 45.138.12.177 on port 8090 and bridges /bin/sh to the socket in a persistent reconnect loop, giving a remote party interactive shell access on the installer's host. No C/C++ source files are shipped in the gem, so the create_makefile('request-guard_native') call is cover: the extension exists solely to execute the hidden payload at install time. Installing this gem auto-executes the extension and triggers the reverse shell on the installing machine. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/7a674f02be3a0d93158ef0b6ee0a04edc5d547fa/osv/malicious/rubygems/request-guard/MAL-2026-17569.json))

Affected packages

EcosystemPackageAffectedFixed in
rubygemsrequest-guard= 1.0.0none recorded
rubygemsrequest-guard> 0none recorded
rubygemsrequest-guard= 1.0.1none recorded

Weakness classification

References