top-queries-noqds

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • Indirect Prompt Injection: The skill retrieves SQL query text from system Dynamic Management Views, which creates a surface where instructions embedded in SQL comments could be ingested by the agent context.
  • Ingestion points: SQL query text is retrieved from the sys.dm_exec_sql_text function as seen in references/queries.md.
  • Boundary markers: No specific delimiters or warnings for the agent to ignore embedded instructions are present in the query output instructions.
  • Capability inventory: The skill uses the mssql_execute_query tool to run T-SQL commands and read results.
  • Sanitization: No explicit sanitization or filtering of the retrieved SQL text is performed before it is presented to the agent.
  • Command Execution: The skill facilitates the execution of T-SQL queries against a connected database server to gather performance metrics.
  • Security consideration: While the skill advises using a read-only diagnostic login, it provides the agent with the ability to execute arbitrary SQL if not properly restricted by the host environment.
  • Evidence: Instructions in SKILL.md describe using mssql_execute_query and sqlcmd to run queries defined in references/queries.md.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 03:27 AM