Back to skill

Security audit

Improve Doc

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent documentation-editing skill, with the main practical risk that accepted edits are saved back into the original Markdown file.

Install this for interactive documentation cleanup when you are comfortable letting the agent read and edit the target Markdown file. For important docs, keep version control or a backup and ask to review the final diff before allowing the original file to be overwritten.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
>
> 3. Configure environment variables
>    ```bash
>    cp .env.example .env
>    ```
>
> 4. Start the server

Instruction Override

High
Category
Prompt Injection
Confidence
70% confidence
Finding

This pattern attempts to override system instructions or ignore safety constraints. Without LLM analysis, manual review is recommended.

Content

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

md
> | Option | Type | Default | Description |
> |--------|------|---------|-------------|
> | port | number | 3000 | Server port |
> | debug | boolean | false | Enable debug mode |
>
> Now let's configure each one step by step...

Self-Modification

High
Category
Rogue Agent
Confidence
98% confidence
Finding

The skill explicitly performs self-directed file modification by overwriting the original document after an interactive workflow. Even though the target is user-specified and the behavior is the skill's purpose, it is still a real write capability that can damage content if the path is wrong, if section preservation fails, or if the user misunderstands the consequences.

Content

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

md
1. **Build updated content** from accepted changes
2. **Preserve unchanged sections** exactly as they were
3. **Overwrite original file** with updated content

### Step 5: Report Results

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
- Includes explanatory tangents
- Missing prerequisites
- Steps not atomic (multiple actions per step)
- No verification that goal was achieved

**Reference issues:**
- Missing parameter types or return values

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill instructs the agent to overwrite the user-supplied target file in place, but it does not require creating a backup or obtaining a final confirmation immediately before the destructive write. This creates a real integrity and data-loss risk if the analysis/refinement is wrong, incomplete, or applied to the wrong path.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.