Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/emre-guler/websec/websocketsnpx skills add emre-guler/websec --skill websocketsgit clone --depth 1 https://github.com/emre-guler/websecWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00074 | $0.04994 |
| Opus 5 | $0.00037 | $0.02497 |
| Sonnet 5 | $0.00015 | $0.00999 |
| Haiku 4.5 | $0.00007 | $0.00499 |
Grade A, and why
websockets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WebSockets Detection
Overview
A WebSocket is a long-lived, bidirectional channel that begins life as an ordinary HTTP request — the handshake — and is then upgraded, after which either side may push messages at any time. Two properties make it its own review problem. First, the connection's entire security context is decided once, at the handshake, and every later message inherits it. Second, the browser API that opens a connection is not restrained by the same-origin rules that govern ordinary cross-origin reads, so any page can attempt a connection carrying the victim's ambient cookies; if the server does not check the origin or require an unguessable value, the attacker's page obtains a two-way channel inside the victim's session. The attacker is therefore either a user tampering with the messages their own client sends, or a remote page in the victim's browser. What they gain is actions performed as the victim plus a readable reply stream, or the impact of whatever sink a message reaches. This skill finds such gaps by locating every handshake and message handler, verifying each one in parallel, and merging the results into <output_dir>/websockets-results.md.
What it is NOT
- Ordinary request forgery (
/websec:csrf): a cross-site request whose response the attacker cannot read. Test: if the attacker's page can read the server's replies, it belongs here; if the abuse is fire-and-forget over plain HTTP, it belongs there. - Cross-origin resource sharing (
/websec:cors): the header protocol governing cross-origin reads of HTTP responses. It does not apply to the socket API — which is precisely why the server must check the origin itself. A missing sharing header is not a socket finding, and a permissive one does not by itself make a socket hijackable. - The sink's own class (
/websec:sql-injection,/websec:os-command-injection,/websec:xss,/websec:dom-based,/websec:xxe): what a payload does once it reaches a query, a shell, a parser, or the document. Judge the socket path's failure to validate or gate here, and name the sink's own class in one line under "Also observed" so the owning skill can classify it. - Authorization on an established connection (
/websec:access-control): when the handshake is properly gated and identity is sound, a missing per-action ownership check is authorization. A message handler that performs a privileged action without re-checking anything is judged here as a connection-trust failure and noted there. - Identity itself (
/websec:authentication,/websec:jwt): how the credential presented at the handshake is proved. If a token is accepted at the handshake without validation, note it for the owning skill and judge the handshake's gating here. - Not a finding: a cross-origin handshake that the server rejects; a socket carrying only public data with no privileged actions; the paired random-value handshake headers, which exist to stop caches and proxies from returning bogus responses and are neither an identity nor an anti-forgery control.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 165 lines · 74 tokens per session scan A 3310f209217f
websockets is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 5d ago), licensed MIT. It adds 74 tokens to every session and 4,994 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
vantage
Autonomous, artifact-driven SAST (Static Application Security Testing) for web AND mobile app repositories, plus optional code-level remediation. Use whenever the user asks to security-review, pentest, audit, or scan a codebase for vulnerabilities — web (SQLi, XSS, IDOR/BOLA, auth bypass, SSRF, XXE, hardcoded secrets…
prowler-ui
Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).
prowler-test-api
Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).
prowler-pr
Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…
tailwind-4
Tailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables are involved (no var() in className).
prowler-docs
Prowler documentation style guide and writing standards. Trigger: When writing documentation for Prowler features, tutorials, or guides.