payment-integration
Pass
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes data from external Stripe webhooks, which constitutes an ingestion point for untrusted data.
- Ingestion points: The webhook handler in
app/api/webhooks/stripe/route.tsreads the request body for processing Stripe events. - Boundary markers: The implementation correctly uses
stripe.webhooks.constructEventwith a signature secret to verify payload authenticity before processing. - Capability inventory: The skill performs database updates (
db.user.update) and initiates network operations (sending emails viasendDunningEmail). - Sanitization: The skill uses structured JSON parsing via the official Stripe SDK, though it extracts
userIdfrom metadata for database queries. - [SAFE]: The skill adheres to security best practices by recommending environment variables for sensitive API keys and secrets rather than hardcoding them.
- [SAFE]: The code patterns specifically address avoiding the handling of raw card data to maintain the lowest level of PCI compliance (SAQ-A).
Audit Metadata