SPF, DKIM, DMARC, FIDO2 WebAuthn & GDPR Breach Triage: The Enterprise Cyber Hygiene Engineering Guide
Superficial "spot the typo in the sender's email address" training fails against modern cryptographic spoofing and Adversary-in-the-Middle (AitM) reverse-proxy phishing. If your domain's SPF (RFC 7208) chain exceeds the hard 10-DNS-lookup limit, if your DMARC (RFC 7489) policy sits at p=none with relaxed alignment, or if your workforce relies on 6-digit TOTP authenticator apps rather than origin-bound FIDO2 / WebAuthn (CTAP2) hardware tokens, a single credential-harvesting proxy can hijack valid session cookies in under 800 milliseconds—triggering mandatory GDPR Article 33 (72-hour supervisory reporting). This reference provides the complete protocol physics, DNS architecture, packet-level MFA verification math, and incident containment runbooks.
1. The Cryptographic Email Authentication Stack: Why Standalone SPF Fails
Core Internet email transmission relies on the Simple Mail Transfer Protocol (SMTP, RFC 5321), designed in 1982 with zero built-in sender authentication. Every email message actually carries two completely independent sender identities that standard mail clients hide from end users:
Without all three pillars—SPF, DKIM, and DMARC—working in strict cryptographic alignment, an external attacker can pass SPF and DKIM 100% cleanly on their own throwaway infrastructure while displaying your CEO's exact address in the recipient's inbox.
A. Sender Policy Framework (SPF — RFC 7208) & The Hard 10-DNS-Lookup Trap
SPF (RFC 7208) allows a domain owner to publish a DNS TXT record listing the exact IPv4 (ip4:) and IPv6 (ip6:) subnets authorized to transmit mail on behalf of the RFC 5321.MailFrom (Return-Path) or HELO/EHLO domain. When a receiving Mail Transfer Agent (MTA) accepts a connection from a sending IP address, it queries the DNS TXT record of the domain found in MAIL FROM.
The single most common enterprise email outage occurs when marketing, HR, and billing departments keep adding third-party SaaS senders (include:sendgrid.net, include:mailgun.org, include:servers.mcsv.net, include:spf.mandrillapp.com) to the root domain's SPF record, triggering the RFC 7208 Section 4.6.4 10-DNS-Lookup Limit:
- Why the 10-Lookup Cap Exists: To prevent attackers from using crafted SPF records as a DNS amplification Denial-of-Service (
DoS) weapon against third-party authoritative nameservers, RFC 7208 mandates that a receiving MTA must perform at most 10 DNS-querying mechanisms or modifiers during an entire SPF evaluation. - Which Mechanisms Count Toward the Limit of 10: Every occurrence of
include,a,mx,ptr(deprecated),exists, andredirect—including all nested recursive lookups inside third-partyinclude:records—increments the counter. Literalip4:,ip6:, andallmechanisms require zero DNS queries and do not count toward the limit of 10. - The
spf=permerrorFailure Mode: The instant the 11th DNS lookup is required, the receiving MTA halts evaluation and returnsAuthentication-Results: spf=permerror (too many DNS lookups). Any legitimate business email relying on SPF for DMARC alignment immediately fails authentication and is dropped into quarantine or rejected outright.
⚠️ Why "SPF Flattening" Scripts Break Production Mail—Use Subdomain Delegation Instead
Many administrators try to bypass the 10-lookup limit by running automated "SPF flattening" scripts that replace include:spf.protection.outlook.com with hardcoded lists of raw ip4: CIDR blocks. When Microsoft, Google, or Amazon SES rotates an outbound MTA IP block at 03:00 UTC before your script's TTL expires, legitimate outbound mail is rejected by strict receivers. Instead of flattening the root domain, delegate functional subdomains: keep only your core corporate groupware (Microsoft 365 or Google Workspace) on the apex domain your-enterprise.com, and isolate transactional/marketing platforms onto dedicated envelope subdomains such as billing.your-enterprise.com, notify.your-enterprise.com, or news.your-enterprise.com. Each subdomain gets its own fresh quota of 10 DNS lookups while still satisfying relaxed DMARC alignment (aspf=r).
2. DKIM (RFC 6376 & RFC 8463): Cryptographic Header Signing & Body Hashing
While SPF only checks whether the connecting IP address is allowed to send mail for an envelope path—and breaks immediately whenever an email is forwarded through an intermediate mail server—DomainKeys Identified Mail (DKIM, RFC 6376) attaches a tamper-evident digital signature directly to the message headers. Even if an email traverses three forwarding relays, the cryptographic signature survives as long as the signed headers and message body remain unmodified.
How the receiving MTA validates a DKIM signature in 4 deterministic steps:
- Body Hash Verification (
bh=): The receiver normalizes line endings and whitespace in the message body according to the canonicalization algorithm (c=relaxed/relaxedallows minor MTA whitespace folding without breaking the hash, whereassimple/simplebreaks if a single space is modified) and computes theSHA-256digest of the body. If this computed hash does not match thebh=tag in theDKIM-Signatureheader, the message body was tampered with in transit (dkim=fail (body hash did not verify)). - Public Key Lookup via Selector (
s=andd=): The receiver reads the signing domaind=your-enterprise.comand selectors=sel2026q4, then queries DNS for theTXTrecord atsel2026q4._domainkey.your-enterprise.com. - Cryptographic Key Strength (RFC 8301 & RFC 8463): Legacy
512-bitand768-bitRSA keys can be factored on commodity GPU clusters in hours, and RFC 8301 deprecatesrsa-sha1completely. Enterprise production domains must enforce2048-bit RSA(rsa-sha256) as the baseline or deployEd25519(ed25519-sha256, RFC 8463) alongside RSA via dual-signing for compact, high-speed elliptic-curve verification. - Header Signature Verification (
b=) & Oversigning (h=from:...:from): The receiver uses the DNS public key to verify the asymmetric signatureb=computed over the exact headers listed inh=plus theDKIM-Signatureheader itself. Notice the repeatedfromat the end ofh=from:to:subject:...:from: this technique is called DKIM Header Oversigning. If a message only contains oneFrom:header, signingFromtwice cryptographically locks the header count—preventing an attacker from taking a validly signed newsletter and prepending a second maliciousFrom: CEO <ceo@your-enterprise.com>header above the original one.
3. DMARC (RFC 7489) Identifier Alignment, MTA-STS & TLS-RPT
Domain-based Message Authentication, Reporting, and Conformance (DMARC, RFC 7489) is the binding layer that solves the display-name and header-domain spoofing gap. DMARC enforces Identifier Alignment: it requires that the domain visible to the human user in RFC 5322.From matches either the validated SPF RFC 5321.MailFrom domain, the validated DKIM d= signing domain, or both.
- Relaxed Alignment (
aspf=r; adkim=r;— Default): The Organizational Domain must match. If the visible header isFrom: billing@your-enterprise.comand the envelope Return-Path isbounce@mail.your-enterprise.com, Relaxed Alignment PASSES because both share the organizational rootyour-enterprise.com. - Strict Alignment (
aspf=s; adkim=s;— Zero-Trust Standard): Requires an exact 1:1 FQDN match. If the visible header isFrom: cfo@your-enterprise.com, both the SPFMailFromdomain and the DKIMd=tag must beyour-enterprise.com—even a subdomain likesub.your-enterprise.comfails strict alignment. This prevents a compromised third-party marketing vendor on a subdomain from spoofing root-domain executive emails. - Subdomain Policy (
sp=reject) & Non-Existent Subdomain Protection: Withoutsp=reject, an attacker who seesp=rejecton your root domain can send phishing emails from a non-existent subdomain likeceo@hr-portal.your-enterprise.comif your main policy only specifiesp=noneduring testing. Furthermore, any parked domain that never sends email should publish a Null MX record (. 0 IN MX ., RFC 7505),v=spf1 -all, andv=DMARC1; p=reject; sp=reject;. - Eliminating STARTTLS Stripping with MTA-STS (RFC 8461) & DANE (RFC 7672): By default, SMTP uses opportunistic
STARTTLS, which is vulnerable to active network downgrade attacks where a man-in-the-middle strips the250-STARTTLScapability flag and forces plaintext transmission. Publishing an MTA-STS policy file athttps://mta-sts.your-enterprise.com/.well-known/mta-sts.txtwithmode: enforceinstructs sending MTAs to refuse delivery unless the MX server presents a valid X.509 certificate over TLS 1.2/1.3.
🔬 Cryptographic Email Authentication & Spoofing Resilience Matrix
| RFC 5322.From (Visible to User) | RFC 5321.MailFrom (SPF Envelope) | DKIM Signing Domain (d= Tag) | DMARC Policy & Alignment | Final MTA Verdict |
|---|---|---|---|---|
cfo@corp.com |
bounce@attacker-esp.net (spf=pass) |
d=attacker-esp.net (dkim=pass) |
No DMARC or p=none |
DELIVERED (Spoof Succeeds!) |
cfo@corp.com |
bounce@attacker-esp.net (spf=pass) |
d=attacker-esp.net (dkim=pass) |
p=reject; aspf=r; adkim=r |
BLOCKED (0% Domain Alignment) |
cfo@corp.com |
bounce@marketing.corp.com (spf=pass) |
d=marketing.corp.com (dkim=pass) |
p=reject; aspf=r; adkim=r |
PASSES (Subdomain Can Spoof Apex) |
cfo@corp.com |
bounce@marketing.corp.com (spf=pass) |
d=marketing.corp.com (dkim=pass) |
p=reject; aspf=s; adkim=s |
BLOCKED (Strict FQDN Mismatch) |
cfo@corp.com |
cfo@corp.com (spf=permerror >10 DNS) |
Unsigned or broken by footer | p=reject; aspf=s; adkim=s |
DROPPED (SPF Lookup Overflow) |
cfo@corp.com |
cfo@corp.com (spf=pass, ≤ 10 lookups) |
d=corp.com (2048-bit RSA / Ed25519) |
p=reject; sp=reject; aspf=s; adkim=s |
GOLD STANDARD (Zero-Trust Pass) |
4. Why SMS 2FA & TOTP Apps Fail Against AitM Proxies—And Why FIDO2 / WebAuthn Is Immune
For over a decade, security guidelines told users that replacing SMS codes with a 6-digit Time-Based One-Time Password (TOTP, RFC 6238) app (such as Google Authenticator, Microsoft Authenticator OTP, or Authy) was sufficient to stop phishing., open-source Adversary-in-the-Middle (AitM) reverse-proxy frameworks—including Evilginx 3.x, Modlishka, and Muraena—bypass SMS OTP, TOTP codes, and even standard MFA push approvals in under one second without deploying a single line of static HTML.
A. Packet-Level Anatomy of an Evilginx AitM Session Hijack
Unlike legacy phishing kits that host a static copy of a login page, an AitM attack operates as a live, bidirectional HTTPS reverse proxy sitting between the victim's browser and the genuine Identity Provider (IdP, such as login.microsoftonline.com or accounts.google.com):
- Real-Time TLS Termination & URL Rewriting: When the employee clicks a phishing link pointing to a look-alike domain (e.g.,
https://login.corp-sso.cowith a valid Let's Encrypt TLS certificate), Evilginx fetches the genuine Microsoft Entra ID or Google Workspace login page on the backend, dynamically rewrites all domain strings in the HTTP response headers and JavaScript payloads, and serves it to the victim. - Why TOTP (RFC 6238) Is Blind to the Domain Name: The mathematical formula for a 6-digit TOTP code is
TOTP = Truncate(HMAC-SHA1(SecretKey, floor(UnixTime / 30))). Notice what is missing from that equation: there is zero input for the browser's URL, domain name, or TLS channel ID. When the user reads492 817off their phone screen and types it intologin.corp-sso.co, Evilginx immediately forwards492 817tologin.microsoftonline.comwithin the same 30-second window. - Post-Authentication Session Cookie Theft: Once the real IdP verifies the relayed TOTP code, it issues the authenticated session cookies (such as
ESTSAUTH,ESTSAUTHPERSISTENT, orSID/HSID) in theSet-CookieHTTP response header. Because Evilginx terminates the TLS session, it logs the raw session token in plaintext. The attacker imports that cookie into an anti-detect browser and enjoys full access to Exchange Online, SharePoint, and cloud consoles without ever needing the password or MFA device again.
B. Why FIDO2 / WebAuthn (CTAP2) Mathematically Defeats AitM Reverse Proxies
FIDO2—comprising the W3C Web Authentication (WebAuthn) API built into modern browsers and the Client to Authenticator Protocol 2 (CTAP2) spoken over USB/NFC/BLE to a hardware security key (such as a YubiKey, Token2, Nitrokey, or TPM/Secure Enclave device-bound Passkey)—eliminates human-relayed codes altogether and binds every authentication signature directly to the browser's cryptographic origin:
- Private Key Scoping by Relying Party ID (
rpId): During initial registration onlogin.microsoftonline.com, the FIDO2 hardware key generates a unique asymmetric keypair (ECDSA P-256orEd25519) inside its tamper-resistant secure element and permanently binds that credential ID to the Relying Party IDmicrosoftonline.com. - Browser-Enforced Origin Inspection: When the user lands on the Evilginx proxy at
https://login.corp-sso.coand the proxied JavaScript callsnavigator.credentials.get(), the victim's local web browser inspects the true domain in its own TLS address bar (login.corp-sso.co). First, the key refuses to even recognize the credential ID registered formicrosoftonline.combecause the domain does not match. Second, even if an attacker crafts a custom WebAuthn call, the browser writes"origin": "https://login.corp-sso.co"intoclientDataJSON, and the hardware token embedsrpIdHash = SHA-256("login.corp-sso.co")into the signed structure. - Zero Replay Possibility: When Evilginx forwards that signed assertion back to the real server at
login.microsoftonline.com, the server compares the signedrpIdHashagainstSHA-256("login.microsoftonline.com"). Because cryptographic SHA-256 collision is impossible, the signature check fails immediately. The Evilginx proxy cannot rewriteclientDataJSONin transit because doing so invalidates the hardware key's ECDSA signature!
🔐 Multi-Factor Authentication (MFA) Architecture vs. Attack Vector Resilience Matrix
| Authentication Architecture | Cryptographic Mechanism | Credential Stuffing | SIM Swap / SS7 Intercept | Evilginx AitM Reverse Proxy | Enterprise Zero-Trust Verdict |
|---|---|---|---|---|---|
| SMS / Voice OTP | 6-digit code over unencrypted PSTN / SS7 cellular signaling | Blocked | VULNERABLE | BYPASSED (<1s) | Deprecated (NIST SP 800-63B) |
| TOTP App (RFC 6238) | Shared symmetric seed HMAC-SHA1(K, t/30); zero origin binding |
Blocked | Immune | BYPASSED (<1s) | Legacy Fallback Only |
| Standard Push MFA | Out-of-band mobile push approval without origin proximity binding | Blocked | Immune | BYPASSED (MFA Fatigue) | Vulnerable to Social Relay |
| Push + Number Matching | User enters 2-digit challenge shown on login screen into phone app | Blocked | Immune | BYPASSED (Proxy Shows Number) | Stops Fatigue, Fails AitM |
| FIDO2 / WebAuthn (CTAP2) | Asymmetric ECDSA P-256 / Ed25519 + hardware rpIdHash binding |
Blocked | Immune | 100% IMMUNE | Gold Standard (OMB M-22-09) |
| FIDO2 + TPM PRT / DBSC | FIDO2 login + session cookie hardware-bound to local TPM 2.0 chip | Blocked | Immune | IMMUNE (+ Stops Cookie Theft) | Tier-0 Admin Standard |
5. Interactive Domain Mail Security & MFA Phishing-Resistance Auditor
Configure your organization's current DNS email authentication parameters and workforce MFA architecture below to evaluate vulnerability to executive domain spoofing, SPF lookup overflows, Evilginx AitM session hijacking, and GDPR Article 32 compliance gaps:
🛡️ Interactive Email Cryptography & FIDO2 Phishing-Resistance Auditor
Select your domain's SPF/DMARC enforcement state, DKIM cryptographic alignment, workforce MFA protocol, and DNS lookup count to generate an instant security posture verdict and remediation runbook.
p=reject; sp=reject; aspf=s; adkim=s;) with 2048-bit RSA / Ed25519 DKIM signatures prevents both exact-domain and subdomain spoofing, while keeping SPF below 8 lookups eliminates spf=permerror outages. Enforcing FIDO2 / WebAuthn (CTAP2) with TPM device-bound session tokens mathematically blocks both Evilginx AitM reverse proxies and post-auth cookie replay.
6. Raw RFC 5322 Email Header Forensics & Punycode IDN Homograph Triage
When a suspicious message bypasses perimeter filters—for instance, via a compromised legitimate vendor tenant (Business Email Compromise / Vendor Email Compromise) or a freshly registered look-alike domain—security analysts must inspect raw message headers rather than relying on the graphical mail client preview.
Four forensic red flags jump out immediately in the raw header block above:
- Read
Received:Headers from Bottom to Top: Every MTA hop prepends its ownReceived:line at the top of the header stack. While an attacker can forge fakeReceived:lines at the very bottom before transmitting the message, the topmostReceived:andAuthentication-Results:headers stamped by your own receiving MX gateway are authoritative. - Reply-To Hijacking & Display Name Deception: The visible
From:display string says"Supplier Accounts Receivable", while the silentReply-To:header diverts any reply to an external webmail box (settlement-desk@protonmail.com). - Punycode / Internationalized Domain Name (
IDN, RFC 5890) Homograph Attacks: Modern browsers and mail clients translate non-ASCII Unicode characters (such as Cyrillic small letterаU+0430or GreekοU+03BF, which look identical to LatinaU+0061andoU+006F) into ASCII-Compatible Encoding (ACE) prefixed withxn--. A link that renders visually asmicrosoft.comusing Cyrillic characters is actually resolved in DNS asxn--micrsoft-11a.com. Configure mail gateways to flag or strip HTML hyperlinks containingxn--Punycode prefixes from untrusted external domains. - ARC (Authenticated Received Chain — RFC 8617) for Legitimate Forwarders: When a legitimate email passes through a mailing list or forwarding rule, the forwarder's IP fails the original sender's SPF check, and mailing-list subject tags (
[SecOps-List]) break the original DKIM signature. Verify theARC-Authentication-Results,ARC-Message-Signature, andARC-Sealchain stamped by trusted intermediate forwarders before classifying a forwarded message as spoofed.
7. GDPR Article 32, 33 & 34: The 72-Hour Breach Triage & Endpoint Isolation Runbook
Under the European Union and UK General Data Protection Regulation (GDPR / RODO), an identity compromise or phishing incident is not merely an internal IT ticket—it is a regulated legal event with a strict statutory countdown clock:
- GDPR Article 32 (Security of Processing): Mandates Technical and Organizational Measures (
TOMs) appropriate to the risk. Operating a corporate domain withDMARC p=none, allowing password-only or SMS-based access to cloud mailboxes holding personal data, or lacking endpoint session revocation capabilities is routinely cited by supervisory authorities (ICO, CNIL, BfDI, UODO) as a direct failure of Article 32 duty of care. - GDPR Article 33 (72-Hour Notification to the Supervisory Authority): Once the controller becomes aware that a personal data breach has occurred, it must notify the competent Data Protection Authority within 72 hours unless the breach is unlikely to result in a risk to the rights and freedoms of natural persons.
- GDPR Article 34 (Communication to the Data Subject): If the breach is likely to result in a high risk to individuals (for example, exfiltration of payroll, national ID numbers, health records, or customer financial data), affected individuals must be notified directly without undue delay.
🔬 Forensic Triage: AitM Cookie Hijack vs. InfoStealer DPAPI Malware Extraction
During the critical first 4 hours of a 72-hour GDPR Article 33 investigation, your SecOps team must determine how the attacker accessed the account, because the remediation scope differs dramatically:
- Scenario A — AitM Browser Phishing (Cloud-Only Compromise): The employee clicked a link to an Evilginx reverse proxy and authenticated. The attacker stole the cloud session cookie for that single SaaS tenant (e.g., Microsoft 365), but no malware executed on the laptop's operating system. Resetting the password, revoking all OAuth refresh tokens / Continuous Access Evaluation (
CAE) sessions in the cloud IdP, auditing inbox forwarding rules (hiddenInbox Rulesmoving mail toRSS SubscriptionsorArchive), and removing rogue registered MFA devices contains the breach. - Scenario B — InfoStealer Execution (Full Endpoint DPAPI Compromise): The user executed a weaponized attachment or fake CAPTCHA command (
ClickFixPowerShell paste) that ran an InfoStealer binary (LummaC2,RedLine,Stealc,Vidar). The malware runs under the local user's SID, reads Chrome/Edge's%LOCALAPPDATA%\Google\Chrome\User Data\Local Statefile, invokes the Windows Data Protection API (DPAPI CryptUnprotectData) or COM elevation to decrypt the browser'sAES-256-GCMmaster key, and exfiltrates every saved password, every active session cookie across all browser profiles, SSH keys, and local files in under 4 seconds. Here, resetting a single Microsoft 365 password is completely insufficient—the physical endpoint must be isolated, forensically imaged, and wiped bare-metal.
Immediate 15-Minute SOC Containment Commands (Windows, Linux & Cloud IdP)
When a workstation or cloud identity is suspected of active compromise, execute containment in this exact sequence so you do not destroy volatile RAM forensics before isolating network egress:
8. Frequently Asked Questions (Email Cryptography, FIDO2 & GDPR FAQ)
Why does an email pass SPF and DKIM but still spoof our executive display domain?
Because standalone SPF (RFC 7208) only authenticates the hidden envelope Return-Path (RFC 5321.MailFrom) domain, and standalone DKIM (RFC 6376) only verifies that the domain listed in its d= tag signed the message. Without a published DMARC policy (RFC 7489) enforcing identifier alignment between those authenticated domains and the human-visible RFC 5322.From header, an attacker can send mail from their own SPF/DKIM-valid server while setting the visible From: header to your CEO's address.
What happens when an SPF record exceeds the 10-DNS-lookup limit?
Under RFC 7208 Section 4.6.4, if evaluating the mechanisms (include, a, mx, ptr, exists, redirect) inside an SPF TXT record requires more than 10 DNS queries in total (including nested recursive lookups inside third-party includes), the receiving MTA immediately aborts evaluation and returns spf=permerror. When SPF fails with permerror, any message relying on SPF for DMARC alignment fails authentication and risks rejection under p=reject.
How do Evilginx and Modlishka bypass 6-digit TOTP authenticator apps in real time?
Adversary-in-the-Middle (AitM) frameworks like Evilginx act as a transparent reverse HTTPS proxy between the victim and the real identity provider (such as Microsoft Entra ID or Google Workspace). Neither the password nor the 6-digit RFC 6238 TOTP code is cryptographically bound to the browser's TLS connection or domain name. When the victim types their TOTP code into the fake proxy domain, Evilginx relays it to the real login server in milliseconds and captures the resulting authenticated session cookie (such as ESTSAUTHPERSISTENT), allowing the attacker to hijack the session without ever needing the MFA device again.
Why is FIDO2 / WebAuthn mathematically immune to AitM reverse-proxy phishing?
When a browser executes navigator.credentials.get() during a FIDO2/WebAuthn login, the browser itself (not the user) inspects the exact domain in the address bar and passes clientDataJSON.origin and rpIdHash = SHA-256(relyingPartyId) over CTAP2 to the hardware security key. Even if an Evilginx proxy relays the challenge from login.microsoft.com to a look-alike domain like login-micros0ft.com, the hardware key signs the hash of login-micros0ft.com. When the real identity provider checks the signature against SHA-256(login.microsoft.com), cryptographic verification fails instantly.
How do InfoStealer trojans bypass FIDO2 hardware keys without triggering MFA prompts?
FIDO2 protects the authentication ceremony, not post-authentication session cookies stored in reversible OS encryption on a compromised endpoint. InfoStealers (RedLine, LummaC2, Vidar) run under the logged-in user's security context, call Windows DPAPI CryptUnprotectData() or inject into the browser process to extract the AES-256-GCM master key from Local State, and decrypt the SQLite Cookies database. Defending against post-auth cookie theft requires Device-Bound Session Credentials (DBSC), TPM-backed Primary Refresh Tokens (PRT), and strict endpoint isolation.
🛠️ Related SpecInfo Zero-Trust Security, Network & ITAD References
- SpecInfo NetSentinel Suite — Audit DNS resolution chains, inspect TLS/X.509 certificate hygiene, and verify network perimeter posture.
- NIST SP 800-88 Rev. 1 Data Sanitization & Cryptographic Erase Guide — Ensure decommissioned NVMe/SSD drives undergo verified controller-level sanitization to prevent GDPR Article 32 physical data leaks.
- Linux Kernel Panic, OOM Killer & SRE Emergency Triage Guide — Rapid diagnostic runbooks for production Linux infrastructure.
- 10-Minute Used Laptop Pre-Purchase Hardware & BIOS MDM Audit Guide — Verify BIOS Supervisor locks, Computrace/Absolute Persistence, and corporate Windows Autopilot MDM enrollment before acquiring hardware.