deadlock-analysis
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- Indirect Prompt Injection Surface: The skill retrieves and processes XML deadlock reports from SQL Server Extended Event logs. Because these logs capture exact SQL statements that caused a deadlock, there is a potential for untrusted data to enter the agent's context. If a database user executes a query containing malicious instructions that then deadlocks, those instructions could be processed by the agent during analysis.
- Ingestion points: SQL Server system health logs (.xel files) via the
sys.fn_xe_file_target_read_filefunction. - Boundary markers: The instructions do not define specific delimiters or warnings to the agent to ignore instructions embedded within the XML reports.
- Capability inventory: The skill uses SQL interaction tools such as
mssql_execute_queryand thesqlcmdutility. - Sanitization: No explicit sanitization or filtering of the retrieved XML data is performed before the agent summarizes it.
- Database Command Interaction: The skill's core functionality relies on executing T-SQL queries. While these are used for diagnostics, executing code against aserver is a security consideration. The skill mitigates this by advising users to use a diagnostic login with restricted permissions (e.g.,
VIEW SERVER PERFORMANCE STATE) to ensure read-only access.
Audit Metadata