Tooluck logoTooluck
SKILL.md

csp-bypass-advanced

Agent skill fromyaklang/hack-skills

Advanced Content Security Policy bypass techniques. Use when XSS or data exfiltration is blocked by CSP and you need to find policy weaknesses, trusted endpoint abuse, nonce leakage, or exfiltration channels that CSP cannot block.

How to install csp-bypass-advanced

install csp-bypass-advanced
# install the hack-skills pack with the skills CLI
npx skills add yaklang/hack-skills

# or add only this skill to Claude Code: copy the folder

skills/csp-bypass-advanced/

# into

~/.claude/skills/csp-bypass-advanced/ (all projects)

.claude/skills/csp-bypass-advanced/ (one project)

skills/csp-bypass-advanced/SKILL.md

MITFull file
1# SKILL: CSP Bypass — Advanced Techniques
2
3> **AI LOAD INSTRUCTION**: Covers per-directive bypass techniques, nonce/hash abuse, trusted CDN exploitation, data exfiltration despite CSP, and framework-specific bypasses. Base models often suggest `unsafe-inline` bypass without checking if the CSP actually uses it, or miss the critical `base-uri` and `object-src` gaps.
4
5## 0. RELATED ROUTING
6
7- [xss-cross-site-scripting](../xss-cross-site-scripting/SKILL.md) for XSS vectors to deliver after CSP bypass
8- [dangling-markup-injection](../dangling-markup-injection/SKILL.md) when CSP blocks scripts but HTML injection exists — exfiltrate without JS
9- [crlf-injection](../crlf-injection/SKILL.md) when CRLF can inject CSP header or steal nonce via response splitting
10- [waf-bypass-techniques](../waf-bypass-techniques/SKILL.md) when both WAF and CSP must be bypassed
11- [clickjacking](../clickjacking/SKILL.md) when CSP lacks `frame-ancestors` — clickjacking still possible
12
13---
14
15## 1. CSP DIRECTIVE REFERENCE MATRIX
16
17| Directive | Controls | Default Fallback |
18|---|---|---|
19| `default-src` | Fallback for all `-src` directives not explicitly set | None (browser default: allow all) |
20| `script-src` | JavaScript execution | `default-src` |
21| `style-src` | CSS loading | `default-src` |
22| `img-src` | Image loading | `default-src` |
23| `connect-src` | XHR, fetch, WebSocket, EventSource | `default-src` |
24| `frame-src` | iframe/frame sources | `default-src` |
25…

Excerpt shown under the repository's MIT license.

More skills in hack-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates