--- name: security-api-browser description: Review web frontend and backend trust boundaries, API authorization and validation, browser controls, input and output handling, uploads, and server egress. --- # API, browser, and data boundaries Read the installed sibling `../web-security-audit/SKILL.md` for boundaries, evidence, and stopping rules. Apply this specialist workflow to the requested scope. For repository-specific context, use the template at `../web-security-audit/assets/context.md`. Reconcile existing context with current code and continue with available repository evidence if no context exists. Inventory routes, method variants, RPC handlers, GraphQL fields and resolvers, websocket events, uploads, downloads, and client-side entry points. Map middleware ordering per transport. Keep schema declarations and effective server enforcement separate in the evidence. For high-risk data paths, record source, transformations, validation, sink, and effective control. Inspect structured database parameters, context-specific encoding, outbound destination policy, safe path resolution, serialization and private fields. Review body parsers, size budgets, content negotiation, redirects, file metadata and browser delivery. Verify backend ownership decisions with the identity specialist where the same resource is served through multiple transports. Document which routes use cookies and which accept bearer tokens. Inspect effective proxy scheme, cookie attributes, CORS, CSRF, CSP, embedding policy, and caching of authenticated content. Review upgrades and long-lived subscriptions for policy refresh and expiry. Compare path normalization, forwarding headers, content type handling, and method resolution between the edge and application. Review cache bypass and partitioning for identity-bound data, including errors and redirects. Trace service-worker caches and update behavior where the application can retain protected data on a shared client. Verify approved changes using direct validator and authorization calls, browser-response metadata assertions, scoped test stores, and stubbed outbound clients. Record supported variants and gaps. For file intake, direct-to-storage uploads, attachments, or user-generated previews, use `file-upload-security` when installed. For a focused API review without that skill, trace ownership, validation, private storage, and authorized delivery across the affected routes. For vendor or partner integration onboarding, change review, or offboarding, use `third-party-integrations` when installed. ## Boundary trace Record the exposed entry point, input and data class, parsing and normalization layers, decision point, terminal sink, and evidence for the response policy. Group sibling paths only when their effective controls are shared. Flag a policy discrepancy at the specific hop where it arises. Return revision-relative evidence and coverage gaps using the report template at `../web-security-audit/assets/report.md`. For a response policy claim, verify the relevant route, status and authentication class and name which hop controls caching or headers. Include the exact candidate and environment when supplied runtime observations determine the result. Read [the enterprise review guide](references/enterprise-review.md) when the API is exposed through a CDN, gateway, browser service worker, GraphQL or multiple transports.