Skip to main content
Menu
Advisories

Malicious code in vcdxg-eavtg-util (npm)

GHSA-Q6XV-RQVQ-8H46Published Updated GitHubMalware

Description

Source: amazon-inspector (3e5debd0db3b78c22751b313ac7f3a0159c855ae34c2288fc8dcf01b45c28420)

vcdxg-eavtg-util@1.0.1 ships a near-empty public API (module.exports = {}) alongside a 1.1 MB opaque sibling file .pkg_config. On require(), index.js reads .pkg_config and XOR-decodes every byte with the single-byte key 0x96 inside a swallowed try/catch, producing a 1.1 MB in-memory buffer. The package metadata is minimal (description utility package, random-looking name, no author or repository), and the exported surface is empty — so the package has no legitimate functional purpose that a require-time decrypt of a large opaque blob would serve. The decoded buffer's length is read but no eval/Function/subprocess/write sink for it is visible in the shipped index.js. The combination of a hollow module, an undocumented large encoded sibling payload, and a trivial XOR obfuscation executed automatically on require is the staged-dropper shape: the decoded bytes are opaque and cannot be confirmed benign, and the require-time decrypt stub has no stated use.

---

Credit: OpenSSF (source)

Affected versions

References