jwt-testing
JWT token attack techniques — alg bypass, key confusion, claim tampering
от VigilOSS★ 35 звёзд на GitHub
Установить jwt-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
JWT Testing (JSON Web Token Attacks)
When to Activate
- A JWT is the auth or authorization carrier for the endpoint under test.
auth-bypassroutes token attacks here; use one skill per endpoint so the token work has one owner.
--technique JWT. jwt_tool and hashcat -m 16500 are in the runtime. Payload recipes (alg:none,
RS256→HS256, JWK/JKU/kid injection, weak-secret cracking, null signature CVE-2020-28042, JWKS
endpoints to probe) are in agent/references/payloads/jwt-payloads.md; load it when you start
forging.
Methodology
- First pass:
vigil assess classify-payload "$TOKEN" --mutationsconfirms the type and emits a ready alg:none forgery plus bogus/empty-signature variants; then jwt_tool for claim edits, cracking and key confusion. - Standard attack families (recipes in the reference): alg:none including casing variants
and an empty signature; weak HMAC secret; RS→HS key confusion; JWK/JKU/x5u/x5c/kid header
injection; claim tampering (
sub,role,is_admin,tenant_id,scope,exp/nbf/iat,iss, unexpected claims). - Key-confusion encodings: servers expect different encodings of the public key used as the
HMAC secret; try raw PEM, PEM with headers stripped, no newlines, base64 without the wrapper.
Keys come from
/.well-known/jwks.json,openid-configuration→jwks_uri, or the TLS cert. - URL-bearing headers (
jku,x5u, a URL inkid) make the verifier fetch. The OOB server only records the fetch and serves no content (agent/references/offensive-tactics/frp-tunneling.md"What a callback proves, and hosted payloads"), so a JWKS must be served from the operator-provisioned listener ($DIR/.listener_url,agent/shared-constraints.md§12); without one, record the technique as blocked. A fetch proves egress/SSRF, not that the forged key was accepted; acceptance is the forged token reaching an authorized response. - Lifecycle: expiry, logout, password change, refresh and revocation
(
agent/references/api-security/API02-broken-authentication.md). - Cross-service and environment: a token from service A on service B (shared key),
audvalidation, a staging key accepted on production.
Batch triage. When spraying variants (alg-casing set, header-injection matrix, claim sweep),
write one {url,status,content_length,title} record per variant and rank with
vigil assess anomaly-score <file.jsonl> --top 5; the accepted forgery breaks from the rejection
cluster. Confirm by replaying that single token.
Kill and escalate
- An accepted forgery (alg:none, cracked secret, key confusion) is a candidate whose severity is
what the forged token can reach (
agent/references/finding-fp-and-severity-gate.md): prove the authorized action, then check sibling services and endpoints, which may verify differently (agent/rules/hunting.md§6). - All three fail and header injection errors out → test only claim tampering and lifecycle; strict claim validation everywhere → move on.
- Escalate when: alg casing or a trimmed signature yields a different error than an invalid token (a normalisation gap); different claims with the same signature, or a foreign key, validate (partial or cached verification); time-claim tampering passes on at least one endpoint; the token carries an authorization claim and any forgery path exists (claim rewrite is the real impact).
What to Record
Algorithm and claim structure, the attack that worked, the forged token and the access it granted,
any recovered secret. Format: agent/references/runtime-guides/web-finding-recording.md.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл jwt-testing?
JWT token attack techniques — alg bypass, key confusion, claim tampering
Как установить скилл jwt-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jwt-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…