Skills/ClawHub/pg-memory

pg-memory@2.7.3

CAUTION· static only

Publisher claims: "PostgreSQL-based structured memory system for OpenClaw agents with pre/post-compaction integration, dual-write capability, and full context preservation. Pri..." Observed in sandbox: static analysis only — behavior not yet observed.

Registry ClawHubPublisher pottertech · publishing for 257 daysInstalls 637Last detonated 33 min ago

Coverage

Static only; nothing was run yet.

The label rests on the code, the instruction files and the publisher. The honeypot run replaces this verdict when it completes.

Is [email protected] safe to install?

KillerSkills analysed it statically (a sandbox run is pending) on 2026-11-16 and scored it 54/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Privileged sudo command; Privileged sudo command; Privileged sudo command. Summary: static analysis only — behavior not yet observed.

Behavior trace

Queued for honeypot run · static analysis only
t+CategoryObserved action

This version has not been detonated yet. The score above counts behavior as unknown (50/100), so it cannot read Verified until the honeypot run completes and replaces this verdict.

Static findings

HIGH
Privileged sudo commandserver-setup.sh:72 · Privileged sudo command — agent may execute with elevated privilegessudo apt updateFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandserver-setup.sh:73 · Privileged sudo command — agent may execute with elevated privilegessudo apt install -y postgresql-$PG_VERSION postgresql-contrib-$PG_VERSIONFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Privileged sudo commandserver-setup.sh:79 · Privileged sudo command — agent may execute with elevated privilegessudo systemctl start postgresql-$PG_VERSIONFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
HIGH
Destructive file system command detectedSKILL.md:660 · Destructive file system command detectedrm -rf /opt/homebrew/var/postgresql@16Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandinstall.sh:194 · File permission modification command — agent changes file ownership/permissionschmod +x "$SCRIPT_DIR/scripts/pg-memory-cli" 2>/dev/null || trueFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
HIGH
Privileged sudo commandserver-setup.sh:78 · Privileged sudo command — agent may execute with elevated privilegessudo yum install -y postgresql$PG_VERSION-server postgresql$PG_VERSION-contribFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedscripts/pg_memory.py:2464 · Python subprocess execution detectedresult = subprocess.run(cmd, stdout=f, stderr=subprocess.PIPE, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
LOW
Instructs the agent to modify its persistent memory or instruction filesreferences/MEMORY_ARCHITECTURE.md:283 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file(Manually add to MEMORY.md)Fix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
HIGH
Privileged sudo commandserver-setup.sh:74 · Privileged sudo command — agent may execute with elevated privilegessudo systemctl start postgresqlFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedscripts/pg_memory.py:2460 · Python subprocess execution detectedresult = subprocess.run(cmd_str, shell=True, capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Privileged sudo commandinstall.sh:100 · Privileged sudo command — agent may execute with elevated privilegesprint_error "Please install PostgreSQL 18 manually: sudo apt install postgresql-18"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Instructs the agent to modify its persistent memory or instruction filesreferences/MEMORY_ARCHITECTURE.md:260 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file- [ ] Update MEMORY.md with curated learningsFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Python subprocess execution detectedscripts/pg_memory.py:1967 · Python subprocess execution detectedresult = subprocess.run(['ollama', 'list'], capture_output=True, text=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedscripts/pg_memory.py:2526 · Python subprocess execution detectedsubprocess.run(cmd, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedscripts/nl_query.py:154 · 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
File type combined with upload actionSKILL.md:935 · File type combined with upload action — agent may exfiltrate local data files- `scripts/init_memory_schema.sql` - Full PostgreSQL schemaFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
LOW
Instructs the agent to modify its persistent memory or instruction filesreferences/MEMORY_ARCHITECTURE.md:237 · Instructs the agent to modify its persistent memory or instruction files · informational: not an instruction file# Manually curate, add to MEMORY.mdFix: Remove the text that addresses the agent rather than the reader; describe behavior, do not instruct.
AST01
MEDIUM
Python subprocess execution detectedscripts/pg_memory.py:2536 · Python subprocess execution detectedsubprocess.run(cmd, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05

Cost to the agent

Instructions loaded
≈6,647 tok
1 file · 27 in bundle

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

Known vulnerabilities

Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.

What would make this Verified

26 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. Unclaimed publisher≈ +8 on the totalClaim pottertech: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  2. Privileged sudo command≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  3. Destructive file system command detected≈ +4 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  4. File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.
  5. Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
  6. File type combined with upload action≈ +2 on the totalRemove the call, or declare the host in frontmatter and explain in the README what is sent and why.
Publish a new version to ClawHub, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim pottertechPropose a patch to the maintainer