Lazy Gatekeepers: A Large-Scale Study on SPF Configuration in the Wild

📅 2023-10-24
🏛️ ACM/SIGCOMM Internet Measurement Conference
📈 Citations: 6
Influential: 1
📄 PDF
🤖 AI Summary
SPF configurations exhibit widespread security flaws, significantly increasing email spoofing risk. Method: We conducted a large-scale empirical study across 12 million domains, developing the first formal framework to quantify the relationship between SPF policy laxity and spoofing vulnerability—integrating DNS crawling, SPF parsing, IP-space mapping, and policy effectiveness validation. Contribution/Results: We found that while 56.5% of domains deploy SPF, 2.9% contain syntactic or semantic errors, and 34.7% employ overly permissive policies (authorizing ≥100,000 IPs), severely undermining authentication. Based on our analysis, we established actionable configuration guidelines, notified and engaged operators of over one million problematic domains in a closed-loop remediation process. Our work identified millions of high-risk domains, advanced SPF best practices, and directly informed IETF’s Email Security Working Group, contributing to DMARC policy optimization.

Technology Category

Application Category

📝 Abstract
The Sender Policy Framework (SPF) is a basic mechanism for authorizing the use of domains in email. In combination with other mechanisms, it serves as a cornerstone for protecting users from forged senders. In this paper, we investigate the configuration of SPF across the Internet. To this end, we analyze SPF records from 12 million domains in the wild. Our analysis shows a growing adoption, with 56.5 % of the domains providing SPF records. However, we also uncover notable security issues: First, 2.9 % of the SPF records have errors, undefined content or ineffective rules, undermining the intended protection. Second, we observe a large number of very lax configurations. For example, 34.7 % of the domains allow emails to be sent from over 100 000 IP addresses. We explore the reasons for these loose policies and demonstrate that they facilitate email forgery. As a remedy, we derive recommendations for an adequate configuration and notify all operators of domains with misconfigured SPF records.
Problem

Research questions and friction points this paper is trying to address.

SPF configuration security issues
Email forgery facilitation
Recommendations for SPF misconfiguration
Innovation

Methods, ideas, or system contributions that make the work stand out.

Large-scale SPF configuration analysis
Identified SPF record security issues
Proposed SPF configuration improvements
🔎 Similar Papers
No similar papers found.
S
Stefan Czybik
Technische Universität Berlin, Machine Learning and Security, Berlin, Germany
M
Micha Horlboge
Technische Universität Berlin, Machine Learning and Security, Berlin, Germany
Konrad Rieck
Konrad Rieck
Technische Universität Berlin
Computer SecurityMachine Learning