Microsoft Defender
Connect your Microsoft Defender XDR / Defender for Endpoint tenant to Stoïk so the Stoïk CERT team can monitor and respond on it, as part of the MDR (Managed Detection and Response) offering. Unlike CrowdStrike or SentinelOne, Stoïk does not sell Microsoft Defender licences: the licences remain yours, and you stay in control of your Microsoft tenant.
Your tenant is connected to Stoïk in two ways, and both are required:
The Stoïk application (Part A): sends your alerts and the list of protected devices to Stoïk Protect.
The Stoïk MDR guest account (Part B): lets the Stoïk CERT team investigate and respond in your Defender portal (device timeline, isolation, live response).
The setup is complete only when Stoïk can see all your protected devices in the Defender portal: see Check the setup and notify Stoïk.
Prerequisites
The licence scope is agreed with your Stoïk sales representative, as part of the Stoïk MDR purchase. Stoïk does not purchase Microsoft licences on your behalf.
Workstations have Defender for Endpoint Plan 2 (included in Microsoft 365 E5 / A5, and in Defender for Business for SMBs).
A Global Administrator account of the tenant that holds your Defender devices. For B.3, a Security Administrator account also works.
Deploy Defender on your devices
Assigning a licence is not the same as deploying the Defender for Endpoint agent. Every device must be onboarded.
Workstations: onboard them through Intune, Group Policy, or the local script. See Microsoft's Onboarding devices documentation for the available methods.
Servers, one of two options:
A Defender for Endpoint server licence: subscribe it first as part of your licence scope, see Prerequisites, then onboard the servers with Microsoft's onboarding package.
Microsoft Defender for Servers (Defender for Cloud): in
Defender for Cloud>Environment settings> your subscription >Defender plans>Servers>Settings, set Endpoint protection to On. Connect on-premises servers through Azure Arc first. The Azure subscription must belong to the same Microsoft tenant that you connect to Stoïk, otherwise the servers appear in another tenant's console.
Windows Server 2012 R2 / 2016: use the modern unified agent. Devices still onboarded through the Microsoft Monitoring Agent (MMA) must be migrated: MMA stops working on 26 February 2027. See Microsoft's migration guide.
Part A: Authorise the Stoïk application
Authorise the Stoïk application in a single click from Stoïk Protect.
Log in to Stoïk Protect with your Stoïk account.
Go to
MDR>Settings.Click Connect your Microsoft account.

You are redirected to Microsoft. Review the permissions requested by the Stoïk MDR application and click Accept.
You are sent back to Stoïk Protect. The Settings page shows the connection as Connected, along with the detected Microsoft Tenant ID. Write it down: it must be the same tenant ID as the one you copy in step B.1. If it differs, you connected another tenant: contact protect@stoik.io before going further.
Part B: Give the Stoïk CERT team access to your Defender portal
Do all four steps, B.1 to B.4, whatever your Defender configuration. Microsoft tenants use different permission models: default, legacy Defender for Endpoint roles, or Defender XDR Unified RBAC (the default for tenants new to Defender for Endpoint since 2025). These steps work in all of them, and a step that is not needed in your tenant does no harm.
B.1: Invite the Stoïk MDR user
Go to portal.azure.com (or entra.microsoft.com) with a Global Administrator account.
Go to Users > All users, then click Invite external user.

Fill in:
Email address:
mdr_api@stoikcert.onmicrosoft.comDisplay name:
Stoik_Mdr_Api
Copy your tenant ID (displayed at step 3 of the invite form). It must match the tenant ID shown in Stoïk Protect in Part A.

Go to the Assignments tab, click Add role, search for and select Security Operator, then click Select.

Click Review + invite, then Invite to finalize.

B.2: Create the Stoik-MDR group
Defender device groups and legacy Defender roles only accept groups, never individual users. Use this group, not the user, in all the following steps.
In entra.microsoft.com, go to
Groups>All groups> New group.
Fill in:
Group type:
SecurityGroup name:
Stoik-MDRMembership type:
Assigned

Under Members, click No members selected, add Stoik_Mdr_Api, then click Create.
B.3: Create the Stoïk role in Defender
This step is mandatory, even if you do not know which Defender permission model your tenant uses.
Go to security.microsoft.com with a Global Administrator or Security Administrator account.
Expand System, click Permissions, then under Microsoft Defender XDR (Unified RBAC), select Roles.

Click Create custom role and fill Role Name with stoik_mdr_role.


Grant permissions: for each of the three permission groups (Security operations, Security posture, Authorization and settings), select All read and manage permissions, click Apply, then Next.

Add the assignment:
Click Add assignment.
Name:
stoik_mdr_assignment.Assign to: the
Stoik-MDRgroup.Select All data sources.
Tick Include future data sources automatically.
Click Add, then Next.

Click Submit to finalize.

Still in System > Permissions > Microsoft Defender XDR (Unified RBAC), open Workload settings (or Activate workloads) and check that Microsoft Defender for Endpoint is activated. If it is not, the role above is ignored for devices.
B.4: Give access to all your device groups
Skip this step only if you have never created a device group. A device group with access restricted to other groups hides all of its devices from Stoïk, including servers.
Go to
Settings>Endpoints>Permissions>Device groups.For each device group, including
Ungrouped devices (default): open it, go to the User access tab, addStoik-MDR, then click Save.
Changes can take a few hours to apply.
Check the setup and notify Stoïk
In security.microsoft.com, go to
Assets>Devicesand note your number of devices, and of servers (filterOS platformon Windows Server and Linux).In Entra, go to
Enterprise applications> the Stoïk application >Permissions, and check that all permissions show Granted for <your organisation>.Send an email to protect@stoik.io with your Microsoft Tenant ID and the device and server counts from point 1.
The Stoïk CERT team then logs in with the guest account and validates the onboarding only when it sees Assets > Devices with the same counts. If the menu is missing or the list is empty, see Troubleshooting.
Troubleshooting
For any unresolved issue or to revoke Stoïk's access to your Microsoft Defender tenant, contact protect@stoik.io.
Last updated

