prevent-sql-injection
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFE
Full Analysis
- SQL Injection Prevention Guidance: The skill offers technical instructions on how to correctly use T-SQL functions like
QUOTENAME,sp_executesql, andEXECUTE ASto secure dynamic SQL. This is an educational resource intended to improve database security practices. - Trusted External References: The skill includes links to official Microsoft Learn documentation for
QUOTENAME,PARSENAME, and secure dynamic SQL practices. These are verified and trusted sources for technical information. - Secure Command Examples: The provided
sqlcmdand T-SQL examples use placeholders (e.g.,<server-name>,<database>) for sensitive information and demonstrate how to check forNULLresults fromQUOTENAME, which is a recommended safety check to prevent silent failures in dynamic SQL batches.
Audit Metadata