yaklang avatar

Websocket Security

This one gives Claude the protocol fundamentals, CSWSH exploitation flows, and tooling bridges for WebSocket penetration testing. You get handshake inspection patterns, an actual proof-of-concept JavaScript snippet for cross-site hijacking, and practical commands for wsrepl, ws-harness, and Burp extensions like SocketSleuth. The decision tree walks through Origin validation, session binding checks, and message fuzzing. It also covers WebSocket smuggling concepts for proxy bypass scenarios. Load it when you're dealing with real-time features, chat apps, live dashboards, or notification streams where the upgrade handshake and bidirectional channel create attack surface that traditional HTTP testing misses.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
5
skills.sh installs
4K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill websocket-security --agent claude-code

Installs into .claude/skills of the current project.

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)

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Backend & APIs, Security
First seen
May 16, 2026

More from yaklang/hack-skills

All 102
1yaklang avatarapi-authorization-and-bolayaklang/hack-skillsAPI authorization and BOLA testing playbook. Use when APIs expose object identifiers, nested resources, hidden writable fields, or weak function-level authoriza3.9Kskills.sh installs
2yaklang avatarssti-server-side-template-injectionyaklang/hack-skillsSSTI playbook. Use when template expressions, server-side rendering, preview features, or templating engines may evaluate attacker-controlled content.3.8Kskills.sh installs
3giuseppe-trisciuoglio avataraws-sdk-java-v2-lambdagiuseppe-trisciuoglio/developer-kitProvides AWS Lambda patterns using AWS SDK for Java 2.x. Use when invoking Lambda functions, creating/updating functions, managing function configurations, work3.8Kskills.sh installs
4affaan-m avatarapi-connector-builderaffaan-m/everything-claude-codeapi connector builder3.6Kskills.sh installs
5freee avatarfreee-api-skillfreee/freee-mcpfreee api skill3.3Kskills.sh installs
6redis avatarredis-developmentredis/agent-skillsRedis performance optimization and best practices. Use this skill when working with Redis data structures, Redis Query Engine (RQE), vector search with RedisVL,3.1Kskills.sh installs