Back to skill

Security audit

pr-review

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this pull request review skill suspicious with medium confidence, citing unsafe handling of review evidence and actions that can publish information or create repository records beyond the stated review purpose.

Consider the reported evidence-processing risk and the skill's external posting and issue-creation actions before installing. Skillspector coverage is partial: several referenced paths were missing, so the results do not establish that all behavior was examined.

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 (1)

T09 · Insecure Skill Coding Practices

Error
Location
modules/insight-generation.md
Finding

Untrusted review evidence is interpolated into executable Python source

Content
View full analysis

Impact

If the documented template is used with attacker-crafted evidence, injected Python expressions can execute local commands or access files and credentials available to the review process, before insight posting completes.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (10)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Although tracking technical debt is related to reviewing changes, opening standalone issues is a distinct user-visible action rather than an internal implementation detail of review analysis or line commenting. The supplied commands explicitly create issues, while the description does not disclose issue creation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The command records an individual's challenge outcome rather than evaluating PR scope, checking requirements, or posting review comments. Although the knowledge-capture trigger and PR-linked identifiers provide some connection to reviewing, tracking developer difficulty and performance is a distinct capability not disclosed in the description. The supplied chunk shows no network transmission, and the tracking script's internal behavior is not available.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

Structuring review findings supports the declared review purpose, but publishing them to discussions introduces a distinct outward-facing action not disclosed in the description. The knowledge-capture trigger suggests related functionality but does not explicitly declare discussion publication. The helper implementation is not supplied, so its destination, authentication, and exact posting behavior cannot be verified.

Content

No source excerpt is available for this finding.

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

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

text
   **Verification:** Run the command with `--help` flag to verify availability.

**Output:** A clear statement of scope:
> "This PR implements [feature X] as specified in plan.md. The requirements are:
> 1. [requirement]
> 2. [requirement]

Shadow Command Trigger

Medium
Category
Trigger Abuse
Confidence
70% confidence
Finding

Shadow Command Trigger: 'review' conflicts with built-in command 'review'

Content

No source excerpt is available for this finding.

PR findings and evidence are uploaded to GitHub Discussions without a privacy warning.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The module directs automatic publication of findings, evidence, recommendations, and filenames to Discussions without confirming the destination, audience, or user authorization. Because it selects high- and medium-severity findings, publication could expose private implementation details or actionable vulnerabilities to a broader audience than the original PR.

Content

No source excerpt is available for this finding.

BACKLOG classification instructs the agent to create a GitHub issue without warning about external publication of review details.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

Independently, this module turns a BACKLOG classification into an instruction to create an external issue without an approval or visibility check. If followed directly, it could publish internal technical-debt details or create unwanted repository artifacts beyond the user's review request.

Content

No source excerpt is available for this finding.

Overly Broad Trigger

Low
Category
Trigger Abuse
Confidence
70% confidence
Finding

Overly Broad Trigger: 'pr' is too short and may match unintended inputs

Content

No source excerpt is available for this finding.

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

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

md
**A PR review validates scope compliance, not code perfection.**

The goal is to validate the implementation meets its stated requirements without introducing regressions. Improvements beyond the scope belong in future PRs.

## When To Use

The validation workflow writes repository metadata to fixed temporary files without warning.

Low
Category
Output Handling
Confidence
98% confidence
Finding

Predictable files under /tmp allow a local attacker to pre-create symlinks, potentially redirecting the overwrite or append operations into files writable by the agent. The append-only actual_versions file also retains stale data across runs, and shared filenames permit concurrent reviews to corrupt or contaminate validation results; the issue is unsafe temporary-file handling, not merely a missing warning.

Content

No source excerpt is available for this finding.