/prodsec-skills:client-side-securityfrom prodsec-skills
Reviews browser-facing code for XSS, CSRF, CSP, clickjacking, XS-Leaks, and HTTP security headers. Provides context-aware prevention guidance for user input, HTML rendering, cookies, and third-party scripts.
Ships in prodsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Protect browser clients against code injection, request forgery, UI redress, cross-site leaks, and unsafe third-party scripts with layered, context-aware controls.
textContent. If HTML is required, sanitize with a vetted library (e.g., DOMPurify) and strict allow-lists.addEventListener.javascript: and data URLs where inappropriate.Example sanitization:
const clean = DOMPurify.sanitize(userHtml, {
ALLOWED_TAGS: ['b','i','p','a','ul','li'],
ALLOWED_ATTR: ['href','target','rel'],
ALLOW_DATA_ATTR: false
});
innerHTML, outerHTML, document.write with untrusted data.eval, new Function, string-based setTimeout/setInterval.location or event handler properties.Trusted Types + CSP:
Content-Security-Policy: script-src 'self' 'nonce-{random}'; object-src 'none'; base-uri 'self'; require-trusted-types-for 'script'
default-src 'self'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; form-action 'self'; object-src 'none'; base-uri 'none'; upgrade-insecure-requests.SameSite=Lax or Strict; sessions Secure and HttpOnly; use __Host- prefix when possible.Content-Security-Policy: frame-ancestors 'none' or a specific allow-list.X-Frame-Options: DENY or SAMEORIGIN.SameSite=Strict cookies for sensitive actions and SameSite=Lax as the default for all other cookies.sandbox and postMessage origin checks.SRI example:
<script src="https://cdn.vendor.com/app.js"
integrity="sha384-..." crossorigin="anonymous"></script>
event.origin on receive.*; allow-list origins; validate preflights; do not rely on CORS for authorization.wss://, origin checks, auth, message size limits, and safe JSON parsing.localStorage/sessionStorage; prefer HttpOnly cookies; if unavoidable, isolate via Web Workers.rel="noopener noreferrer" to external target=_blank links.nosniff.JSON.stringify; never via string concatenation.textContent/safe attributes over raw HTML insertion.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skills130 skills in this plugin
/address-sanitizerAddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.
/admin-interface-securitySecure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces./aflppAFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.
Other plugins' skills for the same job