{"id":"MAL-2026-10577","summary":"Malicious code in @sqlite-clone/nodesql (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aa13a1a0a588b94fe6f577ccd3fad94566f8db8d44848aa6421285795f15298d)\nThe package is published as @sqlite-clone/nodesql but its shipped index.js is a verbatim copy of the well-known feross/buffer polyfill with a single injected top-level statement: `var ins = import('@sqlite-panel/createsql');`. This dynamic import fires whenever a consumer requires or imports the package, transitively loading and executing whatever code the sibling scoped package @sqlite-panel/createsql ships. The package name, keywords ('node','sql'), README (titled 'bare-stream' and instructing users to `npm i @sql-access/nods`), and actual code body (buffer polyfill) do not agree with each other, and the declared dependency lives under a third, unrelated scope — a lure/cover-story shape rather than a legitimate library. The buffer-polyfill body serves as camouflage: the tarball has no direct network I/O of its own; the entire supply-chain effect is delivered through the transitively pulled attacker-controlled dependency.\n\n## Source: ghsa-malware (985672f13ce54593863a51a4aa24b8eabb3a47e3cc65149c57061969d9621e45)\nAny 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.\n","aliases":["GHSA-x8m3-m829-mhc4"],"modified":"2026-07-14T13:49:26.281029527Z","published":"2026-07-14T10:35:01Z","database_specific":{"malicious-packages-origins":[{"sha256":"985672f13ce54593863a51a4aa24b8eabb3a47e3cc65149c57061969d9621e45","import_time":"2026-07-14T10:52:39.058695475Z","id":"GHSA-x8m3-m829-mhc4","modified_time":"2026-07-14T10:35:02Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"ghsa-malware"},{"modified_time":"2026-07-14T12:48:05Z","versions":["1.0.2"],"source":"amazon-inspector","sha256":"aa13a1a0a588b94fe6f577ccd3fad94566f8db8d44848aa6421285795f15298d","import_time":"2026-07-14T13:35:48.525453974Z","id":"IN-MAL-2026-010494"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x8m3-m829-mhc4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@sqlite-clone/nodesql/v/1.0.2"}],"affected":[{"package":{"name":"@sqlite-clone/nodesql","ecosystem":"npm","purl":"pkg:npm/%40sqlite-clone/nodesql"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"b37d188ab0be6683161c95e9dfd1752d1346337843576e86dc36ec7c18183b73","tlsh":"e03364026f52511b4377b33d984f950efb769436422ac8c8b49c94902fb4964cabbef9"},{"tlsh":"f3d0229f2807030e2f433cc110e04e29b695788cce089859b800872389a0230235820c","path":"README.md","sha256":"3e41caa00cca47d4f2c1009c8e122d20885857da6587bac53b89f26c6d0bb61f"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@sqlite-clone/nodesql/MAL-2026-10577.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}