[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71H2M6X8VKFW9MPV6D7BHM6":3,"skill-same:01M71H2M6X8VKFW9MPV6D7BHM6":56},{"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":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M71H2M6X8VKFW9MPV6D7BHM6","webapp-auth-jwt",null,"Webapp Auth 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\u002Fwebapp-auth-jwt\u002FSKILL.md",[],[19,20,21,22,23],"webapp","auth","webapp auth jwt","jwt","cybersecurity","2026-11-10 10:12:30",false,"---\nname: webapp-auth-jwt\ndescription: \"Webapp Auth Jwt.\"\ndomain: cybersecurity\n---\n\n|\n| **Algorithm Confusion** | Attack where the server trusts the alg header in the JWT, allowing an attacker to switch from RS256 to HS256 and sign with the public key as the HMAC secret |\n| **alg:none Attack** | Setting the JWT algorithm to \"none\" to bypass signature verification entirely, if the library does not enforce algorithm selection |\n| **JKU Injection** | Manipulating the jku (JWK Set URL) header to point to an attacker-controlled JWKS endpoint, allowing the attacker to supply their own signing keys |\n| **KID Injection** | Injecting SQL, path traversal, or URL payloads into the kid (Key ID) header parameter to manipulate key selection or read arbitrary files |\n| **Key Confusion** | Using the RSA public key as the HMAC secret when the server incorrectly switches from asymmetric to symmetric verification |\n| **JWKS (JSON Web Key Set)** | A JSON structure containing the public keys used by the server to verify JWT signatures, typically hosted at a well-known endpoint |\n\n## Tools & Systems\n\n- **jwt_tool**: Python-based JWT testing toolkit with 12+ attack modes including alg confusion, none bypass, and kid injection\n- **Burp Suite JWT Editor**: Extension for decoding, editing, and re-signing JWTs with algorithm manipulation capabilities\n- **hashcat (mode 16500)**: GPU-accelerated HMAC secret brute-forcing for HS256\u002FHS384\u002FHS512-signed JWTs\n- **John the Ripper**: CPU-based JWT secret cracking with wordlist and rule-based attacks\n- **jwt.io**: Online JWT decoder and debugger for quick token analysis\n\n## Common Scenarios\n\n### Scenario: Algorithm Confusion on Banking API\n\n**Context**: A banking API uses RS256-signed JWTs for authentication. The JWKS endpoint is publicly accessible. The API handles financial transactions requiring high assurance authentication.\n\n**Approach**:\n1. Obtain a valid JWT by authenticating as a regular user\n2. Extract the RSA public key from the JWKS endpoint at `\u002F.well-known\u002Fjwks.json`\n3. Create a new JWT with `\"alg\": \"HS256\"` header and sign it using the RSA public key as the HMAC secret\n4. Send the forged token to `GET \u002Fapi\u002Fv1\u002Fusers\u002Fme` - server accepts it (algorithm confusion confirmed)\n5. Modify the payload to set `\"role\": \"admin\"` and `\"sub\": \"admin@bank.com\"` - sign with the public key\n6. Access admin endpoints: `GET \u002Fapi\u002Fv1\u002Fadmin\u002Ftransactions` returns all transaction history\n7. Test alg:none: rejected by the server (partial mitigation)\n8. Test kid injection with SQL payload: kid parameter is used in a SQL query to look up keys, enabling SQL injection\n\n**Pitfalls**:\n- Using the wrong format of the public key as the HMAC secret (PEM with\u002Fwithout headers, DER, raw bytes)\n- Not trying multiple public key formats when the first one does not produce a valid signature\n- Assuming the alg:none defense means algorithm confusion is also mitigated\n- Not testing kid injection vectors when the kid parameter is present in the JWT header\n- Missing JKU\u002Fx5u header injection when the server fetches keys from URLs\n\n## Output Format\n\n```\n## Finding: JWT Algorithm Confusion Enables Authentication Bypass\n\n**ID**: API-JWT-001\n**Severity**: Critical (CVSS 9.8)\n**CVE Reference**: CVE-2024-54150 (related pattern)\n**Affected Component**: JWT authentication middleware\n\n**Description**:\nThe API's JWT verification library trusts the algorithm specified in\nthe JWT header rather than enforcing a fixed algorithm. An attacker can\nchange the algorithm from RS256 to HS256 and sign the token using the\nserver's RSA public key (available from the JWKS endpoint) as the HMAC\nsecret. The server then uses the same public key to verify the HMAC\nsignature, which succeeds, allowing the attacker to forge tokens for\nany user with any role.\n\n**Attack Chain**:\n1. Obtain public key: GET \u002F.well-known\u002Fjwks.json\n2. Create JWT: {\"alg\":\"HS256\",\"typ\":\"JWT\"}.{\"sub\":\"admin\",\"role\":\"admin\"}\n3. Sign with HMAC-SHA256 using RSA public key PEM as secret\n4. Access admin API: GET \u002Fapi\u002Fv1\u002Fadmin\u002Ftransactions -> 200 OK\n\n**Impact**:\nComplete authentication bypass. An attacker can forge tokens for any\nuser including administrators, accessing all financial transactions,\nuser data, and administrative functions.\n\n**Remediation**:\n1. Enforce the expected algorithm at the server configuration level: jwt.verify(token, key, algorithms=[\"RS256\"])\n2. Never trust the alg header from the JWT for algorithm selection\n3. Update the JWT library to the latest version with algorithm confusion protections\n4. Consider using EdDSA (Ed25519) which does not have symmetric\u002Fasymmetric confusion risk\n5. Implement token binding to prevent forged token acceptance\n```\n","|\n| **Algorithm Confusion** | Attack where the server trusts the alg header in the JWT, allowing an attacker to switch from RS256 to HS256 and sign with the public key as the HMAC secret |\n| **alg:none Attack** | Setting the JWT algorithm to \"none\" to bypass signature verification entirely, if the library does not enforce algorithm selection |\n| **JKU Injection** | Manipulating the jku (JWK Set URL) header to point to an attacker-controlled JWKS endpoint, allowing the attacker to supply their own signing keys |\n| **KID Injection** | Injecting SQL, path traversal, or URL payloads into the kid (Key ID) header parameter to manipulate key selection or read arbitrary files |\n| **Key Confusion** | Using the RSA public key as the HMAC secret when the server incorrectly switches from asymmetric to symmetric verification |\n| **JWKS (JSON Web Key Set)** | A JSON structure containing the public keys used by the server to verify JWT signatures, typically hosted at a well-known endpoint |\n\n## Tools & Systems\n\n- **jwt_tool**: Python-based JWT testing toolkit with 12+ attack modes including alg confusion, none bypass, and kid injection\n- **Burp Suite JWT Editor**: Extension for decoding, editing, and re-signing JWTs with algorithm manipulation capabilities\n- **hashcat (mode 16500)**: GPU-accelerated HMAC secret brute-forcing for HS256\u002FHS384\u002FHS512-signed JWTs\n- **John the Ripper**: CPU-based JWT secret cracking with wordlist and rule-based attacks\n- **jwt.io**: Online JWT decoder and debugger for quick token analysis\n\n## Common Scenarios\n\n### Scenario: Algorithm Confusion on Banking API\n\n**Context**: A banking API uses RS256-signed JWTs for authentication. The JWKS endpoint is publicly accessible. The API handles financial transactions requiring high assurance authentication.\n\n**Approach**:\n1. Obtain a valid JWT by authenticating as a regular user\n2. Extract the RSA public key from the JWKS endpoint at `\u002F.well-known\u002Fjwks.json`\n3. Create a new JWT with `\"alg\": \"HS256\"` header and sign it using the RSA public key as the HMAC secret\n4. Send the forged token to `GET \u002Fapi\u002Fv1\u002Fusers\u002Fme` - server accepts it (algorithm confusion confirmed)\n5. Modify the payload to set `\"role\": \"admin\"` and `\"sub\": \"admin@bank.com\"` - sign with the public key\n6. Access admin endpoints: `GET \u002Fapi\u002Fv1\u002Fadmin\u002Ftransactions` returns all transaction history\n7. Test alg:none: rejected by the server (partial mitigation)\n8. Test kid injection with SQL payload: kid parameter is used in a SQL query to look up keys, enabling SQL injection\n\n**Pitfalls**:\n- Using the wrong format of the public key as the HMAC secret (PEM with\u002Fwithout headers, DER, raw bytes)\n- Not trying multiple public key formats when the first one does not produce a valid signature\n- Assuming the alg:none defense means algorithm confusion is also mitigated\n- Not testing kid injection vectors when the kid parameter is present in the JWT header\n- Missing JKU\u002Fx5u header injection when the server fetches keys from URLs\n\n## Output Format\n\n```\n## Finding: JWT Algorithm Confusion Enables Authentication Bypass\n\n**ID**: API-JWT-001\n**Severity**: Critical (CVSS 9.8)\n**CVE Reference**: CVE-2024-54150 (related pattern)\n**Affected Component**: JWT authentication middleware\n\n**Description**:\nThe API's JWT verification library trusts the algorithm specified in\nthe JWT header rather than enforcing a fixed algorithm. An attacker can\nchange the algorithm from RS256 to HS256 and sign the token using the\nserver's RSA public key (available from the JWKS endpoint) as the HMAC\nsecret. The server then uses the same public key to verify the HMAC\nsignature, which succeeds, allowing the attacker to forge tokens for\nany user with any role.\n\n**Attack Chain**:\n1. Obtain public key: GET \u002F.well-known\u002Fjwks.json\n2. Create JWT: {\"alg\":\"HS256\",\"typ\":\"JWT\"}.{\"sub\":\"admin\",\"role\":\"admin\"}\n3. Sign with HMAC-SHA256 using RSA public key PEM as secret\n4. Access admin API: GET \u002Fapi\u002Fv1\u002Fadmin\u002Ftransactions -> 200 OK\n\n**Impact**:\nComplete authentication bypass. An attacker can forge tokens for any\nuser including administrators, accessing all financial transactions,\nuser data, and administrative functions.\n\n**Remediation**:\n1. Enforce the expected algorithm at the server configuration level: jwt.verify(token, key, algorithms=[\"RS256\"])\n2. Never trust the alg header from the JWT for algorithm selection\n3. Update the JWT library to the latest version with algorithm confusion protections\n4. Consider using EdDSA (Ed25519) which does not have symmetric\u002Fasymmetric confusion risk\n5. Implement token binding to prevent forged token acceptance\n```\n",{"name":5,"domain":23,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fwebapp-auth-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":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-jwt",{"tool":42,"command":43},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-jwt",{"tool":45,"command":46},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-jwt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-jwt\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"index.json","REFERENCE","参考文档",460,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-jwt\u002Findex.json",[57,67,92,115,137,159],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":66},"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":24},"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",[],[74,75,76,77,78,79,80,23,81,82,83,84,85,86,87,88,89,90,91],"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":24},"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",[],[99,77,100,74,101,102,103,104,105,23,106,107,108,109,110,111,112,113,91,114],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":24},"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",[],[122,123,124,125,126,127,128,129,130,131,111,91,132,133,104,134,103,23,135,136],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":24},"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",[],[144,145,146,75,23,147,90,148,149,150,79,91,151,152,153,154,155,156,157,158],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":24},"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",[],[166,144,167,75,168,169,80,91,151,170,171,172,104,79,23,147,173,90,174,149],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]