UACME/README.md

84 lines
5.3 KiB
Markdown
Raw Normal View History

2015-03-28 12:00:29 +00:00
# UACMe
* Defeating Windows User Account Control by abusing built-in Windows AutoElevate backdoor.
* More info http://www.kernelmode.info/forum/viewtopic.php?f=11&t=3643
# System Requirements
* x86-32/x64 Windows 7/8/8.1/10 (client, some methods however works on server version too).
2015-03-28 12:00:29 +00:00
* Admin account with UAC set on default settings required.
# Usage
Run executable from command line: akagi32 [Key] [Param] or akagi64 [Key] [Param]. See "Run examples" below for more info.
2015-10-12 10:38:28 +00:00
First param is number of method to use, second is optional command (executable file name including full path) to run. Second param can be empty - in this case program will execute elevated cmd.exe from
system32 folder.
Keys (watch debug ouput with dbgview or similar for more info):
* 1 - Leo Davidson sysprep method, this will work only on Windows 7 and Windows 8, used in multiple malware;
* 2 - Tweaked Leo Davidson sysprep method, this will work only on Windows 8.1.9600;
* 3 - Leo Davidson method tweaked by WinNT/Pitou developers, works from Windows 7 up to 10.0.10532;
2015-10-12 10:38:28 +00:00
* 4* - Application Compatibility Shim RedirectEXE method, from WinNT/Gootkit. Works from Windows 7 up to 8.1.9600;
* 5** - ISecurityEditor WinNT/Simda method, used to turn off UAC, works from Windows 7 up to Windows 10.0.100136;
2015-04-04 15:37:21 +00:00
* 6 - Wusa method used by Win32/Carberp, tweaked to work with Windows 8/8.1 also;
* 7** - Wusa method, tweaked to work from Windows 7 up to 10.0.10136;
* 8 - Slightly modified Leo Davidson method used by Win32/Tilon, works only on Windows 7;
* 9** - Hybrid method, combination of WinNT/Simda and Win32/Carberp + AVrf, works from Windows 7 up to 10.0.10136;
* 10 - Hybrid method, abusing appinfo.dll way of whitelisting autoelevated applications and KnownDlls cache changes, works from Windows 7 up to 10.0.10532;
2015-10-12 10:38:28 +00:00
* 11* - WinNT/Gootkit second method based on the memory patching from MS "Fix it" patch shim (and as side effect - arbitrary dll injection), works from Windows 7 up to 8.1.9600;
* 12 - Windows 10 sysprep method, abusing different dll dependency added in Windows 10 (works up to 10.0.10558);
* 13 - Hybrid method, abusing appinfo.dll way of whitelisting MMC console commands and EventViewer missing dependency, works from Windows 7 up to 10.0.10558;
* 14 - Presumable Win32/Zlader author method, abusing appinfo.dll way of whitelisting OOBE.exe, works from Windows 7 up to 10, fixed in Windows 10 10558 build.
2015-03-28 12:00:29 +00:00
Note:
2015-10-12 10:38:28 +00:00
* Several methods require process injection, so they won't work from wow64, use x64 edition of this tool;
* Method (4) unavailable in 64 bit edition because of Shim restriction;
* Method (6) unavailable in wow64 environment starting from Windows 8. Also target application unavailable in Windows 10;
* Method (11) implemented in x86-32 version;
2015-10-12 10:38:28 +00:00
* Method (13) implemented only in x64 version;
2015-03-28 12:00:29 +00:00
Run examples:
* akagi32.exe 1
* akagi64.exe 3
* akagi32 1 c:\windows\system32\calc.exe
* akagi64 3 c:\windows\system32\charmap.exe
2015-03-28 12:00:29 +00:00
# Warning
* This tool shows ONLY popular UAC bypass method used by malware, and reimplement some of them in a different way improving original concepts. There are exists different, not yet known to general public methods, be aware of this;
2015-03-28 12:00:29 +00:00
* Using (5) method will permanently turn off UAC (after reboot), make sure to do this in test environment or don't forget to re-enable UAC after tool usage;
2015-04-25 05:16:44 +00:00
* Using (5), (9) methods will permanently compromise security of target keys (UAC Settings key for (5) and IFEO for (9)), if you do tests on your real machine - restore keys security manually after you complete this tool usage;
* This tool is not intended for AV tests and not tested to work in aggressive AV environment, if you still plan to use it with installed bloatware AV soft - you use it at your own risk;
* If you run this program on real computer remember to remove all program leftovers after usage, for more info about files it drops to system folders see source code.
2015-03-28 12:00:29 +00:00
2015-10-12 10:38:28 +00:00
# Microsoft countermeasures
Methods fixed:
* 1 - Fixed only with Windows 8.1 release, still work on Windows 7;
* 2 - Fixed only in Windows 10 starting from earlier preview builds;
* 3 - Fixed only in Windows 10 TH2 starting from 1055X builds;
* 4 - Fixed in Windows 10 starting from first preview builds, earlier OS versions got KB3045645/KB3048097 fix;
* 5 - Fixed only in Windows 10 starting from 10147 build;
* 6 - Fixed only in Windows 10 starting from 10147 build;
* 7 - Fixed only in Windows 10 starting from 10147 build;
* 8 - Fixed only with Windows 8.1 release, still work on Windows 7;
* 9 - Fixed only in Windows 10 starting from 10147 build;
* 10 - Fixed only in Windows 10 TH2 starting from build 10548;
* 11 - Fixed in Windows 10 starting from first preview builds, earlier OS versions got KB3045645/KB3048097 fix;
* 14 - Fixed in Windows 10 TH2 starting from build 10548.
2015-10-12 10:38:28 +00:00
2015-03-28 12:00:29 +00:00
# Protection
* UAC turned on maximum level and full awareness about every window it will show;
* Account without administrative privileges.
# Malware usage
* It is currently known that UACMe used by Adware/Multiplug (9) and by Win32/Dyre (3). We do not take any responsibility for this tool usage in the malicious purposes. It is free, open-source and provided AS-IS for everyone.
2015-03-28 12:00:29 +00:00
# Build
* UACMe comes with full source code, written in C;
* In order to build from source you need Microsoft Visual Studio 2013/2015 and later versions.
2015-03-28 12:00:29 +00:00
# Authors
(c) 2014 - 2015 UACMe Project