db-connector-log
A database connector class that simplifies connections and queries to a database for nodejs apps
This report shows the evidence for db-connector-log@1.0.1. 2 of 3 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
AI Security Review
scanned 4mo ago · by lpm-firewall-aiDirect source inspection confirms a hidden, package-misaligned remote payload execution path in index.js. Although not install-time, the exported runtime method is concrete malicious behavior suitable for blocking.
Decision evidence
public snapshot- index.js imports axios and child_process.spawn at package entrypoint.
- index.js queryDBConnect decodes base64 URL and GETs remote data.session.
- index.js queryDBConnect spawns detached `node` with stdio pipe and writes remote `session` into stdin.
- Remote code execution helper is unrelated to normal MySQL connector behavior.
- package.json declares main index.js and no lifecycle hooks.
- No install-time lifecycle script in package.json.
- Malicious behavior is method-triggered, not automatic on import.
- Other connector methods perform expected mysql pool/query/transaction operations.
Source & flagged code
4 flagged · loading sourceSource spawns a local helper that fetches and dynamically executes remote code.
index.jsView on unpkg · L2A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
index.jsView on unpkg · L2Findings
Affected versions and remediation
This report applies to db-connector-log@1.0.1.
The versions list below shows the verdict for each recorded version.
- Avoid installing db-connector-log@1.0.1. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.