Integration Patterns
Warn
Audited by Gen Agent Trust Hub on Aug 13, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The code example in
UserRepository.repository.tsdemonstrates an insecure SQL query construction pattern. ThefindAllmethod uses string interpolation (query +=ORDER BY ${options.sort} ${options.order}``) for sorting parameters. If these parameters are derived from user-controlled input (such as thereq.queryobjects shown in theUsersController), the application would be vulnerable to SQL injection, as database drivers typically only support parameterization for values, not for structural elements like column names or sort directions. - [PROMPT_INJECTION]: The skill presents an attack surface for indirect prompt injection by handling untrusted external data from API requests and webhooks.
- Ingestion points: The
listUsersandcreateUsermethods inUsersControlleringest data from ExpressRequestquery and body objects. TheWebhookHandlerprocesses data from Stripe webhook payloads. - Boundary markers: While the code refers to a
validateRequestmiddleware, no implementation is provided to demonstrate sanitization, escaping, or strict schema validation that would prevent embedded instructions from influencing agent behavior. - Capability inventory: The skill has the capability to perform database operations (
client.query) and interact with external services (e.g.,EmailService,JobQueue). - Sanitization: The provided patterns lack explicit sanitization or filtering logic for the ingested data before it reaches database or service execution points.
Audit Metadata