Skip to main content

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

0
High
Published: 08/19/2026 (08/19/2026, 02:31:51 UTC)
Source: GCVE Database
Product: @sarex-team/viewer

Description

The npm package @sarex-team/viewer version 9.9.11 contains malicious code that exfiltrates sensitive system information via DNS queries. During installation and each require() call, it sends the installer's OS username, hostname, and current working directory basename to an attacker-controlled domain. This exfiltration is concealed by reconstructing key module and domain names from numeric char-code arrays. The malicious behavior occurs silently without user interaction, embedded in the package's install script and runtime code.

Affected software

npmghsa
@sarex-team/viewer
Affected versions
=9.9.11

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

AILast updated: 08/19/2026, 14:40:57 UTC

Technical Analysis

The @sarex-team/viewer npm package version 9.9.11 includes a DNS-based beacon that leaks the installer's OS username, hostname, and current working directory basename by encoding these values as subdomains under the attacker-controlled domain oob.sl4x0.xyz. The package's lib/core.js collects this information using os.userInfo().username, os.hostname(), and process.cwd(), then performs a dns.resolve4() lookup to exfiltrate the data. The domain and module names are obfuscated by reconstructing them from numeric char-code arrays in lib/b02e30.js and lib/6ad264.js to evade detection. The malicious code executes automatically during npm install via the scripts.install entry 'node index.js' and again on every require() of the package, with errors silently caught to avoid raising suspicion.

Potential Impact

Sensitive environment information including the OS username, hostname, and current working directory basename is leaked to an attacker-controlled domain via DNS queries. This can aid attackers in reconnaissance and further targeted attacks. The exfiltration occurs without user interaction and is triggered during installation and runtime, potentially affecting all users who install or require this specific package version.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or using @sarex-team/viewer version 9.9.11. Remove this package from any environments where it is installed. Monitor for any unauthorized DNS queries to suspicious domains such as oob.sl4x0.xyz. Check the vendor or package repository for updates or official advisories regarding this malicious package.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14207
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4c7acd9273b49252863

Added to database: 08/19/2026, 13:51:03 UTC

Last enriched: 08/19/2026, 14:40:57 UTC

Last updated: 10/02/2026, 13:52:35 UTC

Views: 76

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses