T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:12- Finding
Excessive Runtime Tool Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 12
Vulnerability Type: Excessive tool permissions that violate least privilege
Risk Level: MediumVulnerable Code:
yaml allowed-tools: Bash, ReadTechnical Analysis
The skill declares access to both
BashandRead, although its documented purpose is limited to generating and refining Facebook advertising copy and images. The workflow does not identify any legitimate requirement to execute shell commands or read arbitrary local files.This creates an unnecessary privilege boundary expansion. If attacker-controlled content, prompt injection, or a future modification to the skill instructions induces the agent to invoke these tools,
Readcould expose locally accessible files andBashcould execute commands with the privileges of the agent process.The reviewed files contain no direct shell invocation, malicious command, credential theft, persistence mechanism, or data-exfiltration instruction. Exploitation therefore depends on the tool-enabled agent following additional malicious or compromised instructions.
Attack Path
- The skill is loaded and grants the agent the unnecessary
BashandReadcapabilities. - The agent subsequently processes attacker-controlled advertising content or other untrusted instructions containing a prompt-injection payload.
- The payload directs the agent to inspect local files using
Reador execute commands usingBash. - If the agent follows the injected instructions and the surrounding runtime lacks adequate approval or sandbox controls, operations execute within the permissions of the agent process.
- Accessible local information could be disclosed through generated output, or shell commands could alter resources available to that process.
Impact Assessment
Successful exploitation could provide access to files readable by the agent process and command execution under that process ...[truncated 306 chars]
- The skill is loaded and grants the agent the unnecessary
- Remediation
View remediation
Remediation Suggestions
- Remove
BashandReadfromallowed-toolsbecause neither capability is required by the documented content-generation workflow. - Permit only the narrowly scoped chat and image-generation interfaces needed to produce the advertised output.
- If file input becomes necessary, introduce a restricted file-reading capability limited to explicit user-selected files rather than arbitrary filesystem access.
- Require explicit user confirmation before any command execution or sensitive-file access.
- Run the skill in a sandbox with minimal filesystem, process, credential, and network access.
- Treat advertising briefs and all externally supplied content as untrusted input, and prevent such content from authorizing tool calls or overriding system and skill constraints.
- Document every required tool and its precise operational purpose so future permission changes can be reviewed against least-privilege requirements.
- Remove
