{"id":"MAL-2026-6338","summary":"Malicious code in log-taker (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (35623f56ea43d8a9a7ac1caa84678ed40d6923fdf19d8d23f7d4aacdde1a8c4a)\nindex.js requires child_process and invokes execSync with bash and zsh shells (around lines 315 and 331). The available evidence does not establish what commands are run, whether the calls fire at install/import time or only when a caller invokes a specific exported function, or whether any installer data is exfiltrated to a network destination. The package name suggests a log-collection tool, which can legitimately shell out to system utilities, but the shell-execution surface combined with the absence of clear scoping warrants human review of the actual command strings and reachability before recommending the package to installers.\n","modified":"2026-06-23T21:01:22.674824895Z","published":"2026-06-23T20:20:56Z","database_specific":{"malicious-packages-origins":[{"sha256":"35623f56ea43d8a9a7ac1caa84678ed40d6923fdf19d8d23f7d4aacdde1a8c4a","source":"amazon-inspector","versions":["0.1.0"],"id":"IN-MAL-2026-007361","import_time":"2026-06-23T20:48:31.205519585Z","modified_time":"2026-06-23T20:20:56Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/log-taker/v/0.1.0"}],"affected":[{"package":{"name":"log-taker","ecosystem":"npm","purl":"pkg:npm/log-taker"},"versions":["0.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/log-taker/MAL-2026-6338.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-KQ5AjqIQxRxfHI2RLI0yLw9jTwPxt7RBG0NKdLTDhcg9jwfLr7rKSUyCN1NOOQjYlUbtb1BC60C92/ntwP+AFA==","sha1":"892ac6b456f5dd6c9c2c63e767841a4a194d9ed8"},"filename":"log-taker-0.1.0.tgz"}],"evidence_files":[{"path":"index.js","sha256":"67490d46bcfdd64cec9b8c94cdb7a674ba6bb95e38e0db951fbfecc58849bdbd","tlsh":"f382985e25fb213281e373e4554f10167679d443360ade49778c87982fae928a2f2fec"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}