Back to skill

Security audit

Sql Coder Cli

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence because its workflow may send sampled real database values to an external model provider without a disclosure or approval gate.

Review the data flow before installing or using it with a real database. Confirm whether sampled values are sent to a model provider, which provider and endpoint are used, and whether you have approval to share that data; prefer disabling real-row sampling or using only approved, non-sensitive data. Scanning covered all four listed components, but reference resolution was partial for many paths, so some referenced files or runtime outputs could not be checked and the evidence is incomplete.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

The workflow samples real database values for model input without warning that they may be transmitted to an external model provider.

High
Category
Output Handling
Confidence
94% confidence
Finding

The default scan samples 50 real rows into a semantic file described as model input, while the workflow supports external model providers without a disclosure or data-approval gate. This can expose personal or confidential database values to the configured provider; read-only access prevents writes but does not protect confidentiality, and actual exposure depends on the semantic content and endpoint used.

Content

No source excerpt is available for this finding.

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 · README.md (reported line 34)May include surrounding context.

WorkBuddy, user level (available in every project):

bash
mkdir -p ~/.workbuddy/skills/sql-coder-cli
cp SKILL.md ~/.workbuddy/skills/sql-coder-cli/SKILL.md

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 35)May include surrounding context.

bash
mkdir -p ~/.workbuddy/skills/sql-coder-cli
cp SKILL.md ~/.workbuddy/skills/sql-coder-cli/SKILL.md

WorkBuddy, project level (shared with the repository):

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 42)May include surrounding context.

bash
mkdir -p .workbuddy/skills/sql-coder-cli
cp SKILL.md .workbuddy/skills/sql-coder-cli/SKILL.md

Claude Code:

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 49)May include surrounding context.

bash
mkdir -p .claude/skills/sql-coder-cli
cp SKILL.md .claude/skills/sql-coder-cli/SKILL.md

Codex, user level (every repository):

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 56)May include surrounding context.

bash
mkdir -p ~/.codex/skills/sql-coder-cli
cp SKILL.md ~/.codex/skills/sql-coder-cli/SKILL.md

Codex, repository level (committed with the project, shared with the team):

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 63)May include surrounding context.

bash
mkdir -p .agents/skills/sql-coder-cli
cp SKILL.md .agents/skills/sql-coder-cli/SKILL.md

Codex reads skills from $CODEX_HOME/skills (default ~/.codex/skills) and, inside a repository, from every .agents/skills directory between the working directory and the repository root. When both a user-level and a repository-level skill share a name, Codex lists both rather than merging them.

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 · README.md (reported line 56)May include surrounding context.

bash
mkdir -p ~/.codex/skills/sql-coder-cli
cp SKILL.md ~/.codex/skills/sql-coder-cli/SKILL.md

Codex, repository level (committed with the project, shared with the team):