The skill risks command injection via `az graph query`
Claims to do
Azure Resource Lookup: List, find, and discover Azure resources of any type across subscriptions and resource groups. Use Azure Resource Graph (ARG) for fast, cross-cutting queries when dedicated MCP tools don't cover the resource type.
Actually does
This skill primarily uses the Azure CLI command `az graph query` to list and find Azure resources across subscriptions and resource groups. It can also install the `resource-graph` extension, list available Azure subscriptions and resource groups using `mcp_azure_mcp_subscription_list` and `mcp_azure_mcp_group_list`, and uses `extension_cli_generate` to construct the `az graph query` commands.
The skill uses `extension_cli_generate` to construct `az graph query` commands from user intent, posing a risk of command injection through malicious KQL or CLI arguments if user input is not rigorously sanitized.
mcp_azure_mcp_extension_cli_generate intent: "query Azure Resource Graph to <user's request>" az graph query -q "<KQL>"
[](https://mondoo.com/ai-agent-security/skills/github/microsoft/azure-skills/azure-resource-lookup)<a href="https://mondoo.com/ai-agent-security/skills/github/microsoft/azure-skills/azure-resource-lookup"><img src="https://mondoo.com/ai-agent-security/api/badge/github/microsoft/azure-skills/azure-resource-lookup.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/microsoft/azure-skills/azure-resource-lookup.svgSkills can read files, run commands, and access credentials. Mondoo helps organizations manage the security risks of AI agent skills across their entire fleet.