pentest-client-advanced

pentest-client-advanced is a skill for Claude Code, Codex from jd-opensource/JoySafeter. It costs 36 tokens per session (739 once invoked), scanned A, original, Apache-2.0.

A security-testing guide for browser-side features beyond cross-site scripting (XSS), including cross-origin requests, WebSockets, frames, messages, and browser storage.

In plain words
What is it for?
It is for testing CORS settings, WebSocket authentication, clickjacking protection, postMessage handling, CSS injection, and browser storage security.
Why use it?
It helps reveal weaknesses that let another website read data, control browser connections, embed pages, or misuse information stored in the browser.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/jd-opensource/joysafeter/pentest-client-advanced
Any agent
npx skills add jd-opensource/JoySafeter --skill pentest-client-advanced
Clone the repo
git clone --depth 1 https://github.com/jd-opensource/JoySafeter

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pentest-client-advanced

README.md
[![agentmods](https://agentmods.dev/badge/skills/jd-opensource/joysafeter/pentest-client-advanced.svg)](https://agentmods.dev/skills/jd-opensource/joysafeter/pentest-client-advanced)
Your own site
<a href="https://agentmods.dev/skills/jd-opensource/joysafeter/pentest-client-advanced"><img src="https://agentmods.dev/badge/skills/jd-opensource/joysafeter/pentest-client-advanced.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 739 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00739
Opus 5 $0.00018 $0.00369
Sonnet 5 $0.00007 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 6d ago against content hash b18f497e6583, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

pentest-client-advanced scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| CORS Testing | CORScanner, curl, custom PoC pages | CORS misconfiguration detection |
skills/pentest-client-advanced/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pentest Client Advanced

Purpose

Test advanced client-side attack surfaces beyond XSS. Six WSTG-CLNT items remain unchecked in Shannon's pipeline — these are distinct attack classes requiring different methodology than taint analysis.

Prerequisites

Authorization Requirements

  • Written authorization with client-side testing scope
  • Test domains for hosting PoC HTML pages (attacker-controlled origin)
  • Browser testing environment with DevTools access
  • Target user simulation — ability to test cross-origin interactions

Environment Setup

  • Modern browser with DevTools (Chrome/Firefox)
  • Burp Suite for intercepting WebSocket and cross-origin traffic
  • Local HTTP server for hosting PoC pages (python -m http.server)
  • Playwright for automated browser-based attack verification

Core Workflow

  1. CORS Misconfiguration: Test reflected Origin in ACAO header, null origin bypass, subdomain wildcard abuse, credential leakage via cross-origin requests (WSTG-CLNT-07).
  2. WebSocket Security: Missing auth on WS upgrade, CSWSH (Cross-Site WebSocket Hijacking), injection through WS messages, missing origin validation (WSTG-CLNT-10).
  3. Clickjacking: Missing X-Frame-Options / CSP frame-ancestors, UI redressing, drag-and-drop hijacking, multi-step clickjacking chains (WSTG-CLNT-09).
  4. postMessage Abuse: Missing origin validation in message handlers, DOM manipulation via cross-origin messages, prototype pollution through postMessage (WSTG-CLNT-11).
  5. CSS Injection: Data exfiltration via CSS attribute selectors + background-image, CSS-based keylogging, style injection for UI manipulation (WSTG-CLNT-05).
  6. Client-Side Storage: Sensitive data in localStorage/sessionStorage, IndexedDB exposure, service worker cache poisoning (WSTG-CLNT-06).
  7. PoC Construction: Build HTML pages demonstrating each attack with real impact.

WSTG Coverage

WSTG ID Test Name Status
WSTG-CLNT-05 CSS Injection
WSTG-CLNT-06 Client-Side Resource Manipulation
WSTG-CLNT-07 Cross-Origin Resource Sharing
WSTG-CLNT-09 Clickjacking
WSTG-CLNT-10 WebSocket Testing
WSTG-CLNT-11 Web Messaging

Read the full file on GitHub · 58 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 6d ago First seen · 58 lines · 36 tokens per session scan A b18f497e6583

Subscribe to this mod's changes

pentest-client-advanced is a skill published in the GitHub repository jd-opensource/JoySafeter (306 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 739 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories