T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:12- Finding
Excessive Workspace Modification Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 12–18
Vulnerability Type: Excessive tool permissions violating least privilege
Risk Level: MediumVulnerable Code
yaml allowed-tools: - Read - Write - Edit - Grep - Glob - AskUserQuestionTechnical Analysis
The Skill's documented purpose is to transform user-provided text into an exaggerated AI writing style. Its workflow requires reading the packaged reference material and generating a response, but it does not document any legitimate need to modify project or workspace files.
Nevertheless, the
allowed-toolsconfiguration grants bothWriteandEdit. These tools expand the Skill's authority from read-only text processing to filesystem modification. This violates the principle of least privilege and increases the consequences of instruction confusion, adversarial user input, or future malicious changes to the Skill's instructions.No reviewed instruction currently directs the agent to exercise these modification capabilities. The finding concerns unnecessary permission exposure rather than confirmed file tampering.
Attack Path
- The agent loads the Skill and receives the tools declared in
allowed-tools. - The Skill consequently has access to
WriteandEdit, despite its text-transformation purpose. - An adversarial prompt, misinterpreted request, or later compromised instruction convinces the agent to treat workspace content as transformation output or otherwise requests a file change.
- The agent invokes
WriteorEditunder the Skill's existing authority. - Source files, configuration, documentation, or other accessible workspace content may be altered without that capability being necessary for the Skill's intended function.
Impact Assessment
Successful exploitation could permit modification or replacement of files available within the agent's workspace authorization boundary. Potential effects include source-code corruption, c ...[truncated 388 chars]
- The agent loads the Skill and receives the tools declared in
- Remediation
View remediation
Remediation Suggestions
Apply least privilege by removing filesystem modification tools from the Skill:
yaml allowed-tools: - ReadAdditional hardening measures:
- Retain
GrepandGlobonly if reference discovery cannot be handled through fixed, read-only paths. - Retain
AskUserQuestiononly if interactive clarification is part of a documented workflow. - Enforce a read-only filesystem sandbox when this Skill is active.
- If a future feature legitimately requires generated text to be saved, request write access only for that explicit operation and restrict it to a dedicated output directory.
- Add regression checks that reject changes introducing
Write,Edit, shell execution, network access, or other expanded capabilities without documented justification and security review.
- Retain
