MAL-2026-2911

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/terminal-formatter/MAL-2026-2911.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-2911
Published
2026-04-16T00:44:26Z
Modified
2026-04-23T21:18:20.324564Z
Summary
Malicious code in terminal-formatter (npm)
Details

terminal-formatter is a malicious npm package that when installed (postinstall-hook) or imported sends local env variables, files and bash history to https://ghostraper[.]top and registers a new ssh key in .ssh/authorized_keys.


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

Source: amazon-inspector (ab93869d5c21b5d8424c3c527825b2f0051e5736740429dd67e71403474ee281)

The package terminal-formatter was found to contain malicious code.

Database specific
{
    "iocs": {
        "urls": [
            "https://ghostraper.top"
        ]
    },
    "malicious-packages-origins": [
        {
            "import_time": "2026-04-23T20:49:01.300888107Z",
            "sha256": "ab93869d5c21b5d8424c3c527825b2f0051e5736740429dd67e71403474ee281",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-04-23T20:43:56Z"
        }
    ]
}
References
Credits

Affected packages

npm / terminal-formatter

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/terminal-formatter/MAL-2026-2911.json"