code-analysis
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- SQL Command Execution: The skill involves executing T-SQL commands for syntax validation (using
SET NOEXEC ON) and schema inspection via system catalog views likesys.columnsandsys.indexes. This is standard functionality for database analysis tools. - Indirect Prompt Injection Considerations: The instructions specifically address the processing of external data, such as database extended properties. It includes a guardrail advising the agent to treat this information as untrusted data and not as instructions, which helps mitigate potential prompt injection attempts hidden in database metadata.
- SQL Injection Best Practices: The skill incorporates defensive coding practices by instructing the agent to replace string concatenation in dynamic SQL with parameterized queries using
sp_executesql, which is a standard security measure in database development. - Usage of Trusted Resources: The skill references official documentation from Microsoft for the
sqlcmdutility, aligning with its role as a T-SQL analysis tool.
Audit Metadata