Habr•October 20, 2026•🇷🇺Translated from Russian

SPF, DKIM and DMARC: Practical Guide to Detecting Email Spoofing and Phishing

The article examines how SPF, DKIM, and DMARC help determine whether an incoming email was sent from an authorized server and whether its content remained unchanged.

SPF (Sender Policy Framework) lets domain owners publish TXT records that list permitted sending IP addresses. An example record is example.com. TXT "v=spf1 ip4:192.0.2.10 -all". Receiving servers compare the sending IP against this policy. However, SPF does not validate the visible From address, allowing attackers to spoof the displayed sender while using a different domain for the SMTP envelope.

Common SPF problems include missing new mail services after infrastructure changes, multiple SPF records for one domain, exceeding the ten-DNS-lookup limit, and overly permissive policies. Forwarding can also break SPF because the sending IP changes.

DKIM (DomainKeys Identified Mail) provides cryptographic signing of selected headers and the message body. The sending server signs with a private key; the public key is published in DNS, for example at selector1._domainkey.example.com. A typical DKIM-Signature header lists the signing domain, selector, signed headers, body hash, and signature. Successful verification confirms the signed parts were not altered, yet it does not prove the sender is trustworthy.

DMARC (Domain-based Message Authentication, Reporting and Conformance) links SPF and DKIM results to the visible From domain. At least one of the two checks must pass with domain alignment. A sample DMARC record is _dmarc.example.com. TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com". Policies range from none (monitor only) to quarantine or reject. Organizations are advised to start with monitoring and gradually tighten the policy after reviewing reports.

An Authentication-Results header such as spf=pass smtp.mailfrom=bounce.example.com; dkim=pass header.d=example.com; dmarc=pass header.from=example.com indicates successful checks, yet does not rule out account compromise or malicious content sent from a legitimate domain.

Administrators should verify DNS records, align domains, analyze DMARC reports, and correct misconfigurations before enforcing stricter policies. End users should treat unexpected messages requesting urgent action or attachments with caution regardless of authentication results.

Related articles

AntiMalware•Fraud & Social Engineering

Kaspersky Updates Fraud Prevention Platform with Graph Analysis and Persistent Device Identification

Kaspersky has released a major update to its Kaspersky Fraud Prevention platform, introducing visual tools for mapping fraudulent schemes and an improved Stable ID mechanism. The new research graph enables users to explore connections between IP addresses, accounts, devices, sessions, and incidents directly in the interface, eliminating the need for manual data analysis or external specialists. In beta, automatic clustering now groups related devices and users to flag high-risk clusters before any fraudulent activity is recorded. The enhanced Stable ID technology maintains consistent device fingerprints even after browser updates, cookie deletion, app removal, or full smartphone resets. Additional improvements include production-grade detection of temporary SMS numbers, expanded anonymizer and SMS-bombing identification, machine-learning detection of next-generation bots, and customizable analytics dashboards. Customers can also deploy the solution from a new cloud region in Kazakhstan.

BoletimSec•Fraud & Social Engineering

EvilTokens Kit Returns to Steal Microsoft 365 Accounts via OAuth Device Code Abuse

Cybercriminals have resumed using the EvilTokens kit to compromise Microsoft 365 accounts just two months after Microsoft disrupted the service on September 22. A November 24 report documented new active phishing hosts operating throughout October and November that continued generating valid device codes. The kit is sold as a service on Telegram and tracked by Microsoft under the developer name Storm-2992. Instead of mimicking login pages, EvilTokens abuses the OAuth device code flow so victims enter a legitimate code on the official Microsoft authentication screen. Once approved, the attackers obtain access and refresh tokens that enable email access, hidden inbox rules, and device registration within minutes. The operation has been linked to more than 12,000 compromised mailboxes across over 10,000 organizations. Researchers recommend disabling the device code flow through Conditional Access policies in Microsoft Entra ID as the most direct mitigation.

AntiMalware•Fraud & Social Engineering

Scammers Impersonate Zolotoye Yabloko Support with Fake Prize Wheels and Telegram Phishing

During the sales season, fraudsters have intensified impersonation attacks against Zolotoye Yabloko customers by deploying counterfeit support channels and rigged prize draws. The retailer reported receiving 40-60 daily inquiries in November about suspected scams, representing a two- to three-fold increase over October levels. Between July and October 2026, the company logged 1,900 fraud reports, of which 1,300 were confirmed as malicious. The most common vector involved a fake prize wheel that guaranteed a 300,000-ruble payout on the third spin while displaying pre-scripted chat messages from nonexistent winners. Victims who entered card details were then instructed to pay a 2,000-ruble processing fee. A secondary campaign targeted users complaining in the official Telegram channel, offering a 10 percent discount before redirecting them to phishing pages that replicated the shopping cart. Zolotoye Yabloko has contributed to the takedown of more than 4,000 malicious domains since October 2025 and warns customers to verify all discount offers exclusively through its official mobile application.

Habr•Fraud & Social Engineering

T-Bank's wev.js Anti-Fraud Collector: Reverse Engineering Browser Fingerprinting for Bot Detection

A detailed reverse engineering of T-Bank's wev.js anti-fraud SDK reveals how the bank builds a persistent device fingerprint during debit card applications. The collector draws an invisible 2000x200 canvas with non-existent fonts and colored arcs, then hashes the result with SHA256 to create a stable device identifier called nf. It also captures twelve data blocks including compressed mouse and keyboard event streams, full WebGL renderer details such as UNMASKED_RENDERER exposing the Apple M4 Max chip, and sensor data from gyroscopes and accelerometers. Eight dedicated bot-detection checks target automation frameworks by inspecting navigator.webdriver, native code descriptors, and Safari-specific markers. Experiments showed that spoofing the GPU renderer leaves the nf hash unchanged, while deterministic canvas modifications can create a stable fake device fingerprint. A second collector, fp-pixel.js, runs on SSO pages and aggregates even more signals including audio, fonts, and WebRTC before sending data to a separate endpoint.