missing-index-analysis

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • SQL Command Execution: The skill performs read-only T-SQL queries against Dynamic Management Views and Query Store. This behavior is central to its purpose of index tuning and performance diagnosis.
  • Least Privilege Guidance: The instructions explicitly advise users to employ diagnostic logins with minimal permissions, such as VIEW DATABASE PERFORMANCE STATE. This practice prevents the skill from being used for unauthorized data modification.
  • Identifier Sanitization: The provided queries use the QUOTENAME function to wrap schema and table names. This is a standard security measure in dynamic SQL to protect against SQL injection.
  • User Confirmation for Remediation: The skill clearly distinguishes between diagnostic queries and remediation actions. It requires the agent to obtain explicit user consent before executing any CREATE, DROP, or ALTER INDEX commands.
  • Platform Compatibility Checks: An initial platform detection query prevents the use of the skill on unsupported environments like Azure Synapse Analytics, where the underlying performance views behave differently.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 03:27 AM