cloud-sql-postgres-health

Warn

Audited by Socket on Apr 28, 2026

3 alerts found:

Anomalyx3
AnomalyLOW
scripts/list_database_stats.js

No direct malicious behavior is evident in this wrapper module (no exfiltration endpoints, no persistence, no obfuscated logic, no filesystem/network write operations). However, it significantly increases practical security exposure by loading a local `.env` and passing its values into an external process, and by executing a third-party package/tool via npx while forwarding user-controlled CLI arguments with no allowlisting. This should be treated as a supply-chain/runtime-risk launcher; the invoked `@toolbox-sdk/server` and its `list_database_stats` implementation determine the real malware/data-exfiltration risk.

Confidence: 66%Severity: 52%
AnomalyLOW
scripts/get_query_plan.js

No direct evidence of in-module malware is present; the code is an operational wrapper. The main security concerns are (1) runtime execution of a third-party package via npx (supply-chain/execution boundary) and (2) importing arbitrary secrets/config from a local '../../../.env' into the environment passed to that external tool, combined with forwarding user-supplied CLI arguments without validation. This warrants careful review of the invoked dependency/tool behavior and strict control of what .env/CLI inputs contain.

Confidence: 66%Severity: 62%
AnomalyLOW
scripts/list_active_queries.js

No definitive malware or intentional sabotage is visible in this snippet; it is primarily a delegating CLI wrapper. The highest security concern is supply-chain and data exposure risk: it executes an external npm package via npx at runtime and passes through a largely unfiltered environment (optionally augmented with values from a local .env file) and user-provided arguments to that subprocess. This warrants review/hardening (pinning strategy/lockfiles, minimizing forwarded env, validating/allowlisting CLI args) and ensuring the downstream tool’s behavior is trusted.

Confidence: 60%Severity: 63%
Audit Metadata
Analyzed At
Apr 28, 2026, 10:26 PM
Package URL
pkg:socket/skills-sh/gemini-cli-extensions%2Fcloud-sql-postgresql%2Fcloud-sql-postgres-health%2F@6a9d05ccb984d10e15a06c50739e4c2cde5b600b