Free plan available. Set up in minutes with the collectors you already use. Start free
Logthread

Integration

Microsoft Entra ID

Entra ID sign-ins and directory changes from Microsoft Graph: who signed in, from where, with what outcome and risk, and every role, user, group and app change, read every 5 minutes with a read-only app registration; optionally who holds the privileged roles and who registered for MFA (beta).

  • Category: Security
  • How data is sent: Logthread reads the API with a token you create (nothing to install)
  • Status: Beta

How it works#

  1. 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.
  2. Logthread reads Microsoft Entra ID 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.
  3. Data arrives. Events from Microsoft Entra ID appear under the service entra-id within minutes. The connection page shows the last poll, what arrived and any error from the API, and turns Active with the first record.

Before you start#

The form first asks: Connect Entra ID, Microsoft 365, or both? The steps below are for Microsoft Entra ID alone.

1. Register an app in your tenant. In the Microsoft Entra admin center (entra.microsoft.com): Identity, Applications, App registrations, New registration. Name it Logthread audit reader, choose Accounts in this organizational directory only, leave Redirect URI empty, then Register. The Overview page shows the Application (client) ID and the Directory (tenant) ID asked for below.

2. Give it read-only access for Entra ID, with admin consent. API permissions, Add a permission: Microsoft Graph, Application permissions: AuditLog.Read.All and Directory.Read.All. Add all of them before going on. Then choose Grant admin consent for your organization (a Privileged Role Administrator or Global Administrator can); the Status column turns Granted for every permission. These permissions only read; Logthread changes nothing in your tenant. Optional: to see privileged directory roles and MFA registration in the access review and the identity report, also add Microsoft Graph, Application permissions: RoleManagement.Read.Directory, and turn that option on below.

3. Create a client secret. Certificates & secrets, Client secrets, New client secret, an expiry of up to 24 months. Copy its Value straight away (it is shown once) and paste it below with the date in its Expires column. Home reminds you 30 days before it expires.

If you choose Microsoft 365 only: API permissions, Add a permission: Office 365 Management APIs, Application permissions: ActivityFeed.Read. Add it before going on. Then choose Grant admin consent for your organization (a Privileged Role Administrator or Global Administrator can); the Status column turns Granted for every permission. These permissions only read; Logthread changes nothing in your tenant.

If you choose Both, with one app registration (recommended): API permissions, Add a permission: Microsoft Graph, Application permissions: AuditLog.Read.All and Directory.Read.All; then Office 365 Management APIs, Application permissions: ActivityFeed.Read. Add all of them before going on. Then choose Grant admin consent for your organization (a Privileged Role Administrator or Global Administrator can); the Status column turns Granted for every permission. These permissions only read; Logthread changes nothing in your tenant. Optional: to see privileged directory roles and MFA registration in the access review and the identity report, also add Microsoft Graph, Application permissions: RoleManagement.Read.Directory, and turn that option on below.

What you answer#

QuestionAnswerNotes
Directory (tenant) IDTextOn the app registration's Overview page, a GUID.
Application (client) IDTextOn the same Overview page, a GUID.
Client secret valueSecret (stored encrypted, never shown)The Value column of the new secret (not its Secret ID); stored encrypted.
Client secret expires onDate (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.
Privileged roles and MFA registration (beta)Yes or noWho holds each directory role, and who has registered for MFA, every 6 hours: needs the permission RoleManagement.Read.Directory as well. Default: No.

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 as the app and reads the Entra ID audit log once, now. A wrong id or secret, a missing permission or missing admin consent shows here, with what to fix.

Step 2. Check the first records. Sign-ins and directory changes of the last 24 hours arrive with the first poll, as service entra-id, with the user, address, country, outcome and risk on each. Sign-in logs need Microsoft Entra ID P1 or P2. After that Logthread reads every 5 minutes from where it left off, re-reading the last minutes for records Microsoft writes late, and sends each record once.

Step 3. Turn on the detections. Impossible travel, MFA fatigue, legacy authentication, risky sign-ins, admin roles granted, forwarding to outside addresses and mass downloads or deletions read these records, and so do brute force and password spraying. Each shows its data status before you turn it on; the alert suggestions below show their matches over the last 24 hours.

Check that it works#

The connection page under Integrations counts what has arrived and turns Active with the first record. In Explore, search service:entra-id.

Then add#

Each is one click on the connection page and opens with your data, so you can check it before saving.

  • Alert: Entra ID sign-in failures: service:entra-id event.category:authentication event.outcome:failure, at least 20 in 10 minutes
  • Alert: Entra ID high-risk sign-ins: service:entra-id entra.risk_level:high, at least 1 in 15 minutes
  • Alert: Entra ID directory roles granted: service:entra-id entra.category:RoleManagement event.outcome:success, 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.

DetectionSeverityFires on
Brute force from one addresscriticalMany failed sign-ins from one address in a short time: password guessing against SSH, VPN, a web login or the cloud console.
Password sprayingcriticalFailed sign-ins for many different users from one address: one or two passwords tried against many accounts, which stays under per-user lockouts.
Traffic with a known botnet command servercriticalA record involves an address on the botnet command-and-control blocklist (abuse.ch Feodo Tracker): a host may be infected and calling home, or the server is scanning you. Needs threat intel turned on under Enrichment.
Sign-ins from two countries within an hourcriticalSuccessful sign-ins for one user from two or more countries within an hour: a stolen password or session used from abroad. It compares countries, not distance or speed, so neighbouring countries and VPN exits abroad fire too (exclude a VPN with -source.address: in the rule); travel inside one country never does.
MFA fatiguecriticalMany MFA prompts denied or not answered for one user in a short time: someone with the password pushes requests until the user accepts one.
Sign-in over legacy authenticationwarningA successful sign-in with a legacy protocol (IMAP, POP, SMTP, Exchange ActiveSync, older Office clients) that cannot do MFA: often the way a sprayed password is used.
High-risk sign-incriticalMicrosoft Entra ID Protection rates a sign-in high risk: a leaked password, an anonymous or malicious address, or unfamiliar properties. Needs Entra ID P2.
Directory role grantedwarningA user is added to an Entra ID directory role, permanently, as eligible or through Privileged Identity Management: more power for an account, or a new way to keep access.
One account signing in from many networkswarningSuccessful sign-ins for one account from three or more networks (ASNs) within an hour. Moving between home Wi-Fi and mobile data is two; three or more in an hour is a shared or stolen password, or an attacker rotating proxies after a good guess.
One device signing in to many accountscriticalSign-in attempts for five or more different accounts from one device or TLS fingerprint within an hour: credential stuffing (leaked passwords tried account by account) or fake-account farming, even when every attempt comes from a different address. Needs device.id: a per-device id your app keeps (a device cookie or app install id). Not a TLS or browser fingerprint such as JA4: one of those is shared by millions of people on the same browser.
One device hopping between countrieswarningOne device or TLS fingerprint seen from three or more countries within an hour: the same client rotating through VPN or proxy exits to hide where it is, or a session token replayed from elsewhere. Needs a per-device id in device.id (see "One device signing in to many accounts").
Many accounts signed in from one addresswarningSuccessful sign-ins for five or more different accounts from one address within an hour: automation holding many accounts, or a credential-stuffing run that succeeded. An office or VPN gateway that everyone shares fires too: exclude it with -source.address:<address> in the rule.
Impossible travel between sign-inscriticalTwo successful sign-ins for one account in a row, in different countries, further apart than anyone can travel in the time between them (over 900 km/h by the GeoIP city location). Moves inside one country never fire: mobile networks place their addresses in a hub city. From your own app as well as Entra ID, Okta and Microsoft 365. A VPN exit abroad fires too: exclude its network or address in the rule.
Sign-in from a server, VPN or Tor networkwarningA successful sign-in from a cloud or hosting provider, a commercial VPN exit or Tor (Cloudflare and Microsoft networks are left out: iCloud Private Relay and Microsoft's own traffic are ordinary people). People sign in from home, office and mobile networks; scripts, rented servers and people hiding where they are come from these. If your own VPN or jump host runs in the cloud, exclude its address with -source.address:<address> in the rule.
Brute force on one account that succeededcriticalTen or more failed sign-ins for one account in a row, then a successful one, within 30 minutes, counted across every address and device: an attacker rotating addresses and devices still adds up on the account they target. Only the failures since the account's previous successful sign-in count, so a person who mistypes, or an old phone with a stale password, stays quiet. An SSH key sign-in never counts as the success.

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.

More: Privileged roles and MFA registration.

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.