competition-jwt-claim-confusion
Qué hace
Esta herramienta ayuda a entender cómo un sistema verifica un token de seguridad (JWT). Se centra en cómo la información del token y el método usado para verificar su clave determinan si se te concede el acceso.
Cuándo usarla
- ✓Cuando quieras ver los detalles de un JWT.
- ✓Cuando necesites entender cómo se elige una clave para verificar un token.
- ✓Cuando sospeches que un token podría estar concediendo un acceso indebido.
Link de la skill
https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-jwt-claim-confusion/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Analiza este JWT y dime cómo se valida y qué permisos concede.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta divide el proceso de verificación del token en pasos: leer la información (cabecera y claims), encontrar la clave correcta y comprobar si el sistema acepta los permisos que describe el token. Registra todo para mostrar el camino exacto que lleva a la autorización.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Competition JWT Claim Confusion
Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.
Use this skill when the decisive bug is not just "there is a JWT," but how headers, claims, and key selection turn into accepted identity.
Reply in Simplified Chinese unless the user explicitly requests English.
Quick Start
- Split the token path into parse, key lookup, signature or decryption, claim validation, and final acceptance.
- Record header fields, claims, key source, issuer, audience, and role mapping before mutating anything.
- Separate possession of a token from the exact service that accepts it.
- Keep parser behavior, trust policy, and resulting app session or privilege in one chain.
- Reproduce the smallest token-to-acceptance flow that proves the decisive confusion.
Workflow
1. Map Header And Key Selection
- Record header fields such as
alg,kid,typ,cty,jku, or embedded key material when present. - Note where keys come from: static config, JWKS, local file, cache, or dynamic lookup.
- Keep token parser, key selection path, and validation mode tied together.
2. Prove Claim-To-Privilege Acceptance
- Show how subject, audience, issuer, tenant, scope, role, or custom claims become app session, route access, or backend privilege.
- Record expiration, not-before, clock skew, issuer matching, audience matching, and claim normalization behavior.
- Distinguish token parse success from actual authorization success.
3. Reduce To The Decisive JWT Path
- Compress the result to the smallest sequence: token supplied -> parser or key path taken -> claim accepted -> resulting capability.
- Keep one canonical accepted token path and one mutated token path if confusion or bypass depends on a delta.
- If the task broadens into a larger OAuth redirect chain, hand back to the tighter OAuth skill.
Read This Reference
- Load
references/jwt-claim-confusion.mdfor the header checklist, claim checklist, and evidence packaging.
What To Preserve
- Raw headers, claims, key source, JWKS or local key path, and the accepting service
- The exact validation or normalization step that turns the token into accepted identity
- One minimal replayable token-to-acceptance sequence
Preguntas frecuentes
¿Qué es un JWT?
JWT significa JSON Web Token. Es un estándar para crear tokens de acceso que transmiten información de forma segura entre partes.
¿Qué son la cabecera y los claims de un JWT?
La cabecera contiene metadatos del token, como el algoritmo de firma. Los claims son información sobre la entidad (usuario) y permisos adicionales.
¿Qué significa "token-to-identity confusion"?
Es un tipo de vulnerabilidad de seguridad en la que la forma en que el sistema interpreta el token lleva a identificar mal a alguien o a conceder privilegios no previstos.
Detalles
Descripción original del autor
Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for JWT, JWS, and JWE validation paths, header parsing, key selection, claim acceptance, audience and issuer checks, role derivation, and token-to-identity confusion bugs. Use when the user asks to inspect JWT headers or claims, key lookup, `kid` handling, `alg` confusion, audience or issuer validation, role claims, or ex
Popularidad
- Estrellas en GitHub
- 42 mil
- Posición en el ranking
- #6433
- Licencia
- MIT
- Actualizada
- 22/9/2026
Comentarios
- …
Más skills de este repositorio
competition-ad-certificate-abuse
42 milAyuda a tu agente a analizar ataques a sistemas de certificados digitales. Investiga cómo se pueden usar mal los certificados para obtener acceso.
competition-agent-cloud
42 milAyuda a tu agente a analizar problemas de seguridad en sistemas de IA y en la nube. Investiga cómo se pueden explotar los prompts, las herramientas y la nube.
competition-android-hooking
42 milAyuda a tu agente a investigar aplicaciones Android. Analiza cómo funcionan por dentro y cómo podrían modificarse o explotarse.
competition-browser-persistence
42 milAyuda a tu agente a analizar cómo las webs guardan información en tu navegador. Investiga las cookies y otros datos para entender cómo funcionan las sesiones.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.