Редактиране

Споделяне чрез


Microsoft Defender Core service overview

Microsoft Defender Core service

To enhance your endpoint security experience, Microsoft is releasing the Microsoft Defender Core service to help with the stability and performance of Microsoft Defender Antivirus.

Prerequisites

  1. The Microsoft Defender Core service is releasing with Microsoft Defender Antivirus platform version 4.18.23110.2009.

  2. Rollout is planned to begin as follows:

    • November 2023 to prerelease customers.
    • Mid April 2024 to Enterprise customers running Windows clients.
    • Beginning of July 2024 to U.S. Government customers running Windows clients.
  3. If you're using the Microsoft Defender for Endpoint streamlined device connectivity experience, you don't need to add any other URLs.

  4. If you're using the Microsoft Defender for Endpoint standard device connectivity experience:

    Enterprise customers should allow the following URLs:

    • *.endpoint.security.microsoft.com
    • ecs.office.com/config/v1/MicrosoftWindowsDefenderClient
    • *.events.data.microsoft.com

    If you don't want to use the wildcards for *.events.data.microsoft.com, you can use:

    • us-mobile.events.data.microsoft.com/OneCollector/1.0
    • eu-mobile.events.data.microsoft.com/OneCollector/1.0
    • uk-mobile.events.data.microsoft.com/OneCollector/1.0
    • au-mobile.events.data.microsoft.com/OneCollector/1.0
    • mobile.events.data.microsoft.com/OneCollector/1.0

    Enterprise U.S. Government customers should allow the following URLs:

    • *.events.data.microsoft.com
    • *.endpoint.security.microsoft.us (GCC-H & DoD)
    • *.gccmod.ecs.office.com (GCC-M)
    • *.config.ecs.gov.teams.microsoft.us (GCC-H)
    • *.config.ecs.dod.teams.microsoft.us (DoD)
  5. If you're using Application Control for Windows, or you're running non-Microsoft antivirus or endpoint detection and response software, make sure to add the processes mentioned earlier to your allowlist.

  6. Consumers don't need to take any actions to prepare.

Microsoft Defender Antivirus processes and services

The following table summarizes where you can view Microsoft Defender Antivirus processes and services (MdCoreSvc) using Task Manager on Windows devices.

Process or service Where to view its status
Antimalware Core Service Processes tab
MpDefenderCoreService.exe Details tab
Microsoft Defender Core Service Services tab

To learn more about the Microsoft Defender Core service configurations and experimentation (ECS), see Microsoft Defender Core service configurations and experimentation.

Frequently Asked Questions (FAQs):

What's the recommendation for Microsoft Defender Core service?

We highly recommend keeping the default settings of the Microsoft Defender Core service running and reporting.

What data storage and privacy does the Microsoft Defender Core service adhere to?

Review Microsoft Defender for Endpoint data storage and privacy.

Can I enforce the Microsoft Defender Core service stays running as an Administrator?

You can enforce it by using any of these management tools:

  • Configuration Manager co-management
  • Group Policy
  • PowerShell
  • Registry

Use Configuration Manager co-management (ConfigMgr, formerly MEMCM/SCCM) to update the policy for Microsoft Defender Core service

Microsoft Configuration Manager has an integrated ability to run PowerShell scripts to update Microsoft Defender Antivirus policy settings across all computers in your network.

  1. Open the Microsoft Configuration Manager console.
  2. Select Software Library > Scripts > Create Script.
  3. Enter the Script name, for example, Microsoft Defender Core service enforcement and Description, for example, Demo configuration to enable Microsoft Defender Core service settings.
  4. Set the Language to PowerShell and the Timeout seconds to 180
  5. Paste in the following "Microsoft Defender Core service enforcement" script example to use as a template:
######
#ConfigMgr Management of Microsoft Defender Core service enforcement
#"Microsoft Defender Core service is a new service to help keep the reliability and performance of Microsoft Defender Antivirus.
#Check Log File for enforcement status - C:\Windows\temp\ConfigDefenderCoreService-<TimeStamp>.log
######
Function Set-RegistryKeyValue{
param (
$KeyPath,
$ValueName,
$Value,
$PropertyType,
$LogFile
)
Try {
    If (!(Test-path $KeyPath)) {
    $Path = ($KeyPath.Split(':'))[1].TrimStart("\")
    ([Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine,$env:COMPUTERNAME)).CreateSubKey($Path)
    New-ItemProperty -path $KeyPath -name $ValueName -value $Value -PropertyType $PropertyType -Force | Out-Null
    }
    Else {
    New-ItemProperty -path $KeyPath -name $ValueName -value $Value -PropertyType $PropertyType -Force | Out-Null
    }
    $TestValue = (Get-ItemProperty -Path $KeyPath)."$ValueName"
    If ($TestValue -eq $Value){ Add-Content -Path $LogFile -Value "$KeyPath,$ValueName,$Value,$PropertyType,$TestValue,Success" }
    Else { Add-Content -Path $LogFile -Value "$KeyPath,$ValueName,$Value,$PropertyType,$TestValue,Failure" }
    }
    Catch {
    $ExceptionMessage = $($PSItem.ToString()) -replace [Environment]::NewLine,"";
    Add-Content -Path $LogFile -Value "$KeyPath,$ValueName,$Value,$PropertyType,$TestValue,Failure - $ExceptionMessage"
    }
}
$ExecutionTime = Get-Date
$StartTime = Get-Date $ExecutionTime -Format yyyyMMdd-HHmmss
$LogFile = "C:\Windows\temp\ConfigDevDrive-$StartTime.log"
Add-Content -Path $LogFile -Value "------------------------------------V 1.0 

$ExecutionTime - Execution Starts -------------------------------------------"
Add-Content -Path $LogFile -Value "RegistryKeyPath,ValueName,ExpectedValue,PropertyType,CurrentValue,ComparisonResult"
#Set up Microsoft Defender Core service
Set-RegistryKeyValue -KeyPath "HKLM:\Software\Policies\Microsoft\Windows Defender\Features\" -ValueName "DisableCoreService1DSTelemetry" -Value "0" -PropertyType "Dword" -LogFile $LogFile
Set-RegistryKeyValue -KeyPath "HKLM:\Software\Policies\Microsoft\Windows Defender\Features\" -ValueName "DisableCoreServiceECSIntegration" -Value "0" -PropertyType "Dword" -LogFile $LogFile
$ExecutionTime = Get-Date
Add-Content -Path $LogFile -Value "------------------------------------ 
$ExecutionTime - Execution Ends -------------------------------------------"

When adding a new script, you must select and approve it. The approval state changes from Waiting for approval to Approved. Once approved, right-click a single device or device collection, and select Run script.

On the script page of the Run Script wizard, choose your script from the list (Microsoft Defender Core service enforcement in our example). Only approved scripts are displayed. Select Next and complete the wizard.

Use Group Policy Editor to update Group Policy for Microsoft Defender Core service

  1. Download the latest Microsoft Defender Group Policy Administrative Templates from here.

  2. Set up the Domain Controller Central Repository.

    Note

    Copy the .admx, and separately the .adml to the En-US folder.

  3. Start, GPMC.msc (e.g. Domain Controller or ) or GPEdit.msc

  4. Go to Computer Configuration -> Administrative Templates -> Windows Components -> Microsoft Defender Antivirus

  5. Turn on Experimentation and Configuration Service (ECS) integration for Defender core service

    • Not configured or enabled (default): the Microsoft Defender core service will use ECS to rapidly deliver critical, org-specific fixes for Microsoft Defender Antivirus and other Defender software.
    • Disabled: the Microsoft Defender core service will stop using ECS to rapidly deliver critical, org-specific fixes for Microsoft Defender Antivirus and other Defender software. For false positives, fixes will be delivered via "Security Intelligence updates", and for Platform and/or Engine updates, fixes will be delivered through Microsoft Update, Microsoft Update Catalog or WSUS.
  6. Turn on telemetry for Defender core service

    • Not configured or enabled (default): the Microsoft Defender Core service will collect telemetry from Microsoft Defender Antivirus and other Defender software
    • Disabled: the Microsoft Defender Core service will stop collecting telemetry from Microsoft Defender Antivirus and other Defender software. Disabling this setting can impact Microsoft's ability to quickly recognize and address problems, such as slow performance and false positives.

Use PowerShell to update the policies for Microsoft Defender Core service.

  1. Go to Start, and run PowerShell as an administrator.

  2. Use the Set-MpPreferences -DisableCoreServiceECSIntegration $true or $false command, where $false = enabled and $true = disabled. For example:

    Set-MpPreferences -DisableCoreServiceECSIntegration $false 
    
  3. Use the Set-MpPreferences -DisableCoreServiceTelemetry $true or $false command, for example:

    Set-MpPreferences -DisableCoreServiceTelemetry $true
    

Use the Registry to update the policies for Microsoft Defender Core service.

  1. Select Start, and then open Regedit.exe as an administrator.

  2. Go to HKLM\Software\Policies\Microsoft\Windows Defender\Features

  3. Set the values:

    DisableCoreService1DSTelemetry (dword) 0 (hex)
    0 = Not configured, enabled (default)
    1 = Disabled

    DisableCoreServiceECSIntegration (dword) 0 (hex)
    0 = Not configured, enabled (default)
    1 = Disabled