Skip to content

MAL-2026-20213 Malicious code in secretlens (RubyGems)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (f15898924939d0d1445af53ec9d849b9715390d99f6d3ae724ccbf07e73edb2b)

The gem declares ext/mkrf_conf.rb as a native extension, which causes it to auto-execute during gem install. The script performs no build work; instead it collects the installer's current working directory, home directory, hostname, login name, and the contents of /etc/resolv.conf, /etc/passwd, and /etc/hosts, encodes them as JSON, and POSTs them over TLS via a raw TCPSocket to the hardcoded out-of-band host o4tu99b5grs2rvps0y4epz6bt2ztrhh56.oastify.com:443 (a Burp Collaborator / interactsh subdomain). It then writes lib/.installed as a sentinel. There is no legitimate native-extension source tree accompanying the declared extension; the extension slot exists solely to run the beacon.

Source: ossf-package-analysis (fe62a787fc822ed885d6713b3affaf87ac31fb6fb6bbc3660370371de128bfc3)

The OpenSSF Package Analysis project identified 'secretlens' @ 1.0.1 (rubygems) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
rubygems secretlens(RubyGems) = 1.0.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems secretlens(RubyGems) = 1.0.1 No fix listed

References