Skip to content

Protocol: Strict Transport Security

Identifier: header_strict_transport_security

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner ASM Scanner

Description

HSTS ensures browsers always connect using secure, encrypted channels. Without it, users might connect using plain HTTP, leaving data vulnerable to attackers who can intercept or tamper with communications, potentially enabling downgrade attacks.

How we test: We analyze HTTP response headers to detect if the Strict-Transport-Security header is missing or misconfigured. We check if HSTS is properly implemented with appropriate max-age values and includeSubDomains directives to prevent man-in-the-middle attacks.

References:

Configuration

Example

Example configuration:

---
security_tests:
  header_strict_transport_security:
    skip: false

Reference

skip

Type : boolean

Skip the test if true.