sc-websocket

Detect WebSocket security flaws in source code across Socket.IO, ws, gorilla/websocket, and SignalR.

7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/fatihkan/badi --skill sc-websocket-fatihkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-websocket
Source: https://github.com/fatihkan/badi/tree/main/.claude/skills/security-check/sc-websocket
Command: npx skills add https://github.com/fatihkan/badi --skill sc-websocket-fatihkan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WebSocket security flaw detection focuses on identifying misconfigurations and authentication gaps that expose applications to cross-origin abuse, message injection, and insecure connections.

Core Features & Use Cases

  • Detect missing origin validation in WebSocket upgrades (CheckOrigin and origin checks)
  • Detect missing authentication on WebSocket upgrade and insecure message handling
  • Cover libraries such as Socket.IO, ws, gorilla/websocket, and SignalR across languages
  • Provide actionable remediation guidance and a structured vulnerability report

Quick Start

Run the scanner against your codebase to detect and report WebSocket security flaws.

Frequently Asked Questions about sc-websocket

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

FAQPage Schema
How do I detect WebSocket security vulnerabilities in my source code?

Detect WebSocket security vulnerabilities by scanning source code for missing origin checks, authentication gaps on upgrade, and insecure message handling across implementations using Socket.IO, ws, gorilla/websocket, and SignalR. The scanner outputs a structured vulnerability report with actionable remediation guidance.

What WebSocket misconfigurations lead to cross-origin abuse?

WebSocket misconfigurations like missing origin validation in upgrade requests and absent authentication on upgrade lead to cross-origin abuse and message injection. Scanning for patterns like Upgrader.CheckOrigin and Hub usage identifies these insecure practices before they expose your application.

Does the WebSocket security scanner support SignalR and Socket.IO codebases?

Yes, the WebSocket security scanner supports SignalR and Socket.IO codebases, alongside ws and gorilla/websocket libraries. It analyzes implementations across multiple languages to detect missing wss encryption, input validation flaws, and insecure Hub usage patterns.

How do I check for missing authentication on WebSocket upgrade requests?

Check for missing authentication on WebSocket upgrade requests by running an automated source code scanner that identifies absent auth checks during the connection upgrade phase. It flags insecure message handling and provides remediation guidance to secure your WebSocket implementation.

What is the best way to find missing origin validation in gorilla/websocket?

Find missing origin validation in gorilla/websocket by scanning source code for Upgrader.CheckOrigin patterns and insecure configurations. The scanner detects missing origin checks across your codebase and generates a structured vulnerability report detailing necessary security remediations.

Why does my WebSocket connection lack wss encryption and input validation?

Your WebSocket connection lacks wss encryption and input validation due to insecure implementation practices. Scanning your codebase detects these missing security patterns, identifying vulnerable message handling and unencrypted connections to help you apply necessary security patches.