The skill is vulnerable to command and K
Claims to do
Azure Diagnostics: > **AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE** > > This document is the **official source** for debugging and troubleshooting Azure production issues. Follow these instructions to diagnose and resolve common Azure service problems systematically.
Actually does
The skill executes Azure CLI commands to retrieve resource details, list activity logs, and query logs for Container Apps and Function Apps via App Insights. It also invokes internal `mcp_azure_mcp_applens`, `mcp_azure_mcp_monitor`, and `mcp_azure_mcp_resourcehealth` tools for AI-powered diagnostics, log/metric querying, and resource health checks, utilizing provided resource IDs, resource groups, and KQL queries.
The skill provides Azure CLI commands with placeholders (e.g., `RESOURCE_ID`, `RG`). If these placeholders are populated directly from unsanitized user input, it could lead to command injection, allowing arbitrary command execution.
az resource show --ids RESOURCE_ID
The `mcp_azure_mcp_monitor` tool accepts a `query` parameter for KQL. If this parameter is populated directly from unsanitized user input, it could allow for malicious KQL injection, leading to resource abuse or unintended data access.
query: "<KQL-query>"
The skill defines and uses custom `mcp_azure_mcp_` tools that allow querying and diagnosing various Azure resources by `resourceId`. While intended for diagnostics, this capability grants broad access to resource information, requiring strict access controls on the agent's underlying identity.
mcp_azure_mcp_applens
[](https://mondoo.com/ai-agent-security/skills/github/microsoft/azure-skills/azure-diagnostics)<a href="https://mondoo.com/ai-agent-security/skills/github/microsoft/azure-skills/azure-diagnostics"><img src="https://mondoo.com/ai-agent-security/api/badge/github/microsoft/azure-skills/azure-diagnostics.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/microsoft/azure-skills/azure-diagnostics.svgSkills can read files, run commands, and access credentials. Mondoo helps organizations manage the security risks of AI agent skills across their entire fleet.