cookie-flags-analysis

Analyze Set-Cookie flags and cookie types on in-scope URLs for security leads.

1|Updated Jul 2, 2026
One-click install
npx skills add https://github.com/mccleod1290/bb-agentic-setupv2 --skill cookie-flags-analysis-mccleod1290
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cookie-flags-analysis
Source: https://github.com/mccleod1290/bb-agentic-setupv2/tree/main/web-skills/cookie-flags-analysis
Command: npx skills add https://github.com/mccleod1290/bb-agentic-setupv2 --skill cookie-flags-analysis-mccleod1290

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Manually auditing every Set-Cookie header for missing HttpOnly, Secure, or SameSite flags is tedious and error-prone, especially when session cookies are only issued after login. This Skill automates the inventory and classification of cookies so missing flags surface as triaged security leads instead of being overlooked. ## Core Features & Use Cases - Cookie Classification: Distinguishes session vs persistent cookies, detects sensitive names (session, auth, token, JWT patterns), and validates __Host-/__Secure- prefix rules. - Flag Issue Detection: Flags missing HttpOnly/Secure on sensitive cookies, SameSite=None without Secure, and broad Domain attributes, each with severity ratings. - Structured Outputs: Writes REPORT.md and cookies.json under notes/{target}/recon-data/cookie-flags/ for handoff to cartographer and CSRF/XSS hypothesis workflows. - Use Case: During the recon security-controls phase of a bug-bounty engagement, run the script against the target's login response to inventory session cookies and identify which missing flags warrant XSS or CSRF impact hypotheses. ## Quick Start Run the cookie_flags.py script against an in-scope URL with an output directory, for example: python3 web-skills/cookie-flags-analysis/scripts/cookie_flags.py https://app.example.com --output-dir notes/app/recon-data/cookie-flags.

Frequently Asked Questions about cookie-flags-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check Set-Cookie flags for security issues?▼

Run the cookie_flags.py script against a target URL with an output directory. It fetches the page, parses every Set-Cookie header, and reports missing HttpOnly, Secure, and SameSite flags with severity ratings in REPORT.md and cookies.json.

How to detect session cookies missing HttpOnly or Secure flags?▼

The script matches cookie names against sensitive patterns like session, auth, token, and JWT, then flags any sensitive cookie lacking HttpOnly or Secure as a high-severity lead. Results are listed per cookie in the generated report.

Does this tool work on cookies set only after login?▼

The script performs an unauthenticated GET, so cookies set only after login will not appear. Re-run it against a URL that issues session cookies, or parse a HAR file's Set-Cookie lines manually using the same checklist.

Are missing cookie flags automatically valid bug bounty findings?▼

No. Missing flags are treated strictly as leads, not findings. A missing HttpOnly or SameSite flag only becomes reportable when paired with demonstrated XSS or CSRF impact, and all items must pass adversarial validation before filing.

What Python dependencies does the cookie analysis script need?▼

None beyond the Python 3 standard library. The script uses urllib, ssl, http.cookies, and json, so it runs without installing any third-party packages.