Files
Anthropic-Cybersecurity-Skills/skills/performing-dmarc-policy-enforcement-rollout/references/api-reference.md
T
mukul975 c21af3347e Complete folder anatomy for all 649 cybersecurity skills + update LICENSE to Mahipal
- Add scripts/agent.py and references/api-reference.md to all remaining skills
- Update all 648 LICENSE files: copyright now reads 'Mahipal'
- Add implementing-security-monitoring-with-datadog (new skill with full anatomy)
- All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
2026-03-11 00:22:12 +01:00

907 B

API Reference — Performing DMARC Policy Enforcement Rollout

Libraries Used

  • dnspython (dns.resolver): DNS TXT record queries for DMARC, SPF, DKIM

CLI Interface

python agent.py check --domain example.com
python agent.py audit --domains example.com example.org [--selectors default google k1]

Core Functions

check_dmarc(domain) — Query _dmarc.<domain> TXT

check_spf(domain) — Query domain TXT for v=spf1

check_dkim(domain, selector) — Query <selector>._domainkey.<domain>

audit_domains(domains, selectors) — Full DMARC/SPF/DKIM audit with scoring

DMARC Policy Levels

Policy Enforcement Score
none No enforcement (monitoring only) 0
quarantine Suspicious mail sent to spam +20
reject Unauthorized mail rejected +40

Dependencies

pip install dnspython>=2.4