Back to skill

Security audit

crew

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report that it can launch agents with safeguards disabled, accept workspace trust automatically, and generate a launcher with unsafe paths and injected shell commands.

Consider the verdict suspicious and review these risks carefully before installing. The scanners report that agent runs may lack sandboxing and approval checks, workspace trust may be accepted automatically, and a generated launcher may execute injected commands. Coverage was partial: although all five listed components were scanned, three local references could not be resolved, so the evidence is incomplete.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/crew.py
Finding

Project state controls the launcher destination without path containment

Content
View full analysis

Impact

The process can create or truncate any writable destination matching the appended -crew.command suffix, provided its parent exists, and then mark it executable. This can overwrite another project's launcher or place an executable outside the selected project.

T09 · Insecure Skill Coding Practices

Error
Location
scripts/crew.py
Finding

Newlines in project state inject shell commands into the generated launcher

Content
View full analysis

Impact

Opening the generated launcher executes attacker-selected shell commands with the user's privileges before the intended restore command.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (10)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Spawning collaborative agents does not require silently removing their sandbox and approval protections or deciding workspace trust on the user's behalf. Although the detailed documentation discloses these behaviors, ordinary spawn requests still trigger security-sensitive changes without explicit consent, increasing the consequences of malicious project content or agent messages.

Content

No source excerpt is available for this finding.

L41 defaults spawned Codex agents to unrestricted machine access with approval checks disabled, exceeding what tmux-based coordination requires.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The instructions make unrestricted Codex execution with approvals disabled the default unless the user explicitly requests sandboxing. In a multi-agent workflow processing repository content and peer messages, this turns an agent error or successful prompt injection into arbitrary command execution with the user's operating-system privileges.

Content

No source excerpt is available for this finding.

Codex agents are launched with unrestricted access and no approval prompts by default.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

agent_argv adds danger-full-access and disables approvals whenever the member's sandbox setting is false or absent. This also affects restored state, allowing agents exposed to project content and peer messages to execute commands outside workspace isolation without requesting approval.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/crew.py (reported line 39)May include surrounding context.

python
def run(*argv, stdin=None):
    r = subprocess.run(argv, capture_output=True, text=True, input=stdin)
    return r.returncode, r.stdout.strip()

Tainted flow: 'argv' from os.environ.get (line 44, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/crew.py (reported line 39)May include surrounding context.

python
def run(*argv, stdin=None):
    r = subprocess.run(argv, capture_output=True, text=True, input=stdin)
    return r.returncode, r.stdout.strip()

Agent startup automatically accepts workspace-trust dialogs without user confirmation.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

wait_ready inspects terminal output and sends navigation and confirmation keys until a workspace-trust dialog is accepted. This bypasses the user's opportunity to evaluate an unfamiliar repository before enabling trusted behavior, and terminal-text matching is not a reliable authorization mechanism.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/crew.py (reported line 236)May include surrounding context.

python
def osa(script, *argv):
    r = subprocess.run(["/usr/bin/osascript", "-", *argv], input=script,
                       capture_output=True, text=True)
    if r.returncode != 0:
        die("iTerm2 AppleScript 失败:" + r.stderr.strip())

Tainted flow: 'argv' from os.environ.get (line 461, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/crew.py (reported line 236)May include surrounding context.

python
def osa(script, *argv):
    r = subprocess.run(["/usr/bin/osascript", "-", *argv], input=script,
                       capture_output=True, text=True)
    if r.returncode != 0:
        die("iTerm2 AppleScript 失败:" + r.stderr.strip())

The agent introduction requires a Chinese-language acknowledgment without user opt-in.

Low
Category
Output Handling
Confidence
95% confidence
Finding

The injected introduction explicitly tells the spawned agent to reply only with “%s 就绪。” This prescribes Chinese output without offering a language choice or documenting a locale-specific justification.

Content

No source excerpt is available for this finding.