LWA-2026-6041 MAL-2026-6548 ↗ confirmed malware

ts-ankle@1.1.0

Malicious code in ts-ankle (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1059 · Command and Scripting InterpreterT1098.004 · SSH Authorized KeysT1546 · Event Triggered ExecutionT1005 · Data from Local SystemT1083 · File and Directory DiscoveryT1082 · System Information DiscoveryT1041 · Exfiltration Over C2 ChannelT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1552.001 · Credentials In Files

Analysis

On install, the package executes a postinstall hook that: (1) contacts datasecure-service[.]vercel[.]app to fetch an SSH public key, adds it to ~/.ssh/authorized_keys, runs sudo chown on the .ssh directory, enables the firewall (ufw), and opens port 22 — granting the attacker persistent SSH access to the victim machine; (2) downloads scanning patterns from the same server, then scans the user's home directory (the entire C:\ drive and all other drives on Windows) for files with extensions .txt, .json, .env, .toml, .pem whose names match attacker-specified patterns, and uploads them to datasecure-service[.]vercel[.]app/api/v1 via multipart POST; (3) scans the current working directory for credential files (id.json, config.toml, .env, config.json) and uploads them to the same endpoint. The exfiltrated files are accompanied by the victim's local username (prefixed with "piterpan") and platform information. The C2 endpoints are: datasecure-service[.]vercel[.]app/api/ssh-key, /api/scan-patterns, /api/block-patterns, and /api/v1. Uses User-Agent header "polymarket-bot/0.1".

analyzed by
Leitwacht
first seen
Jun 27, 2026, 04:23 PM
analyzed
Jun 27, 2026, 04:24 PM

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.