websocket-testing
Test WebSocket endpoints for authentication bypass, injection, cross-site hijacking, and message manipulation
от VigilOSS★ 35 звёзд на GitHub
Установить websocket-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
WebSocket Security Testing
When to Activate
ws:///wss://endpoints orUpgrade: websockettraffic: chat, notifications, live updates, trading, collaborative editing. Find them in bundles withrg "new WebSocket|\.connect\(.*ws"(agent/skills/source-analysis/SKILL.md).
--technique WEBSOCKET for protocol, auth and CSWSH probing; the specific class (SQLI, XSS,
CMDI, IDOR, AUTH) when a frame carries that payload. The runtime image ships no websocat;
script the client in Python with the system aiohttp (ClientSession().ws_connect(url, headers={…}, origin=…)) and run it via vigil assess kali exec --technique WEBSOCKET --intent "<purpose>" --probe-kind payload --phase consume-test --timeout 60 --identity-env A=user_a -- python3 <script> so the identity's $VIGIL_COOKIE_A is available to it
(agent/skills/write-probe-script/SKILL.md). Browser-side behaviour: vigil assess kali browser.
Checks
- Handshake auth: connect with no cookie or token, an expired one, and another user's; check whether authorization is re-checked per message after the session expires or the role changes.
- Authorization in frames: other users' IDs, room/channel IDs and unauthorized subscriptions
(
{"subscribe":"admin-events"}); the IDOR method isagent/skills/idor-testing/SKILL.md. Open two connections as two owned identities and compare what each receives: broadcasts that carry the other user's data are a leak even without any injection. - Injection in frame fields with the class skills (SQLi, NoSQL, command injection, XSS). XSS
that renders to other users needs the side-effect preflight (
agent/shared-constraints.md§2d). - Message handling: replay (nonce/sequence checks), out-of-order and binary tampering, malformed JSON for verbose errors.
- Resource limits (many connections, message floods, oversized frames, idle timeouts) are
denial of service: one bounded probe within the ROE and operator approval
(
agent/shared-constraints.md§1); never background connection loops.
Cross-Site WebSocket Hijacking (CSWSH)
The handshake carries cookies but no CSRF token, so Origin validation is the only defence; a hijacked socket is bidirectional and persistent (the attacker reads the stream and sends commands). What to check:
- Does the upgrade request carry cookies, and with which
SameSite? Chromium withholdsLaxcookies from a cross-site handshake, so CSWSH needsSameSite=Nonecookies, a same-site attacker origin (a subdomain you control), or a non-Chromium victim. - Is
Originvalidated on the handshake (send a foreignOriginfrom the script)? - Is a per-connection ticket required in the URL that the attacker page cannot obtain? That makes CSWSH much harder even with a missing Origin check.
- What flows over the socket (messages, transactions, tokens) and which commands it accepts?
Proof: a PoC page on an attacker origin, loaded in a browser session of an owned victim identity, opens the socket and receives that identity's data or performs an action.
What to Record
Endpoint and protocol, the authentication mechanism, the vulnerability and proof frame, and the
outcome (agent/rules/hunting.md §2): data received that belongs to another identity, an action
performed through a hijacked socket, injection output. Severity:
agent/references/finding-fp-and-severity-gate.md; format:
agent/references/runtime-guides/web-finding-recording.md.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл websocket-testing?
Test WebSocket endpoints for authentication bypass, injection, cross-site hijacking, and message manipulation
Как установить скилл websocket-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл websocket-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…