T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:31- Finding
Overly Broad Agent Tool Permissions Violate Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 31–34
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: MediumVulnerable Configuration
yaml tools: - read - exec - writeThe skill also describes generic file processing, external API integration, and system-command execution capabilities at lines 291–295 and 331–335, although its stated purpose is Azure infrastructure management through the Azure CLI.
Technical Analysis
The skill receives unrestricted
read,write, andexeccapabilities. Its legitimate Azure architecture workflows primarily require execution of Azure CLI commands and processing of their output. The configuration does not define:- Filesystem path restrictions for reading or writing.
- An allowlist of permitted executables or Azure CLI subcommands.
- Restrictions that make Azure operations read-only by default at the tool-enforcement layer.
- Network destination controls for the advertised API integration capability.
- A separate approval boundary for accessing local files unrelated to Azure operations.
Although the skill text states that resource mutations require confirmation, this is a documentation-level instruction rather than a technical restriction on the granted tools. The
execandwritepermissions remain broadly available to the agent. Consequently, prompt manipulation, ambiguous user instructions, or untrusted command output could induce operations outside the skill's intended Azure-management boundary.No evidence was found that the skill actively exploits these permissions, steals credentials, or executes a malicious payload. The vulnerability is the excessive privilege boundary itself.
Attack Path
- A user loads the skill, granting it
read,write, andexectools. - The agent processes a crafted Azure-related request or untrusted content presented as operational instructions.
- The c ...[truncated 1499 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
writecapability unless a documented workflow strictly requires local file modification. - Restrict file reads and writes to explicit, user-approved paths inside a dedicated workspace.
- Constrain command execution to the Azure CLI executable and an allowlist of required subcommands.
- Enforce read-only Azure commands by default through technical policy rather than relying only on natural-language instructions.
- Require scoped, explicit confirmation immediately before every filesystem write, Azure mutation, or non-read-only command.
- Run the skill under a dedicated low-privilege operating-system account and a minimally privileged Azure identity.
- Apply Azure RBAC at the narrowest practical subscription, resource-group, or resource scope.
- Block generic outbound network access and allowlist only required Azure management endpoints.
- Remove unsupported generic file-processing and API-integration claims, or document and constrain each required capability.
- Log tool invocations with secret redaction and record the executable, arguments, target subscription, affected resources, and approval event.
- Treat Azure CLI output and user-supplied resource metadata as untrusted data that must never be interpreted as agent instructions.
- Remove the
