@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. Obfuscated code running on install has no legitimate purpose for an encoding library and is consistent with a supply-chain trojan. The payload's behaviour is concealed by the obfuscation, and no network IOCs are visible in the source.
- analyzed by
- Leitwacht
- first seen
- Jun 18, 2026, 12:07 PM
- analyzed
- Jun 18, 2026, 12:08 PM
- weekly installs
- 358
hxxps://github[.]com/dahlia/byte-encodings Request takedown / dispute →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.