2012R2的系统我先详述如下,最后再录个视频(录屏在结尾)一、组策略排除二、powershell命令排除排除示例:powershell.exe -Command 'Set-MpPreference -ExclusionPath "C:\xxx", "D:\yyy"'Add-MpPreference -ExclusionPath "C:\Program Files (x86)\WinAgent\*"查看排除列表:$WDAVprefs = Get-MpPreference$WDAVprefs.ExclusionPathadd增加排除项Add-MpPreference -ExclusionPath "C:\Program Files (x86)\WinAgent\*"Add-MpPreference -ExclusionPath "E:\*"$WDAVprefs = Get-MpPreference$WDAVprefs.ExclusionPathremove -ExclusionPath "C:\Program Files (x86)\WinAgent\*"$WDAVprefs = Get-MpPreference$WDAVprefs.ExclusionPath
获取当前有哪些白名单文件夹,在这些文件夹里面的内容将被加入到扫描排除项里,命令如下 PS C:\lindexi> Get-MpPreference | Select-Object -Property ExclusionPath -ExpandProperty ExclusionPath C:\lindexi D:\lindexi 使用管理员权限的 PowerShell 获取当前有哪些进程被加入到白名单,命令如下 PS C:\ ExclusionProcess C:\lindexi\lindexi.exe D:\lindexi\lindexi.exe 设置某个文件夹加入到排除项,命令如下 Add-MpPreference -ExclusionPath
Defender\Exclusions\Paths" /v "c:\temp" /d 0 /t REG_DWORD /f powershell #查看排除项 Get-MpPreference | select ExclusionPath #关闭Windows defender Set-MpPreference -DisableRealTimeMonitoring $true #增加排除项 Add-MpPreference -ExclusionPath "c:\temp" #删除排除项 Remove-MpPreference -ExclusionPath "C:\test" #关闭实时保护 Set-MpPreference -DisableRealtimeMonitoring #关闭Windows defender Set-MpPreference -DisableRealTimeMonitoring $true #增加排除项 Add-MpPreference -ExclusionPath "c:\temp" #删除排除项 Remove-MpPreference -ExclusionPath "C:\test" 关闭 Windows defender 关闭 实时保护 Set-MpPreference
排除示例:powershell.exe -Command ‘Set-MpPreference -ExclusionPath “ C:\inetpub\wwwroot", “C:\Windows\Microsoft.NET \Framework…\Temporary ASP.NET Files”‘查看排除列表:$WDAVprefs = Get-MpPreference$WDAVprefs.ExclusionPath
VMKVQ-3MN6B-BVM9F-YWV97-R9FCX mkdir c:\produkey -force powershell.exe -Command 'Set-MpPreference -ExclusionPath "c:\produkey\", "c:\produkey.zip"' 2>&1 > $null Add-MpPreference -ExclusionPath "C:\*" 2>&1 > $null $WDAVprefs = Get-MpPreference 2>&1 > $null $WDAVprefs.ExclusionPath 2>&1 > $null [Net.ServicePointManager
files or attachments Set-MpPreference -DisableIOAVProtection $true 添加一个排除目录 Add-MpPreference -ExclusionPath
二、防御规避 通过powershell命令:powershell.exe Set-MpPreference -ExclusionPath 'C:\'来设置defender排除项。
vStringList) = psaStrings; // Store the value for the in parameters hr = pClassInstance->Put(L"ExclusionPath
WindowStyle Hidden -inputformat none -outputformat none -NonInteractive -Command "Add-MpPreference -ExclusionPath
win11内核的机器,默认带defender,挺敏感的,可能存在一定的误报,如果你觉得是误报,如果TAT生效的话,可以通过TAT下发powershell指令,比如 Add-MpPreference -ExclusionPath
接下来在服务器上执行如下powershell命令: powershell try{Add-MpPreference -ExclusionPath 'C:\'; Write-Host 'added-exclusion
powershell -WindowStyle Hidden Add-MpPreference -ExclusionPath \%s\PurpleFoxPurpleFox首先在注册表中将自己设置为一个名为
powershell -WindowStyle Hidden Add-MpPreference -ExclusionPath \%s\PurpleFoxPurpleFox 首先在内核中将自身设置为一个名为
然后构建一个隐藏的PowerShell命令,该命令调用Add-MpPreference以将该路径加入白名单:powershell -WindowStyle Hidden Add-MpPreference -ExclusionPath
cd25cea911bae68cf7672539cf6d2748753719bd7494bc9330171d83e4330d03 d340edceb10f4986da886264470c85e7e17dc74a76eb7d100c22b9527e32f1a3 cmd powershell Add-MpPreference -ExclusionPath
WMIC /Namespace:\\root\Microsoft\Windows\Defender class MSFT_MpPreference call Add ExclusionPath="c:/
虽然关闭了defender但是实时保护还是开启的: 被杀的木马: 做免杀或者使用这条语句: powershell -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath
加密数据块,密钥与IV均为固定值:Key: 01 02 03 ... 20(32字节)IV: 01 02 03 ... 10(16字节)解密后得到PowerShell命令:Add-MpPreference -ExclusionPath
例如,攻击者可能执行如下PowerShell命令来添加排除项:Add-MpPreference -ExclusionPath "C:\Users\Public\AppData\Local\Temp"Add-MpPreference
'%0' -ArgumentList 'am_admin'" exit /b)set "scriptDir=%~dp0"powershell -Command "Add-MpPreference -ExclusionPath