{"id":"MAL-2026-12142","revision":"26f5ca57467741de88a6a90d96c8ac34","records":[{"revision":"26f5ca57467741de88a6a90d96c8ac34","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12142","aliases":[],"title":"Malicious code in beaver-ui-ai-chat-layout (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c18143c270ff7461d38c50147f24245f346aecf7cc07e4883590c9c677b13809)\nPackage is advertised as a UI chat layout toolkit but its index.js unconditionally require()s a setup.js that side-loads a 77 KB module internally labelled 'Analytics SDK'. On require(), setup.js reads the installer's hostname, OS username, current working directory, Node.js version, and pid, derives a SHA-256 install fingerprint, and passes it to lib/telemetry.js, which issues https.request calls to an endpoint resolved at runtime via DNS-based service discovery rather than a hardcoded hostname. Sensitive OS APIs are accessed via runtime string concatenation (os['host'+'name'](), os['user'+'Info']().username, os['plat'+'form'](), os['ar'+'ch']()) to evade static detection. There is no opt-in; telemetry defaults on and is only disableable via an undocumented DISABLE_TELEMETRY env var. The package's declared purpose (UI layout) does not correspond to any behavior in the shipped code, which is limited to a trivial no-op class plus the fingerprint beacon.\n","state":0,"publishedAt":"2026-08-05T08:55:07+00:00","modifiedAt":"2026-08-05T10:05:49.0006808+00:00","affected":[{"ecosystem":"npm","name":"beaver-ui-ai-chat-layout","ranges":[],"versions":["0.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/beaver-ui-ai-chat-layout/v/0.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12142","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12142","identifiers":["MAL-2026-12142"]},"retained":false,"historicalAffected":[]}],"coverage":[]}