Microsoft Defender for Endpoint
Microsoft Defender for Endpoint is an enterprise endpoint security platform that provides comprehensive threat protection, detection, investigation, and response capabilities for devices and endpoints across an organization. Formerly known as Microsoft Defender Advanced Threat Protection (ATP) or Windows Defender ATP, this cloud-powered security solution protects Windows, macOS, Linux, Android, and iOS devices against cyber threats, malware, ransomware, and advanced persistent threats.
| Category | EDR |
| Direction | Query source |
| Sign-in | Client Secret (Azure AD App) |
| Query languages | STIX, KQL |
| Query templates | 1 |
| Website | microsoft.com |
Before you start
Huntbase signs in to Microsoft Defender for Endpoint with Client Secret (Azure AD App). Create the credential in Microsoft Defender for Endpoint first, then keep it to hand for the Connect step.
- In the Azure portal, go to App registrations, select New registration, name the app, and select Register.
- In the app, go to API permissions › Add permission › APIs my organization uses, then search for and select WindowsDefenderATP.
- Select Application permissions, choose Run advanced queries (
AdvancedQuery.Read.All), and select Add permission. - Go to Certificates & secrets › New client secret, add a description and expiry, and select Add. Copy the secret Value: you cannot retrieve it after you leave the page.
- From the app's Overview page, copy the Application (client) ID and Directory (tenant) ID.
Permissions:
AdvancedQuery.Read.All(Run advanced queries), application permission on WindowsDefenderATP
- Microsoft began retiring the Defender for Endpoint advanced hunting API in January 2026 and recommends the Microsoft Graph security API instead. Once the retirement completes, this API no longer works.
- Queries can only cover the last 30 days and return at most 100,000 rows. Each tenant can make up to 45 calls per minute and 1,500 per hour.
For the vendor's own instructions, see Microsoft guide to creating a Defender for Endpoint API app.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Microsoft Defender for Endpoint
- Go to Connections and click New connection, or click New connection on the Microsoft Defender for Endpoint product page.
- On Product, pick Microsoft Defender for Endpoint and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Microsoft Defender for Endpoint lives:
| Field | Required | Notes |
|---|---|---|
| Server Address | Yes | api.securitycenter.microsoft.com. Microsoft notes that tokens issued for a different resource fail with 403 Forbidden. |
| Port | Yes | 443. Defaults to 443. |
| Self-Signed Cert (PEM) | No | Provide a self-signed or CA-signed certificate to securely communicate with the data source. |
Advanced settings
These settings are under Advanced. You can usually leave them alone.
| Field | Required | Notes |
|---|---|---|
| Include Alerts | No | Include matching Microsoft Defender alerts in results. |
| Include Host OS | No | Include host operating-system information in results. |
| Include Network Info | No | Include network interface information in results. |
| Retain Original Event | No | Retain the original (unmapped) source event alongside the STIX result. |
Credentials
The only Method is Client Secret (Azure AD App). Enter a Credential label (for example Production), then fill in:
| Field | Required | Notes |
|---|---|---|
| Tenant ID | Yes | Tenant ID of Azure Active directory Application with access to the data source. Secret — not shown again after you save it. |
| Client ID | Yes | Client ID of Azure Active directory Application with access to the data source. Secret — not shown again after you save it. |
| Client Secret | Yes | The secret Value, not the secret ID. Secret — not shown again after you save it. |
Query it
Once connected, Microsoft Defender for Endpoint can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| STIX | STIX patterns for indicator sweeps, translated into the product's native search. |
| KQL | Native Kusto queries against the workspace, sent as written. |
Example: KQL
Process events for a user — Raw KQL passthrough (advanced hunting) for a user's recent process events.
DeviceProcessEvents | where AccountName == "{{username}}" | take 100
Microsoft Defender for Endpoint ships with 1 query template. Find them in Library › Queries — see Query templates.
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog