Skip to content

PowerShell script to automatically assess security gradings for multiple websites

License

Notifications You must be signed in to change notification settings

eelcohn/WebsiteSecurityAssessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebsiteSecurityAssessment

This PowerShell script will automatically assess the SSLLabs, SecurityHeaders.io and Mozilla SSL Observatory gradings for multiple websites. I've created this script for medium- and large-scale company's who own hundreds of website which need to be periodically assessed for some basic security measures.

The script will read all the sites from the Hosts.txt file. Add your websites to the Hosts.txt file, place the Hosts.txt file in the same path as the script, and run the script. The script will output it's findings to a CSV file, which you can import into Microsoft Excel or LibreOffice Calc.

The CSV file contains the following information:

  • Protocol: HTTP or HTTPS; currently HTTPS is supported, and HTTP is in beta
  • Hostname: this is the hostname (or URL) read from the Hosts.txt file
  • IP address: this is the IP address (or addresses) associated with the hostname
  • Reverse DNS: this is the reverse-DNS lookup on the IP address associated with the hostname
  • SSLLabs rating: the SSLLabs rating for the specified hostname. If there's a trust issue, it will also report the rating if the trust issue is ignored, e.g. T (B)
  • securityheaders.io rating: the securityheaders.io rating for the specified hostname
  • Mozilla SSL Observatory rating: the Mozilla SSL Observatory rating for the specified hostname
  • Hosting provider: the registrar associated with the IP address. This can help you identify where the website is hosted.
  • WHOIS: the registrar associated with the hostname (or domain name). This can help you identify where the domain name is registered.
  • Certificate Issuer: the organization which issued the certificate for the specified hostname
  • Valid until: The date when the validity of the certificate will end
  • Recommendations: Any additional recommendations found for the specified hostname, specifically any recommendations for the HTTP-headers or the cookies; all cookies must have the HttpOnly-flag and the Secure-flag set. If it finds a cookie which has no HttpOnly- or Secure-flag, it will report it.

About

PowerShell script to automatically assess security gradings for multiple websites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published