Implements secure JWT signing using HMAC-SHA256, RSA-PSS, EdDSA and verification with expiration, claims checks, JWK rotation, and defenses against algorithm confusion, none alg, key injection. Useful for web auth.
npx claudepluginhub killvxk/cybersecurity-skills-zhThis skill uses the workspace's default tool permissions.
RFC 7519 定义的 JSON Web Token(JWT)是用于 Web 应用程序认证和授权的紧凑、URL 安全的令牌。本技能涵盖使用 HMAC-SHA256、RSA-PSS 和 EdDSA 算法实现安全的 JWT 签名,以及验证、令牌过期、声明验证,并防御常见 JWT 攻击(算法混淆、none 算法、密钥注入)。
Implements secure JWT signing with HS256, RS256, ES256, EdDSA; verifies signatures, claims, expiration; defends against algorithm confusion, none alg, key injection attacks.
Implements secure JWT signing with HS256, RS256, ES256, EdDSA and verification in Python, including expiration, claims validation, key rotation, and defenses against algorithm confusion, none alg, key injection.
Evaluates JWT implementations for crypto weaknesses, none algorithm attacks, RS256-to-HS256 confusion, and auth bypasses during authorized web app pentests.
Share bugs, ideas, or general feedback.
RFC 7519 定义的 JSON Web Token(JWT)是用于 Web 应用程序认证和授权的紧凑、URL 安全的令牌。本技能涵盖使用 HMAC-SHA256、RSA-PSS 和 EdDSA 算法实现安全的 JWT 签名,以及验证、令牌过期、声明验证,并防御常见 JWT 攻击(算法混淆、none 算法、密钥注入)。
| 算法 | 类型 | 密钥 | 安全级别 |
|---|---|---|---|
| HS256 | 对称(HMAC) | 共享密钥 | 128 位 |
| RS256 | 非对称(RSA) | RSA 密钥对 | 112 位 |
| ES256 | 非对称(ECDSA) | P-256 密钥对 | 128 位 |
| EdDSA | 非对称(Ed25519) | Ed25519 密钥对 | 128 位 |