DefenderHow-to

Defender for Endpoint custom indicators: block or allow files, IPs, URLs and certificates

Create file, IP, URL and certificate indicators in Defender for Endpoint: the prerequisites, actions, scoping, limits and precedence, why an indicator doesn't fire, and how to prove it.

Custom indicators let you apply your own threat intelligence in Defender for Endpoint: block a malicious hash, warn on a risky site, or allow a site that web content filtering would block. Each type is enforced by a different component, which is why an indicator sometimes "does nothing". In this post I'll cover the prerequisites, creating and scoping indicators, precedence, and proving a block in advanced hunting.

Errors this guide fixes

  • EUS:Win32/CustomEnterpriseBlock!clAdvanced hunting (AdditionalFields)
  • EUS:Win32/CustomEnterpriseNoAlertBlock!clAdvanced hunting (AdditionalFields)
  • EUS:Win32/CustomCertEnterpriseBlock!clAdvanced hunting (AdditionalFields)
How this guide is organized: How it works → Prerequisites → Step-by-step → Precedence → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. Prerequisites. 3. Step-by-step (3 steps: Create the indicator; Write the value correctly; Use Warn deliberately). 4. Precedence. 5. Verify. 6. Tips & gotchas. Toolbox: Endpoints › Indicators, General › Advanced features, AMRunningMode, EnableNetworkProtection, contoso.com.1How it works2Prerequisites3Step-by-step1Create the indicator2Write the value correctly3Use Warn deliberately4Precedence5Verify6Tips & gotchasTOOLBOXEndpoints › IndicatorsGeneral › Advanced featuresAMRunningModeEnableNetworkProtectioncontoso.comHow this guide is organized: How it works → Prerequisites → Step-by-step → Precedence → Verify → Tips & gotchasFlow diagram of the article's sections in reading order: 1. How it works. 2. Prerequisites. 3. Step-by-step (3 steps: Create the indicator; Write the value correctly; Use Warn deliberately). 4. Precedence. 5. Verify. 6. Tips & gotchas. Toolbox: Endpoints › Indicators, General › Advanced features, AMRunningMode, EnableNetworkProtection, contoso.com.1How it works2Prerequisites3Step-by-step1Create the indicator2Write the value correctly3Use Warn deliberately4Precedence5Verify6Tips & gotchasTOOLBOXEndpoints › IndicatorsGeneral › Advanced featuresAMRunningModeEnableNetworkProtectioncontoso.com
At a glance: how this guide is organized · 3 steps · 5 key settings and tools

How it works#

Which switch and component each indicator type depends onAdvanced features: Allow or block file, Custom network indicators. Indicators: File and certificate, IP and URL. Enforced by: Defender Antivirus, SmartScreen, Network protection. Connections: 1. Allow or block file → File and certificate: Needed for file indicators. 2. Custom network indicators → IP and URL: Needed for IP and URL indicators. 3. File and certificate → Defender Antivirus: Enforces file and certificate indicators. 4. IP and URL → SmartScreen: Enforces IP and URL indicators in Microsoft Edge. 5. IP and URL → Network protection: Enforces them in other browsers and processes.ADVANCED FEATURESAllow or block fileTenant switchCustom networkindicatorsTenant switchINDICATORSFile and certificateHashes and leaf signingcertificatesIP and URLExternal IPs, domains andURL pathsENFORCED BYDefender AntivirusActive mode onlySmartScreenIn Microsoft EdgeNetwork protectionBlock mode, for otherbrowsers12345CONNECTIONS1Allow or block file → File and certificate: Needed for file indicators2Custom network indicators → IP and URL: Needed for IP and URL indicators3File and certificate → Defender Antivirus: Enforces file and certificate indicators4IP and URL → SmartScreen: Enforces IP and URL indicators in Microsoft Edge5IP and URL → Network protection: Enforces them in other browsers and processesWhich switch and component each indicator type depends onAdvanced features: Allow or block file, Custom network indicators. Indicators: File and certificate, IP and URL. Enforced by: Defender Antivirus, SmartScreen, Network protection. Connections: 1. Allow or block file → File and certificate: Needed for file indicators. 2. Custom network indicators → IP and URL: Needed for IP and URL indicators. 3. File and certificate → Defender Antivirus: Enforces file and certificate indicators. 4. IP and URL → SmartScreen: Enforces IP and URL indicators in Microsoft Edge. 5. IP and URL → Network protection: Enforces them in other browsers and processes.ADVANCED FEATURESAllow or block fileTenant switchCustom network indicatorsTenant switchINDICATORSFile and certificateHashes and leaf signing certificatesIP and URLExternal IPs, domains and URL pathsENFORCED BYDefender AntivirusActive mode onlySmartScreenIn Microsoft EdgeNetwork protectionBlock mode, for other browsersCONNECTIONS1Allow or block file → File and certificate: Needed forfile indicators2Custom network indicators → IP and URL: Neededfor IP and URL indicators3File and certificate → Defender Antivirus: Enforcesfile and certificate indicators4IP and URL → SmartScreen: Enforces IP and URLindicators in Microsoft Edge5IP and URL → Network protection: Enforces them inother browsers and processes
Figure 1 · Architecture Which switch and component each indicator type depends on. Each indicator type needs its own tenant switch and is enforced by a different component on the device. Check that chain when an indicator does nothing.

Indicators live in the Microsoft Defender portal under Settings › Endpoints › Indicators (Rules section). Each has a value, an action, an optional expiration and a device group scope. Defender Antivirus enforces file and certificate indicators; SmartScreen enforces IP and URL indicators in Microsoft Edge, and network protection does so in other browsers and processes.

TypeActionsTypical time to apply
File hash (SHA-256, SHA-1, MD5)Allow, Audit, Warn, Block execution, Block and remediateTypically 15–30 minutes; can exceed 2 hours
IP addressAllow, Audit, Warn, Block executionUsually under 2 hours, up to 48 hours
URL or domainAllow, Audit, Warn, Block executionUsually under 2 hours, up to 48 hours
Certificate (.CER or .PEM)Allow, Block and remediateUp to 3 hours

A tenant can hold 15,000 indicators, and Microsoft doesn't raise that limit, so treat indicators as a precise tool, not a bulk blocklist. For blocking whole applications, Microsoft recommends App Control for Business (WDAC) or AppLocker instead of hash indicators, because every version has new hashes.

Prerequisites#

  • Tenant switches: in Settings › Endpoints › General › Advanced features, turn on Allow or block file (for file indicators) and Custom network indicators (for IPs and URLs), then save.
  • Defender Antivirus in active mode with cloud-based protection and behavior monitoring on. Indicators aren't supported when the antivirus runs in passive mode.
  • Platform version: anti-malware client 4.18.1901.x or later for files and certificates, 4.18.1906.x or later for IPs and URLs.
  • Network protection in block mode for non-Microsoft browsers and other processes; Edge follows its SmartScreen setting.
  • File types: on Windows, file indicators cover portable executables (.exe and .dll) only. On macOS they cover Mach-O executables, shell scripts and AppleScript files (real-time protection on); on Linux, ELF and .sh files from version 101.85.27.
  • File hash computation improves blocking accuracy, at some performance cost when copying large files.

A quick check on a Windows device:

PowerShell
Get-MpComputerStatus | Select-Object AMRunningMode, AMProductVersion, BehaviorMonitorEnabled
Get-MpPreference | Select-Object EnableNetworkProtection, MAPSReporting, EnableFileHashComputation
Set-MpPreference -EnableFileHashComputation $true   # test devices only; use Intune or Group Policy for fleets

You want AMRunningMode = Normal, EnableNetworkProtection = 1 (block) and a non-zero MAPSReporting. In Intune, the Defender Antivirus profile settings Enable Network Protection, Allow Cloud Protection and Allow Behavior Monitoring control these; the web content filtering guide walks through that profile.

Step-by-step#

1. Create the indicator#

  1. Go to Settings › Endpoints › Indicators and pick the tab: File hashes, IP addresses, URLs/Domains or Certificates.
  2. Select Add item (Add indicator on the Certificates tab), enter the value and an expiration date, so temporary blocks don't live forever.
  3. Choose the action and description. For block actions, decide whether to generate an alert.
  4. Under Scope, select device groups (start with a pilot group), review the summary and save.

You can also add a file indicator from a file's page during an investigation, or import a CSV; use the current template from the bottom of the import panel, because the format changed when the actions were renamed.

2. Write the value correctly#

  • Domains: contoso.com also matches every subdomain.
  • URL paths: https://contoso.com/block matches only under that path, and HTTPS paths are matched only in Microsoft Edge. HTTP paths work in any browser.
  • IP addresses: single external IPv4 addresses, or all eight IPv6 segments. No ranges, CIDR blocks, wildcards or internal addresses.
  • Certificates: the leaf signing certificate. Parent and child certificates aren't covered, and Microsoft-signed certificates can't be blocked.

3. Use Warn deliberately#

Warn shows a prompt that users can bypass, with an optional redirect URL to your usage policy. On Windows, the toast only appears if the Files or activities are blocked notification is enabled (FilesBlockedNotificationDisabled = 0 under the Windows Defender Security Center virus and threat protection key).

Precedence: which rule wins#

  • IPs, URLs and domains: Allow beats Warn, which beats Block. If two URL indicators conflict, the longer path wins. Indicators created by Defender for Cloud Apps for unsanctioned apps follow the same order, and an allow indicator is the documented way to let one site through a web content filtering block. See shadow IT with Defender for Cloud Apps.
  • Files and certificates: an App Control or AppLocker block wins first, then Defender Antivirus exclusions allow the file, then block or warn indicators apply, then SmartScreen, then allow indicators, then ASR rules, controlled folder access and antivirus detections.
  • Between file indicators: SHA-256 beats SHA-1, which beats MD5, for the same file, whatever the scope. Otherwise an indicator scoped to the device's group beats one scoped to all devices.
  • Certificate versus file: a blocked certificate can't be overridden by a file allow indicator for one of its signed files.
  • Email: indicators act on devices. To block URLs and files in mail, use the Tenant Allow/Block List in Defender for Office 365.

Verify#

From a device in scope, open the blocked URL in Edge and in another browser, then run:

KQL
DeviceEvents
| where Timestamp > ago(1d)
| where ActionType in ("SmartScreenUrlWarning", "ExploitGuardNetworkProtectionBlocked")
| extend AF = parse_json(AdditionalFields)
| project Timestamp, DeviceName, ActionType, RemoteUrl, InitiatingProcessFileName,
          Category = coalesce(tostring(AF.ResponseCategory), tostring(AF.Experience))

Custom indicator hits show the category CustomBlockList. Don't be misled by a ConnectionSuccess row in DeviceNetworkEvents: network protection decides after the TCP handshake, so that row is logged even when the site was blocked. For files and certificates, Microsoft documents threat names you can search for (a capability it labels as preview):

KQL
search in (DeviceEvents, DeviceFileEvents, DeviceProcessEvents) Timestamp > ago(30d)
| where AdditionalFields contains "EUS:Win32/CustomEnterpriseBlock!cl"
     or AdditionalFields contains "EUS:Win32/CustomEnterpriseNoAlertBlock!cl"
     or AdditionalFields contains "EUS:Win32/CustomCertEnterpriseBlock!cl"

Microsoft lists a known limitation for alerts: Block and Warn indicators raise only generic informational alerts (your custom title and severity aren't used), Audit raises alerts with your severity, and Allow raises none. More queries are in advanced hunting for Intune admins.

Tips & gotchas: why an indicator doesn't work#

  • Chrome or Firefox ignores a domain block: network protection reads the domain from the TLS handshake, so QUIC and Encrypted Client Hello must be turned off in those browsers (Chrome policies QuicAllowed and EncryptedClientHelloEnabled). Sites loaded through HTTP/2 connection coalescing are only blocked in Edge.
  • Nothing happens anywhere: check the tenant switch, the device group, the expiration date and the time to apply first.
  • A blocked file still runs: it might not be a PE file, the antivirus might be passive (see passive mode and EDR in block mode), or a Defender Antivirus exclusion covers it, because exclusions win over block indicators. Microsoft-signed files can't be blocked.
  • Your settings keep changing: indicators synced from Defender for Cloud Apps are overwritten on each sync, including the alert setting.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

M365 Subject Matter Expert, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)