Back to skill

Security audit

Preqstation

Security checks for vulnerabilities and agentic risk

Overview

This skill is a real coding-task delegator, but it defaults to broad triggering and sandbox-disabled local command execution that users should review carefully before installing.

Install only if you intentionally want this skill to start local coding-agent CLIs that can modify mapped repositories and run in the background. Before use, require an explicit invocation, confirm the resolved project path, branch, worktree, engine, and execution mode, and avoid sandbox-disabled execution unless the workspace and agent inputs are trusted.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:178
Finding

Shell Command Injection Through Unescaped Prompt and Branch Interpolation

Content
View full analysis
Project Key: Branch Name: User Objective: Execution Requirements: 1) Work only inside . 2) Complete the requested work. 3) Use branch for commits/pushes when provided. 4) After completion, return a short completion summary. ``` ```bash bash pty:true workdir: command:"claude --dangerously-skip-permissions ''" ``` ```bash bash pty:true workdir: command:"codex exec --dangerously-bypass-approvals-and-sandbox ''" ``` ```bash bash pty:true workdir: command:"GEMINI_SANDBOX=false gemini -p ''" ``` ### Technical Analysis The skill inserts the user-controlled objective and partially user-controlled branch name into ``, then embeds that prompt inside a single-quoted shell argument. It does not specify any escaping or argument-safe process execution. A single quote in the objective can terminate the shell argument. Subsequent text is then interpreted by the shell rather than passed to the coding agent. The same general risk affects other interpolated values, including branch names and paths, where placeholders are inserted into shell command strings without robust quoting. The branch-name checks only reject `..`, a leading slash, and an empty value. They do not constitute shell metacharacter validation and are not a substitute for avoiding shell interpolation. This issue is especially severe because all documented engine invocations disable their respective permission or sandbox controls. ### Attack Path 1. An attacker supplies a PREQSTATION task whose objective contains a quote followed by shell syntax, for example: ```text preq: update documentation'; id > /tmp/preqstation-proof; # ``` 2. The ski ...[truncated 1288 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:193
Finding

Mandatory Disabling of Coding-Agent Permission and Sandbox Controls

Content
View full analysis
command:"claude --dangerously-skip-permissions ''" ``` ```bash bash pty:true workdir: command:"codex exec --dangerously-bypass-approvals-and-sandbox ''" ``` ```bash bash pty:true workdir: command:"GEMINI_SANDBOX=false gemini -p ''" ``` ### Technical Analysis The skill deliberately and systematically disables the security boundaries of every supported coding engine: - Claude permission checks are skipped. - Codex approvals and sandboxing are bypassed. - Gemini sandboxing is disabled. The documented safeguards—using a worktree, setting a working directory, and telling the agent to work only inside that directory—are procedural instructions, not operating-system enforcement. A process started in a worktree can still access other files, environment variables, credentials, network resources, and executables available to the parent user. The user objective is supplied to a general-purpose coding agent and may contain adversarial instructions. Repository content in the worktree can also contain prompt-injection material that the coding agent may follow. With permission controls disabled, either input source can cause effects outside the legitimate task scope without an approval checkpoint. ### Attack Path 1. A user requests a coding task, or an a ...[truncated 1406 chars]
Remediation
View remediation

T01 · Skill Instruction Hijacking

Warning
Location
SKILL.md:11
Finding

Overbroad Highest-Priority Trigger Can Hijack Unrelated Request Routing

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The README directs activation through broad natural-language cues such as 'just talk to OpenClaw' and prioritizing the skill whenever a message includes 'preq' or 'preqstation'. Because this skill launches coding-agent CLIs, creates worktrees, and defaults to background execution, loose matching can cause unintended invocation from ambiguous user text and trigger code-running workflows without sufficiently explicit user consent.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill defaults to creating per-task git worktrees and launching engine commands with pty/background execution, but the description does not clearly warn users that code may begin running asynchronously in a derived workspace. This creates a transparency and consent problem: users may believe they are requesting ordinary assistance while the skill initiates longer-lived execution sessions that can modify code or consume resources outside the immediate conversational turn.

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

md
2. Respect the engine the user requested. If unspecified, default to `claude`.
3. Do not kill sessions only because they are slow; poll/log first.
4. Never launch coding agents in `~/clawd/` or `~/.openclaw/`.
5. Treat resolved project path as a primary checkout source only; create a git worktree before launching any coding agent.
6. Never run coding-agent commands in the primary checkout path.
7. PR review must run in a temp clone or git worktree, never in a live primary checkout.
8. Keep execution scoped to resolved worktree `<cwd>` only.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill directs updates to MEMORY.md with absolute local workspace paths, which can store sensitive filesystem layout information and persist it beyond the immediate task. This is especially risky because the skill also says to update mappings automatically during missing-project resolution, potentially modifying local state and recording path data without a clear warning or separate consent step.

Content

No source excerpt is available for this finding.

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
95% confidence
Finding

The Gemini command explicitly disables sandboxing with GEMINI_SANDBOX=false, making unsafe execution the default for that engine. In the context of a skill designed to run delegated coding tasks from natural-language requests, this materially increases the blast radius of prompt injection, unsafe tool use, or unintended file/system modification.

Content

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

Gemini CLI

bash
bash pty:true workdir:<cwd> command:"GEMINI_SANDBOX=false gemini -p '<rendered_prompt>'"

Bash execution interface (required)

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill instructs the delegated coding agent to execute openclaw system event, which extends the agent’s authority from code delegation into host-level notification/event emission. Even though the command appears limited to completion signaling, it creates an additional side-effecting capability on the host and establishes a pattern where spawned agents are told to run local control-plane commands.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.