Malicious code in pentest-copilot (RubyGems)
- MAL-2026-19177
Description
The gem declares an extension script (mkrf_conf.rb / RakeBuilder) that runs automatically on `gem install`. At install time it collects installer-side identifiers (current working directory, home directory, hostname, login name) and reads local files /etc/resolv.conf, /etc/passwd, and /etc/hosts, then performs a DNS lookup to the Burp Collaborator subdomain vfe1kgmcry39220zb5fl06hi49acy2mr.oastify.com and opens a TLS connection to the same host on port 443, POSTing the collected host identifiers and file contents in the request body. The Collaborator destination is attacker-controlled out-of-band infrastructure typical of install-time exfiltration beacons. The OpenSSF Package Analysis project identified 'pentest-copilot' @ 1.0.1 (rubygems) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity.
Text from the OSV record.
Affected
pentest-copilotRubyGems
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.