PowerShell Add-DnsClientNrptRule Modifies NRPT Namespaces

Flags PowerShell scripts that add DNS Name Resolution Policy Table rules for a specified namespace.

FreeReviewedSigma · High · v2
Product
windows
Category
ps_script
Author
Borna Talebi (SigmaHQ), DRL 1.1
Published
2021-09-14
Updated
2026-07-31

ATT&CK techniques

Impact
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

What it detects

Detects PowerShell scripts that call Add-DnsClientNrptRule with parameters for modifying a DNS namespace (e.g., -Namesp and -NameSe). Changing the NRPT can redirect DNS resolution away from the default DNS server, which can affect name lookups for targeted domains. The detection relies on Script Block Logging content containing the relevant cmdlet name and namespace-related parameters.

Related detections2 linkedT1565 — drag to rearrange
Google Cloud DLP Re-identifies Sensitive Data via projects.content.reidentify
AWS EC2: DisableEbsEncryptionByDefault API call to turn off default EBS encryption
PowerShell Add-DnsClientNrptRule Modifies NRPT Namespaces
Pivot detection · T1565 · 2 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.