360 Secure SkillHub
360 安全技能中心

Axiom Jwt Inspector

面向调试与审计的 JWT 检查工具:Base64url 解码 header、payload 与 claims,显示 exp/nbf/iat 过期状态并提示 alg=none、弱密钥等风险。脚本文档另列出 HMAC(HS256/384/512)校验与令牌创建,与 SKILL.md 声明的“不校验签名”不一致。纯标准库运行,支持字符串与文件输入及 JSON 输出。

kofna3369
kofna3369
热度 34.12
最近更新 2026-06-15 12:49:52
分类:安全依赖:代码执行 / 读写文件应用场景:调试排错 / API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add axiom-jwt-inspector
Metadata
name
axiom-jwt-inspector
description
JWT inspector — decode JSON Web Tokens and inspect header, payload, claims, expiration. Use when you need to debug or audit JWTs. Pure stdlib, no LLM. **No signature verification** (use a JWT lib for that).
version
0.1.2
license
Apache-2.0

axiom-jwt-inspector

Version: 0.1.2 Axioma Tools

Decodes JWTs and exposes their structure for debugging and auditing.

What this skill does

  • Decodes header (alg, typ, kid, etc.)
  • Decodes payload (claims)
  • Shows expiration status (exp/nbf/iat)
  • Flags common vulnerabilities (alg=none, weak secret)
  • Does NOT verify signatures — debug only

When to use this skill

  • ✅ Debug a JWT you're receiving
  • ✅ Audit token structure before trusting
  • ✅ Inspect expiration/issued-at
  • ❌ Authenticate users (use a JWT lib with sig verification)
  • ❌ Replace pyjwt (this is inspection only)

Usage

python3 axiom_jwt_inspector.py "eyJhbGciOiJIUzI1NiIs..."
python3 axiom_jwt_inspector.py token.txt --json
from axiom_jwt_inspector import inspect_jwt
info = inspect_jwt('eyJhbGciOiJIUzI1NiIs...')
# {'header': {...}, 'payload': {...}, 'expired': False, 'warnings': []}

Validation

Check Status
Unit tests 20+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14