{"id":"MAL-2026-2911","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.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ab93869d5c21b5d8424c3c527825b2f0051e5736740429dd67e71403474ee281)\nThe package terminal-formatter was found to contain malicious code.\n","modified":"2026-04-23T21:18:20.324564Z","published":"2026-04-16T00:44:26Z","database_specific":{"iocs":{"urls":["https://ghostraper.top"]},"malicious-packages-origins":[{"modified_time":"2026-04-23T20:43:56Z","source":"amazon-inspector","import_time":"2026-04-23T20:49:01.300888107Z","sha256":"ab93869d5c21b5d8424c3c527825b2f0051e5736740429dd67e71403474ee281","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]},"affected":[{"package":{"name":"terminal-formatter","ecosystem":"npm","purl":"pkg:npm/terminal-formatter"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/terminal-formatter/MAL-2026-2911.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"indece","contact":["https://indece.com"],"type":"FINDER"}]}