Windows DNS Role Installation via PowerShell
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects installation of the Windows DNS Server role using PowerShell (Install-WindowsFeature, Add-WindowsFeature) or DISM commands.
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND ( PROCESSNAME endswith "\powershell.exe,\pwsh.exe,\powershell_ise.exe,\pwsh-preview.exe,\Dism.exe" OR ORIGINALFILENAME = "powershell_ise.exe,PowerShell.exe,pwsh.dll,DismHost.exe" ) AND ( COMMANDLINE contains "Install-WindowsFeature DNS,Add-WindowsFeature DNS,DNS-Server-Full-Role" )
select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID
Detection
Execution Mode
realtime
Log Sources
Windows


