Microsoft Defender for Endpoint integration
The Block in Defender for Endpoint rule response submits each lookalike domain a matched rule cites to Microsoft Defender for Endpoint as a Block indicator that does not expire. The rule decides which alerts trigger the response. Connecting a tenant alone blocks nothing.
To see which domains your devices reach and which ones Defender blocked, connect Microsoft Defender Network Intelligence.
Prerequisites
Section titled “Prerequisites”- Microsoft Defender for Endpoint Plan 1 or Plan 2, or Microsoft Defender for Business, with the devices to protect onboarded.
- A Global Administrator, Privileged Role Administrator, or Cloud Application Administrator in Microsoft Entra ID to grant admin consent.
- Custom network indicators turned on in the Microsoft Defender portal under Settings > Endpoints > Advanced features. Without it, Defender stores the indicators but does not enforce them.
- Network protection in block mode on devices. Microsoft Edge on Windows enforces domain indicators through Microsoft Defender SmartScreen; other browsers and processes need network protection.
- The network enforcement add-on on the Have I Been Squatted organization, and an organization admin to configure it.
What is granted
Section titled “What is granted”Have I Been Squatted uses one multi-tenant Microsoft Entra application for this integration, separate from the Microsoft 365 Email Intelligence application. Consent grants it:
| Permission | API | Type | Purpose |
|---|---|---|---|
Ti.ReadWrite |
WindowsDefenderATP | Application | Submit, list and delete indicators |
User.Read |
Microsoft Graph | Delegated | Sign-in only, to identify the tenant |
Microsoft describes Ti.ReadWrite as “Read and write IOCs belonging to the
app”, where IOCs are indicators of compromise. It limits the application to
indicators it created. It cannot see or change indicators
created by people or by other applications, and it has no access to devices,
alerts, incidents, or tenant settings.
The customer supplies no credential. Have I Been Squatted authenticates with its own application secret and requests a short-lived token for the tenant on each delivery.
Connect
Section titled “Connect”- In the app, open Connectors > Microsoft Defender for Endpoint.
- Select Connect tenant and sign in as an administrator who can grant admin consent.
- Review the requested permissions and accept them on behalf of the organization.
- Microsoft returns to the settings page, which runs a connection check.
The tenant is taken from the verified identity token of the administrator who signed in, never from the address bar. A Microsoft tenant can be connected to only one Have I Been Squatted organization. Connecting a tenant held by another organization fails with “This Microsoft tenant is already connected to another organization”.
Connection check
Section titled “Connection check”The check requests the same token delivery uses, confirms that it carries the
Ti.ReadWrite role for the tenant, and reads one indicator through the Defender
API. Blocking stays off until a check passes. Select Test connection to run
it again.
Admin consent can take a few minutes to reach Defender, so the check that runs immediately after connecting may report missing consent. Test the connection again shortly afterward.
| Result | Meaning |
|---|---|
| Consent missing | Microsoft has not granted admin consent for the tenant yet, or it was revoked. Test again after a few minutes, then reconnect if it persists. |
| Permission missing | The token lacks Ti.ReadWrite, or Defender rejected it. Reconnect with an administrator who can grant admin consent. |
| Defender unavailable | The tenant has no Defender for Endpoint API, usually because it is not licensed or not onboarded. |
| Unreachable | Microsoft timed out, throttled the request, or returned a server error. Test again later. |
| Configuration | The Have I Been Squatted application credential was rejected. This is a platform problem; contact support. |
A failed check pauses blocking until a later check passes. Consent and permission failures mark the connection as needing reauthorization.
Device groups
Section titled “Device groups”Indicators apply to every device in the tenant by default. To limit them, enter up to 10 Defender device group names on the settings page, exactly as they appear under Settings > Endpoints > Device groups. Each name can have up to 128 characters and cannot contain commas or control characters. Leave the list empty to block on all devices.
Ti.ReadWrite cannot list device groups, so saved names are not checked against
Defender. Changes apply to indicators submitted afterward, including
resubmissions.
Add the response to a rule
Section titled “Add the response to a rule”- Create or edit a rule and open the Response tab.
- Select Add action > Block in Defender for Endpoint.
- Select the Defender for Endpoint destination.
- Save the rule.
The destination is listed only after a connection check has passed. The response needs at least one domain condition in the rule, because only cited lookalike domain records produce indicators; the builder does not save it on a rule with only email or canary conditions.
What is sent
Section titled “What is sent”For each active rule alert that cites lookalike domain records, Have I Been Squatted submits one indicator per distinct cited domain, up to 10 domains per alert:
| Field | Value |
|---|---|
indicatorType |
DomainName |
indicatorValue |
The cited lookalike domain |
action |
Block |
generateAlert |
true |
severity |
From the rule level: Informational, Low, Medium, or High. Critical rules use High, the highest Defender severity. |
expirationTime |
Not sent, so the indicator never expires |
rbacGroupNames |
The configured device groups; omitted for all devices |
title, description |
Name Have I Been Squatted and the rule |
- Only domains from cited domain (lookalike permutation) records are sent.
- The monitored domain and its subdomains are never blocked.
- Email and canary evidence never produce indicators, and no email content, addresses, or canary data is sent.
Defender returns each submitted indicator, and Have I Been Squatted checks that it blocks the submitted domain.
If Defender refuses one domain, the others are still submitted. If Microsoft times out, returns a server error, or rejects the token, the remaining domains are not submitted and the delivery is not retried.
A queue of the most recently cited domains
Section titled “A queue of the most recently cited domains”Indicators never expire, because an expiry can unblock a malicious domain just before it is used again. Instead, Have I Been Squatted keeps at most 1,000 of its own indicators per tenant, as a queue ordered by when a rule last cited each domain. Each delivery first lists the application’s own domain indicators, then:
- Submits each newly cited domain, which joins the head of the queue.
- When the queue is full, deletes the indicator a rule cited least recently, one per new domain, after the new ones are submitted. Nothing is deleted for any other reason, and a delivery that stops partway has unblocked nothing.
- Submits a cited domain again to move it back to the head, so a lookalike that
rules keep citing is not the one deleted. Defender’s submit API updates the
existing indicator with the same value and type, which refreshes its
lastUpdateTimeand applies the current severity and device groups. To keep these updates rare, a cited indicator is resubmitted only when it was last submitted more than a day ago, or when it is among the 100 indicators next in line to be deleted.
Only indicators whose title starts with “Have I Been Squatted:” and whose action is still Block count as part of the queue. An indicator you changed in the Defender portal, for example to Allowed, is left as it is and never deleted, and a cited domain with an indicator of someone else’s is not submitted.
Indicators from before October 2026
Section titled “Indicators from before October 2026”Indicators submitted before October 2026 carry a seven-day expiry. When a rule cites one of those domains again, the resubmission removes the expiry and the indicator stays from then on. An older indicator that no rule cites again expires on its original date, as before.
What is recorded
Section titled “What is recorded”Have I Been Squatted stores the connected tenant ID, the consent time, the granted permission, the device groups, and the time and outcome of the last connection check. For each alert and response, it records the delivery status, the Defender indicator ID and domain of each indicator it submitted or resubmitted, the domains Defender refused or that were not submitted, the domains whose indicators it deleted to make room, and, when a delivery fails, a short error code. Access tokens and Microsoft response bodies are not stored.
Disable and disconnect
Section titled “Disable and disconnect”Disable stops new indicators and keeps the connection, device groups, and rule responses. A passing connection test turns blocking back on.
Disconnect removes the connection, its device groups, and the Block in Defender for Endpoint response from every rule, along with those responses’ delivery records. The tenant can then be connected to another organization.
Neither action deletes indicators already in Defender. They keep blocking until an administrator removes them in the Microsoft Defender portal under Settings > Endpoints > Indicators. Indicators from before October 2026 that still carry an expiry lapse on that date.
Remove access in Microsoft Entra
Section titled “Remove access in Microsoft Entra”Disconnecting does not revoke the consent. To remove the application’s access, delete the Have I Been Squatted Defender for Endpoint application under Enterprise applications in the Microsoft Entra admin center. Deliveries and connection checks then fail with missing consent.
Limits
Section titled “Limits”- Defender allows 15,000 active indicators per tenant across all sources. Have I Been Squatted keeps at most 1,000 of its own, leaving the rest for yours.
- The Defender indicator API allows 100 calls per minute and 1,500 per hour. Each delivery lists the application’s indicators (one call per 500), then makes one submission per new or moved domain and one deletion per indicator removed to make room.
- Indicators block domains only. They do not block URLs or IP addresses, and enforcement depends on the settings listed under Prerequisites.
- The integration uses the Microsoft global cloud. Sovereign clouds such as GCC High and DoD are not supported.