GitHub Action to install and run jwtop — the JWT operations toolkit for decoding, verifying, creating, signing, cracking, and exploiting JSON Web Tokens.
steps:
- name: Decode JWT
id: decode
uses: cerberauth/jwtop-action@v1
with:
command: decode
args: '${{ env.JWT_TOKEN }}'
- name: Print output
run: echo "${{ steps.decode.outputs.output }}"steps:
- name: Probe JWT endpoint for vulnerabilities
uses: cerberauth/jwtop-action@v1
with:
command: crack
args: --url https://api.example.com/protected --wordlist ./wordlist.txt| Input | Description | Required | Default |
|---|---|---|---|
version |
Version of jwtop to install (e.g. v0.2.0). Use latest to always install the newest. |
No | latest |
command |
jwtop subcommand to run: decode, verify, create, sign, crack, exploit. If omitted, jwtop is only installed and added to PATH. |
No | |
args |
Arguments and flags to pass to the jwtop command. | No |
| Output | Description |
|---|---|
output |
Stdout from the jwtop command (only set when command is provided). |
jwtop-path |
Directory where the jwtop binary is located. |
| Command | Description |
|---|---|
decode |
Parse and display a JWT without verifying the signature |
verify |
Validate a JWT signature and display its claims |
create |
Generate and sign a new token |
sign |
Re-sign an existing token with different credentials |
crack |
Probe a server for common JWT vulnerabilities |
exploit |
Apply a specific attack technique to a token |
- uses: cerberauth/jwtop-action@v1
with:
command: verify
args: '${{ env.JWT_TOKEN }} --secret ${{ secrets.JWT_SECRET }}'- uses: cerberauth/jwtop-action@v1
with:
command: verify
args: '${{ env.JWT_TOKEN }} --key ./public.pem'- uses: cerberauth/jwtop-action@v1
with:
version: v0.2.0
command: decode
args: '${{ env.JWT_TOKEN }}'crack and exploit commands are provided for informational purposes only. It
should not be used for malicious purposes or to attack any system without proper
authorization. Always respect the security and privacy of others.
VulnAPI collects fully anonymized usage data to help improve the tool. This data
is not shared with third parties. You can opt-out of telemetry by setting the
telemetry option to false.
This repository is licensed under the MIT License @ CerberAuth.