/appsec:websocketfrom appsec
Audits WebSocket implementations for security vulnerabilities including missing authentication, origin validation (CSWSH), message validation, rate limiting, and unencrypted connections.
Ships in appsec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze WebSocket implementations for security vulnerabilities including missing authentication on the upgrade handshake, no origin validation (Cross-Site WebSocket Hijacking), absence of message validation, missing rate limiting on messages, and use of unencrypted ws:// in production. WebSocket connections are long-lived and bidirectional, making them a persistent attack channel when not properly secured.
Read ../../shared/schemas/flags.md for the full flag specification. This skill
supports all cross-cutting flags. Key flags for this skill:
--scope determines which files to analyze (default: changed)--depth standard reads code and checks WebSocket handlers and configuration--depth deep traces message handling from connection through all event handlers--severity filters output (WebSocket issues are often high or critical)Key CWEs in scope:
Read references/detection-patterns.md for the full catalog of code patterns,
search heuristics, language-specific examples, and false positive guidance.
Parse flags and resolve the file list per ../../shared/schemas/flags.md.
Filter to files likely to contain WebSocket logic:
**/ws/**, **/websocket/**, **/socket/**)**/io.*, **/socket.*)**/handlers/**, **/events/**)**/middleware/**)**/client/**, **/frontend/**)Detect scanners per ../../shared/schemas/scanners.md:
semgrep -- primary scanner for WebSocket patternsRecord which scanners are available and which are missing. WebSocket-specific scanners are rare; most analysis relies on code review.
If semgrep is available, run with rules targeting WebSocket:
semgrep scan --config auto --json --quiet <target>
Filter results to rules matching WebSocket patterns. Normalize output to the findings schema.
Regardless of scanner availability, perform manual code analysis:
Origin header
during the WebSocket handshake to prevent CSWSH.wss:// not
ws:// for encrypted transport.When --depth deep, additionally trace:
Format output per ../../shared/schemas/findings.md using the WS prefix
(e.g., WS-001, WS-002).
Include for each finding:
These are the high-signal patterns specific to WebSocket security. Each maps
to a detection pattern in references/detection-patterns.md.
Missing authentication on upgrade -- WebSocket server accepts connections without verifying the client's identity during the HTTP upgrade handshake.
No origin validation (CSWSH) -- The server does not check the Origin
header, allowing malicious websites to open WebSocket connections to the
server using the victim's cookies.
No message validation -- Incoming WebSocket messages are parsed and processed without schema validation, enabling injection attacks.
No rate limiting -- No limit on message frequency, allowing a single client to flood the server with messages.
Unencrypted transport (ws://) -- Production WebSocket connections use
ws:// instead of wss://, exposing data in transit.
| Scanner | Coverage | Command |
|---|---|---|
| semgrep | WebSocket auth patterns, origin checks | semgrep scan --config auto --json --quiet <target> |
Fallback (no scanner): Use Grep with patterns from references/detection-patterns.md
to find WebSocket server configuration, connection handlers, message handlers,
and origin checking logic. Report findings with confidence: medium.
Use the findings schema from ../../shared/schemas/findings.md.
WS (e.g., WS-001)websocketspecializedWSCWE-287, CWE-346, CWE-20A07:2021 (Identification and Authentication Failures)S (Spoofing) or T (Tampering)Severity guidance for this category:
What SKILL.md sets; muted values are Claude Code's defaults
62 skills in this plugin
/access-controlThis skill should be used when the user asks to "check for access control issues", "analyze authorization", "find IDOR vulnerabilities", "audit CORS configuration", "check for privilege escalation", or mentions "access control", "authorization", "IDOR", "CORS", "JWT tampering", or "directory traversal" in a security context. Maps to OWASP Top 10 2021 A01: Broken Access Control.
/apiThis skill should be used when the user asks to "check API security", "audit REST API", "find BOLA vulnerabilities", "check for mass assignment", "analyze API rate limiting", "detect excessive data exposure", or mentions "API security", "BOLA", "IDOR", "mass assignment", "rate limiting", "broken function-level authorization", "excessive data exposure", or "OWASP API Top 10" in a security context.
/attack-surfaceThis skill should be used when the user asks to "map attack surface", "list entry points", "inventory API endpoints", "find all inputs", "enumerate routes", "discover exposed endpoints", or "map external interfaces". Also triggers when the user asks about exposed APIs, form handlers, file upload endpoints, WebSocket handlers, CLI argument parsers, or wants to understand where external data enters the system.
/authThis skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security", "check session management", or mentions "authentication", "passwords", "MFA", "sessions", or "brute force" in a security context. Maps to OWASP Top 10 2021 A07: Identification and Authentication Failures.
/business-logicThis skill should be used when the user asks to "check business logic security", "find logic flaws", "audit workflow security", "check for coupon abuse", "detect negative amount exploits", "analyze state machine security", or mentions "business logic", "workflow bypass", "negative amount", "coupon abuse", "self-referral", "state manipulation", or "time-based exploit" in a security context.
/configThis skill should be used when the user asks to "configure security", "appsec settings", "security preferences", or invokes /appsec:config. Manages security tool preferences and thresholds.
npx claudepluginhub florianbuetow/claude-code --plugin appsecOther plugins' skills for the same job