User input directly generates KQL queries, enabling
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
The skill primarily uses the Azure CLI `az graph query` command to query Azure Resource Graph (ARG) for resource metadata. It leverages `extension_cli_generate` to construct Kusto Query Language (KQL) queries and can use `mcp_azure_mcp_subscription_list` and `mcp_azure_mcp_group_list` to refine the query scope. It also instructs to install the `resource-graph` Azure CLI extension if needed.
npx skills add https://github.com/microsoft/github-copilot-for-azureUser input (`user's request`) is directly used to generate KQL queries for `az graph query`. A vulnerability in KQL generation could allow injection, leading to unauthorized access and exfiltration of extensive Azure resource metadata.
mcp_azure_mcp_extension_cli_generate intent: "query Azure Resource Graph to <user's request>"
Maliciously crafted KQL queries, if injected, could be designed to be overly complex or broad, consuming excessive Azure Resource Graph service resources and potentially impacting performance.
az graph query -q "<KQL>" --query "data[].{name:name, type:type, rg:resourceGroup}" -o table[](https://mondoo.com/ai-agent-security/skills/github/microsoft/github-copilot-for-azure/azure-resource-lookup)<a href="https://mondoo.com/ai-agent-security/skills/github/microsoft/github-copilot-for-azure/azure-resource-lookup"><img src="https://mondoo.com/ai-agent-security/api/badge/github/microsoft/github-copilot-for-azure/azure-resource-lookup.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/microsoft/github-copilot-for-azure/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.