T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:13- Finding
Overly Broad Tool Permissions Violate Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 13
Vulnerability Type: Excessive tool authorization
Risk Level: MediumVulnerable Code
yaml allowed-tools: Read Edit Write Glob Grep Agent AskUserQuestionTechnical Analysis
The skill's documented workflow generates article hooks and titles, reads bundled reference files when needed, and asks the user to select an option. That workflow does not require filesystem mutation or sub-agent delegation.
Nevertheless, the configuration authorizes
Edit,Write, andAgent. These capabilities permit the skill to alter files and delegate work beyond its stated copywriting purpose.GlobandGrepalso permit broader workspace discovery than is necessary because all legitimate reference paths are known in advance.Granting unnecessary capabilities expands the consequences of adversarial user content, future instruction changes, or unintended agent behavior. The finding is a least-privilege violation; the audited content does not itself direct the agent to misuse these tools.
Attack Path
- The agent loads the skill with all tools declared on line 13.
- A user supplies an article draft or other untrusted content containing adversarial instructions.
- The agent mistakenly treats that content as operational guidance rather than source material.
- Because the skill has unnecessary search, write, editing, or delegation permissions, the agent can discover unrelated files, modify workspace content, or delegate actions outside the copywriting workflow.
- The resulting access or modification occurs with the permissions of the hosting agent process.
This path depends on the host honoring
allowed-toolsas an authorization boundary and on an additional instruction-following failure. No active exploit instructions were found in the audited project.Impact Assessment
Potential impact includes:
- Discovery of unrelated workspace file names or contents through broad search t ...[truncated 416 chars]
- Remediation
View remediation
Remediation Suggestions
Apply least privilege to the skill manifest:
yaml allowed-tools: Read AskUserQuestionFurther hardening should include:
- Remove
Edit,Write, andAgent, because the documented workflow does not require file mutation or delegation. - Remove
GlobandGrepunless a demonstrated workflow requires dynamic reference discovery. - Restrict
Read, where supported by the host, toSKILL.mdand the bundledreferences/directory. - Treat article drafts and all user-provided text strictly as data, never as tool instructions.
- Add tests confirming that hook and title generation succeeds with only the reduced permission set.
- Add a manifest-review check that rejects newly introduced tools unless their necessity and permitted scope are documented.
- Remove
