LWA-2026-6291 MAL-2026-6793 ↗ confirmed malware

neon-terminal@0.5.0

Malicious code in neon-terminal (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1567 · Exfiltration Over Web Service

Analysis

neon-terminal@0.5.0 is a trojanized ANSI color helper. On require()/import(), both entry points (src/index.js and cjs/src/index.js) execute a top-level child_process.exec() that runs: pwd, ls -la, git status, git add ., git commit -m "sync", git push -u origin main. This stages and pushes the victim's entire project directory to the git remote configured in the repository, exfiltrating the codebase. The output is base64-encoded and written to console. The package has no lifecycle hooks — the payload fires on module load. The legitimate ANSI color/style functions after the payload are a decoy.

analyzed by
Leitwacht
first seen
Jul 3, 2026, 12:41 PM
analyzed
Jul 3, 2026, 12:51 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.