feat: broaden email-auth checker + paste-ready fixes#85
Open
goetchstone wants to merge 1 commit into
Open
Conversation
Adds MTA-STS/TLS-RPT/BIMI, parses DMARC pct/sp so a reject-at-pct=0 record stops scoring Strong, and emits paste-ready DNS records per gap — the lead-qualifying pass in one run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Broadens
/tools/dmarc-checkfrom "DMARC/SPF/DKIM" into a fuller email-auth pass, so one run qualifies a domain end-to-end. Same URL — today's JSON-LD/OG work keeps its equity.New checks — all pure DNS, no new attack surface
MTA-STS (
_mta-sts), TLS-RPT (_smtp._tls), BIMI (default._bimi). Reported as optional hardening and deliberately not scored — a domain without BIMI isn't insecure, it's just not decorated.DMARC, done properly
pct/sp, and detects multiple DMARC records (which receivers must ignore — publishing two is worse than one).p=reject; pct=0orp=reject; sp=noneno longer reads "Strong" while enforcing nothing.Paste-ready fixes
Every gap emits the exact DNS record for that domain, tailored to the detected provider (Google →
include:_spf.google.com, M365 →include:spf.protection.outlook.com), each with a copy button.Verified
dmarc-dns— incl. thepct=0,sp=none, multi-record cases, and prototype-pollution safety on tag parsing, since TXT keys are attacker-supplied)tsc --noEmit+npm run buildcleanp=quarantineenforcing=true, DKIM found via thedreamhostselector, and it correctly flagged MTA-STS/TLS-RPT as missing and generated both records.Also: added MailChannels to MX detection (verified — it's akritos.com's actual MX), and dropped the unreachable DKIM
warnbranch that tsc surfaced once the type was made honest.Not in this pass — deliberately
DNSSEC (needs DNS-over-HTTPS), the MTA-STS policy file, TLS cert expiry, and security headers all require our server to make outbound requests to a user-supplied host — a real SSRF surface that deserves its own pass with proper guards, not a bolt-on.
🤖 Generated with Claude Code