
Corporate email, part 5: security — phishing, MFA, DMARC reports, archiving, and backup
🌐 Machine-translated from Russian. Show original
In this part:
How mail is usually hacked#
| Attack | What the | looks like How to defend |
|---|---|---|
| Password phishing | "Your inbox is full, log in with link" → fake MFA login page | , training, link filter, |
| Sender substitution | "director's" email from your own domain | DMARC p=reject |
| Similar domain | company-kz.com, cornpany.kz | tag "external sender", training, monitoring domain registrations |
| BEC (business correspondence compromise) | a compromised supplier mailbox says "we have new details" | a call to a known number before changing the details |
| Malicious attachments | "act сверки.zip," documents with macros, | block of dangerous types, sandbox, banning macros from the internet |
| Password brute force | thousands of IMAP/SMTP | MFA login attempts, disabling legacy protocols, IP |
| Session token theft | phishing proxy intercepts an already authorized session | FIDO2/passkeys, conditional access over the device |
MFA — for everyone, without exception#
- Cloud: in Microsoft 365 — security defaults or conditional access (part 3: Corporate mail), part 3: Microsoft 365 — tenant, domain, licenses, synchronization with AD via Entra and MFA; in Google Workspace — two-factor authentication with forced inclusion for all organizational units).
- Own server: 2FA for the web interface and panel (in Mailcow — TOTP/WebAuthn), and for mail programs — application passwords instead of the master password.
- Methods for decreasing reliability: FIDO2 keys / passkeys → authenticator app with number verification → one-time codes → SMS (better than nothing).
- For administrators and accounting — only phishing-resistant methods (FIDO2/passkeys).
DMARC Reports: How to Read#
Recipients send daily XML reports to the address from rua=. They show which IPs sent emails from your domain, how many, and whether they passed SPF/DKIM.
What to do with reports:
- Create a separate
dmarc@company.kzdrawer — there are many reports. - Analyze them with a service or your own tool: there are paid cloud analyzers (many have a free plan) and open-source, such as parsedmarc (which compiles reports in Elasticsearch/OpenSearch, then a dashboard in Grafana or Kibana).
- Once a week, watch:
- unknown IPs passing SPF — someone sends legally from you, but you don't know about them (CRM, website, contractor);
- unknown IPs that fail verification — attempts at forgery, which are blocked by
p=reject; - your own services with
dkim=fail— you need to set up the signature.
- When the month has no "your" mistakes — raise the policy to
quarantine, thenreject.
Don't forget the parked domains (which don't send mail) — they are also used for forgery:
old-brand.kz. TXT "v=spf1 -all"
_dmarc.old-brand.kz. TXT "v=DMARC1; p=reject"
Incoming mail filtering#
- Microsoft 365: Exchange Online Protection (on all plans) + Defender for Office 365 (Safe Links — link checks at click, Safe Attachments — sandbox for attachments) in Business Premium or separately. Enable preset Standard/Strict preset security policies.
- Google Workspace: Admin console → Gmail → Safety — protection against spoofing, suspicious attachments, and links; enable recommended settings.
- Own server: Rspamd + ClamAV, prohibits dangerous extensions, and if necessary — external filtering gateway in front of the server.
General rules:
- the 'External sender' label in the subject or banner in the body of the email — helps to spot the 'director' from someone else's address;
- blocking Office macros in files from the internet (Group Policy — " Active Directory and Group Policies" series);
- prohibition of automatic forwarding to external boxes;
- Notification about new shipping rules and entry from unusual countries is the first sign of a hack.
If the drawer is hacked#
- Change the password and end all sessions (in Microsoft 365 — Revoke sessions for the user).
- Check and remove rules for forwarding and processing incoming, delegation, and connected applications (OAuth consents).
- Reregister MFA if the attacker added their method.
- Find who received emails on behalf of the compromised user: message trace log → warn recipients.
- Save audit logs — they are needed for analysis. If the emails contained personal data, assess the notification obligations (see the overview "Personal Data in Kazakhstan").
More about incident response — series "Information Security and Anti-Fraud."
Training people#
Technical measures cover most attacks, but not all. Once a quarter:
- a brief briefing with examples of real phishing emails that arrived at the company;
- Phishing training (in Microsoft 365 — Attack simulation training in Defender for Office 365 Plan 2; there are also open-source tools like GoPhish) — without penalties, with analysis;
- clear button/address "report phishing" (
phishing@company.kzor Report button in Outlook).
Rule for accounting: any change of details is only after calling the number from the contract, not from the letter.
Archiving and retention periods#
Archive and backup are different things:
| Archive | Backup | |
|---|---|---|
| Why | keep correspondence for N years, search through it, | recover legal requests after a failure, deletion, ransomware, |
| As | retention policies, immutable storage | copy to another site |
| Where in M365 | Microsoft Purview: retention policies, litigation hold, | third-party Microsoft 365 backup solutions |
| Where a separate archive server | on its server (for example, an open-source piler), logging | Borg/restic, VM backup, |
An important misconception: cloud mail itself is not a backup. Microsoft and Google protect against hardware failure, but not against your mistake: deleted emails disappear irreversibly after a certain period, and an encryptor on a PC with synchronization can corrupt files in the cloud as well. Critical mailboxes require a third-party backup.
Determine the retention periods for correspondence together with your lawyer and accounting: both "keep everything forever" and "delete after 30 days" are equally risky, especially for letters with personal data.
Mail security checklist#
- MFA for everyone, phishing-resistant methods for admins and accounting
- Deprecated password protocols disabled or replaced with application passwords
- DMARC
p=reject, reports are reviewed weekly, parked domains are protected - Filtering links and attachments, blocking dangerous file types
- External sender tag, automatic forwarding prohibition
- Alerts about new forwarding rules and suspicious logins
- Action plan for a drawer hack
- Training and educational mailings once a quarter
- Retention policy and separate mail backup
The last part — moving from one system to another: Corporate mail, part 6: moving between systems — imapsync, built-in wizards, and MX switching checklist.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.