Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in @sarex-team/viewer (npm)

The npm package @sarex-team/viewer contained malicious code that exfiltrated system information (OS username, hostname, and working directory) via DNS queries to an attacker-controlled domain (oob.sl4x0.xyz). The payload executed automatically on package installation and on every require() call.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
All npm users who installed @sarex-team/viewer
Ecosystems
Attack vectors
Affected entities
  • @sarex-team/viewer

The npm package @sarex-team/viewer was found to contain malicious code that performed data exfiltration without user interaction. The package's install script (declared in package.json) executed a Node.js script that collected sensitive system information including the installer's OS username, hostname, and current working directory basename.\n\nThe malicious code in lib/core.js used Node.js built-in modules (os, dns, process) to gather this information and encode it as DNS subdomain labels, then issued a dns.resolve4() lookup to the hardcoded attacker-controlled domain oob.sl4x0.xyz. The domain name and module/API names were obfuscated using numeric char-code arrays in lib/b02e30.js and lib/6ad264.js to evade detection.\n\nExecution was automatic and zero-interaction: the install script ran on npm install, and the malicious code also executed on every subsequent require() of the package, while the installation appeared to complete successfully due to error handling that swallowed exceptions.\n\nThe incident was identified and credited to the OpenSSF malicious-packages repository.

Indicators of compromise

Packages
  • @sarex-team/viewer
Domains
  • oob.sl4x0.xyz

Remediation

  • Immediately uninstall @sarex-team/viewer from all systems
  • Audit npm install logs and package-lock.json to identify all installations of @sarex-team/viewer
  • Assume compromise of OS username, hostname, and working directory information for any system that installed this package
  • Review DNS logs for queries to oob.sl4x0.xyz and related subdomains
  • Consider rotating credentials and reviewing access logs on affected systems
  • Use npm audit to check for other malicious packages
  • Implement package verification and supply chain security scanning in your npm dependency management

Sources

  1. GitHub Advisory GHSA-xgp4-2rxm-62fh · GitHub Advisory Database

Cite this entry

"Malicious code in @sarex-team/viewer (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-sarex-team-viewer-npm-1i6wb2

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedcritical

    Malicious code in 3-buildsight-web (npm)

    The npm package 3-buildsight-web contains malicious code that fetches and executes arbitrary JavaScript from a remote Bitbucket URL on module load, granting full page privileges to an unverified third party.

    npmCompromised package
  2. resolvedcritical

    Malicious code in @usaa-grp-personal-profile/personal-profile-common (npm)

    Malicious package @usaa-grp-personal-profile/personal-profile-common version 999.0.0 published to public npm as a dependency-confusion attack targeting an organization's internal registry. The package contains preinstall and postinstall hooks that exfiltrate hostname, username, and working directory to an attacker-controlled OAST endpoint on every install.

    npmDependency confusionCompromised package
  3. resolvedcritical

    Malicious code in create-coin (npm)

    create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.

    npmCompromised packageTyposquatting
  4. resolvedcritical

    Malicious code in @syncraft-labs/vue (npm)

    The npm package @syncraft-labs/vue version 0.4.1 contained malicious obfuscated code in its ESM build that implements a blockchain-hosted C2 dropper (EtherHiding pattern), enabling remote code execution on any consumer importing the package.

    npmCompromised package