Back to skill

Security audit

Skill Builder

Security checks for vulnerabilities and agentic risk

Overview

This is a Markdown-only skill-writing guide whose file-writing and install-location references match its stated purpose of helping users create Agent Skills.

Before installing, note that this skill is intended to help an agent create or edit skill files and explain how to place them in an agent skills directory. Use it when you actually want skill-building assistance, and review generated skills before installing or reloading them.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/skill-builder-guide.md (reported line 8)May include surrounding context.

Workflow Overview

text
1. Gather Requirements → 2. Design Structure → 3. Write SKILL.md → 4. Add Supporting Files → 5. Validate → 6. Test

Instructions

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/skill-builder-guide.md (reported line 54)May include surrounding context.

Workflow Overview

text
1. Gather Requirements → 2. Design Structure → 3. Write SKILL.md → 4. Add Supporting Files → 5. Validate → 6. Test

Instructions

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 · references/skill-builder-guide.md (reported line 8)May include surrounding context.

Workflow Overview

text
1. Gather Requirements → 2. Design Structure → 3. Write SKILL.md → 4. Add Supporting Files → 5. Validate → 6. Test

Instructions

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
85% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/skill-builder-guide.md (reported line 282)May include surrounding context.

md
After creating the skill:

1. **Place in correct location** for your agent (e.g. a personal or project-level skills directory such as `~/.claude/skills/skill-name/SKILL.md`, `.claude/skills/skill-name/SKILL.md`, or `~/.agents/skills/skill-name/SKILL.md` — follow your harness's convention).

2. **Reload the agent** so it discovers the skill.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/skill-builder-guide.md (reported line 282)May include surrounding context.

md
After creating the skill:

1. **Place in correct location** for your agent (e.g. a personal or project-level skills directory such as `~/.claude/skills/skill-name/SKILL.md`, `.claude/skills/skill-name/SKILL.md`, or `~/.agents/skills/skill-name/SKILL.md` — follow your harness's convention).

2. **Reload the agent** so it discovers the skill.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The description says the skill should be used when "designing or refining skills, prompts, references, or supporting files," which is broad and lacks clear boundaries or exclusion conditions. This could match a wide range of everyday authoring requests, especially around prompts or supporting files, causing unintended invocation.

Content

No source excerpt is available for this finding.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown guide uses the example user input "Help me extract text from this PDF" as a trigger test, and earlier encourages including trigger keywords users would naturally say. The phrase "help me" is a very common conversational opener, so presenting it as part of trigger matching risks normalizing overly broad activators that could collide with ordinary requests.

Content

No source excerpt is available for this finding.