cloud-sql-postgres-admin

Warn

Audited by Socket on Apr 28, 2026

6 alerts found:

Anomalyx6
AnomalyLOW
scripts/list_databases.js

This module is not overtly malicious in isolation, but it materially increases supply-chain and secret-exposure risk by (a) runtime-executing an external package via npx and (b) optionally reading a local .env file and forwarding its values wholesale into the environment of the spawned dependency. It also passes through user-provided CLI arguments to the downstream tool and broadly forwards CLAUDE_PLUGIN_OPTION_* variables. Malware likelihood in this wrapper is low; the main concern is privacy/security impact driven by the invoked dependency and the high-entropy environment forwarded to it.

Confidence: 62%Severity: 60%
AnomalyLOW
scripts/clone_instance.js

No direct malicious payload is evident in this wrapper, but it significantly increases exposure by executing a runtime dependency via npx and by forwarding merged environment variables—including values loaded from a local .env file—into the executed child process. User-provided CLI arguments are also forwarded to the invoked tool. The primary concerns are supply-chain execution risk and potential secret leakage to the child process; review and harden the execution/tooling trust model (e.g., lockfiles, offline installs, least-privilege env handling) and consider safer spawn semantics on Windows.

Confidence: 72%Severity: 63%
AnomalyLOW
scripts/list_instances.js

No direct evidence of intentional malware (backdoor, keylogging, exfiltration, or destructive activity) is present in this wrapper. The primary security concern is that it executes external npm package code at runtime via npx and passes through an environment that may include secrets imported from a local .env file and broadly remapped configuration variables. This is best treated as a supply-chain/execution-context risk requiring dependency integrity controls (lockfiles, provenance, pinning/verification) and secret-minimization (avoid loading .env into the child env unless necessary).

Confidence: 63%Severity: 62%
AnomalyLOW
scripts/get_instance.js

No direct malicious behavior is evident in this wrapper code itself. However, it meaningfully increases security exposure by (a) optionally reading a local .env file and propagating its key/value pairs into the environment of an externally executed npx command, (b) forwarding arbitrary user-supplied CLI arguments to that invoked tool, and (c) using shell: true on Windows when spawning npx.cmd. The dominant supply-chain/operational risk is that the executed @toolbox-sdk/server tool will run with potentially sensitive environment values and with unvalidated arguments, so the invoked dependency and its logging/argument handling should be treated as part of the threat model.

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

No direct malicious code patterns are evident in this wrapper (no backdoor/exfiltration logic, no eval/Function, no file modification beyond reading a conditional .env). However, it conditionally loads a local .env file and forwards the resulting secrets plus the full environment to a child process that executes third-party code via npx (@toolbox-sdk/server@1.1.0). This is a meaningful supply-chain/trust and secret-exposure risk, with slightly increased invocation risk on Windows due to shell: true and broad passthrough of user-supplied CLI arguments.

Confidence: 70%Severity: 55%
AnomalyLOW
scripts/wait_for_operation.js

This module is not overtly malicious in itself, but it creates a moderate security/supply-chain risk by executing a third-party package via `npx` and passing through potentially sensitive environment variables (including values imported from a local `.env` when enabled) plus unvalidated user-supplied CLI arguments. The main concern is unintended secret exposure or harmful behavior originating from the executed dependency/tool rather than from this wrapper’s own code.

Confidence: 60%Severity: 55%
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-admin%2F@f8d4a8c05c75fc397c8c4863a09b12a8cc8e6002
Security Audit — socket — cloud-sql-postgres-admin