cookie_security_audit
Audit the security attributes of cookies set by any URL. Fetches the URL and inspects all Set-Cookie headers for: HttpOnly, Secure, SameSite, Domain scope, Path scope, Max-Age/Expires, __Host-/__Secure- prefixes. Flags insecure patterns: missing HttpOnly on session cookies, missing Secure flag, SameSite=None without Secure, overly broad Domain, and excessive TTL. Returns per-cookie grades and an overall security score (0–100) — the score is the WEAKEST cookie, not the average, so one leaking session cookie cannot be averaged into a green result (average_score is reported separately).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "https://www.ia-qa.com"
},
"name": "cookie_security_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to audit (e.g. https://example.com/login) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| name | No | ||
| path | No | ||
| score | No | ||
| domain | No | ||
| issues | No | ||
| secure | No | ||
| cookies | No | ||
| max_age | No | ||
| message | No | ||
| httpOnly | No | ||
| sameSite | No | ||
| host_prefix | No | ||
| cookies_found | No | ||
| secure_prefix | No |