UACMe - Defeating Windows User Account Control

Forum for announcements and questions about tools and software.
Post Reply
User avatar
EP_X0FF
Global Moderator
Posts: 4808
Joined: Sun Mar 07, 2010 5:35 am
Location: Russian Federation
Contact:

UACMe - Defeating Windows User Account Control

Post by EP_X0FF » Fri Dec 19, 2014 6:19 am

Inspired by ITW WinNT/Pitou legacy MBR x86-64 bootkit dropper.

Before anything else read this excellent work -> Windows 7 UAC whitelist, read it carefully as it explains everything especially why Windows User Account Control is a big fucken marketing joke from Microsoft just like DSE.

Below is our variant of his work with removal of all C++ trash and adapting different UAC bypass method from WinNT/Pitou (bootkit authors also used as base Leo Davidson work).

The only setting UAC somehow is able to show itself - if they are set on maximum. But here revealed another Microsoft UAC architecture flaw by design - even when it blocks something, it cannot properly determine what it blocked, representing possible malicious actions as taken by Microsoft, facepalm. Will you trust verified Microsoft action with verified digital certificate from Microsoft?

Supported Windows version, all from 7xxx builds up to latest so "confidential" MS build 9901.

Project overview:

Win32 and x64 configurations.
Compiled in MSVS 2013 U4, used pure C, compiled as C++
No additional dependencies.
All libs in attach.

Debug builds configurations present only for debugging stuff not for UAC bypass stage execution (shellcode will be screwed up).
Require Heavens Gate adaptation for proper work from Win32 app under WOW64, if you don't know what is HG then skip this moment.

x64 loader VT
https://www.virustotal.com/en/file/78ca ... 418968668/

x86-32 loader VT
https://www.virustotal.com/en/file/9795 ... 418968812/

Screeenshots taken from Windows 10 TP build 9901
uac101.png
uac102.png
You do not have the required permissions to view the files attached to this post.
Last edited by EP_X0FF on Sun Mar 29, 2015 8:48 am, edited 1 time in total.
Reason: removed attach, see http://www.kernelmode.info/forum/viewtopic.php?p=25523#p25523 for more info
Ring0 - the source of inspiration

NytroRST
Posts: 2
Joined: Tue Aug 26, 2014 12:32 pm

Re: UACMe - Defeating Windows User Account Control

Post by NytroRST » Fri Dec 19, 2014 7:43 am

It does not work for "Always notify".

For the default settings I get the following error:

Image

Microsoft Windows [Version 6.1.7601]

User avatar
EP_X0FF
Global Moderator
Posts: 4808
Joined: Sun Mar 07, 2010 5:35 am
Location: Russian Federation
Contact:

Re: UACMe - Defeating Windows User Account Control

Post by EP_X0FF » Fri Dec 19, 2014 8:38 am

Debug yourself, what's the problem? It works everywhere.
Ring0 - the source of inspiration

sww
Posts: 36
Joined: Sun Mar 14, 2010 9:35 pm
Location: Russian Federation
Contact:

Re: UACMe - Defeating Windows User Account Control

Post by sww » Fri Dec 19, 2014 9:22 am

NytroRST wrote:It does not work for "Always notify".
For the default settings I get the following error:
It looks like something is blocking it. LOL.
WBR
SWW

-->Virii Cthulhu has you<--

User avatar
EP_X0FF
Global Moderator
Posts: 4808
Joined: Sun Mar 07, 2010 5:35 am
Location: Russian Federation
Contact:

Re: UACMe - Defeating Windows User Account Control

Post by EP_X0FF » Fri Dec 19, 2014 9:35 am

Very much like an AV :)
Ring0 - the source of inspiration

NytroRST
Posts: 2
Joined: Tue Aug 26, 2014 12:32 pm

Re: UACMe - Defeating Windows User Account Control

Post by NytroRST » Fri Dec 19, 2014 9:35 am

Sorry, my mistake. Kaspersky blocked something, even if I allowed all actions.
Please delete previous post so people won't think it doesn't work.

Good job. :)

User avatar
Vrtule
Posts: 461
Joined: Sat Mar 13, 2010 9:14 pm
Location: Czech Republic
Contact:

Re: UACMe - Defeating Windows User Account Control

Post by Vrtule » Fri Dec 19, 2014 1:20 pm

Hello EP_X0FF,

thanks for sharing the code. In the past, I was playing with the "original" code downloadable from the link in your post, I also removed all of the C++ stuff and was able to make it working on Windows 7 with with code about seven times smallwer than the original.

It would be interesting to look at what prevented my demo from working on Windows 8+.

User avatar
EP_X0FF
Global Moderator
Posts: 4808
Joined: Sun Mar 07, 2010 5:35 am
Location: Russian Federation
Contact:

Re: UACMe - Defeating Windows User Account Control

Post by EP_X0FF » Fri Dec 19, 2014 1:27 pm

Vrtule wrote:It would be interesting to look at what prevented my demo from working on Windows 8+.

MS answer on your question by direct message in the w8+ sysprep.exe manifest.

Code: Select all

</asmv3:application>
  <!--
      Specifically load these DLLs from the specified path. This
      is done as a defence-in-depth approach to closing a known UAC
      exploit related to Sysprep.exe being auto-elevated. The list
      need not contain KnownDlls since those are always loaded
      by the loader from the system directory.
  -->
  <file
      loadFrom="%systemroot%\system32\actionqueue.dll"
      name="actionqueue.dll"
      />
  <file
      loadFrom="%systemroot%\system32\bcryptprimitives.dll"
      name="bcryptprimitives.dll"
      />
  <file
      loadFrom="%systemroot%\system32\cryptbase.dll"
      name="cryptbase.dll"
      />
  <file
      loadFrom="%systemroot%\system32\unattend.dll"
      name="unattend.dll"
      />
  <file
      loadFrom="%systemroot%\system32\wdscore.dll"
      name="wdscore.dll"
      />
Even if they manage to fix setupsqm.exe in the same way, there still will be the ways to defeat UAC until this whitelist exists.
Not redesign application but add yet another "defence-in-depth" crutch (in favorite MS style).
Ring0 - the source of inspiration

User avatar
kmd
Posts: 268
Joined: Mon Mar 15, 2010 4:09 am
Location: Russian Federation

Re: UACMe - Defeating Windows User Account Control

Post by kmd » Sat Dec 20, 2014 3:41 am

hehe nice work, interesting non-technical discuss here http://www.wilderssecurity.com/threads/ ... ol.371439/ got some lulz from there :lol:
do u have pitou dropper hash?

User avatar
EP_X0FF
Global Moderator
Posts: 4808
Joined: Sun Mar 07, 2010 5:35 am
Location: Russian Federation
Contact:

Re: UACMe - Defeating Windows User Account Control

Post by EP_X0FF » Sat Dec 20, 2014 4:43 am

kmd wrote:hehe nice work, interesting non-technical discuss here http://www.wilderssecurity.com/threads/ ... ol.371439/ got some lulz from there :lol:
do u have pitou dropper hash?
If you mean safegay post, where he copy-pasted my link and then copy-pasted links from source then it is typical wilderssecurity user who masturbate all the day on his bloatware security setup and meditating on mass media mantras from guys like M.Russinovich. There are no problem with them as they do not know anything about the system they use, except what officials told them. As for "Integrity Levels" bullshit and overall Mark post then - Russinovich were never security expert for start. All his contribution to Windows users ended 1 November 2006, when he was buyed by Microsoft, to provide mass media propaganda, as they critically required good and very well known media speaker with reputation who can help with their failured Vista, crappy Windows XP No Security Edition and further versions. When this was accomplished with Seven release he was moved to somewhere where he can do anything else - Azure. I can tell you this because we actually were at sysinternals for a long time (almost 4 years) and saw all the stuff happened after MS acquired Mark. Haha, you can't believe but that was main reason this site was created - when new MS administration censored all the security discussions on sysinternals and forum was flooded with fat trolls, including one idiot from wilders SystemPro.

As for UAC as security feature, it is a joke because we have:
1) Exploits for Windows 7 (that still works - what so hard to patch Windows 7?), available from earlier builds up to current full patched state. Abused ITW by multiple malware. Patched only in Win8, see post above.
2) Exploits for Windows 8/8.1/10TP available since Windows 8 release and not patched too.
Timeline 2009-2014 idiots still thinking UAC is good because Mark blah(1000$)blah(2000$)blah(100000$) told them so, he can't be wrong isn't it? UAC useful? No it is not, prooflink can be found in ITW malware, mostly bootkits. What to do? Turn it on the maximum level and pray it will work (ops malware actions can be verified by Microsoft), or switch to the regular user FINALLY where all this trash unavailable by Windows NT original design.
Ring0 - the source of inspiration

Post Reply