Security or Usability: Maliciously Disabling UAC in Windows 7

At OSNews, we usually do not report on individual security breaches, because there are websites specifically tailored to that sort of thing. Still, every now and then, an interesting security issue pops up that deserves some attention. How about this one: through a simple VBScript, you can completely disable UAC in Windows 7. The reason for this might surprise you. Update: Microsoft’s response.

When Windows Vista was first released, it came with User Account Control, and right about that time, the world ended in flames and we were all doomed, we died, and that was it. At least, that’s how some described the advent of UAC. Others saw it as a necessary evil to fix developers’ attitudes towards writing applications for Windows, an attitude fostered by Microsoft’s own inadequacy; it succeeded wonderfully at that. The number of prompts lessened anyway after first setting up your machine.

Sadly, when it came to developing Windows 7’s UAC, Microsoft decided to listen to the hissy fit group, and they implemented a slider control where you could set which events would trigger a User Account Control prompt. A classic case of sacrificing security for the sake of perceived usability, if you ask me.

In any case, the default setting in Windows 7 is “Notify me only when programs try to make changes to my computer” and “Don’t notify me when I make changes to Windows settings”. That second one is the root of the very simple security breach described by Long Zheng (of IStartedSomething) and Rafael Rivera (of Since changing a Windows setting does not trigger UAC – changing UAC settings does not trigger UAC. In other words, you can completely disable UAC without the user ever having to give any consent. Put a few keyboard shortcuts in a little VBScript, and there you have it, UAC disabled completely (proof of concept).

Funnily enough, there is a very easy fix for this flaw: enable to the full-blown, Vista-esque UAC in Windows 7 (move the slider all the way up). This setting makes sure that if anyone tries to change you UAC settings, you’d see a UAC dialog. As Zheng accurately remarks, “Having UAC on at the policy as it is currently implemented in Windows 7 is as good as not having it on at all.”

While this exposes the boneheaded implementation of UAC’s settings slider in Windows 7, it also has its roots in sacrificing security for usability’s sake. Let this be a lesson for you: it’s simply not wise to disable UAC, or cripple it just because you don’t like dialogs. I always run my Windows Vista and Windows 7 machines with the full-blown UAC for this very reason.


  1. 2009-01-30 7:54 pm
  2. 2009-01-30 8:10 pm
  3. 2009-01-30 8:35 pm
    • 2009-01-30 10:07 pm
      • 2009-01-30 11:53 pm
        • 2009-01-31 3:03 am
        • 2009-01-31 9:46 am
          • 2009-01-31 5:52 pm
          • 2009-01-31 6:18 pm
          • 2009-01-31 5:52 pm
          • 2009-01-31 10:42 pm
          • 2009-02-01 2:55 am
          • 2009-02-01 4:27 am
          • 2009-02-01 9:18 am
          • 2009-02-01 10:50 am
          • 2009-02-01 1:04 pm
          • 2009-02-03 7:09 am
    • 2009-02-02 2:29 am
  4. 2009-01-30 10:06 pm
  5. 2009-01-30 10:23 pm
    • 2009-01-30 11:31 pm
    • 2009-01-31 2:42 am
  6. 2009-01-31 1:20 am
    • 2009-01-31 5:48 pm
  7. 2009-01-31 9:10 am
  8. 2009-01-31 7:22 pm