gtm-workflow
Warn
Audited by Gen Agent Trust Hub on Aug 27, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
templates/lib/db.tsfile usesnew Functionto wrap dynamicimport()calls for loading the@libsql/clientanddrizzle-orm/libsqlmodules. This pattern is explicitly intended to hide these dependencies from the Vercel bundler, effectively bypassing static analysis and security checks during the build process. - [COMMAND_EXECUTION]: In
templates/lib/agent.ts, the skill usesnode:child_process.spawnto execute various AI command-line tools likeclaude,codex,cursor,gemini, andopencode. The arguments for these processes, including prompts and schemas, are built from dynamic workflow inputs, which could allow for argument injection if the inputs are malicious. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted external data which is then used to author and update TypeScript workflows and database schemas, creating a vector for malicious instructions to influence the agent's behavior.
- Ingestion points: The agent reads ICP and persona files from the workspace, processes external provider documentation, and accepts row data through API endpoints and CLI scripts.
- Boundary markers: The instructions do not define delimiters or safety protocols to isolate external content when it is interpolated into agent prompts or generated code.
- Capability inventory: The skill has extensive capabilities, including writing to the file system, applying database migrations, performing network operations, and executing shell commands.
- Sanitization: Sanitization is minimal, relying on basic JSON stabilization and simple keyword-based SQL query validation for read-only checks.
- [DYNAMIC_EXECUTION]: The API route in
templates/server/api/run/[...workflow].tsdynamically constructs aworkflowIdfrom URL path parameters and executes it using theworkflowSDK, which allows for the dynamic resolution and execution of logic based on unvalidated external strings.
Audit Metadata