MAL-2026-17293

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@selfpentest/eslint-pentest-plugin/MAL-2026-17293.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17293
Published
2026-09-29T22:12:19Z
Modified
2026-09-29T22:31:17Z
Summary
Malicious code in @selfpentest/eslint-pentest-plugin (npm)
Details

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

Source: amazon-inspector (f338876601180482b20a42fbd799b9d4e1b059bf7d733b5db448f7fc6d3455ff)

Package presents itself as an ESLint plugin but the exported plugin object is an empty shell. index.js unconditionally invokes a steal() routine at top level, so any require() of the package (including ESLint auto-loading the plugin) triggers the payload. The payload reads process.env.HOME and process.env.SECRET, reads the first 30 bytes of ~/.ssh/known_hosts via fs.readFileSync(path.join(os.homedir(), '/.ssh/known_hosts')), and issues an HTTP GET to http://localhost:1337/eslint with the collected values as URL query parameters. The package.json description and README state that the package 'pretends to be an eslint plugin but it steals secrets instead' and identify it as a supply-chain-attack demonstration. The exfiltration destination is loopback (127.0.0.1:1337), so bytes do not leave the host unless a local listener collects them, but the credential-read code path executes on every require of the package.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020686",
            "import_time":  "2026-09-29T22:18:23.860374327Z",
            "modified_time":  "2026-09-29T22:12:19Z",
            "sha256":  "f338876601180482b20a42fbd799b9d4e1b059bf7d733b5db448f7fc6d3455ff",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @selfpentest/eslint-pentest-plugin

Package

Name
@selfpentest/eslint-pentest-plugin
View open source insights on deps.dev
Purl
pkg:npm/%40selfpentest/eslint-pentest-plugin

Affected ranges

Affected versions

1.*
1.0.0

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":  "index.js",
            "sha256":  "4299593b6cc9e88ec41e682e468ea27d34804f5694ddec71d1c2cac2d38d8fa6",
            "tlsh":  "d8119e1650f65221829271a3771f290335bee6cb3a09ecb83bdcd7748f88b258152de9"
        },
        {
            "path":  "package.json",
            "sha256":  "27512851e1461aa83ddba172f573737992f8ca9a033bcf31a15d1fc5875993b9",
            "tlsh":  "a7e068250613216301d0a5672c369177b255cf7f149dfd6c13f7222856cd2672079649"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "eslint-pentest-plugin-1.0.0.tgz",
            "hashes":  {
                "sha1":  "3a4d96643a1db041909f9cae37d7ad1623448d56",
                "sha512_sri":  "sha512-5/SiGKSa1+H/uugWShhf0cvOMXcXFvKPZFm5yGpmgB9Cl4Ey8hJFH7hRmBcQ8sNcp0TdQ6b9/8mqvg10UkaFeQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@selfpentest/eslint-pentest-plugin/MAL-2026-17293.json"