improve-query-performance

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • Database Command Execution: The skill interacts with database servers using tools like mssql_execute_query and sqlcmd. These tools execute T-SQL commands to retrieve execution plans or performance metrics. While necessary for query tuning, this involves high-privilege interaction with the database engine.
  • Schema Modification Capability: The workflow includes creating and dropping indexes to measure performance impact. The skill mitigates associated risks by requiring explicit user consent before any modifications and by instructing the agent to cleanup (drop) temporary indexes even if errors occur during analysis.
  • Indirect Prompt Injection Surface: The skill processes user-supplied .sqlplan and .xml files as data sources for performance analysis. These external files represent a potential ingestion point for untrusted data that could influence the agent's logic if improperly parsed, though the skill primarily targets specific structured XML elements.
  • User-Gated Execution: A positive security practice is observed where the skill explicitly requires user authorization before executing workloads or generating actual (non-estimated) execution plans, which avoids unexpected resource consumption or data access.
  • External Setup Guidance: The skill references a setup procedure (sql-tools-mcp-setup) for missing tools. This includes a safety note that the setup process must ask for user permission before installing or configuring any software on the system.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 03:27 AM