Malicious code in @osl-design/react (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-17155
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0a3237fada0f96b2160cb8adea5c7734951ca960f71f3f4bf788fec9446b6d3b) The package declares `"install": "node index.js"` in package.json, so `npm install` automatically executes its top-level script. That script loads `runtime/support/telemetry/probe/impl.js`, which reads the installer's OS username (`os.userInfo().username`), hostname (`os.hostname()`), and current working-directory basename, concatenates them with a prefix into a DNS label, and issues a `dns.resolve4` query against the hardcoded domain `oob.algamil7x.xyz` — a DNS out-of-band exfiltration channel. Sensitive strings, including the module names `os`/`dns`, the API names `userInfo`/`hostname`/`cwd`/`resolve4`, the label prefix `osldr`, and the destination domain `oob.algamil7x.xyz`, are hidden as hex/char-code arrays decoded at runtime, and `os` and `dns` are loaded through `module.constructor._load(...)` rather than literal `require()` calls to evade static analysis. The README contradicts the shipped behavior by asserting the package has no file system access and no network requests beyond registry probes, and the scope name `@osl-design/react` resembles a design-system package to lend plausibility. Installing this package leaks host-identifying information about the installer's machine to an attacker-controlled DNS resolver.
- Source published
- 24 Sep 2026 13:16:44 UTC
- Source modified
- 24 Sep 2026 13:30:05 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.