MAL-2026-10398: Malicious code in @db-tools/main-app (npm)
The npm package @db-tools/main-app version 2026.6.30 contains malicious code that executes a preinstall hook on every npm install. This hook sends the installer's public IP address and synthetic exception data to an author-controlled Sentry project without user consent. Additionally, the package's init() function silently sends application exceptions and personally identifiable information (PII) to the same remote Sentry project if no explicit DSN is provided, with no disclosure in the documentation.
AI Analysis
Technical Summary
The @db-tools/main-app npm package version 2026.6.30 includes a preinstall script that runs automatically during installation, invoking a verification script that collects the installer's public egress IP from a Cloudflare endpoint and sends it as user context along with a synthetic exception to a hardcoded Sentry project controlled by the package author. The init() API also defaults to this hardcoded Sentry DSN and enables sending default PII, causing any consumer that does not explicitly configure a DSN to leak application exceptions and PII to the same external project without notification. This behavior is unconditional and non-consensual, representing a privacy and data exfiltration risk.
Potential Impact
Users installing or using @db-tools/main-app version 2026.6.30 may have their public IP address and application exception data, including PII, sent to an external author-controlled Sentry project without their knowledge or consent. This can lead to unintended data leakage and privacy violations. There is no indication of remote code execution or system compromise beyond data exfiltration. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid installing or using version 2026.6.30 of @db-tools/main-app. Review and audit dependencies for unexpected preinstall scripts. Explicitly configure the init() function with a trusted DSN or avoid using the package to prevent automatic data exfiltration. Monitor for updates from the package maintainers or security advisories for an official fix.
MAL-2026-10398: Malicious code in @db-tools/main-app (npm)
Description
The npm package @db-tools/main-app version 2026.6.30 contains malicious code that executes a preinstall hook on every npm install. This hook sends the installer's public IP address and synthetic exception data to an author-controlled Sentry project without user consent. Additionally, the package's init() function silently sends application exceptions and personally identifiable information (PII) to the same remote Sentry project if no explicit DSN is provided, with no disclosure in the documentation.
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 @db-tools/main-app npm package version 2026.6.30 includes a preinstall script that runs automatically during installation, invoking a verification script that collects the installer's public egress IP from a Cloudflare endpoint and sends it as user context along with a synthetic exception to a hardcoded Sentry project controlled by the package author. The init() API also defaults to this hardcoded Sentry DSN and enables sending default PII, causing any consumer that does not explicitly configure a DSN to leak application exceptions and PII to the same external project without notification. This behavior is unconditional and non-consensual, representing a privacy and data exfiltration risk.
Potential Impact
Users installing or using @db-tools/main-app version 2026.6.30 may have their public IP address and application exception data, including PII, sent to an external author-controlled Sentry project without their knowledge or consent. This can lead to unintended data leakage and privacy violations. There is no indication of remote code execution or system compromise beyond data exfiltration. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid installing or using version 2026.6.30 of @db-tools/main-app. Review and audit dependencies for unexpected preinstall scripts. Explicitly configure the init() function with a trusted DSN or avoid using the package to prevent automatic data exfiltration. Monitor for updates from the package maintainers or security advisories for an official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10398
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54adf168715ace438f6cc0
Added to database: 07/13/2026, 09:20:49 UTC
Last enriched: 07/13/2026, 09:50:05 UTC
Last updated: 07/13/2026, 09:50:05 UTC
Views: 2
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.