debug-slow-sql
Pass
Audited by Gen Agent Trust Hub on Sep 30, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the
SAPQuerytool which supportsSAP_ALLOW_FREE_SQLfor 'freestyle SQL'. This allows the agent to construct and execute arbitrary SQL queries against the SAP database based on user-provided inputs. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection through several vectors:
- Ingestion points: The skill accepts untrusted data including OData URLs (copied from browser DevTools), object names, and filter values in the 'Inputs' section.
- Boundary markers: There are no explicit instructions or delimiters to isolate user-provided data from the command structure in
SAPQueryorSAPDiagnosecalls. - Capability inventory: The skill has powerful capabilities including
SAPQuery(database reads),SAPDiagnose(action="trace_start")(system state modification), andSAPDiagnose(action="set_sql_trace_state")(authorization-heavy operations). - Sanitization: There is no mention of escaping, validating, or sanitizing the 'real filter values' before they are interpolated into SQL strings for
SAPQuery.
- [DYNAMIC_EXECUTION]: The skill uses
SAPDiagnoseto dynamically arm and disarm ABAP profiler traces and ST05 SQL traces. It also generates and executes SQL at runtime to analyze table indexes and metadata (e.g., queryingDD12L). - [PRIVILEGE_ESCALATION]: The skill explicitly documents the need for sensitive SAP authorizations such as
SAP_ALLOW_WRITESandS_ADT_RESto perform trace operations. While these are necessary for the skill's function, they represent a significant permission set that could be abused if the agent is compromised.
Audit Metadata