Skip to main content

DAST Security Helpers

Project description


Collection of dynamic security related helpers (DAST).

Sec-helpers is a bundle of useful tests and validators to ensure the security of a given domain.


  1. Install package pip install sec-helpers:
  2. Copy and change the following to run all the tests:
import sec_helpers

domain: str = '' # {domain}.{tld}

sec_helpers.HighTls(domain=domain, slide=False) # Slide is False by default
sec_helpers.Hsts(domain=domain, age=10368000) # Age is 10368000 by default

Do you want all the sec-helpers ready in a container? Configure cloudbuilders-dast.


'NoSsl' requires and OpenSSL version with SSLv3 enabled. Check this Dockerfile and can be run using the following:
sec_helpers.NoSsl(domain={domain}.{tld}), but will result in exit code 0 when the wrong openssl version is present.



Ensures domain redirects on http (and checks if https is active to not pass on incorrect domain)


Ensures that the Strict-Transport-Security header on the domain is higher than 10368000


Ensures that TLS versions on domain are inline with Mozilla's recommended configurations


Ensures that no SSL version is used.


Ensures that Allowed Origins are specified.



Protocol: TLSv1.3
Should be active: True
	Wrong configuration

Protocol: TLSv1.2
Should be active: True
Connected with: TLSv1.2
Using cipher: ('{cipher_info}', 'TLSv1.2', 128)

Protocol: TLSv1
Should be active: False

Protocol: TLSv1.1
Should be active: False
Connected with: TLSv1.1
Using cipher: ('{cipher_info}', 'TLSv1.0', 128)
	Wrong configuration

Test on {domain}.com failed

TLSv1.3 is not active on domain: HighTls will fail. TLSv1.1 is active on domain: HighTls will fail.


Starting GET request to http://{domain}.com
GET request to http://{domain}.com returned status 302
Starting GET request to https://{domain}.com
GET request to https://{domain}.com returned status 200
Successful http status check: http is disabled or redirects to https

Http request returned 302 Found redirect. Https returned 200. NoHttp passed.


Starting GET request to http://{domain}.com
Strict-Transport-Security header on https://{domain}.com returned max-age=31536000
Successful HSTS status check

Strict Transport Security header found, with max age 31536000. Hsts passed.


Failing policy test: No Allowed Origins Specified

No allowed origins specified. CorsPolicy failed.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sec-helpers-0.3.3.tar.gz (5.2 kB view hashes)

Uploaded source

Built Distribution

sec_helpers-0.3.3-py3-none-any.whl (19.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page