create-xe-session

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • Command Execution: The skill's primary function is to generate and execute T-SQL DDL and DML commands to configure Extended Events diagnostic sessions. It mitigates potential risks by enforcing platform discovery, verifying granular permissions (e.g., CREATE ANY EVENT SESSION), and requiring explicit user approval before execution.- Data Exposure: The skill captures database diagnostic information, which may include sensitive data like SQL text, application names, and user identities. To address this, the instructions mandate that the agent provide clear warnings to the user about sensitive data collection and offer guidance on secure storage using Azure Blob Storage for durable captures.- Indirect Prompt Injection: The skill processes user-supplied intent, such as session names and query filter fragments, to construct SQL statements. While this creates a potential attack surface, the skill includes detailed instructions for the agent to validate all inputs and escape string predicates (e.g., doubling single quotes) to prevent SQL injection.- Privilege Management: The skill adheres to the principle of least privilege by performing permission probes (using HAS_PERMS_BY_NAME) before attempting any administrative actions, ensuring the agent operates within the authorized security context of the user.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 03:27 AM