@zynkit/jwtbytes@0.5.3
Malicious code in @zynkit/jwtbytes (npm)
Analysis
Postinstall script 'node dist/prelude.cjs' executes heavily obfuscated javascript-obfuscator output. The package wraps a real encoding library (base64, base58, base32, hex, varint codecs) as camouflage, and every require() of the package also triggers the obfuscated payload via require('./prelude.cjs').runPrepare(). The obfuscated prelude.cjs (282KB) uses a custom RC4-like string cipher to hide its runtime behaviour. The nature of the payload cannot be determined from static analysis alone, but the presence of obfuscated code running on install with no legitimate purpose for an encoding library is consistent with a supply-chain trojan. No network IOCs were observable in static analysis.
- analyzed by
- Leitwacht
- first seen
- Jun 18, 2026, 12:07 PM
- analyzed
- Jun 18, 2026, 12:08 PM
- weekly installs
- 358
Related advisories
- assert-kit@4.3.2
- chai-assert-kit@3.8.1
- @tinyfox/shapecheck@0.8.7
- the_tax_free_cashier_is_at_9f@1995.3.20
- nottuff7@1.7.7
- nottuff15@1.7.7
- tronweb-crypto@6.3.1
- chai-plugin-kit@5.8.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.