Back to skill

Security audit

postgres-aiops

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports installing an external OpenClaw plugin rather than performing the advertised PostgreSQL work, and the plugin’s behavior could not be verified.

Consider avoiding installation until the external plugin’s implementation and safeguards can be reviewed, and until the skill’s advertised PostgreSQL capabilities are confirmed. The scan covered 80% of components; some instruction text could not be fully evaluated, so the evidence is incomplete. ClawScan’s suspicious verdict indicates review is warranted, not that malicious intent was established.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk is a plugin installer and skill-information check, not a PostgreSQL DBA implementation. Although installation could support the advertised functionality, it is the entire behavior shown here and changes the OpenClaw environment rather than administering PostgreSQL. The installed plugin's implementation is not supplied, so its DBA capabilities and governance safeguards cannot be verified.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/cli-reference.md (reported line 10)May include surrounding context.

bash
postgres-aiops init                      # interactive onboarding wizard
postgres-aiops doctor [--skip-auth]      # config + secret store + connectivity (SELECT version())
postgres-aiops overview [--target <t>]   # one-shot cluster health snapshot
postgres-aiops mcp                       # start the MCP server (stdio transport)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/cli-reference.md (reported line 21)May include surrounding context.

postgres-aiops secret set [--value ] # store password (hidden prompt if no --value) postgres-aiops secret list # names only — values never shown postgres-aiops secret rm postgres-aiops secret migrate # import legacy plaintext .env (PG__PASSWORD) postgres-aiops secret rotate-password # re-encrypt under a new master password

text

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/setup-guide.md (reported line 97)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions, that a
password is present per target, and (unless `--skip-auth`) connectivity by
running `SELECT version()`.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · SKILL.md (reported line 23)May include surrounding context.

md
:{"anyBins":["postgres-aiops","uvx"]},"optional":{"env":["POSTGRES_AIOPS_CONFIG","POSTGRES_AIOPS_MASTER_PASSWORD"]},"homepage":"https://github.com/AIops-tools/Postgres-AIops","emoji":"🐘","os":["macos","linux"]}}
compatibility: >
  Standalone, self-governed PostgreSQL DBA operations. The governance harness (audit, token/runaway budget, undo, risk-tiers) is bundled in the package — no external skill-family dependency. Connects via psycopg 3 and reads the system catalogs and pg_stat_* views.
  All write operations are audited to a local SQLite DB under ~/.postgres-aiops/ (relocatable via POSTGRES_AIOPS_HOME).
  Credentials: the PostgreSQL role password is stored ENCRYPTED in ~/.postgres-aiops/secrets.enc (Fernet/AES-128 + scrypt-derived key) — never plaintext on disk. Run 'postgres-aiops init' to onboard, or 'postgres-aiops secret set <target>' to add one. The store is unlocked by a master password from POSTGRES_AIOPS_MASTER_PASSWORD (non-interactive/MCP/CI) or an interactive prompt (CLI

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/cli-reference.md (reported line 10)May include surrounding context.

bash
postgres-aiops init                      # interactive onboarding wizard
postgres-aiops doctor [--skip-auth]      # config + secret store + connectivity (SELECT version())
postgres-aiops overview [--target <t>]   # one-shot cluster health snapshot
postgres-aiops mcp                       # start the MCP server (stdio transport)

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · references/setup-guide.md (reported line 97)May include surrounding context.

text

`doctor` checks the config file, the encrypted store and its permissions, that a
password is present per target, and (unless `--skip-auth`) connectivity by
running `SELECT version()`.