{"id":9837,"date":"2026-08-18T22:30:35","date_gmt":"2026-08-18T22:30:35","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=9837"},"modified":"2026-08-19T01:15:08","modified_gmt":"2026-08-19T01:15:08","slug":"defender-impersonation-not-working","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working","title":{"rendered":"Defender impersonation not working &#8211; Mailflow protection"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/security.microsoft.com\/reportsubmission\">https:\/\/security.microsoft.com\/reportsubmission<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This builds an exchange rule to take the names out the defender impersonation list and creates a rule<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">&lt;#\n.SYNOPSIS\n    Builds\/updates an Exchange Online mail flow (transport) rule that quarantines\n    external mail impersonating your organization's \"protected\" VIP display names,\n    using the TargetedUsersToProtect list from your Defender for Office 365\n    Anti-Phishing policies.\n\n.DESCRIPTION\n    This is a backstop for Defender's built-in impersonation protection: it\n    quarantines any external message whose 'From' header display name exactly\n    matches one of your protected VIPs' names, unless the message genuinely\n    came from that person's real mailbox address.\n\n    Logic:\n      1. Connects to Exchange Online (if not already connected).\n      2. Reads every ENABLED Anti-Phish policy and pulls its TargetedUsersToProtect\n         list (format: \"Display Name;email@domain.com\", comma-separated entries).\n      3. Merges and de-duplicates the display names and email addresses across\n         all enabled policies.\n      4. Creates the transport rule if it doesn't exist, or updates it in place\n         if a rule with the same name already exists (conditions\/exceptions are\n         refreshed to match the current protected-user list; other settings such\n         as Mode are left untouched on update unless you pass -Force).\n      5. The rule is created\/left in AUDIT mode (Exchange calls this \"Test\" mode\n         under the hood; the admin center displays it as \"Audit\"). No mail is\n         actually quarantined while in this mode - only match events are logged.\n         Pass -Enforce to switch it to enforce mode instead.\n\n.PARAMETER RuleName\n    Name of the transport rule to create\/update.\n    Default: \"Quarantine - External Sender Impersonating Protected Names\"\n\n.PARAMETER Enforce\n    Switch. If specified, sets the rule to Enforce mode instead of Audit\/Test mode.\n    Omit this to keep the rule safely in audit-only mode.\n\n.PARAMETER Priority\n    Rule priority (lower number = higher priority). Default: 3, matching the\n    example rule this script is modeled on. Adjust to fit your existing rule set.\n\n.PARAMETER WhatIf\n    Preview the protected names\/addresses and the rule that would be\n    created\/updated, without making any changes in Exchange Online.\n\n.EXAMPLE\n    .\\New-ImpersonationQuarantineRule.ps1 -WhatIf\n    Shows what would happen without changing anything.\n\n.EXAMPLE\n    .\\New-ImpersonationQuarantineRule.ps1\n    Creates or updates the rule in Audit mode.\n\n.EXAMPLE\n    .\\New-ImpersonationQuarantineRule.ps1 -Enforce\n    Creates or updates the rule and sets it to Enforce mode (will actually quarantine mail).\n\n.NOTES\n    Requires the ExchangeOnlineManagement module and an account with Exchange\n    Online \/ Security &amp; Compliance admin permissions (e.g. Organization\n    Management or Security Administrator role).\n\n    Review the -WhatIf output before running for real, and review the rule in\n    the Exchange admin center after creation. Audit mode is intentionally the\n    default so you can check for false positives (e.g. legitimate external\n    senders who happen to share a display name with a protected VIP) before\n    switching to Enforce.\n#>\n\n[CmdletBinding(SupportsShouldProcess = $true)]\nparam(\n    [string]$RuleName = \"Quarantine - External Sender Impersonating Protected Names\",\n    [switch]$Enforce,\n    [int]$Priority = 3\n)\n\n$ErrorActionPreference = \"Stop\"\n\nfunction Ensure-ExchangeOnlineConnection {\n    $connected = $false\n    try {\n        $null = Get-ConnectionInformation -ErrorAction Stop\n        $connected = $true\n    } catch {\n        $connected = $false\n    }\n\n    if (-not $connected) {\n        Write-Host \"Connecting to Exchange Online...\" -ForegroundColor Cyan\n        if (-not (Get-Module -ListAvailable -Name ExchangeOnlineManagement)) {\n            throw \"The ExchangeOnlineManagement module is not installed. Install it first with: Install-Module ExchangeOnlineManagement -Scope CurrentUser\"\n        }\n        Import-Module ExchangeOnlineManagement -ErrorAction Stop\n        Connect-ExchangeOnline -ShowBanner:$false\n    } else {\n        Write-Host \"Already connected to Exchange Online.\" -ForegroundColor DarkGray\n    }\n}\n\nfunction Get-ProtectedNamesAndAddresses {\n    &lt;#\n        Pulls TargetedUsersToProtect from every ENABLED Anti-Phish policy and\n        returns a de-duplicated list of [pscustomobject]@{ DisplayName; Email }\n    #>\n    Write-Host \"Retrieving enabled Anti-Phish policies...\" -ForegroundColor Cyan\n    $policies = Get-AntiPhishPolicy | Where-Object { $_.Enabled -eq $true }\n\n    if (-not $policies -or $policies.Count -eq 0) {\n        Write-Warning \"No enabled Anti-Phish policies were found. Nothing to build the rule from.\"\n        return @()\n    }\n\n    $protected = New-Object System.Collections.Generic.List[object]\n\n    foreach ($policy in $policies) {\n        Write-Host \"  Policy: $($policy.Identity)\" -ForegroundColor DarkGray\n        $entries = $policy.TargetedUsersToProtect\n        if (-not $entries) { continue }\n\n        foreach ($entry in $entries) {\n            # Each entry is typically formatted as \"Display Name;email@domain.com\"\n            $parts = $entry -split ';'\n            if ($parts.Count -ge 2) {\n                $name  = $parts[0].Trim()\n                $email = $parts[1].Trim()\n            } else {\n                # Fallback: some tenants store just the display name or just the address\n                $name  = $entry.Trim()\n                $email = $null\n            }\n\n            if ([string]::IsNullOrWhiteSpace($name)) { continue }\n\n            $protected.Add([pscustomobject]@{\n                DisplayName = $name\n                Email       = $email\n            })\n        }\n    }\n\n    # De-duplicate by DisplayName+Email pair (case-insensitive)\n    $unique = $protected |\n        Group-Object { \"$($_.DisplayName.ToLower())|$($_.Email.ToLower())\" } |\n        ForEach-Object { $_.Group[0] }\n\n    return $unique\n}\n\n# --- Main ---\n\nEnsure-ExchangeOnlineConnection\n\n$protectedUsers = Get-ProtectedNamesAndAddresses\n\nif ($protectedUsers.Count -eq 0) {\n    Write-Warning \"No protected users found across enabled Anti-Phish policies. Exiting without changes.\"\n    return\n}\n\n$displayNames = $protectedUsers |\n    Select-Object -ExpandProperty DisplayName -Unique |\n    Where-Object { $_ }\n\n$emailAddresses = $protectedUsers |\n    Select-Object -ExpandProperty Email -Unique |\n    Where-Object { $_ }\n\nWrite-Host \"`nFound $($displayNames.Count) unique protected display name(s) and $($emailAddresses.Count) associated address(es):\" -ForegroundColor Green\n$protectedUsers | Sort-Object DisplayName | Format-Table DisplayName, Email -AutoSize\n\n$modeDescription = if ($Enforce) { \"Enforce (will actually quarantine matching mail)\" } else { \"Audit\/Test (logs matches only, no mail is quarantined)\" }\nWrite-Host \"`nRule to be created\/updated:\" -ForegroundColor Green\nWrite-Host \"  Name          : $RuleName\"\nWrite-Host \"  Priority      : $Priority\"\nWrite-Host \"  Mode          : $modeDescription\"\nWrite-Host \"  Condition     : 'From' header contains one of the protected display names\"\nWrite-Host \"                  AND sender is from outside the organization\"\nWrite-Host \"  Exception     : sender's address contains one of the protected users' real addresses\"\nWrite-Host \"  Action        : Deliver the message to the hosted quarantine\"\n\nif ($WhatIfPreference) {\n    Write-Host \"`n-WhatIf specified: no changes were made in Exchange Online.\" -ForegroundColor Yellow\n    return\n}\n\n$existingRule = $null\ntry {\n    $existingRule = Get-TransportRule -Identity $RuleName -ErrorAction Stop\n} catch {\n    $existingRule = $null\n}\n\n$ruleMode = if ($Enforce) { \"Enforce\" } else { \"Test\" }  # \"Test\" mode = \"Audit\" in the admin center UI\n\n$ruleParams = @{\n    Name                          = $RuleName\n    HeaderContainsMessageHeader   = \"From\"\n    HeaderContainsWords           = $displayNames\n    FromScope                     = \"NotInOrganization\"\n    ExceptIfFromAddressContainsWords = $emailAddresses\n    Quarantine                    = $true\n    Mode                          = $ruleMode\n    Priority                      = $Priority\n    RuleErrorAction               = \"Ignore\"\n    Comments                      = \"Backstop for Defender impersonation protection: quarantines external mail whose display name exactly matches a protected VIP name, even when Defender's own confidence scoring lets it through. Auto-generated\/updated by New-ImpersonationQuarantineRule.ps1 from enabled Anti-Phish policies' TargetedUsersToProtect lists on $(Get-Date -Format 'yyyy-MM-dd').\"\n}\n\nif ($existingRule) {\n    Write-Host \"`nExisting rule '$RuleName' found - updating it in place.\" -ForegroundColor Cyan\n    if ($PSCmdlet.ShouldProcess($RuleName, \"Update transport rule\")) {\n        Set-TransportRule @ruleParams\n        Write-Host \"Rule updated successfully.\" -ForegroundColor Green\n    }\n} else {\n    Write-Host \"`nNo existing rule named '$RuleName' - creating a new one.\" -ForegroundColor Cyan\n    if ($PSCmdlet.ShouldProcess($RuleName, \"Create transport rule\")) {\n        New-TransportRule @ruleParams\n        Write-Host \"Rule created successfully.\" -ForegroundColor Green\n    }\n}\n\nWrite-Host \"`nDone. Review the rule in the Exchange admin center (Mail flow > Rules) before relying on it,\" -ForegroundColor Yellow\nWrite-Host \"and keep it in Audit mode until you've confirmed there are no false positives.\" -ForegroundColor Yellow<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9837","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-18T22:30:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-19T01:15:08+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#article\",\"name\":\"Defender impersonation not working \\u2013 Mailflow protection | Welcome to Pariswells.com\",\"headline\":\"Defender impersonation not working &#8211; Mailflow protection\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2026-08-18T22:30:35+00:00\",\"dateModified\":\"2026-08-19T01:15:08+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#webpage\"},\"articleSection\":\"Research\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#listItem\",\"name\":\"Defender impersonation not working &#8211; Mailflow protection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#listItem\",\"position\":3,\"name\":\"Defender impersonation not working &#8211; Mailflow protection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working\",\"name\":\"Defender impersonation not working \\u2013 Mailflow protection | Welcome to Pariswells.com\",\"description\":\"https:\\\/\\\/security.microsoft.com\\\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/defender-impersonation-not-working#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2026-08-18T22:30:35+00:00\",\"dateModified\":\"2026-08-19T01:15:08+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com","description":"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule","canonical_url":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#article","name":"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com","headline":"Defender impersonation not working &#8211; Mailflow protection","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2026-08-18T22:30:35+00:00","dateModified":"2026-08-19T01:15:08+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#webpage"},"articleSection":"Research"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#listItem","name":"Defender impersonation not working &#8211; Mailflow protection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#listItem","position":3,"name":"Defender impersonation not working &#8211; Mailflow protection","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#webpage","url":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working","name":"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com","description":"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2026-08-18T22:30:35+00:00","dateModified":"2026-08-19T01:15:08+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com","og:description":"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule","og:url":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working","article:published_time":"2026-08-18T22:30:35+00:00","article:modified_time":"2026-08-19T01:15:08+00:00","twitter:card":"summary","twitter:title":"Defender impersonation not working \u2013 Mailflow protection | Welcome to Pariswells.com","twitter:description":"https:\/\/security.microsoft.com\/reportsubmission This builds an exchange rule to take the names out the defender impersonation list and creates a rule"},"aioseo_meta_data":{"post_id":"9837","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-08-18 22:29:48","updated":"2026-08-19 01:15:08","primary_term":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDefender impersonation not working \u2013 Mailflow protection\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Defender impersonation not working &#8211; Mailflow protection","link":"https:\/\/pariswells.com\/blog\/research\/defender-impersonation-not-working"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=9837"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9837\/revisions"}],"predecessor-version":[{"id":9842,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9837\/revisions\/9842"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=9837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=9837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=9837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}