neon-terminal@0.5.0
Malicious code in neon-terminal (npm)
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
- robomerge@99999.0.0
- ddok-modal@1.0.0
- react-campaign-optimizer@1.0.0
- pino-zod@1.0.121
- zod-pino@1.0.122
- new-helper@5.8.1
- parket-helper@0.0.1
- stream-read-35cf@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.