session-security
Skill18 starsChanged 3 months agoMITView on GitHub
Analyze session management security — use when reviewing cookie flags, session fixation, timeout, logout, concurrent sessions, or server-side session stores (A07:2021 / CWE-287 / CWE-352 adjacency).
2 other projects use a version of this.
Adopted by
Most recently taken up by
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- YepAPI/skillstheir own version, first seen Apr 12, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- YepAPI/skills★ 8same name
- conjure-3301/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-agent-securitySkill
- ai-application-securitySkill
- api-securitySkill
- attack-surface-mappingSkill
- authentication-analysisSkill
- authorization-analysisSkill
- axguard-auditSkill
- axguard-csoSkill
- axguard-knowledgeSkill
- axguard-preshipSkill
- axguard-remediateSkill
- axguard-reportSkill
- axguard-securitySkill
- axguard-triageSkill
- cloud-securitySkill
- command-injectionSkill
- configuration-securitySkill
- deserialization-securitySkill
- file-upload-securitySkill
- graphql-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- secrets-detectionSkill
- security-architecture-reviewSkill
- security-remediationSkill
- security-triageSkill
- sql-injectionSkill
- ssrf-analysisSkill
- ssti-analysisSkill
- supply-chain-securitySkill
- threat-modelingSkill
- websocket-securitySkill
- xss-analysisSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
After finding XSS near session cookies (theft impact) or auth.disable-csrf style hits.
- Very specific: line 66
Check cookie attributes and scope (Domain/Path least privilege).
- Distinctive: line 69
Verify logout destroys server session and clears cookies.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Session Security
Purpose
Guide review of session management: how authenticated state is established, stored, protected in transit/browser, rotated, and invalidated.
When to Use / When Not to Use
Use when:
- Cookie sessions, server session stores, “remember me,” logout flows, or CSRF on cookie-authenticated state-changing requests.
- After finding XSS near session cookies (theft impact) or
auth.disable-csrfstyle hits.
Do not use when:
- Pure bearer JWT APIs with no cookies (use
jwt-security; still consider token storage on clients). - AuthZ object checks unrelated to session lifecycle (
authorization-analysis).
Security Concepts
A session ID is a bearer capability. It needs entropy, TLS, cookie flags (Secure, HttpOnly, SameSite), rotation at login, and server-side invalidation at logout. CSRF matters when cookies authenticate browsers automatically.
Threat Model
Attacker goals:
- Steal or fixate session IDs → account takeover.
- CSRF state-changing actions as the victim.
- Prolong access via non-expiring sessions / missing logout.
- Session confusion across privilege changes (login as user A then B without rotate).
Analysis Workflow
- Identify session mechanism (cookie SID, server store, signed cookie).
- Check cookie attributes and scope (
Domain/Pathleast privilege). - Confirm regeneration of session ID on login and privilege elevation.
- Review idle/absolute timeouts and remember-me token design.
- Verify logout destroys server session and clears cookies.
- For cookie auth: CSRF tokens / SameSite / double-submit patterns on mutating routes.
- Assess XSS impact if
HttpOnlymissing; bind withxss-analysis.
Evidence Requirements
- Session config / middleware location
- Missing flag, rotation, timeout, or CSRF control
- Impact on account takeover or forged actions
False Positive Controls
- Bearer-header APIs without cookie auth (CSRF N/A for classic cookie CSRF)
- SameSite=Strict with no cross-site needs and verified behavior
- Short-lived sessions with robust rotation already present
Remediation
- Set
Secure,HttpOnly, and appropriateSameSite; use__Host-prefix when possible. - Rotate session IDs on login; invalidate on logout/password change.
- Enforce timeouts; bind sessions to user agent risk signals as needed.
- Protect mutating cookie-auth routes against CSRF.
- Store minimal data server-side; never put privileges only in forgeable client state.
Verification
Review cookie/session lifecycle → Fix flags/rotation/CSRF → Re-run axguard → Confirm logout invalidates server stateRelated Skills
authentication-analysis,jwt-security,oauth-securitywebsocket-security,xss-analysissecurity-triage,security-remediation
Framework Mapping
- CWE-287, CWE-352
- OWASP A07:2021
- OWASP API2:2023 Broken Authentication
References
- https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/
- https://owasp.org/API-Security/editions/2023/en/api2-broken-authentication/
- https://cwe.mitre.org/data/definitions/287.html
- https://cwe.mitre.org/data/definitions/352.html
Research Provenance
Primary sources:
- OWASP A07:2021; OWASP API2:2023; CWE-287; CWE-352 (accessed 2026-09-15)
Secondary / internal:
- AXGuard
rules/auth.json(CSRF disable patterns),/axguard-auth - AwareXone Agentic-Bug-Hunter session methodology (concepts only; not copied)
Datasets:
- UVID HF dataset — category linkage concepts only (MIT license metadata review 2026-09-15)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

