cisagov / trustymail

Scan domains and return data based on trustworthy email best practices
Creative Commons Zero v1.0 Universal
189 stars 31 forks source link

Use of "+all" and "?all" in SPF record negating purpose of SPF record #140

Open chrislandis opened 1 year ago

chrislandis commented 1 year ago

💡 Summary

I observe that trustymail does not flag the use of +all, ?all, or absence of the all mechanism in a non-redirected SPF record when its use is syntactically valid; however, its use often negates the purpose of having an SPF record.

Motivation and context

Why does this work belong in this project? The purpose of BOD 18-01, in part, is to decrease the possibility of unauthorized emails from appearing to originate from .gov domains. When an organization uses the pass + qualifier on the all mechanism, any server can send email on behalf of (i.e., impersonate) the organization's domain. Similarly, the neutral ? qualifier on the all mechanism is equivalent to having no SPF record (except for domains matched via mechanisms preceding the all mechanism).

This would be useful because... we want the SPF record to serve its intended purpose rather than just filling a compliance placeholder.

Implementation notes

Acceptance criteria

References

All references are from RFC 7208 unless otherwise cited.