cvelo
P2 · HighMalware

Malicious code in cheesebox (RubyGems)

  • MAL-2026-19157

Description

The gem declares mkrf_conf.rb as a native extension in its gemspec, causing it to execute automatically during `gem install`. On execution the script reads installer-side system files (/etc/passwd, /etc/hosts, /etc/resolv.conf) and collects host identifiers (hostname, username, home directory, current working directory), then opens a TLS TCPSocket to the hardcoded Burp Collaborator subdomain xwx31i3e80kbj4h1s7wnh8yklbrdf33s.oastify.com on port 443 and POSTs the collected data as JSON. The destination is an attacker-controlled out-of-band interaction host, not any infrastructure related to the gem's declared purpose, and the data read is unrelated to building a native extension (no mkmf probing, no compilation of shipped sources).

Text from the OSV record.

Affected

  • cheeseboxRubyGems

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.