[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M719PVFA0WHCHW579CNTW919":3,"skill-same:01M719PVFA0WHCHW579CNTW919":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M719PVFA0WHCHW579CNTW919","sast-jwt",null,"Detect JWT (JSON Web Token) vulnerabilities in authentication middleware and API routes. Use when reviewing token validation, session handling, or any code that parses\u002Fverifies JWTs. Covers algorithm confusion, none algorithm, weak secrets, and missing validation.","dahaliztupe-sketch\u002FKalmeron-Two","dahaliztupe-sketch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271085317?v=4","01M719765Q83P08JCQ1SWNQR0N","01M719766HQBGF44W90MPJKTD2",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsast-jwt\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"sast","jwt","sast jwt","vulnerabilities","token","validation","secrets","json","web","detect","api","code","when","use","missing","session","middleware","authentication","2026-11-10 10:12:30",false,"---\nname: sast-jwt\ndescription: Detect JWT (JSON Web Token) vulnerabilities in authentication middleware and API routes. Use when reviewing token validation, session handling, or any code that parses\u002Fverifies JWTs. Covers algorithm confusion, none algorithm, weak secrets, and missing validation.\n---\n\n# SAST: JWT Vulnerability Detection\n\nScan for JWT implementation flaws — OWASP A02:2021 (Cryptographic Failures).\n\n## What to Look For\n\n### Critical Patterns\n```typescript\n\u002F\u002F ❌ CRITICAL: accepting 'none' algorithm\njwt.verify(token, secret, { algorithms: ['HS256', 'none'] });\n\n\u002F\u002F ❌ CRITICAL: not specifying algorithm (algorithm confusion attack)\njwt.verify(token, publicKey); \u002F\u002F if RS256 expected but HS256 sent with publicKey as secret\n\n\u002F\u002F ❌ CRITICAL: weak or hardcoded secret\nconst secret = 'secret';\nconst secret = '12345';\nconst secret = process.env.JWT_SECRET || 'fallback-secret'; \u002F\u002F fallback is dangerous\n\n\u002F\u002F ❌ CRITICAL: not verifying token before using claims\nconst decoded = jwt.decode(token); \u002F\u002F decode ≠ verify!\nconst userId = decoded.sub; \u002F\u002F attacker controls this\n\n\u002F\u002F ❌ HIGH: no expiry validation\njwt.sign(payload, secret); \u002F\u002F no expiresIn — token lives forever\n```\n\n### Safe Patterns\n```typescript\n\u002F\u002F ✅ SAFE: explicit algorithm, no fallback secret\nconst secret = process.env.JWT_SECRET;\nif (!secret) throw new Error('JWT_SECRET not configured');\nconst payload = jwt.verify(token, secret, { algorithms: ['HS256'] });\n\n\u002F\u002F ✅ SAFE: short-lived tokens\njwt.sign(payload, secret, { expiresIn: '15m', algorithm: 'HS256' });\n\n\u002F\u002F ✅ SAFE: Firebase ID tokens (Kalmeron uses this)\nconst decoded = await admin.auth().verifyIdToken(idToken);\n```\n\n## Kalmeron-Specific Notes\n- Kalmeron uses Firebase Auth → Firebase SDK handles JWT verification internally\n- Check `src\u002Flib\u002Fauth\u002Fsession.ts` and middleware for any custom JWT handling\n- If custom JWTs are issued (e.g., for API keys), verify the above patterns\n\n## Scan Checklist\n\n- [ ] Algorithm explicitly specified in `jwt.verify()` — never allow 'none'\n- [ ] `jwt.verify()` used (not `jwt.decode()`) for authentication\n- [ ] JWT_SECRET loaded from environment — no hardcoded fallbacks\n- [ ] Tokens have expiry (`expiresIn`)\n- [ ] Token revocation strategy exists (blocklist or short TTL)\n- [ ] Firebase ID tokens verified via `admin.auth().verifyIdToken()`\n\n## Severity Matrix\n| Pattern | Severity |\n|---|---|\n| Algorithm confusion (RS256→HS256) | Critical |\n| `none` algorithm accepted | Critical |\n| `jwt.decode()` used for auth | Critical |\n| Hardcoded JWT secret | High |\n| No token expiry | High |\n| Missing algorithm specification | High |\n\n## Remediation\n1. Always specify `algorithms: ['HS256']` in verify options\n2. Never use `jwt.decode()` for security decisions\n3. Store secrets in environment variables with no defaults\n4. Set `expiresIn: '15m'` for access tokens, `7d` for refresh tokens\n5. Implement token rotation and revocation for sensitive operations\n","# SAST: JWT Vulnerability Detection\n\nScan for JWT implementation flaws — OWASP A02:2021 (Cryptographic Failures).\n\n## What to Look For\n\n### Critical Patterns\n```typescript\n\u002F\u002F ❌ CRITICAL: accepting 'none' algorithm\njwt.verify(token, secret, { algorithms: ['HS256', 'none'] });\n\n\u002F\u002F ❌ CRITICAL: not specifying algorithm (algorithm confusion attack)\njwt.verify(token, publicKey); \u002F\u002F if RS256 expected but HS256 sent with publicKey as secret\n\n\u002F\u002F ❌ CRITICAL: weak or hardcoded secret\nconst secret = 'secret';\nconst secret = '12345';\nconst secret = process.env.JWT_SECRET || 'fallback-secret'; \u002F\u002F fallback is dangerous\n\n\u002F\u002F ❌ CRITICAL: not verifying token before using claims\nconst decoded = jwt.decode(token); \u002F\u002F decode ≠ verify!\nconst userId = decoded.sub; \u002F\u002F attacker controls this\n\n\u002F\u002F ❌ HIGH: no expiry validation\njwt.sign(payload, secret); \u002F\u002F no expiresIn — token lives forever\n```\n\n### Safe Patterns\n```typescript\n\u002F\u002F ✅ SAFE: explicit algorithm, no fallback secret\nconst secret = process.env.JWT_SECRET;\nif (!secret) throw new Error('JWT_SECRET not configured');\nconst payload = jwt.verify(token, secret, { algorithms: ['HS256'] });\n\n\u002F\u002F ✅ SAFE: short-lived tokens\njwt.sign(payload, secret, { expiresIn: '15m', algorithm: 'HS256' });\n\n\u002F\u002F ✅ SAFE: Firebase ID tokens (Kalmeron uses this)\nconst decoded = await admin.auth().verifyIdToken(idToken);\n```\n\n## Kalmeron-Specific Notes\n- Kalmeron uses Firebase Auth → Firebase SDK handles JWT verification internally\n- Check `src\u002Flib\u002Fauth\u002Fsession.ts` and middleware for any custom JWT handling\n- If custom JWTs are issued (e.g., for API keys), verify the above patterns\n\n## Scan Checklist\n\n- [ ] Algorithm explicitly specified in `jwt.verify()` — never allow 'none'\n- [ ] `jwt.verify()` used (not `jwt.decode()`) for authentication\n- [ ] JWT_SECRET loaded from environment — no hardcoded fallbacks\n- [ ] Tokens have expiry (`expiresIn`)\n- [ ] Token revocation strategy exists (blocklist or short TTL)\n- [ ] Firebase ID tokens verified via `admin.auth().verifyIdToken()`\n\n## Severity Matrix\n| Pattern | Severity |\n|---|---|\n| Algorithm confusion (RS256→HS256) | Critical |\n| `none` algorithm accepted | Critical |\n| `jwt.decode()` used for auth | Critical |\n| Hardcoded JWT secret | High |\n| No token expiry | High |\n| Missing algorithm specification | High |\n\n## Remediation\n1. Always specify `algorithms: ['HS256']` in verify options\n2. Never use `jwt.decode()` for security decisions\n3. Store secrets in environment variables with no defaults\n4. Set `expiresIn: '15m'` for access tokens, `7d` for refresh tokens\n5. Implement token rotation and revocation for sensitive operations\n",{"name":5,"description":7},"main","13d9afadbb6a87d6209fe4bd6ca2bbe4553119ac",".agents\u002Fskills\u002Fsast-jwt",0,"https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two","https:\u002F\u002Fkalmeron-two.vercel.app","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch","2026-10-05 12:24:53",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add dahaliztupe-sketch\u002FKalmeron-Two --skill sast-jwt",{"tool":55,"command":56},"bunx","bunx skills add dahaliztupe-sketch\u002FKalmeron-Two --skill sast-jwt",{"tool":58,"command":59},"pnpm","pnpm dlx skills add dahaliztupe-sketch\u002FKalmeron-Two --skill sast-jwt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsast-jwt\u002FSKILL.md",true,[],[64,73,80,92,105,121],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":72},"01M73HK3SBGDHWYP2ZTMJHSJ33","skill-creator","To create new CLI skills following Anthropic's official best practices with zero manual configuration. This skill automates brainstorming, template application, validation, and installation processes while maintaining progressive disclosure patterns and writing style standards.","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-creator\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-creator\u002Fskill-creator\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":72},"01M73HA3PK4C7YS0D3VD9FQ8QA","business-investment-advisor","Business investment analysis and capital allocation advisor. Use when evaluating whether to invest in equipment, real estate, a new business, hiring, technology, or any capital expenditure. Also use for ROI calculations, IRR, NPV, payback period, build vs buy decisions, lease vs buy analysis, vendor evaluation, or deciding where to allocate limited budget for maximum return.","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffinance-skills\u002Fbusiness-investment-advisor\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":36},"01M719SWYD9RGS97HJ69PXWY62","add-new-agent","خطوات تفصيليّة لإضافة وكيل ذكاء اصطناعي جديد إلى منصّة Kalmeron من الفكرة إلى الإنتاج","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002FSKILL.md",[],[88,89,90,91],"add","add new agent","new","new agent",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":36},"01M719SSKNBA7T5NS7V6DP0PX4","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[99,100,90,30,101,102,103,31,104],"writing skills","writing","work","editing","deployment","Existing",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":36},"01M719SRFDNKA3044QD3FYZ05R","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[112,100,113,114,29,115,116,117,118,31,30,119,120],"writing plans","plans","task","multi","spec","multi-step task","for","you","requirements",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":36},"01M719SPN5FM1JYJSR9DGJQPZ0","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fdahaliztupe-sketch\u002FKalmeron-Two\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[128,129,26,130,131,132,118,133,134,135,29,136,137,138,139,140,30,31,141,142],"design","guidelines","web design guidelines","web design","vercel","accessibility","best practices","file","review","check","compliance","audit","ux","web interface guidelines","interface"]