T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:9- Finding
Unnecessary Bash Permission Violates Least-Privilege Boundaries
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 9
Vulnerability Type: Excessive tool permission
Risk Level: MediumVulnerable Code:
yaml allowed-tools: Bash, ReadTechnical Analysis
The Skill grants access to
Bash, although its documented workflow is limited to clarifying advertising requirements, generating a creative brief, enriching assets, and refining output. No documented step requires operating-system command execution.Granting Bash access expands the Skill's authority beyond its stated business purpose. If malicious, misleading, or otherwise untrusted task content influences the agent, the shell permission may provide a channel for executing commands on the host. The practical severity depends on the runtime's sandboxing, user privileges, command-approval controls, and network restrictions.
Attack Path
- A user loads the Skill, granting it the tools declared in
allowed-tools. - The agent receives adversarial or compromised campaign content containing instructions to invoke shell commands.
- The agent uses the unnecessarily available Bash tool.
- Commands execute with the privileges and environmental access of the agent runtime.
- Depending on runtime controls, the commands could read accessible files, modify workspace data, launch processes, or initiate network requests.
Impact Assessment
Successful exploitation could expose any files, environment data, commands, and network resources available to the agent's operating-system identity. It could also permit modification or deletion of writable data. This project does not itself contain a malicious command or demonstrate privilege escalation to an administrator account; the risk arises from excessive capability combined with potentially untrusted future input.
- A user loads the Skill, granting it the tools declared in
- Remediation
View remediation
Remediation Suggestions
- Remove
Bashfromallowed-toolsbecause it is not required by the documented workflow. - Grant only the minimum tools necessary for text and image generation.
- If shell access becomes necessary for a future feature, replace unrestricted Bash access with narrowly scoped operations and an explicit command allowlist.
- Run any required command in a sandbox with restricted filesystem access, blocked outbound networking by default, low operating-system privileges, and execution time limits.
- Require explicit user confirmation before commands that write files, access sensitive locations, install software, or use the network.
- Remove
