Security baseline
This module checks the basics that should be in place on any production site, from the certificate through the security headers to how cookies are set.
What this module checks
- HTTPS use and redirects from HTTP to HTTPS
- TLS handshake, certificate expiry date, untrusted certificates, weak keys and legacy protocol versions
- Strict-Transport-Security (HSTS) header
- Content-Security-Policy header, and weak settings in it such as unsafe-inline, unsafe-eval and wildcard script sources
- X-Content-Type-Options header
- Clickjacking protection (framing controls)
- Referrer-Policy header
- Permissions-Policy header
- Server software version disclosure
- Cookie attributes (Secure, HttpOnly, SameSite)
- Mixed content (HTTP resources on an HTTPS page)