Agent skill · Audited from source
Phy Jwt Auth Audit
skill · LeoYeAI/openclaw-master-skillsMIT licenceAudited 8 Oct 2026 · source 4f3b4a2a472e
Is it safe? With care — CAUTION, grade B (89/100). We read this skill's source at commit 4f3b4a2a472e and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 2 findings, 1 critical or high. What it does: JWT and OAuth/OIDC security auditor. Decodes any JWT token (without verification) to inspect alg/exp/iss/aud/scope claims, detects the "alg:none" bypass vulnerability, expired or no-expiry tokens, overly broad OAuth…
Cite
Cite this page
ModelsAtlas. “Phy Jwt Auth Audit (LeoYeAI/openclaw-master-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/leoyeai/phy-jwt-auth-audit
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | WARN | 1 |
L2 Instructions | Prompt injection, authority framing, hidden directives | FAIL | 1 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (2)
HIGHPrompt injectionprompt.credential_read · SKILL.md:417
'fix': 'Load from environment: process.env.JWT_SECRET or os.getenv("JWT_SECRET")',- Why
- asks the agent to read credentials
- Fix
- —
MEDIUMObfuscation / stealthobf.base64_blob · skills/compdf-conversion-cli/scripts/license.xml:9
<key>k5Ey9KFlkqpj+SDkUw+5ED9lTA3En/qUi0zdrydUCH3kMWTE3Eh65NXnFCaxlY2omY2JHnlEoK7Li7oOEvM7eG5VPdcO/sFlMfoCRdnLYdepJ+uLzYwOWR8W4yQVve/clxVFTVRL4DFleKInGdpAxIbHZT2yi4ADAMENls1N1XSLojRuqXePXDeAT/4Mv4TTx0s
- Why
- No further detail recorded for this rule.
- Fix
- —
Audit 0.4.1 · source sha 4f3b4a2a472e · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherLeoYeAI GitHub userOwner of the repository this skill is read from
- Source folderLeoYeAI/openclaw-master-skills/skills/phy-jwt-auth-auditThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f3b4a2a472eA new audit runs when the source changes
- Repository statusNot archivedLast push 80 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: JWT and OAuth/OIDC security auditor. Decodes any JWT token (without verification) to inspect alg/exp/iss/aud/scope claims, detects the "alg:none" bypass vulnerability, expired or no-expiry tokens, overly broad OAuth…
---
name: phy-jwt-auth-audit
description: JWT and OAuth/OIDC security auditor. Decodes any JWT token (without verification) to inspect alg/exp/iss/aud/scope claims, detects the "alg:none" bypass vulnerability, expired or no-expiry tokens, overly broad OAuth scopes, JWT stored in localStorage (XSS theft risk), JWT in URL parameters (log leakage), missing issuer/audience validation in source code, hardcoded tokens in .env files, and weak HMAC secrets. Also scans source files for insecure token handling patterns: Bearer token logged, token compared with ==, auth bypass via role:admin in payload. Generates a severity-ranked report with exact code locations and fixes. Zero external API — pure local analysis. Triggers on "JWT audit", "token security", "auth security", "alg none", "OAuth scopes", "bearer token", "token expiry", "/jwt-audit".
license: Apache-2.0
metadata:
author: PHY041
version: "1.0.0"
tags:
- security
- jwt
- oauth
- authentication
- token-security
- static-analysis
- developer-tools
- owasp
- api-security
- compliance
---
# JWT & Auth Auditor
A developer pastes a JWT into a debug log. The logger ships it to Datadog. An attacker finds it in the logs 6 months later. The token never expires.
This skill decodes JWTs without verifying them (which is the point — you need to inspect them even when you don't have the secret), checks their claims against security best practices, scans your codebase for insecure token handling, and finds the OAuth scopes that give more access than necessary.
**Zero external API — all analysis runs locally. Works with any JWT/OAuth provider.**
---
## Trigger Phrases
- "JWT audit", "token security check"
- "auth security", "authentication review"
- "alg:none vulnerability", "JWT algorithm"
- "OAuth scopes", "bearer token check"
- "token expiry", "no exp claim"
- "JWT in localStorage", "token in URL"
- "/jwt-audit"
---
## How to Provide Input
```bash
# Option 1: Decode and audit a specific JWT token
/jwt-audit eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
# Option 2: Audit source code for insecure token handling
/jwt-audit --scan src/
# Option 3: Audit .env files for hardcoded tokens
/jwt-audit --env-scan
# Option 4: Audit a specific auth file
/jwt-audit src/middleware/auth.ts
# Option 5: Full audit (token decode + code scan + env scan)
/jwt-audit eyJhbG... --scan . --env-scan
# Option 6: Check OAuth scopes in API calls
/jwt-audit --check-scopes
# Option 7: CI mode (exit 1 on critical findings)
/jwt-audit --scan src/ --ci --max-critical 0
```
---
## Step 1: Decode and Analyze JWT Claims
```python
import base64
import json
import time
from dataclasses import dataclass, field
from typing import Any, Optional
@dataclass
class JwtFinding:
severity: str # CRITICAL / HIGH / MEDIUM / LOW / INFO
claim: str # which claim is affected
issue: str
detail: str
fix: str
def decode_jwt_unsafe(token: str) -> tuple[dict, dict, str]:
"""
Decode a JWT token WITHOUT verifying the signature.
Returns (header, payload, signature_b64).
Safe for inspection purposes — never use for auth decisions.
"""
parts = token.strip().split('.')
if len(parts) != 3:
raise ValueError(f"Invalid JWT format: expected 3 parts, got {len(parts)}")
def b64_decode(s: str) -> dict:
# JWT uses URL-safe base64 without padding
padding = 4 - len(s) % 4
if padding != 4:
s += '=' * padding
raw = base64.urlsafe_b64decode(s)
return json.loads(raw)
header = b64_decode(parts[0])
payload = b64_decode(parts[1])
signature = parts[2]
return header, payload, signature
def analyze_jwt_claims(token: str) -> list[JwtFinding]:
"""Full security analysis of a JWT token's claims and header."""
findings = []
try:
header, payload, sig = decode_jwt_unsafe(token)
except Exception as e:
return [JwtFinding(
severity='CRITICAL', claim='format',
issue='Invalid JWT format', detail=str(e),
fix='Ensure token is a valid JWT (3 base64url parts separated by dots)'
)]
now = int(time.time())
# ── Algorithm checks ─────────────────────────────────────────────────────
alg = header.get('alg', '')
if alg.lower() == 'none':
findings.append(JwtFinding(
severity='CRITICAL', claim='alg',
issue='Algorithm "none" — signature verification disabled',
detail=(
'alg:none means the JWT has no signature. Any payload can be crafted '
'and will be accepted by a vulnerable server. This is CVE-2015-9235.'
),
fix=(
'Server must reject tokens with alg:none. '
'In jsonwebtoken: jwt.verify(token, secret, { algorithms: ["HS256"] })'
),
))
elif alg.startswith('HS') and len(sig) < 32:
findings.append(JwtFinding(
severity='HIGH', claim='alg',
issue=f'Algorithm {alg} with suspiciously short signature',
detail='Short signature may indicate a weak or guessable HMAC secret.',
fix='Use a minimum 256-bit (32-byte) random secret for HMAC-SHA256',
))
elif alg == 'RS256' or alg == 'ES256':
findings.append(JwtFinding(
severity='INFO', claim='alg',
issue=f'Algorithm: {alg} (asymmetric — good)',
detail='RSA/ECDSA signature — cannot be forged without the private key.',
fix='Ensure public key is loaded from a trusted source, not from the JWT header itself.',
))
# Algorithm confusion: HS256 when server expects RS256
if alg == 'HS256':
findings.append(JwtFinding(
severity='MEDIUM', claim='alg',
issue='HS256 — verify server rejects RS256→HS256 algorithm confusion',
detail=(
'If the server also supports RS256, an attacker may forge Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f3b4a2
git clone https://github.com/LeoYeAI/openclaw-master-skills git -C openclaw-master-skills checkout 4f3b4a2a472e
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f3b4a2a472e only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- !CAUTION B 89 / 100
first audit · source
4f3b4a2a472e
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/leoyeai/phy-jwt-auth-audit/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
LeoYeAI/openclaw-master-skills
Run tests on BrowserStack. Use when user mentions "browserstack", "cross-browser", "cloud testing", "browser matrix", "test on safari", "test on firefox", or "browser compatibility".
LeoYeAI/openclaw-master-skills
Analyze test coverage gaps. Use when user says "test coverage", "what's not tested", "coverage gaps", "missing tests", "coverage report", or "what needs testing".
LeoYeAI/openclaw-master-skills
Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".
LeoYeAI/openclaw-master-skills
Set up Playwright in a project. Use when user says "set up playwright", "add e2e tests", "configure playwright", "testing setup", "init playwright", or "add test infrastructure".
LeoYeAI/openclaw-master-skills
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding…
LeoYeAI/openclaw-master-skills
PDF conversion toolkit featuring AI layout analysis and OCR. Converts PDFs to Word, Markdown, JSON, PPT, CSV, HTML, and XML for seamless LLM data processing.
Add this badge to your README
[](https://modelsatlas.com/skills/leoyeai/phy-jwt-auth-audit/)
<a href="https://modelsatlas.com/skills/leoyeai/phy-jwt-auth-audit/"><img src="https://modelsatlas.com/skills/leoyeai/phy-jwt-auth-audit/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Phy Jwt Auth Audit
What does the Phy Jwt Auth Audit skill do?
Is Phy Jwt Auth Audit safe to install?
What can Phy Jwt Auth Audit access on my machine?
Which assistants does Phy Jwt Auth Audit work with?
How current is this page?
Sources
- github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/phy-j — the audited source at commit 4f3b4a2a472e and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Phy Jwt Auth Audit skill do?
- Is Phy Jwt Auth Audit safe to install?
- What can Phy Jwt Auth Audit access on my machine?