Skip to content
Back to skills

1498 Implementation 8e8999d2

ASecurity

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. 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
securityjavascriptpythongojavasecurity

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1498-implementation_8e8999d2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1498 Implementation 8e8999d2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1498 Implementation 8e8999d2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1498-implementation-8e8999d2/badge)](https://www.skillsdirectory.com/skills/tools-only-1498-implementation-8e8999d2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# 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 ID

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.