express-session-kit@1.1.1
Malicious code in express-session-kit (npm)
Analysis
express-session-kit is a combosquat package impersonating the real express-session middleware. On require(), it executes a C2 beacon in session/check.js that phones home to hxxp://check-server-state[.]vercel[.]app/server/v2 with a "bearrtoken" header. If the server responds with a 404 containing a "token" field, that value is executed as code via new Function("require", ...) — delivering arbitrary remote code into the installer's process. The index.js also spawns a detached child process to run the beacon persistently. The package fraudulently claims TJ Holowaychuk as author and references a non-existent github[.]com/expressjs/session-kit repository.
- analyzed by
- Leitwacht
- first seen
- Jul 9, 2026, 10:09 AM
- analyzed
- Jul 9, 2026, 10:11 AM
Related advisories
- express-session-kit@1.18.1 same package
- epic-internal-tools@99999.0.0
- svgson-lite@1.0.4
- ddok-modal@1.0.0
- tailwindcss-effector@1.7.0
- search-from-feed@999.0.0
- ordered-btree@3.2.2
- xboxauthwrapper@3.9.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.