Back to skills
SKILL.md
1498 Implementation 8e8999d2
ASecurity1. Review session creation, storage, and transport security controls. 2. Validate cookie flags, rotation, expiration, and invalidation behavior. 3. Identify common attack paths (fixation, CSRF, replay) and mitigations. 4. Provide prioritized fixes with configuration/code examples. Locate session management code: - Authentication/login handlers - Session middleware configuration - Cookie handling code - Session storage implementations - Logout/session termination code **Common file patterns**:...
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 1498-implementation_8e8999d2 --agent claude-codeAre you the author of 1498 Implementation 8e8999d2?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-1498-implementation-8e8999d2)# Implementation Guide
1. Review session creation, storage, and transport security controls.
2. Validate cookie flags, rotation, expiration, and invalidation behavior.
3. Identify common attack paths (fixation, CSRF, replay) and mitigations.
4. Provide prioritized fixes with configuration/code examples.
### 1. Code Discovery Phase
Locate session management code:
- Authentication/login handlers
- Session middleware configuration
- Cookie handling code
- Session storage implementations
- Logout/session termination code
**Common file patterns**:
- `**/auth/**`, `**/session/**`, `**/middleware/**`
- `session.config.*`, `auth.config.*`
- Framework-specific: `settings.py`, `application.yml`, `web.config`
### 2. Session ID Security Analysis
**Generation Strength**:
- Check for cryptographically secure random generators
- Verify sufficient entropy (at least 128 bits)
- Ensure unpredictable session ID patterns
- No sequential or timestamp-based IDs
**Bad Patterns to Detect**:
```javascript
// INSECURE: Predictable
sessionId = Date.now() + userId;
sessionId = Math.random().toString();
// SECURE: Cryptographically random
sessionId = crypto.randomBytes(32).toString('hex');
```
### 3. Session Fixation Vulnerability Check
Verify session ID regeneration:
- New session ID generated after login
- Session ID changes on privilege escalation
- Old session ID invalidated after regeneration
**Vulnerable Pattern**:
```python
# INSECURE: Reuses existing session IDAttribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.