T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:22- Finding
Unnecessary Command-Execution Permission Violates Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 22-25
Vulnerability Type: Excessive tool permission
Risk Level: LowVulnerable Code
yaml tools: - read - exec - writeThe inconsistency is confirmed by the skill's runtime description at lines 297-298:
markdown ### Availability Classification - **Classification**: MD (pure Markdown instruction-driven, no exec command-line capability required) - **Description**: Markdown-based AI skill that uses natural-language instructions to direct the agent to perform compression and validationTechnical Analysis
The skill declares access to the
exectool even though its documented functionality consists solely of semantic text compression, anchor extraction, reconstruction, validation, and optional file input or output. The skill explicitly states that command-line execution is unnecessary.Requesting
execexceeds the minimum permissions required for the stated task. If the hosting agent grants tools according to this metadata, loading or activating the skill may expose a general command-execution channel that is unrelated to text compression.The reviewed skill contains no instruction that actively invokes
exec; therefore, this is an excessive-permission weakness rather than evidence of current malicious command execution. Exploitation would require an additional malicious or attacker-controlled instruction source, such as prompt injection in processed content or a later compromise of the skill instructions.Attack Path
- A user installs or activates the skill.
- The agent platform reads the declared
toolsmetadata and grants the skill access toexec. - The skill processes attacker-controlled text or encounters another compromised instruction source.
- The malicious content attempts to redirect the agent into invoking
exec. - If the platform does not independently enforce strict tool authorization and command sandboxing, commands execute with the ...[truncated 592 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
execfrom the declared tool list:
yaml tools: - read - write- If users provide text directly and no files must be stored, consider removing
readandwriteas well. - Enforce tool permissions at runtime rather than trusting skill metadata alone.
- Require explicit user approval before granting command execution to any skill.
- If command execution is introduced in a future version, document the exact commands and use cases, restrict executable paths and arguments with an allowlist, run commands in a sandbox with minimal operating-system privileges, and prevent access to secrets and unrelated files.
- Remove
