Website Security Audit

v0.1.1
co.eazetech/website-security-audit Checked 1 hour ago Published 15 days ago

Passive security audit of a public website: HTTPS, headers, cookies, TLS, DNS, email, security.txt

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

audit_website_security Audit website security

Runs a passive security audit of a public website and returns a score out of 100, a grade from A+ to F, and findings with a fix for each. Checks HTTPS and redirects, security headers, cookie flags, TLS versions and the certificate, SPF, DMARC, MTA-STS, CAA and name servers, dangling CNAME records, third-party scripts, known-vulnerable JavaScript libraries, mixed content, forms, version disclosure and security.txt. Requests only what the site serves to any visitor. Takes 5 to 40 seconds. Refuses IP addresses, ports other than 80 and 443, and any host that resolves to a private, loopback, link-l…

ParameterTypeDescription
url *stringWebsite address to check, such as example.com or https://example.com/. Only http and https on ports 80 and 443. Any query string is removed before the request.

check_security_headers Check security headers

Fetches a public web page, following up to 5 redirects, and reports its HTTPS redirect chain, security response headers and cookie flags, with a fix for each problem. Faster than audit_website_security and gives no grade: it does not check TLS, the certificate, DNS, email records or page content. Refuses IP addresses, ports other than 80 and 443, and any host that resolves to a private, loopback, link-local, carrier-grade NAT or cloud metadata address.

ParameterTypeDescription
url *stringWebsite address to check, such as example.com or https://example.com/. Only http and https on ports 80 and 443. Any query string is removed before the request.

check_security_txt Check security.txt

Looks for a security.txt file (RFC 9116) at https://<domain>/.well-known/security.txt and then /security.txt, and reports whether one is published, its Contact, Expires, Policy and other fields, and whether it has expired. Redirects are reported but not followed. Refuses IP addresses, ports other than 80 and 443, and any host that resolves to a private, loopback, link-local, carrier-grade NAT or cloud metadata address.

ParameterTypeDescription
domain *stringDomain to check, such as example.com. A full URL is also accepted; only its host name is used.