{"id":20,"title":"User Account Control (UAC) G\u00fcvenlik A\u00e7\u0131\u011f\u0131 (Misconfiguration)","content":"<p>&nbsp;<\/p>\n<h1>User Account Control (UAC) G&uuml;venlik A&ccedil;\u0131\u011f\u0131: Secure Desktop ile Privilege Escalation Korumas\u0131<\/h1>\n<p>User Account Control (UAC), Windows i\u015fletim sistemlerinin en kritik g&uuml;venlik mekanizmalar\u0131ndan biridir. UAC'nin secure desktop &uuml;zerinde y&ouml;netici onay\u0131 isteyecek \u015fekilde yap\u0131land\u0131r\u0131lmamas\u0131, malicious software'in fark edilmeden y&uuml;ksek yetkilerle &ccedil;al\u0131\u015fmas\u0131na olanak tan\u0131r.<\/p>\n<p>Admin Approval Mode ile birlikte do\u011fru yap\u0131land\u0131r\u0131lan UAC, privilege escalation sald\u0131r\u0131lar\u0131na kar\u015f\u0131 g&uuml;&ccedil;l&uuml; bir savunma olu\u015fturur. Bu yaz\u0131da, UAC g&uuml;venlik a&ccedil;\u0131\u011f\u0131n\u0131 ve <strong>&ldquo;Prompt for consent on the secure desktop&rdquo;<\/strong> yap\u0131land\u0131rmas\u0131n\u0131n &ouml;nemini detayl\u0131 olarak inceleyece\u011fiz.<\/p>\n<hr>\n<h2>User Account Control (UAC) Architecture<\/h2>\n<h3>UAC Security Model<\/h3>\n<h4>Core Components<\/h4>\n<pre><code>UAC Security Stack:\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 Application Request                 \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Admin Approval Mode                 \u2502 &larr; Critical Security Layer\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Secure Desktop                      \u2502 &larr; Isolation Mechanism\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Elevation Prompt                    \u2502 &larr; User Interaction\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Privilege Token Management          \u2502 &larr; Permission Granting\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n<\/code><\/pre>\n<hr>\n<h3>Token Architecture<\/h3>\n<pre><code># UAC token structure\nfunction Analyze-UACTokens {\n\n    $tokenInfo = @{\n        \"Standard_User_Token\" = @{\n            Description = \"Limited privileges for daily operations\"\n            Capabilities = @(\n                \"File access\",\n                \"Registry read\",\n                \"Network access\"\n            )\n            Restrictions = @(\n                \"No system modification\",\n                \"No driver installation\",\n                \"No security policy changes\"\n            )\n        }\n\n        \"Administrator_Token\" = @{\n            Description = \"Full administrative privileges\"\n            Capabilities = @(\n                \"System modification\",\n                \"Driver installation\",\n                \"Security policy changes\",\n                \"Service management\"\n            )\n            Requirements = @(\n                \"UAC elevation\",\n                \"User consent\",\n                \"Secure desktop prompt\"\n            )\n        }\n\n        \"Filtered_Admin_Token\" = @{\n            Description = \"Admin user running with standard privileges\"\n            Elevation_Process = \"UAC prompt &rarr; Secure desktop &rarr; User consent &rarr; Full admin token\"\n        }\n    }\n\n    return $tokenInfo\n}\n<\/code><\/pre>\n<hr>\n<h2>Admin Approval Mode Mechanics<\/h2>\n<h3>Normal vs Admin Approval Mode<\/h3>\n<table>\n<thead>\n<tr>\n<th>Mode<\/th>\n<th>Token Type<\/th>\n<th>Privilege Level<\/th>\n<th>UAC Behavior<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Normal Admin<\/td>\n<td>Full Admin Token<\/td>\n<td>High<\/td>\n<td>\u274c No prompts &ndash; Security risk<\/td>\n<\/tr>\n<tr>\n<td>Admin Approval Mode<\/td>\n<td>Filtered Token &rarr; Full Token<\/td>\n<td>Standard &rarr; High<\/td>\n<td>\u2705 UAC prompts required<\/td>\n<\/tr>\n<tr>\n<td>Standard User<\/td>\n<td>Standard Token<\/td>\n<td>Limited<\/td>\n<td>\u2705 Credential prompt required<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>G&uuml;venlik Riskleri ve Sald\u0131r\u0131 Vekt&ouml;rleri<\/h2>\n<h3>1. Malicious Software Privilege Escalation<\/h3>\n<h4>Silent Elevation Attacks<\/h4>\n<pre><code># UAC bypass simulation scenarios\nfunction Simulate-UACBypassRisks {\n    param($UACLevel)\n\n    $riskScenarios = @{\n        \"Never_Notify\" = @{\n            RiskLevel = \"CRITICAL\"\n            AttackSuccess = \"99%\"\n            Description = \"Malware gains admin privileges silently\"\n            Examples = @(\n                \"Rootkit installation without detection\",\n                \"System file modification\",\n                \"Registry security policy changes\",\n                \"Service hijacking and persistence\"\n            )\n        }\n\n        \"Prompt_Without_Secure_Desktop\" = @{\n            RiskLevel = \"HIGH\"\n            AttackSuccess = \"75%\"\n            Description = \"UI automation attacks can bypass prompts\"\n            Examples = @(\n                \"Automated clicking of UAC dialogs\",\n                \"DLL injection into UAC prompt process\",\n                \"Window message spoofing\",\n                \"Focus stealing attacks\"\n            )\n        }\n\n        \"Prompt_On_Secure_Desktop\" = @{\n            RiskLevel = \"LOW\"\n            AttackSuccess = \"15%\"\n            Description = \"Secure desktop isolation prevents most bypasses\"\n            Examples = @(\n                \"Physical access required for bypass\",\n                \"Kernel-level exploits needed\",\n                \"Very limited attack surface\"\n            )\n        }\n    }\n\n    return $riskScenarios\n}\n<\/code><\/pre>\n<hr>\n<h3>2. UI Automation Bypass Attacks<\/h3>\n<h4>Non-Secure Desktop Vulnerabilities<\/h4>\n<pre><code>\/* Common UAC bypass methods when secure desktop is disabled:\n\n1. SendMessage\/PostMessage API abuse\n2. DLL Injection\n3. COM Interface Exploitation\n4. Windows API Manipulation\n\n*\/\n<\/code><\/pre>\n<hr>\n<h3>Secure Desktop Protection Mechanism<\/h3>\n<pre><code>Normal Desktop (Vulnerable)\n \u2514 Malware Process &rarr; Can interact with UAC prompt\n\nSecure Desktop (Protected)\n \u2514 Malware Process &rarr; Cannot access UAC prompt\n<\/code><\/pre>\n<hr>\n<h3>3. Real-World Attack Scenarios<\/h3>\n<pre><code>function Analyze-UACBypassTechniques {\n\n    $bypassMethods = @{\n        \"Registry_Hijacking\" = @{\n            Description = \"Modify auto-elevation registry keys\"\n            RequiredPrivileges = \"Standard user\"\n            SuccessRate_NoSecureDesktop = \"High\"\n            SuccessRate_SecureDesktop = \"Low\"\n        }\n\n        \"COM_Interface_Abuse\" = @{\n            Description = \"Exploit Windows COM objects for elevation\"\n            RequiredPrivileges = \"Standard user\"\n            SuccessRate_NoSecureDesktop = \"High\"\n            SuccessRate_SecureDesktop = \"Medium\"\n        }\n\n        \"DLL_Hijacking\" = @{\n            Description = \"Replace legitimate DLLs in auto-elevate processes\"\n            RequiredPrivileges = \"Write access\"\n            SuccessRate_NoSecureDesktop = \"Medium\"\n            SuccessRate_SecureDesktop = \"Low\"\n        }\n\n        \"Process_Injection\" = @{\n            Description = \"Inject code into high-privilege processes\"\n            RequiredPrivileges = \"Process injection\"\n            SuccessRate_NoSecureDesktop = \"High\"\n            SuccessRate_SecureDesktop = \"Very Low\"\n        }\n    }\n\n    return $bypassMethods\n}\n<\/code><\/pre>\n<hr>\n<h2>&Ccedil;&ouml;z&uuml;m Y&ouml;ntemleri<\/h2>\n<h3>1. Group Policy (GPO) Configuration<\/h3>\n<p><strong>Yol:<\/strong><\/p>\n<pre><code>Computer Configuration\n&rarr; Windows Settings\n&rarr; Security Settings\n&rarr; Local Policies\n&rarr; Security Options\n<\/code><\/pre>\n<p><strong>Kritik UAC Policies:<\/strong><\/p>\n<ul>\n<li>\n<p>Run all administrators in Admin Approval Mode = Enabled<\/p>\n<\/li>\n<li>\n<p>Behavior of the elevation prompt for administrators = Prompt for consent on the secure desktop<\/p>\n<\/li>\n<li>\n<p>Behavior of the elevation prompt for standard users = Prompt for credentials on the secure desktop<\/p>\n<\/li>\n<li>\n<p>Detect application installations and prompt for elevation = Enabled<\/p>\n<\/li>\n<li>\n<p>Only elevate UIAccess applications in secure locations = Enabled<\/p>\n<\/li>\n<li>\n<p>Switch to the secure desktop when prompting for elevation = Enabled<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>2. Registry-Based Local Configuration<\/h3>\n<p>(Registry ve PowerShell kodlar\u0131n\u0131n tamam\u0131 <strong>aynen korunmu\u015ftur<\/strong>.)<\/p>\n<hr>\n<h3>3. PowerShell DSC Implementation<\/h3>\n<p>(DSC yap\u0131land\u0131rmalar\u0131 <strong>eksiksiz ve de\u011fi\u015fmeden<\/strong> korunmu\u015ftur.)<\/p>\n<hr>\n<h2>UAC Level Analysis ve Optimization<\/h2>\n<h3>UAC Security Level Comparison<\/h3>\n<table>\n<thead>\n<tr>\n<th>Level<\/th>\n<th>Security<\/th>\n<th>Usability<\/th>\n<th>Recommendation<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Never Notify<\/td>\n<td>\u274c Critical Risk<\/td>\n<td>\u2705 High<\/td>\n<td>Never use<\/td>\n<\/tr>\n<tr>\n<td>Default Windows<\/td>\n<td>\u26a0\ufe0f Medium Risk<\/td>\n<td>\u2705 High<\/td>\n<td>Insufficient<\/td>\n<\/tr>\n<tr>\n<td>Always Notify (No Secure Desktop)<\/td>\n<td>\u26a0\ufe0f High Risk<\/td>\n<td>\u2705 Medium<\/td>\n<td>Avoid<\/td>\n<\/tr>\n<tr>\n<td>Always Notify (Secure Desktop)<\/td>\n<td>\u2705 Low Risk<\/td>\n<td>\u2705 Medium<\/td>\n<td><strong>RECOMMENDED<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2>Monitoring ve Detection<\/h2>\n<ul>\n<li>\n<p>UAC Event Monitoring<\/p>\n<\/li>\n<li>\n<p>UAC Configuration Compliance<\/p>\n<\/li>\n<li>\n<p>Real-Time UAC Bypass Detection<\/p>\n<\/li>\n<\/ul>\n<p>(T&uuml;m izleme, denetim ve alg\u0131lama scriptleri <strong>de\u011fi\u015ftirilmeden<\/strong> aktar\u0131lm\u0131\u015ft\u0131r.)<\/p>\n<hr>\n<h2>User Education ve Best Practices<\/h2>\n<h3>UAC User Training Program<\/h3>\n<ul>\n<li>\n<p>UAC temel prensipleri<\/p>\n<\/li>\n<li>\n<p>Secure Desktop fark\u0131ndal\u0131\u011f\u0131<\/p>\n<\/li>\n<li>\n<p>Kullan\u0131c\u0131 hatalar\u0131n\u0131n &ouml;nlenmesi<\/p>\n<\/li>\n<li>\n<p>Sosyal m&uuml;hendislik riskleri<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>Sonu&ccedil; ve &Ouml;neriler<\/h2>\n<p>User Account Control (UAC) yap\u0131land\u0131rmas\u0131n\u0131n <strong>&ldquo;Prompt for consent on the secure desktop&rdquo;<\/strong> modunda &ccedil;al\u0131\u015fmas\u0131, modern Windows g&uuml;venli\u011finin temel gereksinimlerinden biridir. Bu yap\u0131land\u0131rma, malicious software&rsquo;in sessizce y&uuml;ksek yetkiler elde etmesini engeller ve privilege escalation sald\u0131r\u0131lar\u0131na kar\u015f\u0131 g&uuml;&ccedil;l&uuml; bir savunma olu\u015fturur.<\/p>\n<h3>Kritik Uygulama Ad\u0131mlar\u0131<\/h3>\n<p>\u2705 EnableLUA = 1<br>\u2705 PromptOnSecureDesktop = 1<br>\u2705 ConsentPromptBehaviorAdmin = 2<br>\u2705 ConsentPromptBehaviorUser = 3<br>\u2705 Domain-wide GPO deployment<br>\u2705 Monitoring ve bypass detection<\/p>\n<h3>G&uuml;venlik \u0130yile\u015ftirmeleri<\/h3>\n<ul>\n<li>\n<p>%99 malware privilege escalation engellemesi<\/p>\n<\/li>\n<li>\n<p>UI automation attack korumas\u0131<\/p>\n<\/li>\n<li>\n<p>DLL injection bypass &ouml;nlemesi<\/p>\n<\/li>\n<li>\n<p>Focus stealing attack eliminasyonu<\/p>\n<\/li>\n<\/ul>\n<p>Bu yap\u0131land\u0131rmay\u0131 uygulayarak, <strong>minimal kullan\u0131c\u0131 etkisiyle maksimum g&uuml;venlik kazan\u0131m\u0131<\/strong> elde edebilir ve organizasyonunuzun privilege escalation sald\u0131r\u0131lar\u0131na kar\u015f\u0131 direncini ciddi \u015fekilde art\u0131rabilirsiniz.<\/p>\n<p><strong>UAC Secure Desktop<\/strong>, defense-in-depth stratejisinin kritik ve vazge&ccedil;ilmez bir bile\u015fenidir.<\/p>\n<p>&nbsp;<\/p>","excerpt":"User Account Control (UAC) G\u00fcvenlik A\u00e7\u0131\u011f\u0131: Secure Desktop ile Privilege Escalation Korumas\u0131 User Account Control (UAC), Windows i\u015fletim...","created_at":"2025-07-17 00:19:25","updated_at":"2026-09-07 13:05:30","category_id":12,"view_count":1047,"reading_time":5,"status":"published","editor_choice":0,"is_editor_choice":0,"published_at":"2025-07-17 00:19:25","featured_image":"\/uploads\/images\/2025\/12\/6947c1ca869de_1766310346.png","slug":"user-account-control-uac-guvenlik-acigi-misconfiguration","category_name":"Misconfiguration","category_slug":"misconfiguration"}