Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit 29edaa1 · 15 days ago

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#

AttackWhat thelooks 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 domainDMARC p=reject
Similar domaincompany-kz.com, cornpany.kztag "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 forcethousands of IMAP/SMTPMFA login attempts, disabling legacy protocols, IP
Session token theftphishing proxy intercepts an already authorized sessionFIDO2/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:

  1. Create a separate dmarc@company.kz drawer — there are many reports.
  2. 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).
  3. 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.
  4. When the month has no "your" mistakes — raise the policy to quarantine, then reject.

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#

  1. Change the password and end all sessions (in Microsoft 365 — Revoke sessions for the user).
  2. Check and remove rules for forwarding and processing incoming, delegation, and connected applications (OAuth consents).
  3. Reregister MFA if the attacker added their method.
  4. Find who received emails on behalf of the compromised user: message trace log → warn recipients.
  5. 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.kz or 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:

ArchiveBackup
Whykeep correspondence for N years, search through it,recover legal requests after a failure, deletion, ransomware,
Asretention policies, immutable storagecopy to another site
Where in M365Microsoft Purview: retention policies, litigation hold,third-party Microsoft 365 backup solutions
Where a separate archive serveron its server (for example, an open-source piler), loggingBorg/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 00 участников · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.