The earlier parts of this series described the scams. This one describes the habit that stops them. It is the routine we use for every unexpected message that reaches our company mailbox, our contact form or our pages on game portals, and it is short on purpose: a routine that takes half an hour gets skipped on a busy day, and a busy day is when the scam arrives. None of it needs special software. It needs the original message, a minute of attention and a few settings that you make once.
The first part of the series gives the one rule and keeps the list of messages we received. Everything below is how those messages ended up in that list instead of in our accounts.
#Step 1: do not act inside the message
Our first rule is absolute: nothing in an unexpected message is clicked, opened or copied into a browser until it has been checked. That covers links, buttons, attachments, booking pages, shared drives and QR codes. It also covers replying, because a reply confirms that a person reads the mailbox. Checking happens around the message, never through it.
#Step 2: read the authentication results
Every mail client can show the original message with its headers. Find the Authentication-Results header added by your own mail server. It reports three checks:
- SPF says whether the server that sent the mail is allowed to send for the domain in the envelope.
- DKIM says whether the mail carries a valid signature from a domain, and which one.
- DMARC ties them to what you see: it passes only when the domain in the visible From address matches a domain verified by SPF or DKIM.
Authentication-Results: mx.example.net;
spf=pass smtp.mailfrom=bounce.payments.example;
dkim=pass header.d=payments.example;
dmarc=pass header.from=payments.example
Three passes for the domain of the company you deal with means the mail really came from that company's systems. Three passes for any other domain means only that someone set up their own domain correctly. A fail, or a From domain that differs from the signing domain, is a reason to stop. Our article on checking SPF and DMARC from outside shows how to read the records behind these results.
#Step 3: check the domain and the links without opening them
- Compare the domain with the real one, character by character. Type the real one yourself or take it from your own records, never from the mail.
- Look at where links point by hovering over them or copying them as text into a note. A shortener, an unrelated domain or a long string of redirects is enough to stop.
- Look the domain up. A domain with only a mail server and no website, or one registered days ago, says a lot about the sender. A company's register entry and VAT number say even more.
#Step 4: ask what the message wants
Most of the decision is made here. A message that asks for a login, a code, money, keys, documents, repository access or your source code, or that sets a deadline of a day or two, is treated as a scam unless it passes every check above and the same request also appears where it should: in the platform's own dashboard, in a contract you can find, or in a phone call to a number you already had. A partnership that starts with you paying is stopped without further checks.
The same routine also confirms genuine mail. When we received a data breach notice from a service we really use, the authentication passed for the service's own domain, the mail had no login link and it asked us to type the address ourselves. We acted on it through the service's site. A routine that only ever says "scam" is not a routine.
#Step 5: filter and record
- Filter by domain. Mail from a domain that sent a scam is marked as junk and moved out of the inbox automatically. We never empty the trash automatically, so a mistake can be undone.
- Keep filters short. In our mail client one filter with more than twenty "or" conditions silently matched only the first few. We now keep about four domains per filter and test each new filter on the inbox.
- Report spam where the mailbox offers it. Webmail services learn from the spam button.
- Guard the contact form. Ours holds messages with shortened links, chat-app links, markup tricks or only a link for review instead of mailing them; see a contact form endpoint for a static site.
- Record each case. A line with the date, the channel, the domain, what it asked for and what you did. Our public list in part 1 is built from exactly such lines.
#Settings you make once
- Passkeys or hardware keys on every account that offers them: mail, code host, registries, stores, payment providers. They only work on the real domain, so a copied login page gets nothing.
- Automated publishing instead of personal tokens. Registries that support trusted publishing from a build pipeline remove the long-lived token that phishing is after. Where tokens are needed, make them narrow and short-lived.
- Show full sender addresses in your mail client instead of display names only.
- Protect your own domain. Publish SPF, sign with DKIM and publish a DMARC policy, start with reports and move to quarantine or reject once you know all your legitimate senders. This protects your clients from mail that pretends to be you. Our guide to business email on your own domain covers the setup.
- Know your accounts. A list of which accounts the company has, who owns them and where their recovery goes; see who owns the code and accounts.
- Agree a rule for money. Bank details are never changed on the strength of a mail; every change is confirmed by phone.
#If someone already clicked
- Stop and do not enter anything else.
- From the real site, change the password of the affected account and sign out all other sessions.
- Revoke unknown connected apps, personal access tokens and API keys, and create new ones where you need them.
- Read the account's security history and recent activity: new devices, published versions, workflows, forwarding rules in the mailbox.
- If card or bank details were entered, call the bank at once.
- If a file was run, treat the machine as compromised: disconnect it, change passwords from a clean device and reinstall from a known good backup.
- Report the message to the platform it imitated and record the case.
Forwarding rules deserve a special look: an attacker who got into a mailbox often adds a rule that quietly sends copies elsewhere, which keeps working after the password is changed.
#Checklist
- Did I avoid clicking, opening and replying until the checks were done?
- Do SPF, DKIM and DMARC pass for the real company's domain?
- Do the links point to the real domain, without shorteners?
- Does the message ask for a login, a code, money, keys, documents or code?
- Does the same request appear in the platform's dashboard or in my own records?
- Is the sender filtered and the case recorded?
#Frequently asked questions
Do I need special software to check mail?
No. Every mail client can show the original message and its authentication results, and a DNS lookup is enough to see whether a domain has a website. Habits matter more than tools.
Should scam mail be deleted or kept?
Move it out of the inbox, but do not destroy it at once. Keep it long enough to report it and to record the case; a mistaken filter can then be undone.
What is the most useful single setting?
Passkeys or hardware keys on the accounts that matter most. They make a copied login page useless, which removes the goal of most of the scams in this series.
#Sources
- RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC)
- RFC 7208: Sender Policy Framework (SPF)
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
- Mozilla Add-ons blog: phishing campaign detected (2025)
- PyPI blog: phishing attack (2025)
- FBI IC3: Business Email Compromise (2024)
Comments
Comments
No comments yet. Ask a question or share what worked for you.
Leave a comment