Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Tests whether HSTS headers are present and correctly configured on HTTPS responses, including max-age and subdomain directives.
65% 91%+26 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 15 of 23 without it.
We want to run a lightweight Python-based CLI tool to check HSTS policies on remote servers. What flag is passed to sslyze to perform strictly an HSTS security check?
Specifies the --hsts command option flag for sslyze
3 of 3 safety checks passed
WSTG-CONF-07
Test HTTP Strict Transport Security (HSTS)
HTTP Strict Transport Security (HSTS) is a security mechanism that forces browsers to communicate with websites only over HTTPS. When properly implemented, HSTS protects against protocol downgrade attacks, SSL stripping, and cookie hijacking. This test verifies that the HSTS header is present, properly configured, and includes appropriate directives.
| Directive | Description | Recommended |
|---|---|---|
max-age | Time in seconds to enforce HTTPS | >= 31536000 (1 year) |
includeSubDomains | Apply HSTS to all subdomains | Yes |
preload | Include in browser preload lists | Recommended |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.