Cookie Session Audit logo

Cookie Session Audit

Community
mrhlaingbwardev
cookie-session-audit

Use when user says cookie check, session verify, cookies txt/zip/json, or bulk cookie validation. Safely validates cookie health, expiry, security flags, and session usability.

Overview

Publishermrhlaingbwardev
Repositoryagentic-hacking-skills
Skill namecookie-session-audit
Stars
350
Forks
57
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mrhlaingbwardev on GitHub. Read the source before you install it.

Installation

Install the Cookie Session Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/cookie-session-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrhlaingbwardev/agentic-hacking-skills.git /tmp/agentic-hacking-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-hacking-skills/skills/cookie-session-audit .claude/skills/cookie-session-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cookie Session Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cookie Session Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cookie Session Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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
  • .zip containing any of the above

If .zip is provided:

  1. extract to temp folder
  2. parse supported files recursively
  3. deduplicate cookie records

Fast Audit Pipeline

Phase 1 - Parse & Normalize (offline)

  1. parse cookies into normalized fields:
    • name, value, domain, path, expires, secure, httpOnly, sameSite
  2. ignore invalid lines/records
  3. deduplicate by domain + path + name + value
  4. classify session vs persistent

Phase 2 - Static Security Audit (offline)

For each cookie, detect:

  • missing Secure
  • missing HttpOnly
  • weak SameSite (None without Secure, or missing)
  • overly broad domain/path scope
  • expired timestamps

Static result labels:

  • EXPIRED
  • WEAK_FLAGS
  • SCOPE_TOO_BROAD
  • FORMAT_INVALID
  • STATIC_OK

Phase 3 - Live Session Check (online, optional)

Run only when target base URL is provided by user.

  1. build cookie jar per domain
  2. send lightweight authenticated probe to low-impact endpoint:
    • preferred: /api/me, /me, /account, /profile
  3. follow minimal redirects
  4. classify by HTTP status + response signal

Live status labels:

  • SESSION_ACTIVE
  • SESSION_EXPIRED
  • UNAUTHORIZED
  • MFA_REQUIRED
  • CAPTCHA_REQUIRED
  • IP_BINDING_MISMATCH
  • CSRF_BLOCKED
  • RATE_LIMITED
  • TEMP_ERROR

Phase 4 - Stability Probe (optional)

For active sessions only:

  • send 2 low-cost checks
  • compare consistency of status

Stability labels:

  • STABLE
  • UNSTABLE

Error Classification Standard

Use exact categories:

  • COOKIE_EXPIRED
  • COOKIE_REVOKED
  • INVALID_FORMAT
  • MISSING_SECURE
  • MISSING_HTTPONLY
  • SAMESITE_WEAK
  • DOMAIN_SCOPE_RISK
  • PATH_SCOPE_RISK
  • SESSION_ACTIVE
  • SESSION_INVALID
  • MFA_REQUIRED
  • CAPTCHA_REQUIRED
  • RATE_LIMITED
  • NETWORK_ERROR
  • PROVIDER_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:

  1. cookie_summary.txt
  • total parsed
  • valid format count
  • expired count
  • active session count
  • weak flag count
  1. cookie_results.json Per record include:
  • masked_cookie
  • domain
  • name
  • expires_at
  • static_status
  • live_status
  • stability
  • http_code
  • risk_flags
  • error_hint
  1. 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

Frequently asked questions

What does the Cookie Session Audit AI skill do?

Use when user says cookie check, session verify, cookies txt/zip/json, or bulk cookie validation. Safely validates cookie health, expiry, security flags, and session usability.

Why use Cookie Session Audit on TypingMind?

Because you install it once and use it with any model. Cookie Session Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cookie Session Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/main/skills/cookie-session-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cookie Session Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cookie Session Audit?

As many as you like. As long as a model supports skills, you can use Cookie Session Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cookie Session Audit AI skill free?

It is published on GitHub by mrhlaingbwardev. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇