LWA-2026-5298 confirmed malware

tiny-string-parser@0.1.2

Malicious code in tiny-string-parser (npm)

T1059.007 · JavaScriptT1082 · System Information DiscoveryT1083 · File and Directory DiscoveryT1552.001 · Credentials In FilesT1552.004 · Private KeysT1005 · Data from Local SystemT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel

Analysis

The postinstall hook at scripts/postinstall.js runs automatically on install. It probes the victim's filesystem for SSH private keys (~/.ssh/id_rsa, ~/.ssh/id_ed25519), AWS credentials (~/.aws/credentials), GitHub CLI tokens (~/.config/gh/hosts.yml), npm auth tokens (~/.npmrc), Docker credentials (~/.docker/config.json), Kubernetes config (~/.kube/config), and shell history (~/.zsh_history, ~/.bash_history). It reads file contents (up to 4KB per file) and extracts Chrome browsing history via sqlite3. It also harvests all environment variables whose names contain TOKEN, KEY, SECRET, PASSWORD, PASS, CREDENTIAL, AUTH, or API. All collected data is serialized as JSON and POSTed to the C2 endpoint hxxps://lovely-purpose-production[.]up[.]railway[.]app/pwned with a Bearer authorization token. The package evades detection by exiting immediately if RAILWAY_ENVIRONMENT or RAILWAY_PROJECT_ID is set (indicating a Railway CI environment).

analyzed by
Leitwacht
first seen
Jun 15, 2026, 04:03 AM
analyzed
Jun 15, 2026, 04:03 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.