cvelo
P2 · HighMalware

Malicious code in donjon-ledger (RubyGems)

  • MAL-2026-18765

Description

The gemspec declares ext/mkrf_conf.rb as a native extension, causing it to execute automatically during `gem install`. The script ships no C/C++/Rust sources and performs no build work. Instead it collects host identifiers (hostname, username) and reads /etc/passwd, /etc/hosts, and /etc/resolv.conf, then opens a TLS connection to the hardcoded Burp Collaborator subdomain 8enejtlpqb2m1fzcaieyzjgv3m9mxcl1.oastify.com on port 443 and POSTs the collected JSON. A DNS lookup to the same subdomain is also performed. The script writes a.installed marker and exits. The extension hook exists solely as an install-time execution vector for this exfiltration payload.

Text from the OSV record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • donjon-ledgerRubyGems

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.