
Websocket Security
Reference guide for WebSocket security: handshake mechanics, cross-site WebSocket hijacking, testing tooling, and common flaws.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 5
- skills.sh installs
- 4.1K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
What it does
- Covers the WebSocket handshake, CSWSH exploitation steps, tool-based testing workflows, and a table of common vulnerability classes
- Includes handshake examples (
Sec-WebSocket-Key,Sec-WebSocket-Accept), a CSWSH proof-of-concept page, and wsrepl, ws-harness, and Burp extension usage - Explains CSWSH preconditions, including missing
Originvalidation andSameSitecookie behavior during the upgrade request - Designed for authorized tests of apps using real-time channels, chat, notifications, or WebSocket-backed APIs, with cross-loading to
api-sec
Install
$ npx -y skills add yaklang/hack-skills --skill websocket-security -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SKILL: WebSocket Security
AI LOAD INSTRUCTION: This skill covers WebSocket protocol basics, cross-site WebSocket hijacking (CSWSH), practical tooling bridges, and common vulnerability classes. Apply only in authorized tests; treat tokens and message content as sensitive. For REST/GraphQL companion testing, cross-load api-sec when present in the workspace.
0. QUICK START
During proxy or raw traffic review, watch for:
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13
Sec-WebSocket-Protocol: optional-subprotocol
Server success response indicators:
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
Routing note: in Burp/browser DevTools, filter for 101 and Upgrade: websocket; for deeper API testing, align authn/authz models through api-sec.
1. PROTOCOL BASICS
Client request (typical)
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- May 16, 2026
More from yaklang/hack-skills
All 102- Vm And Bytecode Reverse4.1K
- Api Authorization And Bola4K
- Kubernetes Pentesting4K
- Auth Sec4K
- Cors Cross Origin Misconfiguration4K
- Ios Pentesting Tricks4K
- Injection Checking4K
- Recon For Sec4K
- Llm Prompt Injection4K
- Csrf Cross Site Request Forgery4K
- Heap Exploitation4K
- Business Logic Vuln4K
- Traffic Analysis Pcap4K
- Oauth Oidc Misconfiguration4K
- Anti Debugging Techniques4K
- Binary Protection Bypass4K
- Cmdi Command Injection4K
- Ssti Server Side Template Injection3.9K
- Kernel Exploitation3.9K
- Path Traversal Lfi3.9K
- Race Condition3.9K
- Graphql And Hidden Parameters3.9K
- Deserialization Insecure3.9K
- Xxe Xml External Entity3.9K
Similar to Websocket Security
More Security
websocket-developmentmindrally/skills867 installsGuidelines for building real-time WebSocket applications with secure connections, scalable patterns, and tested reliability.
websocket-implementationaj-geddes/useful-ai-prompts669 installsPractical WebSocket implementation guide for real-time chat, notifications, and collaborative apps with Redis-backed scaling.
ssrf-server-side-request-forgeryyaklang/hack-skills4.2K installsExpert SSRF playbook covering URL filter bypasses, cloud metadata endpoints, protocol abuse, and Redis-over-gopher chaining toward RCE.
ctf-webljagiello/ctf-skills10.5K installsRouting and execution guide for web CTF challenges covering XSS, SQLi, SSTI, SSRF, JWT, and OAuth/SAML flaws.
debugging-websocket-issuesagentworkforce/relay1.1K starsDiagnoses WebSocket "invalid frame header" and RSV1 errors caused by raw HTTP written to upgraded sockets.
csp-bypass-advancedyaklang/hack-skills3.9K installsAdvanced CSP bypass reference covering per-directive weaknesses, nonce and hash abuse, and trusted CDN exploitation.