Blog

An EDR protects only once configured, not from the day it is installed

A woman engineer working on a laptop at a desk

On the accountant's laptop, the endpoint detection and response (EDR) agent has just been installed, and the console already lists it among the company's devices. The attack surface reduction rules, however, are running in audit mode. They record every action they would have stopped and let it go ahead.

The old antivirus has also stayed on the same laptop, with its licence paid until the end of the year. Nobody has yet checked whether endpoint protection can be switched off from the device itself, and the laptop sits in the default group, alongside all the others.

The installation is finished; the configuration is only just beginning.

The UK NCSC's guidance for Windows devices puts the two side by side and asks for the antivirus or EDR solution to be installed and configured. We describe the obstacles below using the public documentation for Microsoft Defender for Endpoint, taken as an example; for other products, the names and steps should be checked with the vendor concerned.

The old antivirus and passive mode

Two active antivirus products on the same laptop are the first obstacle. Microsoft states that both will try to provide protection at the same time, with effects on performance, in a configuration the vendor does not support.

If another antivirus remains the primary one, Microsoft Defender Antivirus switches to passive mode and no longer removes threats on its own. Files are still scanned by the EDR, and the Microsoft side can act on them only through EDR in block mode. Attack surface reduction rules, network protection and indicators (file hashes, IP addresses, URLs, certificates), however, work only with the Microsoft antivirus in active mode.

On servers, the default behaviour is different: installing an antivirus from another vendor does not automatically switch Microsoft Defender Antivirus to passive mode. The ForceDefenderPassiveMode setting is applied manually, before the server is onboarded to Defender for Endpoint.

If you keep passive mode, real-time protection, cloud-delivered protection and limited periodic scanning stay switched on, as the documentation explicitly requires.

If the EDR observes but is not allowed to block

EDR in block mode allows the Microsoft antivirus to act on behavioural detections made after a device has been compromised.

It is a setting separate from installing the agent.

The feature is switched on from the console, under Settings > Endpoints > General > Advanced features, through the "Enable EDR in block mode" option, and it requires a Defender for Endpoint Plan 2 licence. As long as it is not switched on, the console shows a security recommendation flagging it.

One limitation matters during configuration: block mode respects the exclusions set for the antivirus, but not the indicators in Defender for Endpoint. A file excluded for convenience is left untouched by this layer as well.

ASR rules in audit, warn and block

The product documented here uses attack surface reduction (ASR) rules, which target risky behaviour by programs on Windows that attackers frequently exploit through malware. The examples in the documentation are scripts that download or run files, obfuscated scripts and code injected into other processes. Legitimate applications sometimes do the same things, which is why the rules are not switched to block on every device at once.

A rule left on "Not configured" is, functionally, switched off.

Defender for Endpoint supports ASR rules but does not deploy them to devices by itself: the settings are pushed through Intune, Configuration Manager, MDM, Group Policy or PowerShell.

Audit mode runs the rule as it would in block mode, but without taking any action. The user notices nothing, and every trigger is recorded in the event log, in the logs from which the rule's effect on day-to-day work is then assessed.

Microsoft's guide to testing ASR rules in audit mode recommends starting the test on a small pilot group of devices. The aim is to see whether any rule blocks the company's business applications before the effect reaches the whole organisation.

Where the events can be read depends on the licence. The ASR report in the console requires Defender for Endpoint Plan 2 or Defender for Business; otherwise, the audit events sit in Event Viewer, on each device, under ID 1122.

Not all rules wait for the test. For the standard protection rules, including the one against credential theft from the Windows LSA subsystem, Microsoft recommends blocking straight away; the others go through audit first.

Between audit and block sits warn mode. The user sees a message and can bypass the rule for 24 hours, although from platform version 4.18.26060 the option requires administrator approval.

The rules have one more technical condition. The antivirus components cannot fall more than two versions behind the current one, and an up-to-date antivirus also reduces false positives from ASR rules.

If a company application runs into a rule

When a rule stops a legitimate application, the obvious option is to put it back into audit. Microsoft recommends something else: an exclusion for the affected file or folder is preferable to switching the rule off or returning it to audit.

The exclusion has its own cost. Excluded files are allowed to run, and no event or report is recorded about them any more, so the console no longer shows them at all.

For the antivirus, any exclusion reduces device protection, and process exclusions also stop traffic inspection and ASR rules for the programs concerned. Microsoft publishes a list of exclusions to avoid, which includes:

  • common or temporary paths, such as C:\\\\Temp, C:\\\\Users, C:\\\\Windows\\\\Temp, the Temp folder in the user profile and the locations of installed programs;
  • processes such as powershell.exe, cmd.exe, outlook.exe, winword.exe and excel.exe;
  • extensions such as .exe, .dll, .ps1 and .zip.

On servers, a single exclusion list is not used for several different workloads.

Who can switch protection off from the laptop

Tamper protection prevents important security settings from being disabled or changed. While it is on, real-time protection and cloud-delivered protection cannot be switched off, and security intelligence updates continue. Automated actions on detected threats are carried out, and exclusions can no longer be added or modified.

On a Mac, the state after installation illustrates the title most clearly. Tamper protection starts in audit mode, meaning it records attempts to uninstall the agent or modify its files, but does not stop them.

Installing the agent and configuring it are, therefore, two distinct stages. With us, they sit on the same line of the Basic package, which includes EDR installation and configuration, and the service can also be requested on its own.

For the IT person, one side effect matters during configuration: a change pushed through Group Policy may appear to have succeeded even though it was blocked.

Once enabled, the protection also works when the Microsoft antivirus is in passive mode, and the security recommendations in the console point to the devices where it is missing.

Device groups and automated remediation

A device that matches no grouping rule is automatically added to "Ungrouped devices", the default category. Grouping has two purposes: it restricts access to the alerts and data of certain devices to teams defined in Microsoft Entra, and it allows different automated remediation settings.

A group with no Entra teams assigned is accessible to every console user, so the management's laptops, left together with the rest, show their alerts to anyone with access to the portal.

The default level of automated remediation depends on the age of the company's Microsoft environment (tenant). Defender for Endpoint environments created on or after 16 August 2020, with no device groups defined, start with full automation. Those created before that date start with semi-automation. Microsoft recommends the full level, the default in Defender for Business, and regards the option with no automated response as a weakening of device protection.

With separate groups, servers can have a different level from laptops.

If a laptop stops reporting

An installed agent does not guarantee that the laptop keeps sending data. A device with no signals for more than seven days can be considered inactive. The "No sensor data" status describes a device that communicates with the service but may be able to send only part of the sensor data.

A reinstalled or renamed laptop appears in the console as a new device. The new record is checked in the same way as at the first installation: the group it was added to, the remediation level and tamper protection.

DNSC Order No. 1/2026 (the DNSC's implementing rules under NIS2), addressed to essential and important entities under NIS2, deals with installing and managing these programs in separate controls. DE.CM-03.1 requires the deployment of endpoint and network protection tools, and DE.CM-03.2, at the Important and Essential levels, states that these "must be managed".

The guidance for control DE.CM-03.2 specifies that it builds on DE.CM-03.1, "shifting the focus from deployment to the ongoing management of monitoring tools". The same guidance recommends periodic checks of the tools, tuning detection rules to reduce false positives, and clear roles for responding to alerts. A company outside NIS2 can use the order as a list of good practice, without being obliged to apply it.

The same laptop, after configuration

The accountant's laptop runs the same EDR agent as on day one. The old protection program has been uninstalled, and Microsoft Defender Antivirus now works in active mode. The audit events were reviewed on the pilot group, exclusions were added on the files of two company applications, and the rules were switched to block.

The laptop now sits in the finance team's group, visible only to those who manage it, with tamper protection switched on. An obfuscated script opened from an attachment no longer just leaves a line in the logs; it is stopped before it runs.

Photo: ThisIsEngineering / Pexels

Start with a scoping call.

Bring the thing that worries you most. We will tell you what it takes to fix it, and whether we are the right people for it.

contact@axyome.ro
Certificate no.: 1272 ISO 27001 certified company