
Microsoft Signed PowerShell scripts
Microsoft 서명 PowerShell 스크립트
C:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\DataCollection에서 사용 가능한 모든 서명된 스크립트 목록
기본적으로 파일에 액세스할 수 없습니다. TrustedInstaller 권한이 필요합니다.
https://github.com/Mr-Un1k0d3r/EDRs/blob/main/elevate_to_system_or_trustedinstaller.c
> elevate trusted
[GetProcByPID] Process winlogon.exe PID is 1640
[ElevateSystem] ImpersonateByPID(SYSTEM) succeeded.
[GetTrustedInstallerPID] QueryServiceStatusEx need 36 bytes.
[GetTrustedInstallerPID] TrustedInstaller Service PID is 14108
[ElevateTrustedInstaller] ImpersonateByPID(TrustedInstaller) succeeded.
[main] (SYSTEM) Token HANDLE 0x00000000000000AC.
[main] (TrustedInstaller) Token HANDLE 0x00000000000000D8.
[CreateProcessImpersonate] MultiByteToWideChar need 8 bytes.
새로 생성된 cmd.exe를 사용하여 폴더를 탐색할 수 있습니다.
레지스트리를 조회할 수 있습니다:
import-module .\2495bc93-83e1-44f8-a623-46ad2323ee99.ps1
Get-RegistryValue -RegistryLocation HKLM\SYSTEM\CurrentControlSet\Services\sense -RegistryKey Start
0
2