The Azure CLI example embeds query text in a double-quoted shell argument, enabling possible local command execution
Source references: 2The fallback command requires substituting `<kql-query>` inside a double-quoted `--body`. If the query, database, cluster, or region value contains a quote, backtick, `$()`, or similar shell syntax, direct textual substitution can escape the intended argument and cause the shell to run local commands.
A malicious or unreviewed query value could read or alter files, access locally available credentials, or execute other commands with the agent user's privileges.
The Skill explicitly directs a CLI fallback and places the database and KQL placeholders inside a double-quoted shell argument. If an agent executes it using direct text substitution, `"`, backticks, or `$()` in a query could be interpreted by the shell, causing local command execution or request tampering. No script is shown, so this establishes a hazardous template, not execution. A user can require structured argument passing and JSON encoding, or disable CLI fallback.
If Azure MCP Kusto tools fail, timeout, or are unavailable, use Azure CLI commands as fallback.Show 1 other places
For queries, use the Kusto REST API or direct cluster URL:```bashaz rest --method post \ --url "https://<cluster>.<region>.kusto.windows.net/v1/rest/query" \ --body "{ \"db\": \"<database>\", \"csl\": \"<kql-query>\" }"```