registry  /  @elkindev/dbgraph  /  1.1.0

@elkindev/dbgraph@1.1.0

Database schema graph for AI agents — index your database catalog into a local graph, served over MCP

Static Scan Results

scanned 2h ago · by rust-scanner

Static analysis flagged 16 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsEvalFilesystemNetworkShell
Supply chain
HighEntropyStringsObfuscatedUrlStrings
ManifestNo manifest risk signals triggered.
scanned 17 file(s), 4.46 MB of source, external domains: 169.254.169.254, d3js.org, github.com, jira.mongodb.org, learn.microsoft.com, login.chinacloudapi.cn, login.microsoftonline.com, login.microsoftonline.de, login.microsoftonline.us, sidorares.github.io, tools.ietf.org, vault.azure.net, www.mongodb.com, www.npmjs.com, www.postgresql.org
Oversized source lightweight scan
dist/index.cjs5.58 MB file, sampled 256 KB
FilesystemChildProcessEnvironmentVarsCryptoHighEntropyStringsUrlStringslearn.microsoft.comlogin.chinacloudapi.cnlogin.microsoftonline.comlogin.microsoftonline.delogin.microsoftonline.uswww.npmjs.com
dist/tedious-3WZBQM6C.js2.28 MB file, sampled 256 KB
ChildProcessEnvironmentVarsCryptoHighEntropyStringsUrlStringsgithub.comlogin.chinacloudapi.cnlogin.microsoftonline.comlogin.microsoftonline.delogin.microsoftonline.us

Source & flagged code

7 flagged · loading source
dist/chunk-WTMFADWS.jsView file
2923}, L2924: exec(sql) { L2925: db.exec(sql);
High
Child Process

Package source references child process execution.

dist/chunk-WTMFADWS.jsView on unpkg · L2923
79Cross-file remote execution chain: dist/chunk-WTMFADWS.js spawns dist/mysql2-JRR5EBJC.js; helper contains network access plus dynamic code execution. L79: } L80: function resolveSecrets(cfg, envMap = process.env) { L81: switch (cfg.dialect) { ... L161: const configPath = join(projectRoot, "dbgraph.config.json"); L162: const rawJson = JSON.parse(readFileSync(configPath, "utf-8")); L163: const cfg = parseConfig(rawJson); ... L328: bodyHash: null, L329: ftsBody: "", L330: ...comment !== void 0 ? { comment } : {} ... L2923: }, L2924: exec(sql) { L2925: db.exec(sql);
High
Cross File Remote Execution Context

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

dist/chunk-WTMFADWS.jsView on unpkg · L79
152try { L153: const sea = createRequire(process.execPath)("node:sea"); L154: return typeof sea.isSea === "function" ? sea.isSea() : false;
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/chunk-WTMFADWS.jsView on unpkg · L152
79} L80: function resolveSecrets(cfg, envMap = process.env) { L81: switch (cfg.dialect) { ... L161: const configPath = join(projectRoot, "dbgraph.config.json"); L162: const rawJson = JSON.parse(readFileSync(configPath, "utf-8")); L163: const cfg = parseConfig(rawJson); ... L328: bodyHash: null, L329: ftsBody: "", L330: ...comment !== void 0 ? { comment } : {} ... L2923: }, L2924: exec(sql) { L2925: db.exec(sql);
Low
Weak Crypto

Package source references weak cryptographic algorithms.

dist/chunk-WTMFADWS.jsView on unpkg · L79
dist/open-WLBPYZLW.jsView file
95import fs4, { constants as fsConstants } from "fs/promises"; L96: var wslDrivesMountPoint, powerShellPathFromWsl, powerShellPath; L97: var init_wsl_utils = __esm({
High
Shell

Package source references shell execution.

dist/open-WLBPYZLW.jsView on unpkg · L95
dist/lib-HSEC5IHY.jsView file
83array: 4, L84: binData: 5, L85: undefined: 6, ... L141: }; L142: var TextDecoderFatal; L143: var TextDecoderNonFatal; ... L321: const { console: console2 } = globalThis; L322: console2?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values."); L323: } ... L10201: function resolveLogPath({ MONGODB_LOG_PATH }, { mongodbLogPath }) { L10202: if (typeof mongodbLogPath === "string" && /^stderr$/i.test(mongodbLogPath)) { L10203: return { mongodbLogPath: createStdioLogger(process.stderr), mongodbLogPathIsStdErr: true };
High
Cloud Metadata Access

Source reaches cloud instance metadata or link-local credential endpoints.

dist/lib-HSEC5IHY.jsView on unpkg · L83
dist/tedious-3WZBQM6C.jsView file
path = dist/tedious-3WZBQM6C.js kind = oversized_source_file sizeBytes = 2395661 magicHex = [redacted]
High
Oversized Source File

Package contains source files above the static scanner size ceiling.

dist/tedious-3WZBQM6C.jsView on unpkg

Findings

5 High4 Medium7 Low
HighChild Processdist/chunk-WTMFADWS.js
HighShelldist/open-WLBPYZLW.js
HighCloud Metadata Accessdist/lib-HSEC5IHY.js
HighCross File Remote Execution Contextdist/chunk-WTMFADWS.js
HighOversized Source Filedist/tedious-3WZBQM6C.js
MediumDynamic Requiredist/chunk-WTMFADWS.js
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowScripts Present
LowEval
LowWeak Cryptodist/chunk-WTMFADWS.js
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowUrl Strings