Free Cookie Security Checker

Free Cookie Security Checker

Free tool

Audit cookies for HttpOnly, Secure, SameSite, and Partitioned attributes to stop session theft and cross-site leakage before attackers exploit them.

  • HttpOnly & Secure flags
  • SameSite settings
  • Partitioned cookies
No credit card requiredProduction-safe (100% passive)No setup or code required
Trusted by 3,500+ security & engineering teams
Oracle logoShopify logoGoDaddy logoChubb logoToshiba logoMAPFRE logoBelfius logoGBG logoWEKA logoShift Technology logo

What you get for free

18 core security checks via this tool, passive scans, step-by-step remediation, security score on every result.

What Essential adds at $39/mo

+17 advanced checks, continuous monitoring, daily security score history, email alerts, GitHub SAST, board-ready PDFs, SOC 2 / ISO 27001 / PCI reports.

How to fix common failures

  • Mark auth cookies as HttpOnly so they are never accessible to JS
  • Set Secure on all cookies over HTTPS
  • Use SameSite=Lax by default, and Strict for highly sensitive areas

What is cookie security?

Cookie security ensures sensitive cookies (like session tokens) are protected with HttpOnly, Secure, SameSite and, when needed, Partitioned attributes.

What this checker validates

  • HttpOnly and Secure status on cookies
  • SameSite=Lax/Strict for CSRF mitigation (or None with Secure)
  • Partitioned attribute for third‑party contexts (CHIPS)

Across 7,440 recent scans, 31.9% have at least one cookie missing Secure, HttpOnly, or SameSite. Cookie attributes are still one of the most-overlooked checks.

Implementation examples

Once you've identified the gap, applying the fix is straightforward. Here are the three configurations developers reach for most often.

Nginx

# Rewrite Set-Cookie from upstream to add secure flags
proxy_cookie_flags ~ secure httponly samesite=lax;

# Or set a cookie directly with all attributes
add_header Set-Cookie "session=$cookie_session; Path=/; Secure; HttpOnly; SameSite=Lax" always;

Apache

# Requires mod_headers
Header edit Set-Cookie ^(.*)$ "$1; Secure; HttpOnly; SameSite=Lax"

# Or for a specific cookie
Header always set Set-Cookie "session=abc123; Path=/; Secure; HttpOnly; SameSite=Strict"

Node.js (Express)

import express from "express"
import session from "express-session"

const app = express()

app.use(
  session({
    secret: process.env.SESSION_SECRET!,
    resave: false,
    saveUninitialized: false,
    cookie: {
      httpOnly: true,
      secure: true,
      sameSite: "lax",
      maxAge: 1000 * 60 * 60 * 24,
    },
  }),
)

// Or when setting a cookie manually
res.cookie("token", token, {
  httpOnly: true,
  secure: true,
  sameSite: "lax",
  path: "/",
})

Tool-specific questions

Is SameSite=None safe?

Yes, with Secure and when cross-site is required. Otherwise prefer Lax/Strict.

When to use Partitioned?

For third‑party cookies that should not be shared cross‑site. It requires HTTPS.

Should JWTs be in cookies or storage?

Prefer HttpOnly Secure cookies to avoid XSS token theft. Avoid localStorage for long-lived tokens.
Why Barrion

Built for the engineers who already have enough to fix.

Speed

Real-time results

Instant analysis with a detailed report. You see findings as the scan runs, not after.
Coverage

Comprehensive checks

35+ checks per scan covering TLS, headers, CORS, cookies, DNS, email auth, and more, in a single pass.
Action

Step-by-step fixes

Every finding ships with the exact remediation step for your framework. Hand it to the engineer who owns the surface.
FAQ

Frequently asked.

What is Barrion and how does it enhance website security?
Barrion is a security testing and monitoring platform for engineering teams, covering three products: passive DAST that continuously watches your live web apps and APIs, SAST via GitHub that scans your codebase for secrets, insecure patterns and vulnerable dependencies, and AI pentesting that runs active, agent-driven attacks with proof-of-exploit. Findings come with step-by-step fixes you can ship immediately.
How safe is Barrion to use for security testing?
Every default Barrion scan is 100% passive and read-only. We never submit forms, brute-force endpoints or interact with state-changing routes, so it's safe to run against production.
What types of security issues does Barrion identify?
Barrion is a security testing and monitoring platform, so coverage spans three surfaces. Passive DAST flags misconfigurations across TLS/HTTPS, security headers, cookie flags, CORS policy, DNS records, email authentication (SPF/DKIM/DMARC), network exposure and common web hygiene issues. SAST via GitHub finds secrets in code, insecure patterns and vulnerable dependencies. AI pentesting adds exploitable findings like SQL injection, XSS and broken access control with proof-of-exploit.
What specific security checks does Barrion perform?
Barrion checks TLS/HTTPS configuration, HTTP security headers, cookie flags, CORS policy, DNS and email authentication records, network exposure and common web hygiene issues, then prioritises them by severity with clear remediation.
What is Barrion's smart crawling?
Smart crawling automatically discovers the pages and endpoints of your app so scans cover the surface that matters, without you manually listing every URL.
How often does Barrion perform security scans?
Manual scans on demand. Continuous monitoring runs automatically on Essential (weekly+) and Business (daily), and alerts you the moment a new issue appears.
Is Barrion suitable for security testing of all business sizes?
Yes. Barrion is a security testing and monitoring platform, with passive DAST, SAST via GitHub and AI pentesting available to solo developers, startups, scale-ups and enterprise security teams alike, without adding headcount.
How does Barrion handle data security and privacy during security testing?
Scans are passive and read-only by default, and we never store or expose sensitive data from your application. Pentests are rate-limited and non-destructive, designed to confirm exploitability without altering data or affecting availability.
What if I'm not satisfied with Barrion's security testing service?
Paid plans start with a free trial, and you can cancel anytime. If something isn't right, contact us and we'll make it work for your team.
How does Barrion help with SOC 2, ISO 27001, NIS2, and other compliance frameworks?
Barrion produces audit-ready PDF and CSV reports suitable for SOC 2, ISO 27001, PCI DSS and NIS2, ready to share with auditors, customers and your board.

Anything else? Email contact@barrion.io.

Run a full report on your site.

Free first scan covers every check, no signup needed. Sign up to save the report and turn on continuous monitoring.