What problem does it solve?
Web applications are frequently vulnerable to common attacks like cross-site scripting (XSS), insecure cookie theft, clickjacking, and misconfigured security policies due to legacy code patterns and lack of structured security guidance, leaving user data and systems exposed.
Core Features & Use Cases
- Phased Security Rollouts: Provides tailored guidelines for retrofitting existing applications, building new greenfield apps, or setting secure defaults for SaaS templates, minimizing breakage risk during policy deployment.
- Comprehensive Policy Coverage: Covers core security controls including Content Security Policy (CSP), Trusted Types, cross-origin isolation (COOP/COEP/CORP), and companion headers like HSTS, Permissions Policy, and SRI.
- Use Case: A team maintaining a legacy e-commerce site can use this skill to first fix quick hygiene issues like insecure cookies and dangerous DOM sinks, then run report-only policy tests to identify breakages before enforcing strict CSP rules to block XSS attacks.
Quick Start
Use the web-security skill to guide your team through auditing your web application's current security gaps and deploying a phased rollout of preventative security policies, starting with quick hygiene fixes and report-only testing before enforcing strict rules.