OP seems impervious to best practice issued by Windows security professionals, including the OS vendor, NIST, DSD, etc.
I’m out 
You do you mate, good luck.
I think there’s enough info here for others to make up their own mind.
OP seems impervious to best practice issued by Windows security professionals, including the OS vendor, NIST, DSD, etc.
I’m out 
You do you mate, good luck.
I think there’s enough info here for others to make up their own mind.
This is probably an issue with the typing speed then. Initially, if I had posted again, it would have been a double post, which is why I edited it. Then suddenly people started replying and completed theirs before I was able to complete mine (incl your post), which is why stating that we agreed ended up being posted after your post that we did not agree.
So a ninja post in general is " back several posts after the discussion had moved on and edited your post". Will keep that in mind. That was not my intent here.
I am not really sure what your position is then. Is UAC useless or “required” for #6 (temporary disposable VM)? In that context, it is not required for anything. in protects nothing, neither the OS nor any data, nor is there any benefit to security within the container at all. It can only have the effect of breaking the software the VM was booted to run, prior to it getting deleted. It makes sense to disable UAC in the template VM used for creating temp clones right? Or do you think it should be enabled even in this context?
1)Blatant argument from authority, and 2) my suggestions on leaving it enabled in certain cases are not contradicted by those authorities (see my post of the different contexts and compare that to the contexts said authorities are referring to).
Your burden of proof is to show how UAC’s design principles have changed so much so that it should always be enabled no matter what even in situations like #3 and #6 since you have expressed that position for #3.
Noted, and why you only got a warning ![]()
In my opinion, I would still leave it enabled. While you don’t care about the VM, If something does manage to escalate in your temporary VM without your knowledge, it still may have network access and can be used as a jump off point to attack the local network.
Network access is still possible without elevation and UAC does not prevent that. A standard user account can still surf the net, so I am not sure what the point is here.
It literally provides no benefit here, and can only harm the user’s experience of their explicit use of the system as a designated temporary container. You seem to just really like UAC no matter what? Even in contexts where UAC has no OS security or data integrity benefits, even in situations where it breaks things for the user, and explicitly goes against the intended use of the system (run this one application and then be destroyed)?
I do not consider that a reasonable position because it is not one informed by both balancing the needs the user and the need to secure the OS. In situations where it interferes with the usage of the system and there is no need to switch between security boundaries, it should just be disabled to maximize the user experience.
This is actually incorrect because they are actually run in the same security boundary (same context).
Elevated AAM processes are especially susceptible to compromise because they run in the same user account as the AAM user’s standard-rights processes and share the user’s profile. Many applications read settings and load extensions registered in a user’s profile, offering opportunities for malware to elevate. For example, the common control dialogs load Shell extensions configured in a user’s registry key (under HKEY_CURRENT_USER), so malware can add itself as an extension to load into any elevated process that uses those dialogs.
https://web.archive.org/web/20100610231407/http://blogs.technet.com/b/markrussinovich/archive/2007/02/12/638372.aspxIndeed, but it does prevent things such as binding of privileged ports.
I never said I like UAC either, but IMO one would be silly to dismiss it. AV software will not catch most zero-day virii and it slows the PC down and I don’t like it, so should I also disable that?
Actually it does as stated above, and yes, while it “harms” the user’s experience, the fact that people are stupid and just click and run anything on their PCs has forced the hand of OS vendors to do such things because of the financial cost to the world in damages from compromised systems being used as part of a botnets to perform childish and immature actions like DDoS attacks is incredible.
From a systems security professional point of view, I am glad for this change as it has helped the internet ecosystem enormously. If it harms the user’s experience to save billions of $, so be it.
Rather than repeat a lot of what has already been said, I will argue this in relation to the title of the thread.
UAC provides real security in context of giving the administrator information and a prompt before making a decision to allow elevated access or not.
What it is designed to do is notify the local administrator that an application or process is attempting to Read/Write/Change access or a file within the core Windows system (or Windows system & settings if you have set to the highest restriction)
By default, the administrator attempts to run all processes and applications in standard user-mode unless elevated privilege is required which it then attempts to notify & prompt the administrator that what the software is attempting to do is run as a privileged user in context of the local administrator account.
Can you bypass this? Yes, but the majority of UAC bypassing generally exist as a NT/SYSTEM service as by default, running as SYSTEM ignores elevated access prompts.
EDIT: (adding)
In the majority of cases, to allow a process or service to run as SYSTEM, you must first allow the software or service to change it’s permission level as the local administrator first which will very likely bring a UAC prompt.
Actually they dont, which is why CreateRemoteThreadEx wont work on an elevated process from a non-elevated process. The security boundary wont allow it.
Edit for context:
hProcess
A handle to the process in which the thread is to be created. The handle must have the PROCESS_CREATE_THREAD, PROCESS_QUERY_INFORMATION, PROCESS_VM_OPERATION, PROCESS_VM_WRITE, and PROCESS_VM_READ access rights. In Windows 10, version 1607, your code must obtain these access rights for the new handle. However, starting in Windows 10, version 1703, if the new handle is entitled to these access rights, the system obtains them for you. For more information, see Process Security and Access Rights.
lpThreadAttributes
A pointer to a SECURITY_ATTRIBUTES structure that specifies a security descriptor for the new thread and determines whether child processes can inherit the returned handle. If lpThreadAttributes is NULL, the thread gets a default security descriptor and the handle cannot be inherited. The access control lists (ACL) in the default security descriptor for a thread come from the primary token of the creator.
Why? Its just for anti-cheat.
Because anti-cheat is and should be a seperate isolated (& elevated if needed) process and not part of the launcher. It breaks best practice of having a minimal attack surface.
What do you uae for game distribution? Steam is out of the question i assume.
Steam does not want elevated access, so yes, I use steam. Even EA(vil) do not put anti cheat into Origin, instead they used things like Punkbuster, which is dedicated to one thing and one thing only.
Actually, for a disposable VM, it makes more sense to disable networking completely for apps that should not need it.
It also makes sense to always auto-elevate since that is the intended purpose of the VM: to run the software. UAC cannot prevent binding of privliged ports in this context because it is the stated objective of the VM to provide the app with whatever it needs to run and then limit the damage through a hard boundary (the VM/host one). Therefore, anything that prevents the binding of privileged ports is illegitimate use of the system because it directly interferes with the stated purpose of the system.
I would also say that one would be silly to use it in situations where it is prohibitive of the user’s experience and could not have any possible benefit.
The comparison with AV, even in a temporary VM, does not hold because the AV’s scan of the binaries as being blacklisted somewhere is informative, but allowing an app to elevate does not provide that same information. In addition, you have already decided that it will run within the context of an administrator for it to do what it must, so there is no point in preventing that.
I have shown that it does not serve a benefit. Alternative VM-specific methods for hard enforcing boundaries exist, and the need to elevate within one cannot aid in that process.
/agree on the first part, but /disagree on allowing it harm “my” experience.
We disagree on what “context” means so we are talking past each other. By context I mean a security boundary that enforces a security policy, which is similar to how Mark talked about it. UAC by design allows for low level ILs to manipulate high ILs so they should be considered within the same security boundary context. UAC alone cannot provide that boundary or enforcement so it is not a significantly different context. If UAC genuenly provided a different context, it should be impossible for a low IL process to ever manipulate a high IL process (think different tabs on a web browser not sharing the same JS namespace). UAC allows for that manipulation, not the result of a bug in third party software design.
We are also talking past each other because I am talking about UAC as a feature that can be enabled/disabled, where as you are viewing it as inherently tied to everything, like Win32 create functions. If that were the case, then it would not be possible to disable it or the behavior of disabling it would also disable those functions, but they actually continue to work normally and independently of UAC.
Indeed, but this is an entirely different matter and falls under the Firewalling category. Windows does support this and you can firewall entire applications.
What if your VM is a web server and a bug allows some user to execute code remotely that asks for admin access? If you auto-elevate you just made it that much easier for the attacker.
You never stated the purpose of the system. Is it a VM as a VPN gateway, jump point? remote desktop? HTTP server? Your statement doesn’t hold true in all scenarios.
This is the crux of the issue, you personally don’t see how it could not have any possible benefit whereas those that work in this industry do, from security professionals to software engineers.
Perhaps you have a VM that is 100% isolated from the internet and is running only trusted and verified code, and does not contain any mission critical services or data. In this instance yeah, I can see UAC being somewhat useless to a point.
UAC does though step in though when a program tries to create/edit and/or delete files in system locations like “Program Files”. A software bug in a verified application might accidentally try to delete every file in C:\ recursively. Auto elevation would just let this happen.
It’s akin to: sudo rm / home/user/directory -Rf vs rm / home/user/directory -Rf
This is where you are wrong as pointed out several times, UAC does NOT allow a low level process to manipulate a high level process. It simply elevates a process, it’s up to that process to then decide if it wants to allow a low level process to interact with it. It’s not UAC! If that elevated process was dumb enough to share memory with another low level process or allow an untrusted unsigend low level process to interact with it, then the fault isn’t UAC, but the Application design.
Fantastic news. So if i use uac and edge, the malware will have to ask permission! Thank you, saves me so much time! How high of security level do you recommend? I can get rid of windows defender now.
In other words, using UAC to prohibit network access makes no sense, which was my point. Also: disabling the network in a VM is more analogous to unplugging the Ethernet cord than using a firewall.
This is not #6, but #7. Not a temporary disposable VM but a persistent one. My position on this is as stated above: “toss up. How much work would you lose if the VM crashed? honor user’s decision”. If there is only one application that will ever need elevation, then running as standard+UAC can make sense. Then it would be suspicious anything else ever asked to elevate.
The purpose of a temporary disposable VM is to run software in a configuration where it has all of the resources needed to run. If a hard security boundary exists (which UAC is not) that interferes with that process (standard user rights only, AV), then such boundary should be defeated to enable normal operation of that system. The security value of a system is -zero- if it cannot fulfill its stated objective and the goal of OS security and data integrity is to maintain the ability to meet the user’s requirement over time.
The above paragraphs contradict one another. As I have stated every time, whether or not UAC should be disabled or enabled depends on the context it runs in. My position is that certain instances exist where it makes sense to disable it. What do you mean by useless to a point? It is useless 100% in that context. Is it that hard to say it is useless in that extreme example? Just call it an extreme example instead.
you aren’t guaranteed that your elevated processes aren’t susceptible to compromise by those running at a lower IL
Look, UAC does not, and cannot prevent it. Playing word games about what exactly it is or is not allowing so the responsibility should not fall on it, does not change the fundamental fact that because it does not prevent it, means it cannot be described as implementing a security boundary and hence is not “real security”, which is the topic of this thread. It’s closer to a joke played on users by MS to send devs a message.
UAC doesn’t prohibit network access, again you show you fail to understand what UAC is.
Let’s put this as simple as possible.
UAC is a utility to give a program additional access to a system without prompting the user for a password but still informing the user that this program you are about to run wants more access then is normally needed for general use.
The security boundary you keep talking about is part of the WINDOWS securty model, NOT UAC. It has existed since Windows NT. Process separation, isolation, access control levels (ACLs), security contexts, tokens, userspace and kernel space separation are part of the Windows NT kernel.
UAC allows a program to request for and be granted some extra security tokens to perform some (not all) privileged operations. It is a NEW additional boundary to obtaining those extra privileges, prior there was NO boundary if you were like most people using the default Administrator level access user windows creates at install.
Turning UAC off removes that NEW boundary also. This boundary was added to help prevent things like code injections via software bugs from being able to just do stuff without flagging alarms to the user.
The usage might be legitimate, but how is the OS supposed to know if what a third party program is doing is legal/illegal?
Such as? You have not named one real example yet. In every scenario so far raised there exists a good reason for having UAC enabled.
You don’t get it. Attackers are looking for extreme issues to compromise the system/network. Things the developer has assumed can never happen, or is unlikely to ever happen. Simple example, Spectre/Meltdown… who could have predicted that people would figure out how to exploit the CPUs speculative execution feature to compromise system security?
What about row-hammer? Again, an extreme example of a possible flaw… but guess what, it happened.
History tells us that these “extreme examples” should NOT be considered “extreme”.
You aren’t guaranteed that the kernel drivers you load aren’t susceptible to compromise by those running at a lower IL. This is not a UAC issue, it’s a fundamental issue with how computers operate. You seem to think because UAC cant guarantee the security that it’s flawed. It can’t guarantee security because the entire OS can’t garuntee security.
Edit: See https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-1458 as an example where a security boundary would not save you because of human error.
Edit 2: Here is an example of an exploit that could be used on your disposable VM to compromize the host: https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-1471
So in summary, still leave the locks on the doors of a house you still barely care about.
This was in response to your comment that
Another way of saying that preventing apps from binding to privileged ports is that it prohibits network access for those apps that require being bound to those ports.
In a temporary VM, preventing this is pointless, and therefore so is UAC in that context. Let it do what it wants then destroy it. If it needs network access and you are suspicious, then set up an isolated network with a gateway that only goes out to the net without LAN access.
This either contradicts the following or you are perhaps off topic:
What’s a security boundary? It’s a wall through which code and data can’t pass without the authorization of a security policy. User accounts running in separate sessions are separated by a Windows security boundary, for example. One user should not be able to read or modify the data of another user, nor be able to cause other users to execute code, without the permission of the other user. If for some reason it was possible to bypass security policy, it would mean that there was a security bug in Windows (or third-party code that allows it).
It should be clear then, that neither UAC elevations nor Protected Mode IE define new Windows security boundaries.
Have you even read the articles the posts I keep linking to? If what they are saying is false, just find a new source that contradicts the information in them. Contradicting the article yourself, as someone who did not design or is responsible providing information for the engineering details of how UAC was implemented, amounts to your own opinion. You are entitled to your own opinion, but not your own facts.
temporary disposable VM (no reason not to elevate because hard boundaries exist and the OS is worthless), Kiosks (no reason to ever elevate because there is no legitimate use case for ever elevating).
off topic
The idea behind that line of thinking was to agree or disagree that UAC should be enabled or disabled because it serves a genuinely useful purpose inside of a temporary disposable VM. You have not made the case for why that could be so and seem to agree that it is useless in that context when you say the following. Please correct me if I am wrong.
Should UAC still be left enabled in that temporary disposable VM because maybe that software is a piece of software so sophisticated that it can break the VM->guest boundary but is also dumb enough to be blocked by UAC? Like really?
My position is actually that because UAC is not a security boundary, as defined above, it should not be considered a security boundary or feature itself. Neither the OS security nor the data integrity of the system is significantly affected regardless of the UAC setting. Maybe you are not confused about this point, but people in general are. UAC was never intended to be a security boundary, as defined above, and because of that it cannot be considered a security feature. MS is careful never to explicitly say it is, and Mark went out of his way to clarify that it is not.
UAC is like a house with a front door, and no back door, just an open space leading into the house. Locking the front door is not going to help much, just interfere with people who have keys walking into the house while doing nothing to prevent theft.
The reason this is not a valid comparison with UAC is that VM/Host transfers are explicitly prohibited by the security model of the system and are bugs. Bugs can be fixed. Same with your example of low IL processes hooking flawed 3rd party kernel drivers. The way of bypassing UAC is done in a similar manner, and, while UAC does not explicitly enable it, does nothing by-design to prevent it.
Because elevations and ILs don’t define a security boundary, potential avenues of attack , regardless of ease or scope, are not security bugs.
Because it is not meant to establish a security boundary and enforce a security policy, it cannot be described as a security feature. I do not mind calling it something else, like an “annoyance feature” and it does establish some sort of boundaries, but they do not qualify as security boundaries and bypassing those specific boundaries is not a breach of the Windows security model.
again it depends on what the VM is being used for, you still have not defined the context of this. There are many scenarios where you will not want to allow applications in the VM to bind to ports < 1024.
Let’s say it’s a remote desktop, so it shouldn’t bind to ports and you just firewall it from the world at your gateway to protect it. What about a malicious user/process that binds to port 53 and changes the system DNS server to hijack local DNS resolution?
Note I stated “boundary” not “security boundary”… it’s a final pass/go gate/prompt to giving the application additional access to allow it to have extra system access via the Windows Security model, which IS the “security boundary”.
Are you daft? I have quoted current Microsoft documentation on how these things work several times, from kernel space through to userspace. You are using an outdated 13-year-old article to support your view on technologies you clearly do not fully understand, and that has evolved over the last 13 years.
You also know that UAC is also used to de-elevate a process also, so as to sandbox processes. IE7 was the first to use it, and if you turned off UAC it breaks it’s sandboxing. Edge still uses it today and if you fully turn off UAC via a group policy it refuses to launch in an Admin enabled account.
I know i said i was out of this, however somehow the goalposts have shifted to “in a temporary VM” from a general advice “turn off UAC” as per the OP in a “non-disposable-vm” general guide
With a comment “do not skip steps unless you know what you are doing”, no less.
The people who don’t know what they are doing are exactly the people who should be leaving UAC turned on.
OP then shifts the goalposts to disposable VMs, etc.
Then has the gall to say “don’t tell me how to use my computer” when his original post was doing just that for everybody else as if he’s some authority on the subject.
If you’re going to post up a non-specific windows installation workflow/guide mate, don’t be surprised when people call you out on it being bad for general purpose use.
If you’re using it inside of disposable VMs - fine, you do you.
But you posted it without specifics and are now arguing against best practice from both the OS vendor and respected security authorities.
AS demonstrated many times in this thread, it’s clear you either don’t know what UAC is or does, or are deliberately glossing over it and re-defining your argument to some niche that is not relevant to the 99.9% of users who may read your non-specific windows install workflow and mistakenly use it to their own detriment.
Also - If you DO know what you’re doing - you’ve already slip-streamed your drivers into your OS image, and build machines (or VMs) from templates. Which doesn’t require any fucking about with UAC prompts.
If you’re repeatedly reinstalling Windows from RTM OS media on a regular basis - you’re doing it wrong. Seems to be a pattern here…
But hey, you do you.