NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

secretlensRubyGems

Advisory published Updated

secretlens is a confirmed malicious RubyGems package (MAL-2026-20213) that opens a backdoor for remote access (malicious version 1.0.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in secretlens (RubyGems)

MAL-2026-20213
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
gem uninstall secretlens

What this malware does

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.

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.

Malicious versions

1 flagged
1.0.1

Indicators of compromise (SHA-256)

fe62a787fc822ed885d6713b3affaf87ac31fb6fb6bbc3660370371de128bfc3
f15898924939d0d1445af53ec9d849b9715390d99f6d3ae724ccbf07e73edb2b

Detection & response playbook

Backdoor / remote access
  1. Find it

    Search your lockfiles and build artifacts for secretlens (version 1.0.1).

  2. If you installed it — respond

    secretlens establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If secretlens was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. secretlens on RubyGems has been identified as a malicious package (version 1.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-022891

References

Credits

  • Amazon Inspector · finder
  • OpenSSF: Package Analysis · finder

Detect & block this

O3 blocks secretlens-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.

Explore

secretlens (RubyGems) malicious package — MAL-2026-20213 | O3 Security