Exploit protections are built-in computer defences that make software bugs much harder for attackers to use.
This guide is for anyone who has seen names like ASLR or DEP in a settings screen and wondered what they do. You do not need to write code to benefit: these protections run quietly on most modern computers and phones, and the main thing is to keep them switched on.
In short
- Exploit protections do not remove bugs. They make bugs harder to turn into an attack.
- DEP stops data in memory being run as instructions. ASLR shuffles where things sit in memory.
- Each one can be got round on its own, so systems use several together.
- Keep them on, keep software updated, and be wary of any app that asks you to turn them off.
What you will learn
- Explain what an exploit protection is in one sentence.
- Describe what DEP and ASLR each do, in plain words.
- Spot a request to turn a protection off, and know what to ask.
- Explain why fixing bugs still matters when protections are on.
- Software bug used for an attack (exploit)
- a way of using a mistake in software to make it do something it should not.
- Working space (memory)
- the short-term space where a running program keeps its instructions and data.
- Built-in defence (exploit mitigation)
- a feature that makes a bug harder to exploit, without fixing the bug itself.
What are exploit protections?
Think of seat belts and airbags in a car. They do not stop a crash from happening. They make it far less likely that a crash ends in serious harm.
Exploit protections work the same way. Software has bugs. Some bugs let an attacker write past the edge of a space in memory, called a buffer overflow. Our Buffer Overflows for Beginners guide explains how that happens.
Exploit protections step in after the bug. They make it hard for the attacker to turn that mistake into control of the computer. Often the worst result becomes a crash, not a takeover.
Where the comparison stops working: seat belts protect you whatever kind of crash happens. Each exploit protection guards against certain attack methods only, and skilled attackers look for ways round them.
Why does it matter?
Every large program has bugs, and some are found by attackers first. Protections buy time until a fix arrives. They also make some attacks fail outright.
Most of the time these defences are already on. The risk comes when someone turns one off, often to make an old app work.
If you look after computers at work
What could happen: you switch off a protection for one old app, and forget it is off.
Check this: keep a written list of every app with a protection turned off, and why.
If you are learning to code
What could happen: you build a program with protections turned off, and a small bug becomes a big hole.
Check this: use your tools' default safety settings, and look at safer programming languages.
If you use a computer at home
What could happen: a website or download tells you to turn off a security setting to "fix" something.
Check this: leave security settings on, and keep your system and apps updated.
What does it look like?
On Windows, you can see these settings under App and browser control, then Exploit protection.[3] Here is a made-up summary of the kind of list you might see.
Example only. All values are made up.
Exploit protection: EXAMPLE-PC-0000 Data Execution Prevention (DEP) Use default (On) (1) Mandatory ASLR Use default (2) Bottom-up ASLR Use default (On) (3) Control flow guard (CFG) Use default (On) (4) Program setting: OldApp-FAKE.exe DEP: Off (5)
- DEP: data areas of memory cannot be run as instructions.
- A stricter form of ASLR. In a real screen, this line would show whether it is on or off.
- ASLR: shuffles where things are placed in memory.
- CFG: checks that the program only jumps to places it is meant to.
- An exception for one app. This is the line to question.
Why this is risky: the one app with DEP turned off has less protection if it has a bug. An attacker only needs one weak spot.
The safer way: leave system settings at their defaults. If an old app needs an exception, record who approved it and why. Test whether a newer version works, and remove the exception when you can.
How does it work?
Each protection blocks a different step an attacker needs.
- Data is not run as instructions (DEP). Memory is marked as either "data" or "instructions". If a program tries to run code from a data area, the system raises an error and can close the program.[1]
- Things move around (ASLR). ASLR means Address Space Layout Randomization. It places parts of a program at less predictable spots in memory, so an attacker's map is likely to be wrong.[2]
- A tripwire sits next to the space (stack canary). Some tools that build programs place a check value beside a space in memory. If an overflow changes it, the program stops.[4]
- Jumps are checked (CFG). Control flow guard checks some of the jumps a program makes, so a changed pointer is less likely to send it somewhere an attacker chose.[2]

None of these is a complete answer alone. A public catalogue of software weaknesses calls protections like ASLR and compiler checks a second layer of defence. It notes that attackers often use a separate bug that leaks memory addresses to get round ASLR.[4] That is why systems use several protections together, and why fixing the bug still matters.
Microsoft says Windows 10 and 11 turn on several of these protections by default. It also warns that changing them without testing can break apps.[3] So the everyday job is less about switching things on, and more about not switching them off.

A worked example
Uma Kowal has just started as an IT technician at a small architecture firm, a fictional business with twenty staff. A designer cannot open an old drawing program after a laptop upgrade. A forum post says, "Just turn off DEP for it."
Uma is about to do it, then stops. She asks her senior colleague, Leila Achterberg, first.
Leila uses the car picture. "DEP is one of the airbags. You can drive without it, but would you want to?" She explains that the drawing program opens files sent by clients. A booby-trapped drawing file is exactly the kind of thing these protections help with.
They check the supplier's website together. A newer version of the program is available, and it is listed as working on the new system. Uma installs it on the designer's laptop. The program starts with all default protections on.
One older tool has no newer version. Leila agrees to a single exception, for that tool only, on one computer that does not open client files. Uma writes it down: the app, the setting, the reason, who approved it and a date to review it in three months.
At the review, the firm has replaced the tool. Uma removes the exception and checks that the settings list is back to its defaults.
Myths and mistakes
| What people think | What is true |
|---|---|
| With ASLR and DEP on, bugs do not matter. | They make attacks harder, not unlikely. Attackers can sometimes get round them, so bugs still need fixing.[4] |
| Turning a protection off for one app is harmless. | That app is now an easier target. Record the exception and remove it when you can. |
| I need to switch these on myself. | Several are on by default on modern systems. The main job is to leave them on and keep updating.[3] |
| A crash means the protection failed. | Often the opposite. A protection may close a program on purpose rather than let an attack carry on.[1] |
| Stricter settings everywhere are always better. | Some strict settings can break older apps. Test changes on a few computers first.[3] |
What can I do this week?
- Install waiting updates for your system and apps.
- If you look after Windows computers, open the Exploit protection page and note any app exceptions.
- For each exception, find out who approved it and whether it is still needed.
- Ask suppliers of old apps whether a newer version works with default protections.
Checklist
- System protections are left at their default settings.
- Every app exception is written down with a reason and an owner.
- Each exception has a review date.
- Exceptions are removed when the app is updated or replaced.
- Changes to protection settings are tested on a few computers first.
- Systems and apps are kept up to date.
- Staff know not to follow online tips that say "turn off this security setting".
Common questions
What do ASLR and DEP stand for?
ASLR is Address Space Layout Randomization. It shuffles where parts of a program sit in memory. DEP is Data Execution Prevention. It stops areas of memory meant for data from being run as instructions. Both are built into modern systems.
Are these protections on by default?
Several are, on current Windows. Microsoft says Windows 10 and 11 turn several protections on by default. You can see each default in the Windows Security app. Microsoft warns that changing settings without testing can break apps.
Do exploit protections replace antivirus?
No. They do different jobs. Antivirus looks for harmful files and behaviour. Exploit protections make bugs in normal software harder to abuse. Using both, plus regular updates, gives layered protection.
If protections exist, why do updates still matter?
Because protections slow attackers down but do not remove the bug. Skilled attackers can sometimes get round them, often by chaining two bugs together. An update fixes the bug itself, which closes the hole that the protections were guarding.
Can I turn a protection off for one app?
On Windows, yes, per app, but treat it as a last resort. That app becomes an easier target. Check for a newer version first. If you must, get approval, write it down with a review date, and remove the exception when the app is replaced.
Where next?
Ready for the detail? Read the practitioner guide: Exploit Mitigations Guide. It goes further into how attackers try to get round each protection, newer hardware-based defences and how to check and enforce settings across many systems.
Also useful:
- Buffer Overflows for Beginners
- Exploits for Beginners
- Memory-Safe Languages for Beginners
- Memory Corruption Vulnerabilities Guide
Related NHI Mgmt Group resources: Zero Day Vulnerabilities for Beginners · How Operating Systems Work for Beginners · Arm MTE Guide
Key terms
- Exploit
- A way of using a flaw in software to make it do something it should not.
- Buffer overflow
- A bug where a program writes more data into a space in memory than the space can hold.
- Memory corruption
- When a bug changes parts of a program's memory that it should not touch.
- ASLR
- A protection that shuffles where things sit in memory, making attacks less reliable.
- Data execution prevention (DEP)
- A protection that stops memory meant for data from being run as instructions.
- Control flow guard (CFG)
- A Windows protection that checks some of the jumps a program makes are to allowed places.
- Memory safety
- Designing software so that memory mistakes like overflows are prevented or caught.
Sources and further reading
- Data Execution Prevention. Microsoft Learn, Microsoft. https://learn.microsoft.com/en-us/windows/win32/memory/data-execution-prevention, accessed 28 Nov 2026.
- Exploit protection reference. Microsoft Learn, Microsoft. https://learn.microsoft.com/en-us/defender-endpoint/exploit-protection-reference, accessed 28 Nov 2026.
- Enable exploit protection. Microsoft Learn, Microsoft. https://learn.microsoft.com/en-us/defender-endpoint/enable-exploit-protection, accessed 28 Nov 2026.
- CWE-121: Stack-based Buffer Overflow, potential mitigations. MITRE Common Weakness Enumeration. https://cwe.mitre.org/data/definitions/121.html, accessed 28 Nov 2026.