Back to skill

Security audit

Pgadmin Manager

Security checks for vulnerabilities and agentic risk

Overview

This skill appears to do what it says, but it starts a persistent pgAdmin database-admin interface with publicly documented default credentials.

Review before installing. Set unique PGADMIN_EMAIL and PGADMIN_PASSWORD values before starting it, avoid using the documented defaults, restrict which containers can join the shared Docker network, and stop or remove the pgAdmin volume when you no longer need saved server configuration.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
docker-compose.yml:6
Finding

Predictable Default Credentials for the pgAdmin Administrative Interface

Content
View full analysis

Vulnerability Details

File Location: docker-compose.yml, lines 6-9
Related Documentation: SKILL.md, lines 42-48 and 60-63
Vulnerability Type: Hard-coded and publicly documented default credentials
Risk Level: Medium

Vulnerable Code

yaml
environment:
  PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:-admin@codai.local}
  PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-pgadmin}
  PGADMIN_LISTEN_PORT: 80

The associated documentation explicitly discloses the default pgAdmin and PostgreSQL credentials:

text
Open `http://localhost:8082` in a browser. Login: `admin@codai.local` / `pgadmin`.

To connect to PostgreSQL inside pgAdmin, add a server with:
- **Host**: `codai_postgres`
- **Port**: `5432`
- **User**: `codai` / **Password**: `pgpass`

Technical Analysis

The Compose configuration falls back to the predictable password pgadmin whenever PGADMIN_PASSWORD is not explicitly supplied. Because the installation documentation publishes this default, it must be treated as a known credential rather than a secret.

Although the host port is bound to 127.0.0.1, the service also joins the external nginx-proxy_net Docker network. Consequently, the interface may be reachable both from the host and from other containers with access to that shared network. Loopback binding reduces remote exposure but does not protect against malicious local users, compromised host processes, browser-based attacks that can reach local services, or untrusted containers on the external network.

The documentation also publishes a predictable PostgreSQL password. If that credential is active in the related PostgreSQL deployment, an attacker who reaches pgAdmin or the database service can attempt direct database authentication.

Attack Path

  1. A user starts the Skill without setting PGADMIN_PASSWORD.
  2. Docker Compose initializes pgAdmin with admin@codai.local and the known password pgadmin. ...[truncated 1210 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the default password and require an explicitly supplied secret:

    yaml
    environment:
      PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:?PGADMIN_EMAIL must be set}
      PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:?PGADMIN_PASSWORD must be set}
      PGADMIN_LISTEN_PORT: 80
    
  2. Generate a unique, high-entropy password for each deployment and place it in a protected secret store, Docker secret, or environment file with restrictive filesystem permissions.

  3. Remove all plaintext passwords from SKILL.md. Document placeholder values and a secure secret-generation process instead.

  4. Rotate the pgAdmin and PostgreSQL passwords for existing deployments because the current defaults are publicly known.

  5. Restrict membership in the external Docker network and avoid attaching unrelated or untrusted containers to it.

  6. Apply network-level filtering or use a dedicated internal network when direct communication with unrelated proxy containers is unnecessary.

  7. Assign the PostgreSQL user only the minimum database privileges required and use a separate administrative account for privileged maintenance.

  8. Consider adding authentication rate limiting and reviewing pgAdmin access logs for attempts using the published credentials.

Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Shadow Command Trigger

Medium
Category
Trigger Abuse
Confidence
70% confidence
Finding

Shadow Command Trigger: 'start pgadmin' conflicts with built-in command 'start'

Content

No source excerpt is available for this finding.

Shadow Command Trigger

Medium
Category
Trigger Abuse
Confidence
70% confidence
Finding

Shadow Command Trigger: 'stop pgadmin' conflicts with built-in command 'stop'

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger phrase "interface postgres" is underspecified and could match many normal requests about PostgreSQL interfaces, dashboards, or tooling. Because this skill launches a database administration UI, accidental invocation could expose a sensitive admin surface or alter local service state without the user's clear intent.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger phrase "admin postgres" is broad and closely resembles ordinary user requests about PostgreSQL administration rather than a narrowly scoped invocation for this specific skill. That can cause unintended activation of a capability that starts, stops, or exposes an admin interface, which is risky because the skill manages a privileged local service with default credentials.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.