Skip to content

Releases

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 15:12

Added

  • CORS check, the last Mozilla HTTP Observatory test not yet reproduced: like the Observatory, one preflight request is sent from its origin, and a site that echoes it while allowing credentials (any site can read its pages as the visitor) loses 50 points. The Live check now compares this test too.
  • Third Certificate Transparency source: ctlogs.dev, used when crt.sh and Cert Spotter both fail (certificates of the last 90 days; the report says so).
  • REQUIRETLS (RFC 8689): the mail servers are asked, over TLS, whether they offer it; shown but not scored, cited with ANSSI PA-066 R42+ ("enable the REQUIRETLS option on SMTP servers"). The PA-066 recommendation numbers already cited (R42, R44, R46+, R48+, R50+) were checked against the guide's list.
  • Audit authorization template to have signed by a client before an audit, in French and English (examples/authorization/): scope, options, what the tool does and does not do, contacts and stop, confidentiality, dates.

Security

  • DNS rebinding: after the address check, the address actually connected to is checked again, for HTTP requests and their redirects, TLS probes and mail servers. A name whose DNS answer changes between the check and the connection can no longer lead the tool to a private address (through an HTTP proxy, which resolves names itself, only the first check applies).

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 14:08

Security

  • Connections to private or reserved addresses (loopback, private networks, link-local and cloud metadata, carrier-grade NAT…) are refused by default, for the site, its redirects, its mail servers, its subdomains and the optional browser: an audited domain can no longer make the tool probe the network it runs in. --allow-private lifts this for internal domains.
  • Answers from the audited servers are read up to 2 MB and within 60 seconds (pages, security.txt, MTA-STS policies, RDAP), TLS and SMTP probes have an overall time limit, SMTP replies a line limit, and the Cert Spotter pagination stops if the API repeats itself: a hostile server can no longer exhaust memory or hold the audit forever.
  • Host names read in CT logs are validated before being looked up or contacted.
  • Control characters (terminal escape sequences) are removed from what is printed and from alerts; the webhook URL, which carries its secret, never appears in an error message.
  • The HTML reports carry a strict Content-Security-Policy (no script, no remote resource, no form) and no-referrer; the optional browser refuses downloads.
  • Workflows: actions pinned to a commit, read-only token by default, no git credentials left on disk, Dependabot for actions, Python dependencies and the Docker base image.
  • Minimum versions raised to releases without known vulnerabilities: requests 2.32.4, cryptography 44.0.1, dnspython 2.6.1.
  • SECURITY.md: how to report a vulnerability, and how the tool protects the machine that runs it.

Added

  • Follow-up mode: --alert compares each domain with its previous audit and lists the grades that went down, new or worse problems (every critical problem on a first audit) and certificates or domain names that expire soon; exit code 4 when there is an alert. --webhook URL (or DSC_WEBHOOK_URL) sends them to Slack, Discord, Mattermost or Google Chat; --email-alert by email, with the DSC_SMTP_* and DSC_ALERT_* environment variables (STARTTLS or SSL).
  • Reusable GitHub Action (uses: Ryarkhewas/domain-security-check@<version>), tested on every push, and a weekly audit template (examples/monitoring/weekly-audit.yml) that keeps the history of each domain between runs and sends the alerts.
  • Platform fixes: menus and guides of OVHcloud, Gandi and IONOS for DNS records and DNSSEC.

Changed

  • The release workflow uses actions/download-artifact v8, which fails on a checksum mismatch.
  • A Content-Security-Policy declared only in a <meta http-equiv> tag of the page is now read, without frame-ancestors, report-uri and sandbox, which have no effect there.

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 16:18

Added

  • Grades over time: each audit adds a line to <domain>.history.json, and from the second audit on the HTML and PDF reports show a chart of the four scores, with a table of the values (started from the previous <domain>.json when there is one).
  • Docker images (ghcr.io/ryarkhewas/domain-security-check, and a browser variant with Chromium for --browser), built and tested on every push, published with each release.
  • PyPI publishing from the Release workflow (trusted publishing, enabled by the PUBLISH_TO_PYPI repository variable); the package is checked with twine check on every push, and the README links are absolute so that it also displays on PyPI.
  • CAA and the certificate in use: when CAA does not allow the authority that issued the current certificate, its renewal will be refused (−10, Domain & DNS). Wildcard certificates are compared with issuewild when present.
  • DKIM: about 50 selectors (looked up in parallel), including the usual ones of the sending services named in SPF (Google Workspace, Microsoft 365, SendGrid, Mailgun, Mailchimp, Zoho, Proton Mail…); key strength (RSA under 1024 bits −20, 1024 bits −5); services named in SPF without their usual key are listed.
  • Trackers before consent (not scored): advertising and analytics services (Google Analytics, Google Ads, Meta, LinkedIn, TikTok, Hotjar, Clarity…) loaded by the page without waiting for consent, tracker cookies set at the first visit, and the consent banner service recognised. --browser loads the page in headless Chromium without clicking anything, to see what is really contacted (optional dependency: pip install "domain-security-check[browser]", then playwright install chromium).

Changed

  • The Email grade can be lower than with 1.6 for domains with short DKIM keys, and the Domain & DNS grade when CAA would block the renewal of the certificate.

v1.6.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 16:46

Added

  • Outdated software: WordPress, Joomla, Drupal, TYPO3, PrestaShop and PHP are recognised on the home page (generator tag, X-Generator and X-Powered-By headers, WordPress file addresses), and their support status is read from endoflife.date (cached for three days): unsupported version critical, update available warning. Not scored, so that the website grade stays the Observatory's, but listed among the priority actions.
  • --subdomains: every subdomain in use found in the CT logs is checked like a visitor would see it: HTTPS, certificate, HTTP to HTTPS redirect, TLS 1.0/1.1 still accepted, outdated software. Not scored; listed among the priority actions.
  • --nis2: a NIS 2 view in the HTML and PDF reports, linking each check to the measures of article 21(2) of Directive (EU) 2022/2555, with the problems found, and the measures that cannot be seen from outside. Presented as a reading grid, not a compliance assessment.

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 15:35

Added

  • Mail servers: each MX is contacted on port 25 like a sending server (EHLO, STARTTLS, TLS handshake, QUIT; no email sent). STARTTLS missing −20, obsolete TLS −10, invalid certificate −5 (−30 with MTA-STS in enforce mode), DANE records shown. When port 25 is blocked, the report says nothing could be concluded. --no-mail-servers skips this step.
  • Summary for decision makers at the top of the HTML and PDF reports (and in the console): main risks in business terms, number of quick fixes / few-hour fixes / projects, and the overall grade after the quick fixes. Each priority action shows its impact and effort, and the list is ordered by impact, then effort.
  • Branded reports: --company, --contact, --client, --logo, --color, or a JSON file with --brand. The PDF gets a cover page (logo, client, overall grade, auditor, contact, confidentiality note), the accent colour and the company in the footer; the HTML report ends with the same details.

Changed

  • The Email grade can be lower than with 1.4, because of the new mail server checks.
  • When crt.sh does not answer and the subdomains come from Cert Spotter, the report says the list may be incomplete (Cert Spotter may list fewer old certificates) and suggests running the audit again later.

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 21:07

Added

  • Deeper TLS checks: protocol versions accepted by the server (SSL 3.0 to TLS 1.3), broken cipher suites (RC4, 3DES, export, no encryption, no authentication), forward secrecy, size of the certificate key. Old protocols and ciphers are tested with a hand-built ClientHello, since the local OpenSSL no longer offers them.
  • Forgotten subdomains: names published in Certificate Transparency logs (crt.sh, Cert Spotter as fallback), each looked up in DNS. A CNAME pointing to a deleted resource at a provider open to takeover (Azure, AWS, Heroku, Netlify…) is critical (−30); another dangling record is a warning (−10). --no-ct-logs skips this check.
  • Fixes for the platform in use: the web server or hosting platform (Apache, nginx, IIS, LiteSpeed, Cloudflare, Netlify, Vercel, GitHub Pages), the DNS host and the email provider are recognised, and each problem comes with the configuration line or the menu to open, with a link to the provider's documentation.
  • Each item of the report now cites the matching ANSSI recommendation next to the standard, when there is one (website guide PA-009, TLS guide, Internet gateway guide PA-066, domain name guide BP-038), with the guide's version and date. The standard comes under "Source:", the guides under "See also:", so that a "Compliant" item does not read as "complies with ANSSI". HTML and PDF reports, in English and French.
  • The CNIL security guide (2024, sheet "Sécuriser les sites web") is also cited, under "See also:", for the certificate, the TLS version, the HTTPS redirect and cookies.
  • The Limits paragraph of the report says that the ANSSI citations show what each check relates to, and that the report is not a certificate of compliance.

Changed

  • The transfer lock cites RFC 5731 (domain statuses) instead of RFC 9083.
  • The Certificate & TLS and Domain & DNS grades can be lower than with 1.3, because of the new checks.
  • New dependency: cryptography, to read the certificate's key.

Fixed

  • The domain name no longer gets a capital letter at the start of the expiry sentence ("Bakery-example.com est enregistré…" is now "Le domaine bakery-example.com est enregistré…").

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 14:35

Added

  • Domain registration data from the registry (RDAP), in the Domain & DNS grade: expiry date of the domain (expired −50, within 15 days −30, within 30 days −10) and transfer lock (missing −5), with the registrar's name.
  • security.txt (RFC 9116): found or not, Contact and Expires fields, expiry. Shown but not scored, like Permissions-Policy, so that the website grade stays aligned with the Observatory.
  • Live check: warning when the Observatory reports another version of its scoring algorithm than the one this tool reproduces (version 6).

Changed

  • The Domain & DNS grade can be lower than with 1.2 for domains without a transfer lock.

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 14:10

Fixed

  • --lang fr failed when the tool was installed with pip (1.2.0): the French translation was missing from the package. It worked only from a clone of the repository. The package test in CI now also runs the French report.

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 14:06

Added

  • Reports in French with --lang fr (HTML, PDF, summary page, console and command-line messages), including dates, the usual certificate and DNS errors, and the titles of the cited standards. The JSON output stays in English.
  • Changes since the previous audit: each result is saved as <domain>.json next to the report, and the next audit of the domain shows grades that changed, problems fixed, new problems, and problems that got worse or better. --previous FILE compares with any earlier result.
  • Several domains are audited at the same time (--workers, 6 by default).

Changed

  • Faster Live check (about 2 to 3 minutes instead of 3 min 30 s, depending on how fast the Observatory answers), without skipping anything: audits and Observatory scans run in parallel, and live tests audit each domain once.

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 16:29

Added

  • Fourth grade, Domain & DNS: DNSSEC (enabled, and DS record consistent with the domain's keys) and CAA (allowed certificate authorities, looked up on the domain and its parents).
  • Email: MTA-STS (record, policy file, mode, coverage of the mail servers) and TLS reporting (shown, not scored).
  • Several domains in one run (domain-security-check a.com b.fr, or --file domains.txt), with an index.html summary page; --output-dir chooses the folder, and --json prints {"results": [...], "errors": {...}}.
  • PDF report with --pdf (optional dependency: pip install "domain-security-check[pdf]").

Changed

  • The overall grade is now the weakest of four grades instead of three: with the new DNS checks, a domain can get a lower overall grade than with 1.0.0.
  • The <meta name="referrer"> tag of the home page is taken into account, as browsers and the Observatory do.
  • DNSSEC queries are retried through public resolvers when the local resolver refuses them.