Malicious code in kijai (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11014
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (86481ee3f08109eeaec60a41afb7c2e8d03efd680cc5bf846bdc342ec4205205) The package advertises itself as a high-throughput bulk-mail tool and ships every one of its ~50 JS files (cli.js, denv.js, helpers.js, all commands/*.js, all functions/**/*.js, queue/*, web/*, utils/*) as obfuscator.io-packed bundles with rotated string arrays, hex-named identifiers, and self-defending wrappers. README is a single sentence with no API docs. Functionality includes SOCKS proxy rotation (with four hardcoded proxies in _init/socks.txt), multi-threaded SMTP sending, fake-identity generation, masked-email helpers, an `encryptAndObfuscateAttachment3` helper that injects `eval(decode(...))` zero-width-character payloads into HTML attachments, EML smuggling, and Microsoft account-existence probing via GetCredentialType. The `verify` subcommand fetches https://login.live.com/login.srf and runs `eval()` on a regex-extracted `var ServerData = {...}` block from the response body, which is unsafe content evaluation but fires only when an operator explicitly runs `kijai verify`. package.json declares no preinstall/install/postinstall/prepare scripts; `main` and `bin` both point at a commander-based cli.js, so `npm install kijai` and a transitive `require()` do not auto-execute the abusive code paths. The advertised functionality targets third-party mail recipients and Microsoft account endpoints, not the developer who installs the package, so this does not satisfy the installer-harm gate (no exfiltration, no credential theft, no install-time destruction, no backdoor against the installer). Wholesale obfuscation of an abusive-purpose tool published openly on npm is policy-relevant and warrants human review for registry-abuse / ToS grounds, but it is not a supply-chain attack against installers under this system's scope. ## Source: ghsa-malware (f5db4f6fb4cd8bc8073e03771776ba865f51f852120bd44162573774905ccf22) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 22 Jul 2026 17:10:01 UTC
- Source modified
- 5 Aug 2026 06:36:17 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.