> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attack surface reduction

> Set the exploit mitigations of Microsoft Defender on your Windows devices: attack surface reduction rules, controlled folder access, network protection, SmartScreen, phishing protection and exploit protection.

The Attack surface reduction control hardens your Windows devices with the exploit mitigations of Microsoft Defender. Set the mode of each attack surface reduction rule, controlled folder access, network protection and what it inspects, SmartScreen, phishing protection and exploit protection.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| | ✅ | | | |

Runs on Windows devices with an x86\_64 or ARM64 processor. **Enhanced phishing protection** and **Warn when a password is typed in an unsafe app** need Windows 11 22H2 or later: a configuration that sets either one is sent only to devices on Windows 11 22H2 or later.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **Attack surface reduction**, then click **Add configuration**.

**2. Configure the settings**

Set each rule and setting you want to enforce. See the settings below. Configure at least one setting.

**3. Select targeting**

Choose which devices to apply the configuration to: all Windows devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

A setting left on **Not configured** isn't written: the PC keeps its own setting. The same goes for a rule left on **Not configured**.

## Settings

| Section | Setting | Options |
| - | - | - |
| **Attack surface reduction rules** | **Block abuse of exploited vulnerable signed drivers** | **Off**, **Block**, **Audit only**, **Warn**, **Not configured** |
| | **Block Adobe Reader from creating child processes** | Same options |
| | **Block all Office applications from creating child processes** | Same options |
| | **Block credential stealing from the Windows local security authority subsystem (lsass.exe)** | **Off**, **Block**, **Audit only**, **Not configured** |
| | **Block executable content from email client and webmail** | **Off**, **Block**, **Audit only**, **Warn**, **Not configured** |
| | **Block executable files unless they meet a prevalence, age or trusted list criterion** | Same options |
| | **Block execution of potentially obfuscated scripts** | Same options |
| | **Block JavaScript or VBScript from launching downloaded executable content** | Same options |
| | **Block Office applications from creating executable content** | Same options |
| | **Block Office applications from injecting code into other processes** | **Off**, **Block**, **Audit only**, **Not configured** |
| | **Block Office communication applications from creating child processes** | **Off**, **Block**, **Audit only**, **Warn**, **Not configured** |
| | **Block persistence through WMI event subscription** | Same options |
| | **Block process creations originating from PSExec and WMI commands** | Same options |
| | **Block rebooting the machine in Safe Mode** | Same options |
| | **Block untrusted and unsigned processes that run from USB** | Same options |
| | **Block use of copied or impersonated system tools** | Same options |
| | **Block webshell creation for servers** | Same options |
| | **Block Win32 API calls from Office macros** | Same options |
| | **Use advanced protection against ransomware** | Same options |
| | **Files and folders every rule leaves alone** | Paths, one per line |
| **Controlled folder access** | **Controlled folder access** | **Off**, **Block**, **Audit only**, **Block disk modification only**, **Audit disk modification only**, **Not configured** |
| | **Extra protected folders** | Paths, one per line |
| | **Apps allowed to change protected folders** | Paths, one per line |
| **Network protection** | **Network protection** | **Off**, **Block**, **Audit only**, **Not configured** |
| | **Inspect DNS** | **On**, **Off**, **Not configured** |
| | **Inspect DNS over TCP** | **On**, **Off**, **Not configured** |
| | **Inspect RDP** | **On**, **Off**, **Not configured** |
| | **Protocol recognition** | **On**, **Off**, **Not configured** |
| | **Inspect UDP traffic** | **On**, **Off**, **Not configured** |
| | **Filter inbound connections** | **On**, **Off**, **Not configured** |
| | **Turn network protection warnings into blocks** | **On**, **Off**, **Not configured** |
| **SmartScreen and phishing protection** | **SmartScreen checks of files and apps** | **On**, **Off**, **Not configured** |
| | **Users can ignore a SmartScreen warning** | **On**, **Off**, **Not configured** |
| | **Microsoft Store apps only** | **On**, **Off**, **Not configured** |
| | **Enhanced phishing protection** | **On**, **Off**, **Not configured** |
| | **Warn when a password is typed in an unsafe app** | **On**, **Off**, **Not configured** |
| **Exploit protection** | **Structured exception handling overwrite protection (SEHOP)** | **On**, **Off**, **Not configured** |
| | **Users can change exploit protection settings** | **On**, **Off**, **Not configured** |

* **Warn** isn't offered for the LSASS credential stealing rule and the Office code injection rule.
* A path list holds at most 200 paths of up to 1024 characters each.
* Set **Inspect DNS**, **Inspect DNS over TCP** and **Inspect RDP** together, or leave all three on **Not configured**.

## How it works

Primo deploys a configuration profile that writes each rule and setting you configured, through the Defender, Microsoft Defender Antivirus ADMX, SmartScreen, WebThreatDefense, MSSecurityGuide and WindowsDefenderSecurityCenter areas of the Policy CSP, and the Defender CSP. A setting or a rule left on **Not configured** isn't in the profile.

Before sending a configuration that sets **Enhanced phishing protection** or **Warn when a password is typed in an unsafe app**, Primo checks the Windows version of each device and leaves out devices older than Windows 11 22H2. A device whose version Primo hasn't read yet is targeted.

When you remove the configuration, Windows takes its policies out: no setting of the configuration stays managed on the PC, and the network inspection, protocol recognition and SEHOP settings no longer hold the values it wrote.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Antivirus](https://docs.getprimo.com/mdm/policies/antivirus.md)
* [Antivirus exclusions](https://docs.getprimo.com/mdm/policies/antivirus-exclusions.md)
* [Firewall](https://docs.getprimo.com/mdm/policies/firewall.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.