square-webhooks
Pass
Audited by Gen Agent Trust Hub on Oct 1, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill sets up infrastructure to receive webhooks from Square, creating an entry point for external data.
- Ingestion points: POST endpoints in
examples/express/src/index.js,examples/nextjs/app/webhooks/square/route.ts, andexamples/fastapi/main.py. - Boundary markers: Cryptographic signature verification using the
x-square-hmacsha256-signatureheader is implemented in all provided examples. - Capability inventory: The handlers perform event logging and provide switch statements for business logic; no dangerous system-level capabilities are exposed to the webhook payload.
- Sanitization: Authenticity is strictly enforced by verifying the HMAC-SHA256 signature of the raw request body before JSON parsing.
- [CREDENTIALS_UNSAFE]: The skill uses environment variables (
SQUARE_WEBHOOK_SIGNATURE_KEY) for secret management. Examples correctly demonstrate the use of.env.examplewith placeholders, ensuring no real secrets are hardcoded. - [SAFE]: The skill uses the official
squareNode.js SDK for verification and suggests standard development tools likehookdeck-clifor local testing.
Audit Metadata