[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74RHC16WGWRZEN2AW8VBEWE":3,"skill-same:01M74RHC16WGWRZEN2AW8VBEWE":83},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M74RHC16WGWRZEN2AW8VBEWE","checking-session-security",null,"Analyze session management implementations to identify security vulnerabilities in web applications.\nUse when you need to audit session handling, check for session fixation risks, review session timeout configurations, or validate session ID generation security.\nTrigger with phrases like \"check session security\", \"audit session management\", \"review session handling\", or \"session fixation vulnerability\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: checking-session-security\ndescription: |\n  Analyze session management implementations to identify security vulnerabilities in web applications.\n  Use when you need to audit session handling, check for session fixation risks, review session timeout configurations, or validate session ID generation security.\n  Trigger with phrases like \"check session security\", \"audit session management\", \"review session handling\", or \"session fixation vulnerability\".\n  \nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(code-scan:*), Bash(security-check:*)\nversion: 1.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\n---\n# Checking Session Security\n\n## Overview\n\nAudit session management implementations in web applications to identify vulnerabilities including session fixation (CWE-384), insufficient session expiration (CWE-613), and cleartext transmission of session tokens (CWE-319).\n\n## Prerequisites\n\n- Application source code accessible in `${CLAUDE_SKILL_DIR}\u002F`\n- Session management code locations identified (auth modules, middleware, session stores)\n- Framework and language identified (Express.js, Django, Spring Boot, Rails, ASP.NET, etc.)\n- Session configuration files available (`session.config.*`, `settings.py`, `application.yml`)\n- Write permissions for reports in `${CLAUDE_SKILL_DIR}\u002Fsecurity-reports\u002F`\n\n## Instructions\n\n1. Locate session management code by searching for patterns: `**\u002Fauth\u002F**`, `**\u002Fsession\u002F**`, `**\u002Fmiddleware\u002F**`, and framework-specific files (`settings.py`, `application.yml`, `web.config`).\n2. **Analyze session ID generation**: verify use of a cryptographically secure random generator with at least 128 bits of entropy. Flag predictable patterns such as `Date.now()`, `Math.random()`, sequential IDs, or timestamp-based tokens (CWE-330).\n3. **Check session fixation protections**: confirm the session ID is regenerated after authentication (`req.session.regenerate()` in Express, `request.session.cycle_key()` in Django). Flag any login handler that sets `authenticated = true` without regenerating the session ID.\n4. **Validate cookie security attributes**: verify `HttpOnly` (prevents XSS-based token theft), `Secure` (HTTPS-only transmission), `SameSite=Lax|Strict` (CSRF mitigation), and `__Host-`\u002F`__Secure-` prefix usage. Flag any missing attribute.\n5. **Review session expiration**: check idle timeout (recommend 15-30 min for sensitive apps), absolute timeout (recommend 4-8 hours), and sliding window configuration. Flag sessions without any expiration.\n6. **Audit session invalidation**: verify logout handlers destroy server-side session state and clear client cookies. Confirm password reset and privilege escalation flows invalidate existing sessions.\n7. **Inspect session storage**: flag in-memory stores in production (no persistence across restarts), unencrypted session data at rest, and missing integrity checks on session payloads (e.g., unsigned JWT session tokens).\n8. **Identify attack vectors**: assess exposure to session fixation, CSRF via session riding, replay attacks from stolen tokens, and session prediction from weak ID generation.\n9. Produce the session security report at `${CLAUDE_SKILL_DIR}\u002Fsecurity-reports\u002Fsession-security-YYYYMMDD.md` with per-finding severity, CWE mapping, vulnerable code snippet, and remediated code example.\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md` for the detailed implementation guide. See `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcritical-findings.md` for example vulnerability patterns with before\u002Fafter code.\n\n## Output\n\n- **Session Security Report**: `${CLAUDE_SKILL_DIR}\u002Fsecurity-reports\u002Fsession-security-YYYYMMDD.md` with findings by severity\n- **Cookie Attribute Matrix**: per-cookie compliance table (HttpOnly, Secure, SameSite, prefix)\n- **Vulnerable Code Listings**: each finding with file path, line number, vulnerable snippet, and fix\n- **Framework-Specific Remediation**: configuration changes tailored to the detected framework\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| No session handling code found in `${CLAUDE_SKILL_DIR}\u002F` | Unusual file structure or framework | Search for framework-specific patterns; request explicit file paths |\n| Unknown session framework | Custom or uncommon session library | Apply fundamental session security principles; note limited framework-specific guidance |\n| Cannot analyze minified\u002Fcompiled code | Production bundles instead of source | Request unminified source code; document limitation |\n| Non-standard session implementation | Custom session management bypassing framework | Apply extra scrutiny; custom implementations are higher risk (CWE-384, CWE-613) |\n| Session config in environment variables, not code | Externalized configuration | Request `.env.example` or deployment config documentation |\n\n## Examples\n\n- \"Audit session cookie flags and rotation logic for fixation and CSRF risks in the Express.js application.\"\n- \"Review logout and password reset flows to confirm sessions are invalidated correctly and old tokens cannot be replayed.\"\n- \"Check session ID generation entropy and storage backend security for the Django application.\"\n\n## Resources\n\n- OWASP Session Management Cheat Sheet: https:\u002F\u002Fcheatsheetseries.owasp.org\u002Fcheatsheets\u002FSession_Management_Cheat_Sheet.html\n- CWE-384 Session Fixation: https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F384.html\n- CWE-613 Insufficient Session Expiration: https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F613.html\n- CWE-319 Cleartext Transmission: https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F319.html\n- NIST 800-63B Digital Authentication: https:\u002F\u002Fpages.nist.gov\u002F800-63-3\u002Fsp800-63b.html\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcritical-findings.md` -- example vulnerability patterns\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Ferrors.md` -- full error handling reference\n- https:\u002F\u002Fintentsolutions.io","# Checking Session Security\n\n## Overview\n\nAudit session management implementations in web applications to identify vulnerabilities including session fixation (CWE-384), insufficient session expiration (CWE-613), and cleartext transmission of session tokens (CWE-319).\n\n## Prerequisites\n\n- Application source code accessible in `${CLAUDE_SKILL_DIR}\u002F`\n- Session management code locations identified (auth modules, middleware, session stores)\n- Framework and language identified (Express.js, Django, Spring Boot, Rails, ASP.NET, etc.)\n- Session configuration files available (`session.config.*`, `settings.py`, `application.yml`)\n- Write permissions for reports in `${CLAUDE_SKILL_DIR}\u002Fsecurity-reports\u002F`\n\n## Instructions\n\n1. Locate session management code by searching for patterns: `**\u002Fauth\u002F**`, `**\u002Fsession\u002F**`, `**\u002Fmiddleware\u002F**`, and framework-specific files (`settings.py`, `application.yml`, `web.config`).\n2. **Analyze session ID generation**: verify use of a cryptographically secure random generator with at least 128 bits of entropy. Flag predictable patterns such as `Date.now()`, `Math.random()`, sequential IDs, or timestamp-based tokens (CWE-330).\n3. **Check session fixation protections**: confirm the session ID is regenerated after authentication (`req.session.regenerate()` in Express, `request.session.cycle_key()` in Django). Flag any login handler that sets `authenticated = true` without regenerating the session ID.\n4. **Validate cookie security attributes**: verify `HttpOnly` (prevents XSS-based token theft), `Secure` (HTTPS-only transmission), `SameSite=Lax|Strict` (CSRF mitigation), and `__Host-`\u002F`__Secure-` prefix usage. Flag any missing attribute.\n5. **Review session expiration**: check idle timeout (recommend 15-30 min for sensitive apps), absolute timeout (recommend 4-8 hours), and sliding window configuration. Flag sessions without any expiration.\n6. **Audit session invalidation**: verify logout handlers destroy server-side session state and clear client cookies. Confirm password reset and privilege escalation flows invalidate existing sessions.\n7. **Inspect session storage**: flag in-memory stores in production (no persistence across restarts), unencrypted session data at rest, and missing integrity checks on session payloads (e.g., unsigned JWT session tokens).\n8. **Identify attack vectors**: assess exposure to session fixation, CSRF via session riding, replay attacks from stolen tokens, and session prediction from weak ID generation.\n9. Produce the session security report at `${CLAUDE_SKILL_DIR}\u002Fsecurity-reports\u002Fsession-security-YYYYMMDD.md` with per-finding severity, CWE mapping, vulnerable code snippet, and remediated code example.\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md` for the detailed implementation guide. See `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcritical-findings.md` for example vulnerability patterns with before\u002Fafter code.\n\n## Output\n\n- **Session Security Report**: `${CLAUDE_SKILL_DIR}\u002Fsecurity-reports\u002Fsession-security-YYYYMMDD.md` with findings by severity\n- **Cookie Attribute Matrix**: per-cookie compliance table (HttpOnly, Secure, SameSite, prefix)\n- **Vulnerable Code Listings**: each finding with file path, line number, vulnerable snippet, and fix\n- **Framework-Specific Remediation**: configuration changes tailored to the detected framework\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| No session handling code found in `${CLAUDE_SKILL_DIR}\u002F` | Unusual file structure or framework | Search for framework-specific patterns; request explicit file paths |\n| Unknown session framework | Custom or uncommon session library | Apply fundamental session security principles; note limited framework-specific guidance |\n| Cannot analyze minified\u002Fcompiled code | Production bundles instead of source | Request unminified source code; document limitation |\n| Non-standard session implementation | Custom session management bypassing framework | Apply extra scrutiny; custom implementations are higher risk (CWE-384, CWE-613) |\n| Session config in environment variables, not code | Externalized configuration | Request `.env.example` or deployment config documentation |\n\n## Examples\n\n- \"Audit session cookie flags and rotation logic for fixation and CSRF risks in the Express.js application.\"\n- \"Review logout and password reset flows to confirm sessions are invalidated correctly and old tokens cannot be replayed.\"\n- \"Check session ID generation entropy and storage backend security for the Django application.\"\n\n## Resources\n\n- OWASP Session Management Cheat Sheet: https:\u002F\u002Fcheatsheetseries.owasp.org\u002Fcheatsheets\u002FSession_Management_Cheat_Sheet.html\n- CWE-384 Session Fixation: https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F384.html\n- CWE-613 Insufficient Session Expiration: https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F613.html\n- CWE-319 Cleartext Transmission: https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F319.html\n- NIST 800-63B Digital Authentication: https:\u002F\u002Fpages.nist.gov\u002F800-63-3\u002Fsp800-63b.html\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcritical-findings.md` -- example vulnerability patterns\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Ferrors.md` -- full error handling reference\n- https:\u002F\u002Fintentsolutions.io",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Analyze session management implementations to identify security vulnerabilities in web applications.\nUse when you need to audit session handling, check for session fixation risks, review session timeout configurations, or validate session ID generation security.\nTrigger with phrases like \"check session security\", \"audit session management\", \"review session handling\", or \"session fixation vulnerability\".\n","Read, Write, Edit, Grep, Glob, Bash(code-scan:*), Bash(security-check:*)","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill checking-session-security",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill checking-session-security",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill checking-session-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002FSKILL.md",true,[49,55,61,65,69,73,77],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002FREADME.md","ASSET","资产文件",162,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Fassets\u002FREADME.md",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fcritical-findings.md","REFERENCE","参考文档",939,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Freferences\u002Fcritical-findings.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ferrors.md",1104,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Freferences\u002Ferrors.md",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fexamples.md",180,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Freferences\u002Fexamples.md",{"path":70,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fimplementation.md",1475,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Freferences\u002Fimplementation.md",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002FREADME.md",68,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Freferences\u002FREADME.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002FREADME.md","SCRIPT","脚本",494,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fchecking-session-security\u002Fscripts\u002FREADME.md",[84,91,98,105,112,120],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"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":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":116,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]