MAL-2026-20213

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/secretlens/MAL-2026-20213.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20213
Published
2026-11-19T13:11:10Z
Modified
2026-11-19T18:45:05Z
Summary
Malicious code in secretlens (RubyGems)
Details

-= 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.
Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-11-19T13:11:27.401171148Z",
            "modified_time": "2026-11-19T13:11:10Z",
            "sha256": "fe62a787fc822ed885d6713b3affaf87ac31fb6fb6bbc3660370371de128bfc3",
            "source": "ossf-package-analysis",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-022891",
            "import_time": "2026-11-19T18:14:26.493997751Z",
            "modified_time": "2026-11-19T18:12:45Z",
            "sha256": "f15898924939d0d1445af53ec9d849b9715390d99f6d3ae724ccbf07e73edb2b",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

RubyGems / secretlens

Package

Name
secretlens
Purl
pkg:gem/secretlens

Affected ranges

Affected versions

1.*
1.0.1

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "ext/mkrf_conf.rb",
            "sha256": "86066a746322f842c3e9e8fb98c88682803cf79c21429e17aee514668f2f43ac",
            "tlsh": "8511329c57557cb0bb5784aff20d20422497df4ac50956617e9908a0cf6eb2c3321dfa"
        }
    ],
    "package_integrity": [
        {
            "filename": "secretlens-1.0.1.gem",
            "hashes": {
                "sha256": "0a5254a2cca4bb80d01c34a862c114a8576366399243ce55bab6862a9db78621"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/secretlens/MAL-2026-20213.json"