web-jwt-attacks
Pass
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process JWT tokens provided by external target applications, creating a surface for indirect prompt injection.
- Ingestion points: Instructions in SKILL.md direct the agent to extract and decode tokens from Authorization headers, cookies, URL parameters, and POST bodies found in target environments.
- Boundary markers: There are no specific delimiters or instructions provided to the agent to ignore or neutralize potential instructions embedded within the JWT payloads.
- Capability inventory: The skill has access to powerful capabilities including shell command execution (curl, openssl, python3), file system writes to the engagement/evidence/ directory, and the ability to install and run external software via pip and Docker.
- Sanitization: The skill lacks explicit sanitization, validation, or filtering logic for the content of decoded JWT claims before the agent processes them or uses them in subsequent exploit steps.
- [COMMAND_EXECUTION]: The skill frequently uses shell commands to interact with targets and perform cryptographic operations.
- Evidence includes the use of curl for fetching JWKS keys, openssl for certificate extraction, and python3 for running auxiliary scripts.
- The skill provides examples of command injection payloads (e.g., using a curl command inside a kid header) for testing purposes, which requires the agent to handle potentially dangerous string patterns.
- [EXTERNAL_DOWNLOADS]: The skill recommends installing third-party tools and repositories from non-standard community sources.
- Evidence: Instructions to pip install jwt-tool and clone the jwt-tool repository from GitHub.
- Evidence: Mentions running a Docker container from the ttervoort/jws2pubkey repository for RSA key recovery tasks.
- Evidence: References an external wordlist hosted on GitHub (wallarm/jwt-secrets) for brute-force attacks.
- [DYNAMIC_EXECUTION]: The skill generates and executes code dynamically at runtime to perform specific cryptographic and forging tasks.
- Evidence: Use of python3 -c commands to encode/decode tokens, perform HMAC signing, and generate JWKS JSON objects using the pycryptodomex library.
Audit Metadata