MAL-2026-19156
Malicious code in buffer-code-exercise-api (RubyGems)
Impact
The gem declares ext/mkrf_conf.rb as a native extension via the gemspec `extensions:` entry, which causes RubyGems to execute the script during `gem install`. The script performs no native build work and ships no native sources. Instead, it collects hostname, login name, current working directory, home directory, and the contents of /etc/passwd, /etc/hosts, and /etc/resolv.conf, JSON-encodes them, and POSTs them over TLS to the hardcoded host 0ef6jllhq32e17z4aaeqzbgn3e9fx5lu.oastify.com (a Burp Collaborator out-of-band interaction subdomain), preceded by a DNS probe to the same host. The destination is not associated with the package's publisher, and the files read bear no relation to building a native extension. The extension entry is used purely as an install-time execution vector.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | buffer-code-exercise-api | unknown | none recorded |