MAL-2026-20271: Malicious code in smfos-bskdz-util (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (ec58aa63a556255a6052491e8d50ff5f9e44d58f32044028f3f1ae978789e0c0) On require, index.js reads a numeric byte array from a non-standard b field in package.json, XORs each byte with 0x96, and passes the result to the Function constructor along with require and dirname. In version 1.0.1 the decoded bytes resolve to a trivial console.log(1), but the package exports an empty object and advertises itself as a utility, so the only functional behavior shipped is this dynamic-execution channel. The payload is stored in a manifest field under a single-letter key, outside any shipped.js source, and is only reachable through the XOR transform — a deliberate obfuscation shape that lets any future published version execute arbitrary author-controlled code at import time with full access to require and the installing project's directory.
Source: ghsa-malware (f15455f24cd57ac6b7bdd0de11c511ba1ce862fd870c2bdad19f93f67cc34b45) 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
npm/smfos-bskdz-utilfrom your environment.Remove the smfos-bskdz-util package.
- Operational
Rotate all secrets and keys stored on the affected computer immediately, using a different computer.
Event History
Frequently Asked Questions
When does the malicious code execute?
It executes when the package is required or imported. Its index.js decodes a byte array from the package manifest and passes the result to the Function constructor with access to require and __dirname.
What access could the package's code obtain?
The dynamic code runs with access to require and the installing project's directory. The advisory states that any computer with the package installed or running should be treated as fully compromised.
Are systems using version 1.0.1 known to have executed a harmful payload?
In version 1.0.1, the decoded payload resolves to console.log(1). However, the obfuscated import-time execution mechanism allows a future published version to run arbitrary author-controlled code.
What should be done if this package is present?
Treat the affected computer as fully compromised and rotate all secrets and keys stored on it immediately.