Skip to content
arrow_back
search
ISM-2063 policy ASD Information Security Manual (ISM)

Ensure Web App Cookies Have Security Flags

Web apps should use secure cookie settings to protect user sessions.

record_voice_over

Plain language

Web applications often need to use small pieces of data called cookies to keep track of users and their sessions. To protect these sessions from bad actors, we need to make sure these cookies are set up correctly with certain 'flags.' If these flags aren’t set, cybercriminals could potentially steal session information, leading to sensitive data loss or unauthorised access.

Framework

ASD Information Security Manual (ISM)

Control effect

Preventative

Classifications

NC, OS, P, S, TS

ISM last updated

May 2025

Control Stack last updated

19 Mar 2026

E8 maturity levels

N/A

Official control statement

If supported, web application session cookies set the HttpOnly flag, Secure flag and the SameSite flag by default.
policy ASD Information Security Manual (ISM) ISM-2063
priority_high

Why it matters

Without HttpOnly, Secure and SameSite cookie flags, sessions can be stolen via XSS/MitM/CSRF, enabling unauthorised access and data breaches.

settings

Operational notes

Test all session cookies default to HttpOnly, Secure and SameSite; validate after releases and via scanner checks that flags aren’t removed or downgraded.

Mapping detail

Mapping

Direction

Controls