T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:30- Finding
Overprivileged Generic Tool Access Exceeds the Azure Management Scope
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:30-33
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeThe following supporting declarations in
SKILL.md:349-353broaden these capabilities beyond Azure CLI operations:markdown ## Core Features - **Automated execution**: Through local Azure - **File processing**: Supports reading, parsing, and writing multiple file formats - **API integration**: Processes responses through standardized calls to external services - **Command execution**: Executes system commands in a secure sandbox and collects results - **Information retrieval**: Quickly searches and filters target dataTechnical Analysis
The Skill's stated purpose is to query and manage Azure resources through the local
azcommand. However, it requests unrestricted genericread,write, andexeccapabilities and advertises generic file processing, system command execution, and external API integration.No command allowlist, filesystem path restriction, network destination restriction, or explicit prohibition against executing non-Azure commands is defined. The documented confirmation control applies primarily to Azure write and destructive operations; it does not clearly require confirmation before reading or modifying unrelated local files or running non-Azure operating-system commands.
This violates the principle of least privilege. A request interpreted as troubleshooting, file processing, or API integration could cause the agent to exercise permissions unrelated to Azure infrastructure management.
Attack Path
- An attacker supplies an instruction containing Azure-related terminology so that the Skill is activated.
- The instruction frames a local filesystem or operating-system action as necessary for Azure diagnostics, configuration processing, or ...[truncated 1551 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
readandwriteunless a documented Azure workflow strictly requires filesystem access. - Replace unrestricted
execwith a constrained Azure CLI executor that permits only reviewedazsubcommands and arguments. - Reject shell metacharacters, command substitution, pipelines, redirections, and chained commands when constructing CLI invocations.
- Pass validated arguments directly to a process API rather than constructing shell command strings.
- Restrict filesystem access to explicitly approved configuration and output directories, using canonical-path validation to prevent traversal.
- Restrict outbound communication to documented Microsoft Azure endpoints; remove generic external API integration if it is unnecessary.
- Extend the confirmation policy to all out-of-scope local reads, writes, command executions, and network requests—not only Azure resource changes.
- Display the exact executable, argument array, target resources or files, network destination, and anticipated impact before approval.
- Run the Skill in a sandbox with minimal filesystem permissions, restricted environment-variable access, and Azure RBAC roles limited to the required tasks.
- Add explicit instructions prohibiting access to Azure CLI token caches, credentials, SSH keys, shell profiles, and unrelated project files.
- Remove
