Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

How to Enable ASLR (Address Space Layout Randomization)

In this quick tutorial, we’ll explain how to enable ASLR for added protection against security threats.

ASLR (Address Space Layout Randomization) is a security technique that was originally used on GNU/Linux systems. However, these days, it’s used by many operating systems as an additional form of protection against certain attacks.

What this technique does is randomise the location where system executables, libraries or memory stacks are loaded in the system memory.

Hackers often try to exploit systems by guessing the location of important data or executables. By randomising everything, it makes it much harder for a hacker to take control of the system or exploit data.

 

Before you get started

To successfully complete this tutorial, you will need the following:

 

How to Enable ASLR

 

First, click on the search bar and type “Virus and threat protection” (1), although “virus” will probably be enough for the system to begin displaying results.

From the results displayed, click on “Virus and threat protection” (2).

Screenshot of search results for Virus and threat protection on Windows
Search for Virus and threat protection to run the Windows Security console

You will then see the Windows Security console.

On the left-hand side, click on “App & browser control” (3).

Screenshot of Virus and threat protection screen on Windows
Click on “App & browser control”

Then, on the App & browser control screen, below Exploit protection” , click on “Exploit protection settings” (4).

Screenshot of Apps & browser control screen on Windows
Click on “Exploit protection settings”

On the next screen, you will see three settings related to ASLR which you can freely enable or disable:

  • Force randomisation for images (Mandatory ASLR) (5)
  • Randomise memory allocations (Bottom-up ASLR) (6): Used to randomise virtual memory allocations, including memory stacks, the Thread Environment Block (TEB) and the Process Environment Block (PEB).
  • High-entropy ASLR (7): This option notably increases the randomisation by adding more bits, thereby increasing security.

NOTE: Some apps may experience issues when you enable ASLR, so you may have to disable it to avoid problems.

Screenshot of Exploit protection settings screen
Select each type of ASLR

 

Summary

In this tutorial, we’ve shown how easy it is to enable ASLR on your Windows system. This technique randomises the memory location of key data and processes, thereby providing increased protection against cyberattacks.

This feature is available on both Microsoft Windows Client systems, such as Windows 10 or 11, and Windows Server, such as Windows Server 2022 and some earlier versions.

As you can see, it’s a really simple process, so there’s no excuse for not enabling it!

We also recommend that you check out our blog for other similar tutorials and articles.

Thanks for choosing Jotelulu!

Categorias:Servidores