Integration
Microsoft Defender for Endpoint
Defender for Endpoint alerts (malware, suspicious activity, MITRE ATT&CK technique, device, user, process and file) and the device inventory, read every 5 minutes with a read-only app registration; they become SIEM detections and Situations.
- Category: Security
- How data is sent: Logthread reads the API with a token you create (nothing to install)
How it works#
- Answer a few questions. The ids and client secret of the read-only app registration made in "Before you start". The secret is stored encrypted and never shown again; Logthread reads with it and changes nothing in your tenant.
- Logthread reads Microsoft Defender for Endpoint every 5 minutes. There is nothing to install or paste: the poll starts as soon as the connector is created and carries on from where it left off, with every event sent once.
- Data arrives. Alerts appear under the service defender-endpoint within minutes, the device inventory every 6 hours. Security, Integrations shows each EDR's state.
Before you start#
1. Register an app in your tenant. In the Microsoft Entra admin center: Identity, Applications, App registrations, New registration. Name it Logthread EDR reader, Accounts in this organizational directory only, no redirect URI. The Overview page shows the Application (client) ID and Directory (tenant) ID asked for below. An app you already registered for Entra ID or Microsoft 365 works too.
2. Give it read-only access to alerts and devices. API permissions, Add a permission, APIs my organization uses, WindowsDefenderATP, Application permissions: Alert.Read.All and Machine.Read.All. Then choose Grant admin consent. These only read; Logthread changes nothing in Defender.
3. Create a client secret. Certificates & secrets, New client secret. Copy its Value (shown once) and paste it below with its expiry date; Home reminds you 30 days before.
What you answer#
| Question | Answer | Notes |
|---|---|---|
| Directory (tenant) ID | Text | On the app registration's Overview page, a GUID. |
| Application (client) ID | Text | On the same Overview page, a GUID. |
| Client secret value | Secret (stored encrypted, never shown) | The Value column of the new secret (not its Secret ID); stored encrypted. |
| Client secret expires on | Date (YYYY-MM-DD) | Home reminds you 30 days before, with a guided way to replace it. Where to find it: In the Microsoft Entra admin center, open the app registration, then Certificates & secrets, Client secrets. The Expires column shows the date for each secret; use the one of the secret you are pasting. |
Setup#
These are the steps for the default answers. In the app, they follow your answers, and the connector's ingest key replaces YOUR_INGEST_KEY.
Step 1. Test the connection. Choose Test connection on this page. Logthread signs in to Defender for Endpoint and reads the alerts once, now. A wrong or expired credential, or a missing permission, shows here with what to fix; Reconnect replaces it.
Step 2. Check the first records. Alerts of the last 24 hours arrive with the first poll as service defender-endpoint, each with the host, user, process, file hash, MITRE ATT&CK technique, severity and whether the EDR stopped it. The device inventory follows every 6 hours (event.kind asset). After that Logthread reads every 5 minutes from where it left off and sends each alert once.
Step 3. Turn on the EDR detections. High or critical endpoint alerts, and the same threat on several machines, become SIEM incidents per host; their Situations join the sign-ins, network blocks and errors of the same host and user.
Check that it works#
The connection page under Integrations counts what has arrived and turns Active with the first record. In Explore, search service:defender-endpoint.
Then add#
Each is one click on the connection page and opens with your data, so you can check it before saving.
- Alert: High or critical endpoint alerts:
service:defender-endpoint event.dataset:edr event.kind:alert edr.severity:(high OR critical), at least 1 in 15 minutes - Alert: Endpoint alerts the EDR did not stop:
service:defender-endpoint event.dataset:edr event.kind:alert edr.prevented:false, at least 1 in 15 minutes
Security detections#
Turn them on under Security → SIEM (Turn on recommended offers the ones whose data arrives). Each opens one incident per user, address or resource it groups by, and Use opens its query in the rule editor.
| Detection | Severity | Fires on |
|---|---|---|
| Endpoint protection alert, high or critical | critical | Your EDR raised a high or critical alert on a machine: malware, ransomware behaviour, credential theft or another attack technique it recognised. The incident links the alert in the EDR's own console; the Situation shows what else happened on the host and to its user. Prevention stays with the EDR: check whether it stopped it (edr.prevented). |
| Same threat on several machines | critical | The same file (by SHA-256) raised EDR alerts on three or more machines within an hour: malware spreading through the network, or one delivery reaching many users. |
Price#
The integration itself has no charge. What it sends is billed as data ingested, ₹85 ($0.90) per GB on every plan, like any other data; parsing, detections and the dashboard add nothing. See Prices.
Set it up under Integrations in the app, or from an AI agent with MCP (add_integration). All integrations: Integrations guide. Next: find what it sends in Explore and live tail.