Cookie Session Audit (TXT/JSON/ZIP)
Use this skill to audit cookies quickly and safely.
Goal: detect which cookies are usable, expired, risky, or blocked by security controls.
Trigger Rules
Activate when user asks to:
- check cookies
- validate session cookies from txt/json/zip
- bulk cookie audit
- verify live/dead session status
Scope & Safety
- Only test cookies the user owns or is authorized to test.
- No bypass instructions for login, MFA, CAPTCHA, or anti-bot.
- Never print full cookie values in output.
- Mask values as
prefix...suffix. - Never commit raw cookies to git.
Input Rules
Accepted inputs:
.txt.json/.jsonl- Netscape cookie format
- browser export format
.zipcontaining any of the above
If .zip is provided:
- extract to temp folder
- parse supported files recursively
- deduplicate cookie records
Fast Audit Pipeline
Phase 1 - Parse & Normalize (offline)
- parse cookies into normalized fields:
name,value,domain,path,expires,secure,httpOnly,sameSite
- ignore invalid lines/records
- deduplicate by
domain + path + name + value - classify
sessionvspersistent
Phase 2 - Static Security Audit (offline)
For each cookie, detect:
- missing
Secure - missing
HttpOnly - weak
SameSite(NonewithoutSecure, or missing) - overly broad domain/path scope
- expired timestamps
Static result labels:
EXPIREDWEAK_FLAGSSCOPE_TOO_BROADFORMAT_INVALIDSTATIC_OK
Phase 3 - Live Session Check (online, optional)
Run only when target base URL is provided by user.
- build cookie jar per domain
- send lightweight authenticated probe to low-impact endpoint:
- preferred:
/api/me,/me,/account,/profile
- preferred:
- follow minimal redirects
- classify by HTTP status + response signal
Live status labels:
SESSION_ACTIVESESSION_EXPIREDUNAUTHORIZEDMFA_REQUIREDCAPTCHA_REQUIREDIP_BINDING_MISMATCHCSRF_BLOCKEDRATE_LIMITEDTEMP_ERROR
Phase 4 - Stability Probe (optional)
For active sessions only:
- send 2 low-cost checks
- compare consistency of status
Stability labels:
STABLEUNSTABLE
Error Classification Standard
Use exact categories:
COOKIE_EXPIREDCOOKIE_REVOKEDINVALID_FORMATMISSING_SECUREMISSING_HTTPONLYSAMESITE_WEAKDOMAIN_SCOPE_RISKPATH_SCOPE_RISKSESSION_ACTIVESESSION_INVALIDMFA_REQUIREDCAPTCHA_REQUIREDRATE_LIMITEDNETWORK_ERRORPROVIDER_DOWN
Performance Rules
- Parse and static-check first.
- Live check only for non-expired candidates.
- Use controlled concurrency.
- Stop early on definitive expired/invalid records.
Default limits:
- concurrency: 8
- timeout: 10s
- retries: 1 (only on network/5xx)
Output Format (Required)
Always produce:
cookie_summary.txt
- total parsed
- valid format count
- expired count
- active session count
- weak flag count
cookie_results.jsonPer record include:
masked_cookiedomainnameexpires_atstatic_statuslive_statusstabilityhttp_coderisk_flagserror_hint
active_cookies.txt
- only
SESSION_ACTIVE - masked by default
- full value only if user explicitly requests and secure context is confirmed
Final Response Style
When reporting to user:
- show totals first
- show active vs expired vs blocked
- show top security issues (missing Secure/HttpOnly/SameSite)
- give next actions:
- rotate sensitive cookies
- tighten flags
- reduce domain/path scope
- shorten TTL for high-risk sessions


