kiva-custom-query
Pass
Audited by Gen Agent Trust Hub on Nov 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses the
kiva dsqlcommand-line tool to perform CRUD operations on query records and execute them against the platform's database runner.\n- [EXTERNAL_DOWNLOADS]: References the@kivacore/api-clientNode.js package, which is used to integrate saved queries into frontend applications.\n- [INDIRECT_PROMPT_INJECTION]: The skill processes user-provided DSQL (logical SQL) and JSON-formatted filter parameters to create and execute reusable database query templates.\n - Ingestion points:
SKILL.md(Workflow steps 4 and 5) andkiva dsqlCLI arguments.\n - Boundary markers: Absent in prompt interpolation.\n
- Capability inventory: Execution of database queries via
kiva dsql run-custom-querysubprocess calls inSKILL.md.\n - Sanitization: Employs a Handlebars
{{filter}}helper that validates and escapes runtime filter values into safe SQL predicates, preventing raw string concatenation.\n- [DYNAMIC_EXECUTION]: Utilizes Handlebars templating to compile SQL bodies at runtime, injecting session context variables such asUSER_IDandTENANT_IDand binding dynamic filter parameters.
Audit Metadata