May 2, 2016 By Larry Loeb 2 min read

McAfee Labs security researcher Craig Schmugar has posted a warning about how one malware called Dynamer uses Windows “God Mode,” which has been present since the days of Vista, to achieve persistence.

This undocumented God Mode allows a user to create a special kind of folder that will act as a shortcut to Windows settings. The shortcut can also link to other special folders such as Control Panel, My Computer or Printers. These do not open like normal folders, but rather redirect the user to a fresh program.

These files are often inaccessible via other readily available settings or tools, so creating a shortcut makes sense for the user. But this behavior can be exploited by malware looking to gain persistence or control over a machine.

More About the Malware

Dynamer has learned how to exploit Windows God Mode. First, it will install itself in a folder inside of the %AppData% directory. This will then create a registry run key that will persist across reboots.

The actual executable name for the malware is dynamic. Regardless, the folder redirects to the RemoteApp and Desktop Connections Control Panel item when it is opened.

Because of the given name of that folder — it begins with com4 — Windows considers it a device. This means that Windows Explorer or the typical console commands do not work when trying to delete it.

McAfee outlined a series of steps for defeating this exploit. The first step is to terminate the malware using Task Manager or other standard tools that are available on Windows. Next, run this crafted command from the command prompt: (cmd.exe): > rd “\\.\%appdata%\com4.{241D7C96-F8BF-4F85-B01F-E2B043341A4B}” /S /Q”.

Avoiding Windows God Mode

Dynamer shows how malware will take advantage of any quirks in an OS to gain a foothold. According to SecurityWeek, it was first recognized several years ago, and by now, most security tools should be able to detect it, including Windows Defender for Windows 10 and Windows 8.1, or Microsoft Security Essentials for Windows 7 and Windows Vista.

Microsoft has previously tried to mitigate the potential effects of the Windows God Mode. When Enhanced Mitigation Experience Toolkit (EMET) 5.2 was released last March, for example, Microsoft tried to eliminate the exposed VBScript God Mode exploitation technique. But as the Dynamer malware shows, this effort remains ongoing.

More from

Cybersecurity dominates concerns among the C-suite, small businesses and the nation

4 min read - Once relegated to the fringes of business operations, cybersecurity has evolved into a front-and-center concern for organizations worldwide. What was once considered a technical issue managed by IT departments has become a boardroom topic of utmost importance. With the rise of sophisticated cyberattacks, the growing use of generative AI by threat actors and massive data breach costs, it is no longer a question of whether cybersecurity matters but how deeply it affects every facet of modern operations.The 2024 Allianz Risk…

Autonomous security for cloud in AWS: Harnessing the power of AI for a secure future

3 min read - As the digital world evolves, businesses increasingly rely on cloud solutions to store data, run operations and manage applications. However, with this growth comes the challenge of ensuring that cloud environments remain secure and compliant with ever-changing regulations. This is where the idea of autonomous security for cloud (ASC) comes into play.Security and compliance aren't just technical buzzwords; they are crucial for businesses of all sizes. With data breaches and cyber threats on the rise, having systems that ensure your…

Adversarial advantage: Using nation-state threat analysis to strengthen U.S. cybersecurity

4 min read - Nation-state adversaries are changing their approach, pivoting from data destruction to prioritizing stealth and espionage. According to the Microsoft 2023 Digital Defense Report, "nation-state attackers are increasing their investments and launching more sophisticated cyberattacks to evade detection and achieve strategic priorities."These actors pose a critical threat to United States infrastructure and protected data, and compromising either resource could put citizens at risk.Thankfully, there's an upside to these malicious efforts: information. By analyzing nation-state tactics, government agencies and private enterprises are…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today