{"uid":"cap_ED0fuEzR1r16lL3eM75xd","slug":"brainiac-cookie-security-audit-20a390c9","name":"BRAINIAC Cookie Security Audit","description":"Check Secure, HttpOnly, and SameSite on Set-Cookie headers from one public response or from cookie lines supplied by the caller. Cookie values are not returned.","url":"https://www.brainiac.software/api/v1/security-configuration/cookie-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tls":{"type":"object","properties":{"issuer":{"type":"string","maxLength":200},"subject":{"type":"string","maxLength":200},"validTo":{"type":"string","maxLength":80},"protocol":{"type":"string","maxLength":40},"validFrom":{"type":"string","maxLength":80},"authorized":{"type":"boolean"},"hostnameMatches":{"type":"boolean"}},"additionalProperties":false},"url":{"type":"string","pattern":"^https?:\\/\\/\\S+$","maxLength":2000,"minLength":8},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":4},"origin":{"type":"string","maxLength":200,"minLength":8},"headers":{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","maxLength":80,"minLength":1},"value":{"type":"string","maxLength":4000}},"additionalProperties":false},"maxItems":40},"endpoints":{"type":"array","items":{"type":"string","pattern":"^https?:\\/\\/\\S+$","maxLength":2000,"minLength":8},"maxItems":4},"transport":{"enum":["http","https"],"type":"string"},"setCookies":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":20},"contentSecurityPolicy":{"type":"string","maxLength":8000},"contentSecurityPolicyReportOnly":{"type":"string","maxLength":8000}}},"responseSchema":{"type":"json","example":{"status":"checked","cookies":[{"name":"session","secure":false,"httpOnly":false,"sameSite":""}],"finalUrl":"","findings":[{"code":"cookie_secure_missing","kind":"confirmed","detail":"This cookie was set on HTTPS without the Secure attribute.","subject":"session"},{"code":"cookie_httponly_missing","kind":"recommendation","detail":"This cookie does not set HttpOnly. Not every cookie needs that attribute.","subject":"session"},{"code":"cookie_samesite_missing","kind":"recommendation","detail":"SameSite was not set.","subject":"session"}],"checkedAt":"2026-11-03T16:00:00.000Z","transport":"https","httpStatus":0,"limitations":["These checks do not show that a website is secure.","Only one public GET is sent per supplied URL or path. No login, brute force, exploit, or credential test is attempted.","A path or endpoint is requested only when the caller lists it.","Cookie values are not copied into the response.","An unavailable check means that configuration was not in the response."],"requestedUrl":"","requestsSent":0,"websiteSecure":false,"confirmedCount":1,"unavailableCount":0,"securityDetermined":false,"recommendationCount":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HmtmP6C5uIY5cTkI2vH-G","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Audits HTTP cookies for security misconfigurations such as missing Secure, HttpOnly, and SameSite attributes","exampleAgentPrompt":"Can you audit the cookies on https://www.example.com for security issues — specifically check whether the session cookie has the Secure, HttpOnly, and SameSite attributes set properly, using HTTPS transport?","exampleUseCases":[{"title":"Pre-launch cookie security review","prompt":"Before we go live, can you check whether the cookies on https://app.mystore.com are set securely? I want to know if the session and auth cookies are missing the Secure or HttpOnly flags."},{"title":"Compliance check for SameSite policy","prompt":"We need to verify our cookies comply with modern browser SameSite requirements — can you audit https://portal.company.com and flag any cookies that are missing a SameSite attribute?"},{"title":"Security audit after HTTPS migration","prompt":"We just moved https://blog.example.com from HTTP to HTTPS — can you check that all the cookies on the site now have the Secure attribute and aren't leaking over plain HTTP?"}],"resultDescription":"Returns a structured JSON object listing each cookie found, its security attributes (Secure, HttpOnly, SameSite), and a findings array with confirmed issues and recommendations. Each finding includes a code, severity kind (confirmed or recommendation), a plain-English detail, and the affected cookie name. Also includes counts of confirmed issues, recommendations, unavailable checks, the final resolved URL, transport protocol, HTTP status code, timestamp, and a list of audit limitations.","failureModes":["Unreachable URL returns no cookie data and an error status","Site redirects or requires authentication — only public GET requests are made, so protected cookies may not appear","TLS errors or mismatched hostnames may prevent connection","Missing or empty Set-Cookie headers result in no cookie findings","Paths or endpoints not listed in the request are not checked","Rate limiting or firewall blocks may cause unavailable checks"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-account, pay-per-call cookie security scan of a public-facing URL. It is ideal for automated security pipelines, pre-deployment checks, or compliance validation where you want fast, structured findings about cookie attribute hygiene without setting up a full vulnerability scanner. It is not a substitute for a full penetration test and only inspects publicly observable cookies from unauthenticated GET requests.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:40:45.090Z","isFirstParty":false,"canonicalSlug":"brainiac-cookie-security-audit-20a390c9"}