okf-postgresql

Warn

Audited by Gen Agent Trust Hub on Oct 6, 2026

Risk Level: MEDIUMCREDENTIALS_UNSAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [CREDENTIALS_UNSAFE]: The skill defines a --password command-line flag for PostgreSQL authentication. Entering sensitive credentials directly into command-line arguments is insecure because they may be recorded in shell history or visible to other users via process monitoring tools. While the tool supports the PGPASSWORD environment variable, the presence of the flag encourages an unsafe practice.
  • [COMMAND_EXECUTION]: The ingest command builds SQL COMMENT ON statements using string interpolation (fmt.Sprintf) without properly quoting schema and table identifiers. This lack of sanitization could allow for SQL injection attacks if a user processes a malicious Open Knowledge Format (OKF) bundle containing specially crafted table or column names.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process external Markdown files (OKF bundles) to update database metadata. This creates a surface for indirect prompt injection if an agent is directed to process a bundle from an untrusted source, potentially leading to unauthorized database modifications or context poisoning.
  • Ingestion points: The runIngest function in main.go reads all .md files within the tables subdirectory of the provided bundle path.
  • Boundary markers: The skill does not implement delimiters or safety instructions to distinguish between documentation content and potential malicious instructions within the ingested Markdown files.
  • Capability inventory: The skill possesses the ability to execute arbitrary SQL commands via db.Exec (when --sync is enabled) and perform file system operations such as creating directories and writing files.
  • Sanitization: The escapeString function only handles single-quote escaping for the comment values; it does not sanitize or quote the database identifiers (schema/table/column names) used in the SQL queries.
  • [EXTERNAL_DOWNLOADS]: The skill's setup instructions include downloading the connector binary via go install github.com/xSAVIKx/okf-skills/skills/okf-postgresql@v0.1.0. This is a download of external code; however, as it targets the repository of the skill's author, it is considered a vendor-managed resource.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 6, 2026, 02:02 PM