streak-int-lib@1.0.0
Malicious code in streak-int-lib (npm)
Analysis
streak-int-lib@1.0.0 is a trojanized npm package posing as a calendar-day and streak-math library. On module import, it automatically decodes a base64-embedded ELF binary (~87KB, linked against OpenSSL) from within index.mjs, writes it to ~/.config/systemd/user/index with executable permissions, and spawns it as a detached background process. The binary is a C2 implant: it uses TLS sockets (SSL_connect, SSL_read, SSL_write) for encrypted command-and-control, performs system reconnaissance (gethostname, uname, getenv, readdir, getpwuid), and can fork/execute additional payloads. The implant was observed attempting DNS resolution to a remote C2 domain. The package's README and public API describe only benign calendar-math functions and make no mention of the background service or binary payload.
- analyzed by
- Leitwacht
- first seen
- Jul 29, 2026, 08:39 AM
- analyzed
- Jul 29, 2026, 08:43 AM
Related advisories
- text-line-parser@1.0.0
- date-sanitize-helper@1.0.0
- n8n-nodes-utils-helper@1.0.0
- n8n-nodes-task-runner@1.0.0
- react-campaign-optimizer@1.0.0
- chalk-ultra@12.0.3
- kisama-js@0.1.8
- node-vfs-polyfill@2.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.