-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐️ add recommendations from OWASP HTTP Security Response Headers (#427)
This PR adds recommendations from [OWASP http header recommendations](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html). - Recommendation for removal or obfuscation of http `Server` header - Recommendation for removal of http header `X-Powered-By`, `X-AspNet-Version`, `X-AspNetMvc-Version` and `Public-Key-Pins` ``` cnspec scan host google.com -f core/mondoo-http-security.mql.yaml Asset: google.com ----------------- Checks: ✕ Fail: Set X-Content-Type-Options HTTP header to 'nosniff' ✓ Pass: Remove all X-AspNetMvc-Version headers. ✕ Fail: Set Content Security Policy (CSP) HTTP header ✓ Pass: This header Public-Key-Pins is deprecated and should not be used anymore ✓ Pass: Remove Server header or obfuscate it ✓ Pass: Remove all X-Powered-By headers. ✓ Pass: Remove all X-AspNet-Version headers. ✕ Fail: Set Strict-Transport-Security (HSTS) HTTP header ``` --------- Signed-off-by: Tim Smith <[email protected]> Co-authored-by: Tim Smith <[email protected]> Co-authored-by: Letha <[email protected]>
- Loading branch information
1 parent
592fe36
commit 573a15c
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters