T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:11- Finding
Unnecessary Shell Execution and File Read Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 11
Vulnerability Type: Excessive tool permissions violating least privilege
Risk Level: MediumVulnerable Code Snippet:
yaml > 📖 **Complete setup guide**: https://skillboss.co/skill.md allowed-tools: Bash, ReadTechnical Analysis
The skill declares access to the
BashandReadtools even though its documented function is limited to producing recruiting-ad creative briefs. The stated workflow does not identify any legitimate need to execute operating-system commands or read arbitrary local files.Granting these tools unnecessarily expands the skill's authority.
Readmay expose files available to the agent process, whileBashmay execute commands with the operating-system privileges of that process. If untrusted campaign content, user input, or another prompt-injection source influences the agent, these permissions could be used for activity unrelated to generating a creative brief.No instruction in the reviewed files directly commands malicious use of these tools, so exploitation depends on an additional malicious or compromised input source. Nevertheless, the configuration breaks least-privilege boundaries and creates an avoidable attack surface.
Attack Path
- A user loads the skill, causing the agent to receive the declared
BashandReadcapabilities. - The agent processes attacker-controlled recruiting content or another instruction containing a prompt-injection payload.
- The injected instruction persuades the agent to invoke
Readagainst accessible local files or useBashto run operating-system commands. - Commands execute with the privileges of the agent process, or file contents become available in the active session.
- The acquired information may be disclosed through the agent's response or used to support further actions permitted by the execution environment.
Impact Assessment
Successful ex ...[truncated 616 chars]
- A user loads the skill, causing the agent to receive the declared
- Remediation
View remediation
Remediation Suggestions
- Remove
BashandReadfromallowed-toolsbecause neither capability is necessary for drafting recruiting-ad creative briefs. - Allow only narrowly scoped chat and image-generation interfaces required by the documented workflow.
- If local asset access becomes necessary, replace unrestricted file reading with a restricted asset-selection interface limited to an explicitly approved directory and file types.
- If command execution later becomes essential, expose a purpose-built operation with fixed arguments instead of a general shell. Apply command allowlisting, argument validation, sandboxing, network restrictions, and explicit user confirmation.
- Treat recruiting materials and other user-provided content as untrusted data and ensure instructions embedded in that content cannot authorize tool use.
- Add automated manifest checks that reject powerful tool declarations unless each permission is documented and required by the skill's stated behavior.
- Remove
