Skip to content
Back to skills

Cookie Hygiene

ASecurity

Cookie-attribute assessment — HttpOnly, Secure, SameSite, Domain/Path scope, and __Host-/__Secure- prefixes on session and sensitive cookies, plus overscoped/duplicate cookies and prefix-bypass attempts. Tier 1 (feeds XSS/CSRF/session findings). Use as a sweep wherever cookies carry auth or sensitive state.

  • 16 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 17, 2026
securitybackend

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill cookie-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cookie Hygiene?

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

Security grade badge for Cookie Hygiene
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-cookie-hygiene/badge)](https://www.skillsdirectory.com/skills/anandjogawade-cookie-hygiene)

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

Download with Pro
SKILL.md
---
name: cookie-hygiene
description: Cookie-attribute assessment — HttpOnly, Secure, SameSite, Domain/Path scope, and __Host-/__Secure- prefixes on session and sensitive cookies, plus overscoped/duplicate cookies and prefix-bypass attempts. Tier 1 (feeds XSS/CSRF/session findings). Use as a sweep wherever cookies carry auth or sensitive state.
---

# Cookie Hygiene

Weak cookie attributes amplify XSS, CSRF, and session attacks. Check every auth/sensitive cookie.

## Trigger phrases
`cookie flags, httponly, secure flag, samesite, __host-, __secure-, cookie scope`

## Checklist
- **HttpOnly:** missing on session/token cookie → XSS-stealable (→ chains to `reflected-xss`/`stored-xss`).
- **Secure:** missing → sent over HTTP; interceptable.
- **SameSite:** `None` (CSRF-exposed), `Lax` (top-level-GET + ~2-min window), `Strict`, or unset (browser-default drift) — map to CSRF risk (→ `csrf`).
- **Domain/Path scope:** overscoped to parent domain → subdomain cookie theft/injection; too-broad path.
- **`__Host-`/`__Secure-` prefixes:** present on sensitive cookies? `__Host-` requires Secure + no Domain + Path=/; absence weakens against subdomain injection/fixation. Test prefix-parsing/sandwiching bypasses.
- **Duplicate/conflicting cookies**, overlong lifetimes, sensitive data in cookie values.

## Reporting
Per cookie: the missing/weak attribute and the enabled attack; dedupe site-wide.

## Verification (background, before reporting)
Re-check the header/response across multiple endpoints and a clean request to avoid false positives; confirm exploitability (not just absence) before rating. Report true positives only. Backend/Burp: see `zazy-orchestrator`.

## Evidence
The Set-Cookie headers, the weak attribute, and the enabled risk.

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.

View all in security →

Comments

Loading comments…

Newsletter

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