Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 2 min read

How to audit SPF, DMARC, DKIM and SSL for many domains at once (with results for 12 well-known domains)

Checking SPF here, DMARC there and an SSL expiry date in a calendar does not scale past about ten domains. So I wrote a small tool that checks everything in one pass and gives a score plus a fix list. Below is what it fo

Checking SPF here, DMARC there and an SSL expiry date in a calendar does not scale past about ten domains. So I wrote a small tool that checks everything in one pass and gives a score plus a fix list. Below is what it found on 12 well-known developer domains today, and how to run it on your own list.

Disclosure: I built this tool and it is paid per domain on Apify. The checks themselves are plain public DNS and HTTPS lookups, and you can reproduce every one of them by hand.

What gets checked

  • MX: does the domain accept mail at all
  • SPF: policy (~all vs -all), duplicate records, and the 10 DNS lookup limit that silently breaks SPF when you add too many includes
  • DMARC: policy (none, quarantine, reject), pct, reporting address
  • DKIM: common selectors, plus any custom selector you pass in
  • SSL: days until expiry, chain errors
  • Security headers: HSTS, CSP, X-Frame-Options, nosniff, Referrer-Policy
  • security.txt

Each domain gets a 0 to 100 score, an A to F grade, and issues sorted by impact.

Results on 12 well-known domains

Domain Score Grade DMARC SSL days left Top finding
github.com 100 A quarantine 63 none
stripe.com 100 A reject 165 none
cloudflare.com 100 A reject 68 none
mozilla.org 100 A reject 69 none
medium.com 99 A reject 68 no security.txt
dev.to 99 A reject 171 no security.txt
apify.com 99 A reject 52 no Referrer-Policy
netflix.com 95 A reject 85 no CSP header
shopify.com 93 A reject 42 no CSP header
nodejs.org 88 B reject 43 no DKIM on common selectors
wikipedia.org 86 B reject 38 no DKIM on common selectors
python.org 82 B none 80 DMARC is monitor only

Takeaways:

  1. Big, well-run domains mostly score 93 or higher. Most of the points they lose are on optional things like CSP and security.txt.
  2. A "no DKIM found" finding means no DKIM key on the common selector names. Many organisations use custom selectors, so treat it as "check yours", not "broken". That is exactly why the tool accepts your own selectors.
  3. The one real email-auth gap in this sample is a DMARC policy of p=none, which only monitors and does not block spoofing.

Run it on your own list

The tool is an Apify Actor. Input:

{"domains": ["yourclient.com", "example.org"], "dkimSelectors": ["mycustom"], "timeoutSecs": 8}

Output is one dataset row per domain, exportable as CSV or JSON. Pricing is $0.005 per domain, so 1,000 domains is about $5.

Tool: https://apify.com/lightdata-tools/domain-health-audit

If you want a free manual check first, MXToolbox and dmarcian are both good. I would like to know which checks you wish were included, so tell me in the comments.

Sample taken on 25 Nov 2026 using public DNS and HTTPS only. Scores reflect only these specific checks and say nothing about overall security.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.