executable-stories-jest@3.1.1
Malicious code in executable-stories-jest (npm)
Analysis
This release of executable-stories-jest carries a malicious, heavily obfuscated dropper injected into the package root index.js, distinct from the genuine library code shipped under dist/. The entire index.js is a single self-decoding stage: a character-code array passed through a Caesar-cipher transform and handed to eval(). The decoded second stage is an async IIFE that pulls in Node's crypto module, builds an AES-128-GCM decipher helper with hardcoded keys, initialization vectors and authentication tags, and decrypts two large embedded ciphertext blobs into in-memory buffers, one of which is a multi-megabyte encrypted final payload. The package then evaluates this runtime-decrypted, attacker-controlled code. This layered obfuscation (Caesar-encoded eval wrapper plus AES-GCM payload decryption plus dynamic code evaluation) has no legitimate purpose in a test-documentation library and is characteristic of a staged malware dropper. Installing or importing this version executes the hidden payload. Do not install version 3.1.1; pin to a known-good release and rotate any credentials exposed on affected machines.
- analyzed by
- Leitwacht
- first seen
- Jun 8, 2026, 12:00 PM
- analyzed
- Jun 28, 2026, 06:36 AM
- weekly installs
- 875
Related advisories
- autotel-mcp-instrumentation@29.0.2
- executable-stories-vitest@2.0.1
- autotel-backends@2.12.26
- autotel-drizzle@0.0.27
- autotel-adapters@0.3.5
- autotel-aws@0.13.10
- path-internal@1.0.10
- autotel-tanstack@1.13.27
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.