slow-query-investigation

Fail

Audited by Snyk on Nov 18, 2026

Risk Level: CRITICAL
Full Analysis

CRITICAL E004: Prompt injection detected in skill instructions.

  • Potential prompt injection detected (medium risk: 0.30). The skill is a legitimate read-mostly SQL performance triage with no sign of malicious intent, but the Azure guidance tells the agent to change database state (set QUERY_CAPTURE_MODE, force a plan, flush Query Store) as part of the investigation, which contradicts the skill's own confirmation gate and alters the user's database without being asked.

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (low risk: 0.10). The workflow reads Query Store and plan-cache text (query_sql_text, object names) from the target database, which holds the application's own captured SQL; an outsider can influence it only indirectly, through input embedded in ad hoc query literals, and cannot force delivery, so this is low rather than medium.

Issues (2)

E004
CRITICAL

Prompt injection detected in skill instructions.

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

Audit Metadata
Risk Level
CRITICAL
Analyzed
Nov 18, 2026, 03:26 AM
Issues
2