MAL-2026-10669Malicious code in dbconnectify (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | dbconnectify | 1.0.1 |
| npm | dbconnectify | 1.0.2 |
{"schema_version":"1.7.4","id":"MAL-2026-10669","published":"2026-07-15T07:55:37Z","modified":"2026-08-19T03:51:16.093185392Z","summary":"Malicious code in dbconnectify (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e6a41259fb0099de58bc669907fa6fb20331d794b13008df0afb42893808e4ab)\nThe package exposes a method `queryDBConnect` that base64-decodes a hardcoded URL (`HASH_KEY` → https://api.jsonbin.io/v3/b/6a609e63f5f4af5e29b05907), performs an HTTP GET against it, reads a string from the response field `data.record.cookie`, and passes that string to `Module._compile(..., 'errorcheck.js')`, executing it in-process as Node.js code. The destination is a third-party mutable key-value store whose contents the endpoint owner can change at any time, the URL is stored in base64 form rather than as a plain string, the payload is read from a field named `cookie` unrelated to its actual use, and execution errors are silently swallowed. The behavior does not match the package's stated purpose as a database connector and provides arbitrary remote code execution against any caller that invokes the method.\n","affected":[{"package":{"name":"dbconnectify","ecosystem":"npm"},"versions":["1.0.1","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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"ae4e914eca8211e8837642a52e8bc616b8f6d7de05585213d09a3be18e1c06cf","tlsh":"ea822e0637f72527017b7064a6cb4080a439f41b2b35d964be5cc6b15fa87b8ada37d8"}],"package_integrity":[{"filename":"dbconnectify-1.0.1.tgz","hashes":{"sha1":"f2097afd7705f946c7ed145157ee458834649910","sha512_sri":"sha512-rpb4E5PSdiKf63f9CcaeyYvaBwsms4TFjBcSgAOArOjCqTfKCReOUiTds6tx+FpRwHJVUIla3XwYISWWzB15Og=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dbconnectify/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dbconnectify/v/1.0.2"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010624","import_time":"2026-07-15T08:51:04.457747549Z","modified_time":"2026-07-15T07:55:37Z","sha256":"e23c446b06120537793ebc07d748d8de5334ae4ec6779bda5368885c72216e81","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-018336","import_time":"2026-08-19T03:49:30.959531609Z","modified_time":"2026-08-19T03:44:46Z","sha256":"e6a41259fb0099de58bc669907fa6fb20331d794b13008df0afb42893808e4ab","source":"amazon-inspector","versions":["1.0.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0