Repository navigation
Releases
v1.3.0: Teams and Slack alerts
New: Teams and Slack alerts
When a check fails, the checker can post a short alert to a Microsoft Teams or Slack channel, with each problem and a link to the full report. It only posts when something is wrong.
- Action: add
webhook-url: ${{ secrets.DOMAINCHECK_WEBHOOK_URL }}, plus optionalnotify-on(failorwarn) andnotify-kind(auto,teamsorslack). - CLI: set
DOMAINCHECK_WEBHOOK_URLand add--notify fail. - The webhook URL is read from a secret and never printed, even when posting fails.
See Get alerts in Teams or Slack for the setup steps.
- uses: MikeRiveira/domain-security-checker@v1.3.0
with:
domains: demoauto.example
webhook-url: ${{ secrets.DOMAINCHECK_WEBHOOK_URL }}v1.2.0: Use it as a GitHub Action
What's new
Run the checker from any repo with one step. No fork needed:
- uses: MikeRiveira/domain-security-checker@v1.2.0
with:
domains: |
yourdomain.com
yourotherdomain.com
fail-on: fail- Checks MX, SPF, DKIM, DMARC, MTA-STS, BIMI, SSL and domain expiry
- Markdown report in the job summary, and the step fails at the level you choose, so GitHub emails you
- Inputs:
domains,config,format,fail-on,summary,python-version - Outputs:
report-fileandresult
See the README section "Use it as a GitHub Action in your own repo" for the full example.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
Two new email security checks and a spreadsheet-friendly report format.
New checks
- MTA-STS – confirms the policy is published and set to
mode: enforce, with a TLS-RPT record so you hear about delivery failures. Warns ontestingornone, and when the policy file can't be fetched. - BIMI – checks for a logo record with an HTTPS logo, and that DMARC is enforced (
p=quarantineorp=reject), which mail providers require before they show your logo.
Both are skipped for domains that receive no email.
New output format
- CSV –
domaincheck -c domains.toml -f csv > report.csvgives one row per domain and check, ready for Excel or a ticket attachment.
Other changes
- The Markdown report's table now builds its columns from the checks that ran
- 40 tests (up from 29)
Install
pip install git+https://github.com/MikeRiveira/domain-security-checker.git@v1.1.0
v1.0.0
First stable release of domaincheck: one command that checks every domain you own for the settings that stop email spoofing and surprise outages.
What it checks
- MX – mail servers, including null MX for domains that receive no email
- SPF – a single record, a strict
-allending, and the 10-DNS-lookup limit counted recursively through everyinclude:andredirect= - DMARC – policy strength,
pct, and whether aggregate reports (rua=) are configured - DKIM – published keys at the selectors you list (Microsoft 365, Google Workspace and common defaults out of the box)
- SSL – certificate validity and days until expiry
- Registration – domain expiry date via RDAP, the modern replacement for WHOIS
Parked domains are held to a stricter standard (v=spf1 -all), and a failed DNS lookup is reported as a failed lookup instead of a missing record.
Highlights
- Text, Markdown and JSON output
- Exit codes for scripts and scheduled tasks (
--fail-on fail|warn|never) - A TOML config for many domains and per-domain DKIM selectors
- A ready-made GitHub Actions workflow that scans your domains every morning
- 29 tests covering every pass, warning and fail rule
Install
pip install git+https://github.com/MikeRiveira/domain-security-checker.git@v1.0.0
domaincheck example.com