Disabling UAC Because It Doesn't Provide Real Security

dab

dab?

Are they even comparable. UAC is essentially privilege escalation control at its core concept. aka sudo

for apparmour type security your probably more looking at app control, file access protection etc that comes with security centre functionality.

since admin accounts are using non-privilaged contexts by default this would be like running a normal user with sudo permissions, not like running root and using sudo since root has no context separation.

You’re thinking on running admin with no security, no context separation and no elevation control.

You do realize that for a non elevated process to manipulate an elevated process the elevated process has to do something dumb in the first place to allow it. Windows does put a boundary here to prevent this unless the application is designed specifically to allow it.

Windows and every modern OS does the same thing when crossing from userspace to kernel space, how else would the system operate for even basic things such as I/O, etc?

As shown earlier, an elevated process like a Ring 0 kernel driver can map some memory and allow a non elevated and even non-admin application to use said memory. It may even map to a phsical buffer on a physical device. It’s up to that driver to ensure that nothing malicious can be done with that buffer.

Further to that syscalls, NT API calls, and driver IOCTL calls accept and take user arguments/buffers from userspace and copy them into kernel space for use. Again, it’s up to the API/driver/kernel to sanatize this data before making use of it. Failure to do so would be a complete and total system security compromise.

In this way every single application on every single system is able to manipulate a core privileged application (the kernel). Is this a security flaw too?

The onus is on the application asking for Admin elevation to be secure. Just like if you were given the keys to your work office, the onus is on you to ensure those keys are kept in a secure location. It’s not the buildings fault if you just hand those keys to anyone that asks for them.

Read the post where I responded to @anon75264233 and it has a list of different contexts. That one explains most of the core issues in this thread in a single post.

There are different configurations listed there and some listed are appropriate to enable or disable UAC. The idea is to balance what “security” means in different contexts since it can mean at least OS security and data integrity. Because UAC itself is convenient in certain configurations, it should be left enabled for them (general use when doing standard account), but otherwise disabled if the context that it is running in does not make sense (AAM, UAC in a temporary VM, initial setup, or Kiosk).

More practically, if this thread can be summed up as “this is what I want to do on my machine” then OK. Do the thing. It’ll be done because it’s your machine.

If this thread can be summed up with “this what other people should do on their machines”, then no. The thing will not be done because it’s not your machine.

If this thread can be summed up with “this is my opinion and I am right and I will not stop posting until someone agrees with me.” than OK. I, with absolutely no IT training, certification, or background, declare that Peanut253 is right.

OK? Is that what we’re seeking here?

If I have missed the purpose of the thread in any of those options, it’s likely that it wasn’t specifically outlined in any of the previous posts and thus the thread appears as a argument.

Yes, I get this. None of that relates to UAC, which is why I think it is off topic.

Those protections, needing to use the correct API calls to manipulate core OS services, exist independent of UAC and therefore cannot be as to point a merit for UAC.

The idea is to create a security boundary to prevent single applications from administering a different security policy than the one they have been assigned. UAC does not do that, and is therefore not a security feature, as we have both agreed.

lol @ your post Another thing about this thread is to clear up the misconception that people think UAC = security feature, which is a very common misconception because MS has no intention of clearly saying that it is not. This thread clears that up. @gnif and I both agree on that.

Edited by gnif: Don’t ninja edit and quote me for things I did not say!

Ideally it should raise awareness that UAC in AAM is problematic and that people on their personal systems should implement a clear security boundary, switching to standard user accounts (which has been the advice in this thread so far) or like VMs. I am also making the point that if a clear security boundary already exists in a context where it will never be crossed in a legitimate use case, then UAC (a convenient method for crossing between boundaries) should just be disabled. Think Kiosks or lab computers in a library, or users that run as native admin + do everything in VMs (similar to quebes os).

You keep saying this but I never did agree to your statement. Quoting you is not an agreement.

A ring 3 non-elevated process manipulating data fed to a ring 0 process falls under this exactly.

So lets say uac performed its function. Has a user ever clicked “No”?

I often do, it’s often a deciding factor if I use an application. For example, Uplay I refuse to use due to it’s inststance of elevated access for a “games” platform.

Yes, in all options that UAC triggers i think i’ve clicked no in at least one occasion for each. I expect an application to run without elevation and it asks for it. nope, not expected behaviour so its stopped.

@Peanut253 This is a public warning, do NOT ninja edit your post to implicate me in things I did not agree to. You do realize that I am a forum moderator and this thread already has the attention of several moderators. This is very troll-like behaviour!

IF is the key word here, I never said it’s not a security feature, nor did I say it is.

You implied agreement here:

and here:

If I misinterpted your position on this due to the above statements then I apologize, and will not do so in the future. If you do believe that UAC is a valuable security feature would you mind clearly stating so?

What is your position on the topic?

How can “even if” be an implied agreement.

“I like cats even if people say cats are bad”, does that mean I agree that cat’s are bad?

I am undecided on that point. I do however know that many of your reasons for stating it’s not a security feature do not hold true to how the operating system works as a whole. Stating it’s not a security feature because it allows a non elevated process to interact with an elevated process which had to consent to such interaction in the first place is invalid.

Dang. I wished we had uac back when i got all that malware from porn sites. Wouldnt have to restore my pc every week.

I am not sure what a “ninja edit” in this context is. I tend to edit my posts only when there is a typo that changes the meaning or to avoid double posting. The edit you did to my post was an attempt at avoiding double posting. I was clearly mistaken in our agreement on that specific issue/wording, but how is that a “ninja edit”?

What is your opinion on leaving UAC enabled or disabled purely within the context of “elevations” or “auto-elevations” (not discussing Secure desktop atm) for the following contexts and why?

My answers are

  1. enabled, legitimate use case of standard user account needing occasional admin rights and crossing a security boundary
  2. disabled, the admin has decided that no legitimate use case exists for elevation
  3. disabled, AAM would be pointless here, and if needed UAC can be enabled after the process completes
  4. disabled, the user/admin does not care about either OS or data security. The system is easily replacable. It would be admin + UAC off for Steam, or local user + UAC off for a Kiosk.
  5. toss up, has the user implemented other reliable security boundaries? The user’s decision should be honored, but I tend to prefer disabled and implement distinct data integrity boundaries (Data on C:\ will be deleted when your OS crashes, but D:\ will not be touched, or VMs).
  6. disabled, 100% inconsequential to disable it and enabling it would prevent legitimate use of the system
  7. toss up. How much work would you lose if the VM crashed? honor user’s decision

Edge has a isolated browsing setup you can enable for your dodgy pron needs.

I’ve never seen such a passionate discussion over UAC before.

pops more popcorn

You went back several posts after the discussion had moved on and edited your post to directly state that we agree on a matter immediately after I told you we didn’t agree.

It’s required and better than nothing. I do not think it’s a great option, but I also can not see a better or more effective way from development and security POV to implement it without “annoying the users”. As for how effective it is, the onus is on the user. Could it be done better such as providing finer grained control? yes. Do I think it’s useless? No.