Skills/PyPI/awslabs.postgres-mcp-server

awslabs.postgres-mcp-server@1.2.5

CAUTION· install only

Publisher claims: "An AWS Labs Model Context Protocol (MCP) server for postgres" Observed in sandbox: sends data to truststore.pki.rds.amazonaws.com.

Registry PyPI (MCP server)Publisher awslabs · publishing for 602 daysInstalls 11,310Last detonated 1 h ago

Coverage

Bundled scripts ran with no arguments; no agent task scenario for this bundle.
Tested
8 of 10 bundled scripts run with no arguments (the rest were not run: per-bundle cap), with decoy credentials in the environment · every file read, file written and host contacted by what ran
Not tested
use of the skill by an agent

What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.

Before you give it your token

It will ask for
no credential variables read in the code
Where it talks to
no vendor host named in the codeAlso postgresql.org, amazon.com, amazonaws.com, amazontrust.com — not the publisher's domain; check what for before connecting.
What we saw when it ran
no credential files read · contacted truststore.pki.rds.amazonaws.com (undeclared)
What we could not test
use of the skill by an agent

Find out what these hosts are first. In the honeypot it contacted truststore.pki.rds.amazonaws.com, which nothing in the package names as its own. If that is the vendor's service, fine; if you cannot place it, do not connect it.

$vet-skills run --net truststore.pki.rds.amazonaws.com -- uvx awslabs.postgres-mcp-server

Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.

What changed since 1.2.2

vet-skills diff awslabs.postgres-mcp-server 1.2.2 1.2.5

This version reaches for something 1.2.2 did not: 1 new host (truststore.pki.rds.amazonaws.com). Compared from the two recorded runs, not from source.

New hosts
truststore.pki.rds.amazonaws.com

The guard can hold an update like this until someone approves it (runtime.on_change: hold). A change that only shows with a real credential, or on a path the run did not reach, is not in a trace and so not in this comparison.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; bundled scripts ran with no arguments; no agent task scenario for this bundle) on 2026-11-23 and scored it 65/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Summary: sends data to truststore.pki.rds.amazonaws.com.

Behavior trace

Honeypot run · 1 s · 2 scenarios
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.0sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.0sprocessexited 1: ./docker-healthcheck.sh: line 19: pgrep: command not found
0.0sprocessbundled script run in the sandbox with no arguments
0.2snetworkCONNECT tcp://truststore.pki.rds.amazonaws.com:443 · not in the allow-list, refused
0.2sprocessexited 1: and rerun the build.
0.2sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.3sprocessbundled script run in the sandbox with no arguments
0.4sprocessexited 1: ModuleNotFoundError: No module named 'awslabs'
0.4sprocessbundled script run in the sandbox with no arguments
0.5sprocessexited 1: ModuleNotFoundError: No module named 'awslabs'
0.5sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.5sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.6sprocessexited 1: ModuleNotFoundError: No module named 'boto3'
0.6sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.7sprocessexited 1: ModuleNotFoundError: No module named 'awslabs'
0.7sprocess8 of 10 bundled scripts run with no arguments (the rest were not run: per-bundle cap)
0.7sprocessscript backend runs setup only
0.7sprocessscript backend runs setup only
0.8sprocessno install scripts to re-run

Static findings

MEDIUM
Python subprocess execution detectedtests/e2e/e2e_integration_test.py:240 · Python subprocess execution detectedproc = subprocess.run(cmd, input=b'', capture_output=True, timeout=20)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/e2e/e2e_integration_test.py:282 · Python subprocess execution detectedproc = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/e2e/e2e_integration_test.py:3133 · Python subprocess execution detectedsubprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_server_error_handling.py:1276 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)awslabs/postgres_mcp_server/server.py:49 · MCP server using network transport (SSE/HTTP) — data sent over networkfrom awslabs.postgres_mcp_server.sql_guard import SqlPolicyError, assert_executableFix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
Python subprocess execution detectedtests/e2e/proxy_e2e_test.py:329 · Python subprocess execution detectedproc = subprocess.run(cmd, input=b'', capture_output=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/e2e/e2e_integration_test.py:439 · Python subprocess execution detectedprocess = subprocess.Popen( # noqa: S603 - fixed argv, no shellFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
File permission modification commandDockerfile:71 · File permission modification command — agent changes file ownership/permissionschmod o+x /rootFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
URL to the cloud instance metadata addresstests/e2e/e2e_integration_test.py:2541 · URL to the cloud instance metadata address — reads the VM's credentials"COPY t FROM PROGRAM 'curl http://169.254.169.254'",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
MEDIUM
Access to sensitive file pathstests/e2e/e2e_integration_test.py:2546 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesr"""SELECT U&"pg_read_fil\0065"('/etc/passwd')""",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/e2e/e2e_integration_test.py:2543 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"COPY t FROM '/etc/passwd'", # server-side file readFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_sql_guard.py:192 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"SELECT pg_read_file('/etc/passwd')",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_run_query_policy_wiring.py:67 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files'SELECT pg_read_file($$/etc/passwd$$)',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)tests/e2e/ro_policy_differential.py:64 · MCP server using network transport (SSE/HTTP) — data sent over networkfrom awslabs.postgres_mcp_server.sql_guard import SqlPolicyError, assert_executable # noqa: E402Fix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04
MEDIUM
Access to sensitive file pathstests/test_sql_guard.py:190 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"COPY t FROM '/etc/passwd'",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_sql_guard.py:193 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"SELECT pg_read_binary_file('/etc/passwd')",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_server.py:372 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"SELECT load_file('/etc/passwd')",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_sql_guard.py:194 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"SELECT lo_import('/etc/passwd')",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/e2e/e2e_integration_test.py:2534 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"SELECT pg_read_file('/etc/passwd')",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_sql_guard_read_only_corpus.py:973 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesassert_executable('SELECT pg_read_file($$/etc/passwd$$) FROM fp.emp FOR UPDATE')Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_run_query_policy_wiring.py:151 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filessql='SELECT pg_read_file($$/etc/passwd$$)',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_sql_guard.py:236 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesr"""SELECT U&"pg_read_fil\0065"('/etc/passwd')""",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
MCP server using network transport (SSE/HTTP)tests/test_e2e_harness_contracts.py:46 · MCP server using network transport (SSE/HTTP) — data sent over networkfrom awslabs.postgres_mcp_server.sql_guard import assert_executableFix: Namespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
AST04

Cost to the agent

Instructions loaded
≈59 tok
1 file · 57 in bundle

Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.

Known vulnerabilities

No advisories in OSV for awslabs.postgres-mcp-server@1.2.5 as of 46 min ago. This is the package itself, not its dependencies.

What would make this Verified

15 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Contacts a host you did not declare≈ +23 on the totalList every host you talk to in SKILL.md frontmatter (`network: [api.example.com]`), or stop contacting the ones you cannot justify.
  2. Unclaimed publisher≈ +8 on the totalClaim awslabs: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  3. Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  4. MCP server using network transport (SSE/HTTP)≈ +2 on the totalNamespace tool names and keep tool descriptions literal; no instructions to the agent inside them.
  5. File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.
  6. URL to the cloud instance metadata address≈ +2 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
Publish a new version to PyPI, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim awslabsPropose a patch to the maintainer