Robert Roskam
Engineer Manager at Pantheon
and I liked
You can set a DNS record that sends you an email report when people send mail as that domain.
$ dig +noall +answer _dmarc.robertroskam.com txt
output
v=DMARC1;
p=quarantine;
rua=mailto:0y8hka6m@ag.dmarcian.com
let's dig my domain's dmarc record
<?xml version="1.0" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>https://support.google.com/a/answer/2466580</extra_contact_info>
<report_id>3766706526427983302</report_id>
<date_range>
<begin>1626220800</begin>
<end>1626307199</end>
</date_range>
</report_metadata>
<policy_published>
<domain>robertroskam.com</domain>
<adkim>r</adkim>
<aspf>r</aspf>
<p>quarantine</p>
<sp>quarantine</sp>
<pct>100</pct>
</policy_published>
<record>
<row>
<source_ip>209.85.220.41</source_ip>
<count>4</count>
<policy_evaluated>
<disposition>quarantine</disposition>
<dkim>fail</dkim>
<spf>fail</spf>
</policy_evaluated>
</row>
<identifiers>
<header_from>robertroskam.com</header_from>
</identifiers>
<auth_results>
<spf>
<domain>robertroskam.com</domain>
<result>softfail</result>
</spf>
</auth_results>
</record>
</feedback>
Label: Salesforce - ID: 105
ip_in_netblocks(ip, ['67.228.34.32/27', '52.128.40.0/21']) or
regex(ptr_org, 'emsend[1-8].com')
Label: Active Campaign - ID: 107
asn == 22606
ptr_org in ('hubspot.com', 'hubspotemail.net')
Label: Hubspot - ID: 106
Give our end users the same tools as our analysts.
Sometimes our users know better than us what particular traffic actually is
ip == '209.85.220.41' and ptr_org == 'robertroskam.com'
Label: Roskam's Home - ID: 108
Prevent injection attacks
Give feedback to users
Prevent injection attacks
Give feedback to users
locals()
import
:=
match
==
!=
in
✅
Prevent injection attacks. Choices are:
Block
Allow ✅
Give feedback to users
abc == 123
asn == 1234 and
asn == 123 and ( ptr_org == 'foo.com' or h_from == 'm.foo.com'
asn == '123'
ptr_org in asn
regex(ptr_org, 123)
Prevent injection attacks. Choices are:
Block
Allow ✅
Give feedback to users:
syntax
semantics
Example of client side builder for conditions. Src: sentry.io
By Robert Roskam