T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:8- Finding
Skill Requests Unnecessary Command Execution and Write Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:8
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: MediumVulnerable Code
yaml allowed-tools: [Bash, Read, Write, Exec]Technical Analysis
The Skill declares unrestricted Bash, command-execution, file-read, and file-write capabilities. Its stated purpose is to review financial marketing material using bundled reference files and a local checker. General-purpose
Bash,Exec, andWriteprivileges are broader than the documented workflow requires.No instruction in the reviewed Skill currently uses these permissions maliciously. The risk arises because the excessive permissions enlarge the impact of any future prompt-injection flaw, compromised reference content, or unsafe modification to the Skill. If the hosting Agent grants the declared tools, attacker-controlled marketing text may be processed in a session that already has command-execution and filesystem-modification capabilities.
Attack Path
- The Skill is loaded and the host grants the tools listed in
allowed-tools. - An attacker supplies adversarial marketing content or another untrusted document for review.
- The content attempts to induce the Agent to invoke Bash, Exec, or Write rather than treating the content strictly as data.
- If instruction boundaries fail, the Agent can execute commands or modify files using permissions unrelated to compliance review.
- The resulting scope depends on the operating-system privileges and sandbox assigned to the Agent process.
Impact Assessment
This declaration does not itself prove arbitrary command execution, and no malicious command was found in the project. Nevertheless, successful exploitation of a separate instruction-injection weakness could provide:
- Command execution with the privileges of the Agent process.
- Modification of files writable by that process.
- Access to local files readable by that process.
- A ...[truncated 243 chars]
- The Skill is loaded and the host grants the tools listed in
- Remediation
View remediation
Remediation Suggestions
- Remove
Bash,Exec, andWriteunless a concrete workflow requires them. - Prefer a read-only declaration limited to bundled project references.
- If local execution is necessary, expose only the specific checker entry point rather than a general shell.
- Run the checker in a sandbox with:
- No network access.
- A read-only project directory.
- No access to credentials or user home directories.
- A dedicated unprivileged operating-system account.
- Treat reviewed marketing material, linked content, and uploaded files strictly as untrusted data.
- Require explicit user confirmation before any operation that writes files or executes commands outside the checker.
- Remove
