Skip to main content

Malicious code in box-sign-client (npm)

0
Medium
Published: 09/04/2026 (09/04/2026, 06:38:17 UTC)
Source: GCVE Database
Product: box-sign-client

Description

The npm package [email protected] is a malicious package designed to exploit dependency confusion by impersonating an internal Box namespace package. Its preinstall script collects the installing host's hostname and user environment variables, then sends this information via DNS to a third-party collector. This occurs during npm install before any application code runs, potentially leaking sensitive environment details. The package is advertised as a proof-of-concept but can leak data regardless of user intent.

Affected software

npmghsa
box-sign-client
Affected versions
=1.0.0

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: 09/07/2026, 18:23:30 UTC

Technical Analysis

[email protected] is a malicious npm package that acts as a dependency confusion attack vector targeting the internal Box namespace (@box/sign-client). Its package.json includes a preinstall script that executes node index.js, which reads the host's os.hostname() and environment variables USER or USERNAME. It then constructs a DNS query embedding these values into a subdomain of iv6mfybhp42k33ysmzi73de5w.canarytokens.com and triggers a DNS resolve call. This causes the installing system's hostname and user information to be transmitted to a third-party Canarytokens collector at install time, before any legitimate application code runs. This behavior leaks environment details to an external party on any npm install that mistakenly resolves this public package instead of the intended internal one.

Potential Impact

The impact is the unintended disclosure of the installing system's hostname and user environment variables to an external third-party via DNS queries during package installation. This can lead to information leakage about internal hostnames and user identities. There is no indication of further code execution or system compromise beyond this data exfiltration. No known exploits in the wild have been reported.

Mitigation Recommendations

No official patch or fix is available for this malicious package. The best mitigation is to ensure that internal packages are correctly namespaced and resolved, avoiding dependency confusion by verifying package sources before installation. Use package integrity verification and private registries to prevent accidental installation of malicious public packages impersonating internal ones.

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-15920
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a9ad4e8acd9273b49b6766c

Added to database: 09/04/2026, 14:25:44 UTC

Last enriched: 09/07/2026, 18:23:30 UTC

Last updated: 10/03/2026, 23:32:42 UTC

Views: 26

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