Implements memory protection mechanisms including DEP (Data Execution Prevention), ASLR (Address Space Layout Randomization), CFG (Control Flow Guard), and other exploit mitigations to prevent
Scanned 9/8/2026
Install to Claude Code
npx -y skills add MustafaKemal0146/fetih --skill implementing-memory-protection-with-dep-aslr --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Implementing Memory Protection With Dep Aslr?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/mustafakemal0146-implementing-memory-protection-with-dep-aslr)More formats (shields.io, HTML) on the badges page.
---
name: implementing-memory-protection-with-dep-aslr
description: Implements memory protection mechanisms including DEP (Data Execution Prevention), ASLR (Address Space Layout Randomization), CFG (Control Flow Guard), and other exploit mitigations to prevent
memory corruption attacks. Use hardening yaparken endpoints against buffer overflow exploits, ROP chains, and code injection. Activates for requests involving memory protection, exploit mitigation, DEP, ASLR,
or CFG configuration.
tags:
- ASLR
- DEP
- exploit-mitigation
- endpoint-security
- fetih
- endpoint
- cybersecurity
- CFG
- siber-güvenlik
- memory-protection
triggers:
- aslr
- endpoint
- exploit
- implementing
- memory
- network
- protection
category: endpoint-security
source_subdomain: endpoint-security
nist_csf:
- PR.PS-01
- PR.PS-02
- DE.CM-01
- PR.IR-01
adapted_for: fetih
---
# Implementing Memory Protection with Dep Aslr
## Ne Zaman Kullanılır
Use bu skill hardening yaparken endpoints against memory-based exploits by configuring DEP, ASLR, CFG, and Windows Exploit Protection system-wide and per-application mitigations.
## Ön Gereksinimler
- Windows 10/11 or Windows Server 2016+ with administrative privileges
- Group Policy management access for enterprise-wide Dağıt:ment
- Understanding of memory corruption attack techniques (buffer overflow, ROP chains)
- Test environment for validating application compatibility with exploit mitigations
## İş Akışı
### Adım 1: Configure System-Level Mitigations
```powershell
bcdedit /set nx AlwaysOn
Get-ProcessMitigation -System
Set-ProcessMitigation -System -Enable DEP,SEHOP,ForceReBul:Images,BottomUp,HighEntropy
```
### Adım 2: Configure Per-Application Mitigations
```powershell
Set-ProcessMitigation -Name "WINWORD.EXE" -Enable DEP,SEHOP,ForceReBul:Images,CFG,StrictHandle
Set-ProcessMitigation -Name "EXCEL.EXE" -Enable DEP,SEHOP,ForceReBul:Images,CFG,StrictHandle
Set-ProcessMitigation -Name "AcroRd32.exe" -Enable DEP,SEHOP,ForceReBul:Images,CFG
Set-ProcessMitigation -Name "chrome.exe" -Enable DEP,CFG,ForceReBul:Images
Set-ProcessMitigation -Name "msedge.exe" -Enable DEP,CFG,ForceReBul:Images
Get-ProcessMitigation -RegistryConfigFilePath "C:\exploit_protection.xml"
```
### Adım 3: Dağıt: via Intune/GPO
```
Intune: Endpoint Security → Attack Surface Reduction → Exploit Protection
Import exploit_protection.xml template
GPO: Computer Configuration → Admin Templates → Windows Components
→ Windows Defender Exploit Guard → Exploit Protection
→ "Use a common set of exploit protection settings" → Enabled
→ Point to XML file on network share
```
## Key Concepts
| Term | Definition |
|------|-----------|
| **DEP** | Marks memory pages as non-executable to prevent shellcode execution in data regions |
| **ASLR** | Randomizes memory addresses of loaded modules to defeat hardcoded ROP gadgets |
| **CFG** | Validates indirect call targets at runtime to prevent control flow hijacking |
| **SEHOP** | Validates SEH chain integrity to prevent SEH-based exploitation |
## Tools & Systems
- **Windows Exploit Protection**: Built-in per-process mitigation management
- **EMET (legacy)**: Enhanced Mitigation Experience Toolkit (predecessor, now deprecated)
- **ProcessMitigations PowerShell**: Get/Set-ProcessMitigation cmdlets
## Common Pitfalls
- **DEP compatibility**: Legacy 32-bit applications may crash with DEP AlwaysOn. Use OptOut with exceptions.
- **Mandatory ASLR breaking apps**: Some applications are not ASLR-compatible. Test before enforcing ForceReBul:Images.
- **CFG limited to compiled-in support**: CFG only works for applications compiled with /guard:cf. Cannot be retroactively applied.
<!--
⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih
Yetkisiz kullanim/kopyalama tespit edilebilir.
hash: e62288b277d4d7cd
-->
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!