top of page

Part 1-(Persistence): The Labyrinth of Autorun Locations in Windows

Introduction:

In the vast and intricate world of Windows operating systems, the presence of AutoStart Extension Points (ASEPs), commonly known as "autorun" locations, poses a significant challenge for defenders. These locations serve as fertile ground for attackers seeking persistence, making Windows security a complex endeavor. In this blog post, we'll embark on a journey to understand the multitude of autorun locations, shedding light on some common ones and exploring their implications for system security.


The Autorun Landscape:

Windows, with its myriad of autorun locations, provides attackers with numerous opportunities to establish persistence on compromised systems. These locations, also termed AutoStart Extension Points, are scattered across the operating system, creating a daunting challenge for defenders. Over 50 such locations have been identified, contributing to the intricacy of Windows security.


Common Autorun Locations:

While there are numerous autorun locations, several key ones are commonly exploited by attackers. A sampling of these locations includes:


  • NTUSER.DAT\Software\Microsoft\Windows\CurrentVersion\Run

  • NTUSER.DAT\Software\Microsoft\Windows\CurrentVersion\Runonce

  • Software\Microsoft\Windows\CurrentVersion\Runonce

  • Software\Microsoft\Windows\CurrentVersion\policies\Explorer\Run

  • Software\Microsoft\Windows\CurrentVersion\Run


The "run" Registry keys are particularly popular, as they execute listed items when a user logs on, offering an ideal persistence mechanism.


Userinit Key:

Another noteworthy autorun location is the Userinit key, residing in


  • SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit.

While its default purpose is to reference userinit.exe, attackers can manipulate this key to include additional binaries, enabling malicious execution at boot.

File System Autorun Location:

Unlike Registry-based locations, the file system also hosts autorun locations.


  • %AppData%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


allows attackers to create shortcuts that execute corresponding binaries upon user logon. This method doesn't require administrator rights, making it an attractive option for attackers.


Navigating the Autorun Maze:

To navigate the autorun maze effectively, defenders can leverage tools like Autoruns and Kansa. These tools offer scalable approaches to collect autorun information across systems. Additionally, RegRipper can retrieve autorun data from Registry hives, aiding in the identification of compromised systems through frequency analysis.


Conclusion:

Understanding the diverse landscape of autorun locations is crucial for defenders aiming to fortify Windows security. By exploring these common autorun points, we equip ourselves with the knowledge needed to detect and mitigate threats effectively.


Akash Patel

23 views0 comments

Comments


bottom of page