wapi-nextjs
Pass
Audited by Gen Agent Trust Hub on Aug 26, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill exposes an attack surface for indirect prompt injection by ingesting untrusted data from an external messaging service (WhatsApp).
- Ingestion point:
references/webhook-route.tsreceives POST requests containing message content via thewapiservice. - Boundary markers: The reference implementation lacks explicit delimiters or instructions to ignore embedded commands within the message body.
- Capability inventory: The skill provides extensive tools for interaction including sending messages (
sendMessage), uploading files (upload), and reacting to messages (react) inreferences/wapi-client.ts. If an agent is configured to automate actions based on incoming WhatsApp messages, these capabilities could be misused via injection. - Sanitization: No specific content sanitization or validation is demonstrated in the route handler before data is logged or processed.
- [SAFE]: The skill utilizes vendor-specific infrastructure belonging to the author (
crafter-station) for API endpoints and documentation, such asapi.wapi.crafter.runandwapi.crafter.run. - [SAFE]: The skill provides security-hardened reference code, specifically using
import "server-only"to prevent accidental credential leakage to client-side bundles and implementingtimingSafeEqualfor cryptographic signature verification in webhooks.
Audit Metadata