Back to skill

Security audit

Use when user input is vague, underspecified, lacks boundaries or acceptance criteria, or would benefit from being reframed into a more executable prompt before work begins. Also use when user explicitly asks to optimize/refine/improve a prompt.

Security checks for vulnerabilities and agentic risk

Overview

This prompt-refinement skill is coherent and non-executable, with some ambiguity around auto-applying rewritten prompts that users should watch.

This skill is reasonable to install if you want prompts clarified before work begins. Be aware that 'just do it' is ambiguous in the instructions; use explicit wording such as 'show me the refined prompt first' or 'do not refine this' when you want a specific flow.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill description is broad enough to trigger on common user requests like improving, optimizing, or clarifying inputs, which can cause the skill to activate outside a narrowly scoped prompt-refinement context. Overbroad routing increases the chance of unintended interception of requests and can alter execution flow or user intent without a clearly bounded handoff.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Using vague phrases like 'just do it' as an auto-apply trigger is dangerous because such language is common in normal conversation and may not reflect informed consent to bypass confirmation. This can cause the skill to execute a refined prompt immediately when the user merely intended to proceed generally, not to waive review of the transformed prompt.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The auto-apply mode permits the skill to refine a prompt and immediately proceed without confirmation, which is a form of autonomous decision-making over user instructions. Because prompt refinement can materially alter scope, constraints, or output expectations, immediate execution reduces the user's opportunity to detect unwanted changes before downstream actions occur.

Content

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

md
## Continue Modes

1. **Popup-confirm (default)** — Show refined prompt, popup to choose refined vs original, execute after choice
2. **Auto-apply** — When user says "just do it / skip confirmation", show refined then execute immediately
3. **Optimize-only** — When user only asks to refine without executing, return refined result only

## When NOT to Use

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The continue-mode activation relies on ambiguous skip-confirmation phrases without strict boundaries, making it easy for ordinary user wording to be interpreted as consent to bypass review. In a skill that rewrites prompts and influences downstream actions, this ambiguity can silently change task instructions and reduce user oversight.

Content

No source excerpt is available for this finding.

Indirect Prompt Extraction

Medium
Category
System Prompt Leakage
Confidence
75% confidence
Finding

Skill contains patterns that could indirectly extract system prompts through rephrasing, translation, summarization, or side-channel techniques.

Content

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

md
## Integration with session-learner

- When user chooses refined or rejects it, this is a **preference signal** for `session-learner`.
- `session-learner` should only summarize rules (e.g., "user prefers seeing refined version before confirming"), never record full prompt text.
- Over time, `session-learner` builds a preference profile that makes `prompt-refiner` increasingly aligned with user habits.

## Priority Rules

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The markdown includes user-facing example prompts such as "帮我优化登录性能" and "帮我写个项目介绍" as the sole examples, which implicitly assumes a Chinese-language workflow. Because the file does not offer an opt-in language choice or explain that it is intentionally limited to Chinese users, this creates a language/locale policy concern.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.