HTTP security headers always provide an extra layer of security by helping to mitigate attacks and security vulnerabilities.
During the last few years, a number of new HTTP headers have been introduced whose purpose is to help enhancing the security of a website.
Command HTTP Security Headers –
1. Content-security-policy
2. X-xss-protection
3. Strict-transport-security
4. X-frame-options
5. Public-key-pins
6. X-content-type
Installation of Shcheck –
You can easily install shcheck script which is python based script from Github directly.
Command: git clone https://github.com/m3liot/shcheck.git
Give the full permissions to shcheck.py script with the help of “chmod +x shcheck.py“.
To run this script, simply type “./shcheck.py <Your target>”
You can also analyze or scan all headers online from HTTP HEADER CHECK.
Here are the list of other sites/tools through which you can also scan the security headers of any website.
- Chrome Dev Tools
- Securityheaders.io (our fav website)
This section cover a list of tools to analyze, develop and administrate HTTP secure headers in order to help achieve more secure and trustworthy web systems.
Analysis Tools | Reference |
hsecscan
A security scanner for HTTP response headers. |
|
headers
Python script to get some response headers from Alexa top sites file and store in a MySQL database. |
|
securityheaders.io
There are services out there that will analyse the HTTP response headers of other sites but I also wanted to add a rating system to the results. The HTTP response headers that this site analyses provide huge levels of protection and it’s important that sites deploy them. Hopefully, by providing an easy mechanism to assess them, and further information on how to deploy missing headers, we can drive up the usage of security based headers across the web. |
|
Mozilla Observatory
A Mozilla project designed to help developers, system administrators, and security professionals configure their sites safely and securely. |
|
High-Tech Bridge Web Security Scanner
An online service that will retrieve and analyse headers syntax and proper configuration in a comprehensive way. It will be able for instance to highlight Public-Key-Pins that matches one certificate of the chain or if Content-Security-Policy contains values that could be unsafe or too permissive. |
|
Check Your Headers
Just another web scanner for HTTP response headers. |
|
Recx Security Analyser
Chrome extension that allows the inspection of security aspects of a site’s HTTP headers, cookies and other key security settings. |
|
KickOff
While each project you launch may have a different feature set, they often share many of the same performance, SEO and security requirements. This tool aims to automate the process of checking your list of requirements shortly before launch or directly after a deployment. |
Development Libraries | Language | Reference |
secureheaders
Security related headers all in one gem. |
|
|
Security Header Injection Module (SHIM)
SHIM is a HTTP module that provides protection for many vulnerabilities by injecting security-specific HTTP headers into ASP.NET web applications. |
|
|
Spring Security
Spring Security’s support for adding various security headers to the response. |
|
|
rack-secure_headers
Security related HTTP headers for Rack applications. |
|
|
helmet and hood
Node.js (express). |
|
|
blankie
A CSP plugin for hapi. |
|
|
NWebsec
NWebsec consists of several security libraries for ASP.NET applications. |
|
|
django-csp + commonware; django-security
django-csp + commonware; django-security. |
|
|
secureheader
Package secureheader adds some HTTP header fields widely considered to improve safety of HTTP requests. |
|
|
secure_headers
This Plug will automatically apply several security headers to the Plug.Conn response. By design SecureHeaders will attempt to apply the most strict security policy. Although, security headers are configurable and are validated to avoid misconfiguration. |
|
|
dropwizard-web-security
A bundle for applying default web security functionality to a dropwizard application. |
|
|
ember-cli-content-security-policy
This addon makes it easy to use Content Security Policy (CSP) in your project. It can be deployed either via a Content-Security-Policy header sent from the Ember CLI Express server, or as a meta tag in the index.html file. |
|
Operation Tools | Web Servers Supported | Reference |
http_hardening
Puppet module to enable, configure and manage secure http headers on web servers. |
|
|
- 15 Essential Windows Command Prompt Commands for Everyday Use
- Most Common DNS Record Types and Their Roles
- Top Skills Needed to Become a Cybersecurity Analyst
- Mastering Windows Management with WMIC Commands – Top 20 Examples
- Edit and Compile Code with the Best 5 Code Editors
- 50+ Top DevSecOps Tools You Need To Know
- Learn How to Add Proxy and Multiple Accounts in MoreLogin
- Some Useful PowerShell Cmdlets
- Create Free SSL Certificate – ZEROSSL.COM [2020 Tutorial]
- Generate Self-Signed SSL Certificate with OPENSSL in Kali Linux