技能 编程开发 邮箱认证审计

邮箱认证审计

v20260317
implementing-email-security-with-dmarc-dkim-spf
通过查询 SPF、DKIM 与 DMARC 的 DNS 记录,校验语法与机制限制,识别容易被伪造的配置,并输出重点修复建议,帮助强化邮箱安全防护。
获取技能
164 次下载
概览

Instructions

  1. Install dependencies: pip install dnspython checkdmarc
  2. Provide target domain(s) to audit.
  3. Run the agent to check email security:
    • Query and validate SPF records (syntax, mechanism count, includes, redirect)
    • Check DKIM records for common selectors (google, default, selector1, selector2)
    • Parse DMARC records (policy, subdomain policy, reporting URIs, alignment)
    • Identify misconfigurations enabling spoofing
    • Generate remediation recommendations
python scripts/agent.py --domain example.com --output email_security_report.json

Examples

Email Security Audit Result

Domain: example.com
SPF: v=spf1 include:_spf.google.com ~all (WARN: softfail allows spoofing)
DKIM: selector1 OK, selector2 OK
DMARC: v=DMARC1; p=none; rua=mailto:dmarc@example.com (WARN: policy=none, no enforcement)
Risk: HIGH - p=none with ~all allows email spoofing
信息
Category 编程开发
Name implementing-email-security-with-dmarc-dkim-spf
版本 v20260317
大小 9.28KB
更新时间 2026-03-18
语言