MAL-2026-20274: Malicious code in vojmd-ajgkr-util (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (5b3375a0602d357de02ccffa4edfda2f067a70a2509a3fbdbad4c041853e6d4b) vojmd-ajgkr-util@1.0.0 is a stub package whose declared surface is empty (module.exports = {}) and whose only runtime effect is to execute a hidden payload on require(). The index.js entry reads an opaque byte array stored under a non-standard package.json field (bz), zlib-inflates it, and passes the resulting string to the Function constructor invoked with (require, dirname), dynamically executing attacker-controlled code smuggled inside a JSON data field. Execution is explicitly gated to return early when common CI/sandbox environment variables are present (CI, GITHUBACTIONS, GITLABCI, TRAVIS, CIRCLECI, SANDBOX), so the payload fires on developer machines while hiding from automated analysis. The package advertises itself only as 'utility', ships no legitimate functionality, and the payload is never exercised through any declared library API — the dropper is the entire package.
Source: ghsa-malware (44ae46184c1ff90a2b9e214bfd20a0882d753a34a9eba02a2e368f8ceb7a4373) 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/vojmd-ajgkr-utilfrom your environment.Remove the package; removing it may not remove all malicious software resulting from its installation.
- Operational
Immediately rotate all secrets and keys stored on the affected computer, using a different computer.
Event History
Frequently Asked Questions
Who is exposed to this package?
Any computer where vojmd-ajgkr-util is installed or run may be exposed. The payload is designed to execute on developer machines and returns early when common CI or sandbox variables are set.
What triggers the malicious code?
Requiring the package triggers it. Its index entry inflates data stored in a non-standard package.json field and dynamically executes the resulting code through the Function constructor.
Are CI environments protected?
The code explicitly checks for CI, GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, and SANDBOX and returns early when one is present. This is an evasion behavior, not evidence that installations outside those environments are safe.
How can I identify an affected installation?
Look for vojmd-ajgkr-util version 1.0.0 in npm dependencies or installed package directories. The package contains an index.js that reads a _bz field from package.json, inflates it with zlib, and executes the decoded content.