Powershell Add Name Resolution Policy Table Rule

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects powershell scripts that adds a Name Resolution Policy Table (NRPT) rule for the specified namespace. This will bypass the default DNS server and uses a specified server for answering the query.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "Add-DnsClientNrptRule" AND SCRIPTEXECUTED contains "-Namesp" AND SCRIPTEXECUTED contains "-NameSe" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Borna Talebi