T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:7- Finding
Excessive Shell and Filesystem Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 7
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: MediumVulnerable Code:
yaml allowed-tools: Bash, ReadTechnical Analysis
The skill is designed to generate restaurant advertising creative briefs. Its documented workflow consists of gathering campaign requirements, drafting content, enriching supporting assets, and refining the output. This functionality does not inherently require arbitrary shell command execution or unrestricted access to local files.
Granting both
BashandReadviolates the principle of least privilege. If untrusted campaign content, retrieved material, or prompt-injection text influences the agent, the available tools could be used to inspect local files or execute operating-system commands outside the legitimate scope of creative-brief generation.Attack Path
- A user supplies campaign material containing malicious or adversarial instructions, or such instructions enter through externally sourced supporting content.
- The skill processes that content while retaining access to
ReadandBash. - The adversarial instructions induce the agent to read local configuration, credential, or project files.
- The agent may then invoke shell commands to enumerate the environment, process collected information, or perform other actions permitted by the host account.
- The resulting access extends beyond the skill's advertised creative-planning purpose.
Exploitation depends on the agent following malicious instructions, but the unnecessary permissions materially increase the consequences of such an instruction-level compromise.
Impact Assessment
Successful exploitation could expose any local files readable by the account running the agent and allow command execution with that account's privileges. The precise scope depends on the host sandbox and operating-system permis ...[truncated 245 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
BashandReadfromallowed-toolsbecause they are not required for the documented task. - Permit only the narrowly scoped chat and image-generation capabilities necessary to produce the creative brief.
- If reading a user-provided asset becomes necessary, use a restricted file-reading capability limited to an explicitly approved file or workspace directory.
- Require explicit user confirmation before accessing local resources.
- Run the skill in a sandbox with no access to credentials, sensitive environment variables, or unrelated project files.
- Add tests confirming that untrusted campaign content cannot trigger filesystem access or shell execution.
- Remove
