Sigma rule: Powershell Add Name Resolution Policy Table Rule

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-3c83cf740df4, updated 2022-10-09T00:00:00.000Z.

Rule

Title
Powershell Add Name Resolution Policy Table Rule
Status
test
Level
high
Author
Borna Talebi
Date
2021-09-14
Modified
2022-10-09
File
rules/windows/powershell/powershell_script/posh_ps_add_dnsclient_rule.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains|all:
        - 'Add-DnsClientNrptRule'
        - '-Namesp'
        - '-NameSe'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.impact
  • attack.t1565

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_add_dnsclient_rule.yml

Sources and licences

  • SigmaHQ

    "Powershell Add Name Resolution Policy Table Rule" by Borna Talebi (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_add_dnsclient_rule.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Powershell Add Name Resolution Policy Table Rule",
entity page, dataset version ref-3c83cf740df4, updated 2022-10-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/4368354e-1797-463c-bc39-a309effbe8d7 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 4368354e-1797-463c-bc39-a309effbe8d7, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.