slow-query-investigation
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- Command Execution Capability: The skill utilizes SQL execution tools and command-line utilities to perform database diagnostics. These operations are fundamental to the skill's purpose of identifying and resolving performance bottlenecks. Security is prioritized through instructions to use read-only diagnostic accounts and the mandatory requirement for user confirmation before any state-changing actions are taken.
- Indirect Prompt Injection Surface: The skill processes information retrieved from database system views, including SQL query text and object names, which are considered external data sources. (1) Ingestion points: Performance data and query metadata are ingested via
mssql_execute_queryinreferences/queries.mdandreferences/azure-sql/guidance.md. (2) Boundary markers: The skill does not explicitly define delimiters or instructions to ignore embedded prompts for the interpolation of these results into the agent's context. (3) Capability inventory: The skill possesses the ability to execute further T-SQL commands (viamssql_execute_queryinSKILL.md) and suggest administrative actions based on analyzed data. (4) Sanitization: No specific sanitization or validation logic is defined for the SQL text retrieved from the database before it is processed by the agent.
Audit Metadata