Malicious code in @logdna-web/shared (npm)
The @logdna-web/shared npm package is a malicious package published as part of a dependency confusion campaign. It uses a preinstall hook to execute code that collects and sends host telemetry, including public IP and personally identifiable information (PII), to an attacker-controlled Sentry endpoint. The package name mimics a legitimate internal package namespace to trick misconfigured resolvers into installing it. The malicious payload also silently relays application exceptions and PII to the attacker if the package's init function is called without a custom DSN. This package version 13.19.37 is affected. The package should be considered fully compromised if installed, and all secrets on the host should be rotated immediately.
AI Analysis
Technical Summary
The @logdna-web/shared package, published under the @logdna-web scope to mimic legitimate internal packages, contains a preinstall hook that runs a script initializing the @sentry/node client with a hardcoded attacker-controlled DSN. This script collects the installer's public IP address and default PII such as hostname and OS username, then deliberately triggers an exception to send this data to the attacker's Sentry project. The package's main module also uses the attacker's DSN as a default, causing any application errors to be silently sent to the attacker if no DSN is supplied. This behavior is consistent with a dependency confusion reconnaissance campaign designed to identify and profile victims by their public IP and environment metadata. The affected version is exactly 13.19.37. There is no indication of an official patch or remediation from the vendor.
Potential Impact
Installation of this package results in unauthorized exfiltration of host telemetry and personally identifiable information to an attacker-controlled Sentry endpoint. This includes the public IP address, hostname, OS username, runtime environment metadata, and application exceptions if the package is used without supplying a custom DSN. The presence of this package on a system indicates a full compromise, potentially exposing all secrets and keys stored on the host. The attacker can attribute successful installs to specific victim organizations via distinct Sentry project IDs, enabling targeted reconnaissance and profiling.
Mitigation Recommendations
No official patch or remediation is currently documented. Immediate removal of the @logdna-web/shared package version 13.19.37 is required. All secrets and keys stored on any affected computer should be rotated immediately from a separate, trusted system. Systems with this package installed should be considered fully compromised, and a full incident response and forensic analysis is recommended to identify and remediate any persistent threats. Review and correct any misconfigured package resolvers to prevent dependency confusion attacks. Monitor for and block packages published under deceptive scopes mimicking internal namespaces.
Malicious code in @logdna-web/shared (npm)
Description
The @logdna-web/shared npm package is a malicious package published as part of a dependency confusion campaign. It uses a preinstall hook to execute code that collects and sends host telemetry, including public IP and personally identifiable information (PII), to an attacker-controlled Sentry endpoint. The package name mimics a legitimate internal package namespace to trick misconfigured resolvers into installing it. The malicious payload also silently relays application exceptions and PII to the attacker if the package's init function is called without a custom DSN. This package version 13.19.37 is affected. The package should be considered fully compromised if installed, and all secrets on the host should be rotated immediately.
Affected software
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
Technical Analysis
The @logdna-web/shared package, published under the @logdna-web scope to mimic legitimate internal packages, contains a preinstall hook that runs a script initializing the @sentry/node client with a hardcoded attacker-controlled DSN. This script collects the installer's public IP address and default PII such as hostname and OS username, then deliberately triggers an exception to send this data to the attacker's Sentry project. The package's main module also uses the attacker's DSN as a default, causing any application errors to be silently sent to the attacker if no DSN is supplied. This behavior is consistent with a dependency confusion reconnaissance campaign designed to identify and profile victims by their public IP and environment metadata. The affected version is exactly 13.19.37. There is no indication of an official patch or remediation from the vendor.
Potential Impact
Installation of this package results in unauthorized exfiltration of host telemetry and personally identifiable information to an attacker-controlled Sentry endpoint. This includes the public IP address, hostname, OS username, runtime environment metadata, and application exceptions if the package is used without supplying a custom DSN. The presence of this package on a system indicates a full compromise, potentially exposing all secrets and keys stored on the host. The attacker can attribute successful installs to specific victim organizations via distinct Sentry project IDs, enabling targeted reconnaissance and profiling.
Mitigation Recommendations
No official patch or remediation is currently documented. Immediate removal of the @logdna-web/shared package version 13.19.37 is required. All secrets and keys stored on any affected computer should be rotated immediately from a separate, trusted system. Systems with this package installed should be considered fully compromised, and a full incident response and forensic analysis is recommended to identify and remediate any persistent threats. Review and correct any misconfigured package resolvers to prevent dependency confusion attacks. Monitor for and block packages published under deceptive scopes mimicking internal namespaces.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10225
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-fhg5-c6x3-mx25"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a55ff7768715ace432f2618
Added to database: 07/14/2026, 09:20:55 UTC
Last enriched: 07/14/2026, 09:38:53 UTC
Last updated: 07/31/2026, 09:19:44 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.