Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Mail Authentication Checker — Bash script that audits SPF, DKIM, DMARC, DNSSEC, MTA-STS and DNS hygiene to grade a domain's exposure to email spoofing and phishing. | Kitploit
Tools/GitLabGitLab/brn1337/mailauthcheck
Defensive ToolsReconnaissanceVulnerability ScannersDNS & Subdomain EnumerationScripting & AutomationConfiguration AuditingInformation GatheringPhishingEmail SecurityDNS Analysis
GitLab
Nov 13, 2026Not yet reviewed
Share
brn1337/mailauthcheck

Mail Authentication Checker

Bash script that audits SPF, DKIM, DMARC, DNSSEC, MTA-STS and DNS hygiene to grade a domain's exposure to email spoofing and phishing.

View RepositoryWebsite

Mail Authentication Checker

Inspired by spoofcheck.

Mail Authentication Checker verifies SPF, DKIM, DMARC, DNSSEC, MTA-STS and the root domain hack to assess how well a domain is protected against spoofing and phishing.

Features:

  • DMARC: policy, subdomain policy, pct, reporting addresses (incl. external report authorisation)
  • DKIM: 170+ common selectors, wildcard detection, key size and revoked keys
  • SPF: recursive expansion, 10-lookup limit, void lookups, macros, deprecated mechanisms
  • SPF spoofing: shared-ESP includes (SendGrid, Mandrill) graded against the DMARC policy
  • DNS hygiene: zone transfer, wildcard DNS, CAA, NSEC walking
  • Mail delivery: MX, null MX, dangling/CNAME MX, parked domains
  • Transport: DNSSEC, DANE/TLSA, MTA-STS (policy fetched and matched against MX), TLS-RPT, STARTTLS
  • SMTP behaviour with -S: open relay, smuggling, NTLM, AUTH surface
  • Root domain hack (Microsoft 365 / Google Workspace)

Usage

bash mailAuthCheck.sh google.com
bash mailAuthCheck.sh google.com example.com github.com

Several domains can be passed at once; each is reported in its own boxed header and the checks run one domain after the other. The banner is printed once, the target card once per domain:

│ MAIL AUTHENTICATION CHECKER                                         v1.1
│ The existence of a security record does not mean
│ it is actually implemented
│
  ╔══════════════════════════════════════════════════════════════════════╗
  ║  target    example.com                                               ║
  ║  resolver  8.8.8.8                             2026-11-13T00:56:14Z  ║
  ╚══════════════════════════════════════════════════════════════════════╝

The banner and the card share one width, so the version sits over the card's right edge; both widen when a domain is longer than the default 72 columns, and the same width is used for every domain in the run so the boxes line up.

Options can appear before, between or after the domains:

  • -s SELECTOR extra DKIM selector to try (repeatable)
  • -r LABEL Microsoft 365 tenant name to test (default: first label of each domain)
  • -d SERVER DNS resolver to query (default: 8.8.8.8, or $DNS_SERVER)
  • -v show raw DNS records and details
  • -q only show warnings and failures
  • -S also run the intrusive SMTP probes (open relay, smuggling, NTLM, AUTH); needs outbound 25/587 and takes a minute or more per MX host

Exit status: 0 no failing check, 1 at least one failing check (in any domain), 2 usage error.

By default the report is grouped into AUTHENTICATION, DNS HYGIENE, MAIL DELIVERY, TRANSPORT SECURITY and ADDITIONAL sections, with the records shown in grey under each check.

Every row is a fixed three-column table: status, a short check name (at most twelve characters, e.g. DKIM, Wildcard, Root domain), and the description. Check-specific qualifiers such as the DKIM selector, the MX host or the SPF include are appended to the description in parentheses, so the columns line up across all sections:

  OK    DKIM          secure (2048-bit RSA) (selector1._domainkey.example.com)
  OK    Wildcard      no wildcard at the dns apex

Severity follows the effect on spoofing, not just the record: an SPF policy that ends in ~all is OK when DMARC is p=reject or p=quarantine (DMARC compensates for the softfail) and FAIL when DMARC is p=none or missing, because then nothing rejects the unauthorised sender. A strict -all stays OK even with p=none; that exposure is reported on the DMARC row.

SPF spoofing

include:sendgrid.net (or a per-account include:uXXXXXXX.wl.sendgrid.net) authorises SendGrid's shared IP ranges to send for the domain. SPF is evaluated against the envelope sender, so an attacker sending through their own SendGrid account still passes SPF while the visible From is yours; only DMARC keeps that mail out. The check follows nested SPF includes and reports:

  • FAIL when SendGrid or Mandrill is included and there is no DMARC record or the policy is p=none: a spoofed From is delivered
  • WARN when the policy is only p=quarantine: the spoofed mail lands in spam
  • OK when the policy is p=reject

The list of shared platforms lives in SPF_SHARED_PROVIDERS; only add providers that do not verify the From domain for every customer.

Demo

Both recordings below were slowed to improve readability, in reality it took less than 1 second to execute.

Installation

git clone https://gitlab.com/brn1337/mailAuthCheck.git
cd mailAuthCheck

Windows / WSL

Run the script from inside WSL, not from PowerShell, and install dig first:

sudo apt update && sudo apt install -y bind9-dnsutils
bash mailAuthCheck.sh google.com

The repository ships a .gitattributes that forces LF line endings for *.sh. If you cloned it before that file existed, re-checkout the script once so it no longer has Windows CRLF endings (which make bash fail with $'\r': command not found):

git checkout -- mailAuthCheck.sh

License

Mail Authentication Checker is licensed under CC BY-NC-SA 4.0

CC-BY-NC-SA This license requires that reusers give credit to the creator.
It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only.
If others modify or adapt the material, they must license the modified material under identical terms.
- Credit must be given to you, the creator.
- Only noncommercial use of your work is permitted.
- Adaptations must be shared under the same terms.
Download Tool

Related Tools

  • wazuh

    Open-source XDR and SIEM platform for threat detection, log analysis, file integrity monitoring, vulnerability assessment, and compliance management across endpoints and cloud workloads.

  • suricata

    Open-source network IDS/IPS/NSM engine for real-time traffic inspection, intrusion detection and prevention, protocol analysis, and rule-based threat hunting.

  • zeek

    Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    836
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    449
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    391
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    346
  • 6

    faraday

    infobyte/faraday

    Open-source and AI-powered cybersecurity tools for offensive security, vulnerability management, and autonomous pentesting. Built by hackers in Latin America, used worldwide.

    345

Explore all tools

Browse our collection of tools

View all tools →