Specially crafted Windows 10 themes and theme packs can be used in 'Pass-the-Hash' attacks to steal Windows account credentials from unsuspecting users.
Windows allows users to create custom themes that contain customized colors, sounds, mouse cursors, and the wallpaper that the operating system will use.
Windows users can then switch between different themes as desired to change the appearance of the operating system.
A theme's settings are saved under the %AppData%\Microsoft\Windows\Themes folder as a file with a .theme extension, such as 'Custom Dark.theme.'
Windows themes can then be shared with other users by right-clicking on an active theme and selecting 'Save theme for sharing,' which will package the theme into a '.deskthemepack' file.
These desktop theme packs can then be shared via email or as downloads on websites, and installed by double-clicking them.
Custom themes can be used to steal Windows passwords
This weekend security researcher Jimmy Bayne (@bohops) revealed that specially crafted Windows themes could be used to perform Pass-the-Hash attacks.
Pass-the-Hash attacks are used to steal Windows login names and password hashes by tricking a user into accessing a remote SMB share that requires authentication.
When trying to access the remote resource, Windows will automatically try to login to the remote system by sending the Windows user's login name and an NTLM hash of their password.
In a Pass-the-Hash attack, the sent credentials are harvested by the attackers, who then attempt to dehash the password to access the visitors' login name and password.
In a test previously done by BleepingComputer, dehashing an easy password took approximately 4 seconds to crack!
In the new method discovered by Bayne, an attacker can create a specially crafted .theme file and change the desktop wallpaper setting to use a remote authentication-required resource, such as the one below.
When Windows tries to access the remote authentication-required resource, it will automatically try to log into the share by sending the NTLM hash and login name for the logged into an account.
The attacker can then harvest the credentials and dehash the password using special scripts, so it's in its clear text form.
As Pass-the-Hash attacks will send the account used to login to Windows, including a Microsoft account, this type of attack is becoming more problematic.
Since Microsoft moving away from local Windows 10 accounts and towards Microsoft accounts, remote attackers can use this attack to more easily access a myriad of remote services offered by Microsoft.
This includes being able to potentially access email, Azure, or accessible corporate networks remotely.
Bayne stated that he disclosed this attack to Microsoft earlier this year, but was told it would not be fixed as it is a "feature by design."
Protecting against malicious theme files
To protect against malicious theme files, Bayne advised that you block or re-associate the .theme, .themepack, and .desktopthemepackfile extensions to a different program.
Doing so, though, will break the Windows 10 Themes feature, so only use it if you do not need to switch to another theme.
Windows users can configure a group policy named 'Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers' and set it to 'Deny All' to prevent your NTLM credentials from being sent to remote hosts.
Please note, that configuring this option may cause issues in enterprise environments that use remote shares.
For more detailed information on how to enable this policy, and the Registry values for Windows 10 Home users, you can read our dedicated 'Understanding the Windows Credential Leak Flaw and How to Prevent It' article.
Finally, BleepingComputer suggests adding multi-factor authentication to your Microsoft accounts to prevent them from being accessed remotely by attackers who successfully steal your credentials.
Comments
cat1092 - 4 years ago
Grinler, great find there!
I have been collecting theme packs for both Windows 8.1/10 & Linux, so need to tone things down. Seems like some type of security can discover these malicious types of software. Or be stopped upon the remote user trying to use, whatever.
Seems for now, may be a great time to skip theme packs. Those who are 'giving' bundles of these & say 'share with friends, relatives, anyone you know' (or similar wording) are up to no good. They'll steal as much as possible withing a local area & move on, why so few gets caught.
Just my opinion & that only, in the US, Homeland Security was created in the post 9/11 days to fight against terrorism. These tactics can be considered as domestic terrorism because we don't know where the money flows. Good chance some is to major terrorist groups. This is where Homeland Security steps in, by intercepting as many of these bad actors as possible & stop it with a slap on the wrist for punishment.
Making the penalties a mandatory 25-50 years per count (these would add up fast) would discourage many (bad) hackers, at least on US soil or in nations where we have a treaty to extradite. By making these criminals pay for their offenses, hopefully the signal will be put out there fast, not to unlawfully break into computer systems, no matter the size. While we have a long way to go to become far more secure, this would be the best step, in making computer fraud/other related crimes committed by remote device a top level felon, just under the tiers for murder, rape and violence by explosive devices. Have to begin somewhere.
Cat
chadf - 4 years ago
The fact they used raw file paths in something intended to be shared should have been a red flag from the beginning. At most, they should have been relative files (or pseudo URLs) to resources that are assumed untrusted, which naturally would have made someone think twice before they allowing general URL (or file share) access without pointing out the security risks to the user.