websocket-security

Detect WebSocket security vulnerabilities including CSWSH, missing authentication, and message injection.

96|1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/langbyyi/CyberStrikeAI-SRC --skill websocket-security-langbyyi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: websocket-security
Source: https://github.com/langbyyi/CyberStrikeAI-SRC/tree/main/skills/websocket-security
Command: npx skills add https://github.com/langbyyi/CyberStrikeAI-SRC --skill websocket-security-langbyyi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WebSocket is widely used for real-time application features like chat, notifications, and live data feeds, but many implementations have unvalidated Origin headers, missing authentication, unencrypted transport, and injectable message payloads that expose applications to session hijacking, data leaks, and remote code execution risks during authorized security testing.

Core Features & Use Cases

  • CSWSH Detection: Tests for cross-site WebSocket hijacking by validating Origin header enforcement and session binding to prevent unauthorized channel access.
  • Vulnerability Scanning: Identifies common flaws including missing handshake authentication, cleartext ws:// transport, token leakage in URL query strings, and message injection vulnerabilities.
  • Tooling Guidance: Provides instructions for using wsrepl, Burp Suite extensions, and other specialized tools to test WebSocket implementations effectively.
  • Use Case: For security teams testing real-time chat platforms, notification systems, or WebSocket-backed APIs, this skill enables comprehensive validation of WebSocket security controls to prevent unauthorized access and sensitive data exposure.

Quick Start

Use the websocket-security skill to test the WebSocket endpoint at wss://your-target.com/ws for cross-site hijacking, missing authentication, and message injection flaws during your authorized security assessment.

Frequently Asked Questions about websocket-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for cross-site WebSocket hijacking vulnerabilities in my application?

To test for cross-site WebSocket hijacking (CSWSH), validate Origin header enforcement and verify session binding during the WebSocket handshake. This skill checks if your implementation properly restricts unauthorized cross-origin channel access to prevent session hijacking.

What are common WebSocket security vulnerabilities I should scan for?

Common WebSocket security vulnerabilities include missing handshake authentication, cleartext ws:// transport usage, token leakage in URL query strings, and message injection flaws. This skill identifies these vulnerabilities during authorized penetration testing of real-time communication channels.

How do I perform a penetration test on a WebSocket API?

Perform a WebSocket API penetration test by validating handshake security, testing session isolation, and assessing message payload injection. This skill guides you through using tools like wsrepl and Burp Suite extensions to comprehensively test WebSocket endpoints.

Can I use this skill to test authentication and payload injection in real-time chat applications?

Yes, you can use this skill to test authentication and payload injection in real-time chat applications. It validates WebSocket security controls, checks session isolation, and assesses message integrity for chat platforms, notification systems, and WebSocket-backed APIs.

What is the best way to verify Origin header validation for WebSocket connections?

The best way to verify Origin header validation is to test whether the WebSocket server properly enforces allowed origins and binds sessions securely. This skill applies OWASP WebSocket security standards to assess cross-site hijacking risks during your security assessment.