{"id":"4368354e-1797-463c-bc39-a309effbe8d7","title":"Powershell Add Name Resolution Policy Table Rule","description":"Detects powershell scripts that adds a Name Resolution Policy Table (NRPT) rule for the specified namespace.\nThis will bypass the default DNS server and uses a specified server for answering the query.\n","author":"Borna Talebi","status":"test","level":"high","date":"2021-09-14","modified":"2022-10-09","tags":["attack.impact","attack.t1565"],"technique_ids":["T1565"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Unknown"],"references":["https://twitter.com/NathanMcNulty/status/1569497348841287681","https://learn.microsoft.com/en-us/powershell/module/dnsclient/add-dnsclientnrptrule?view=windowsserver2022-ps"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_add_dnsclient_rule.yml","source_sha256":"45b49889677e87a2c5ae803496f5ae982ee3450a502502bab52a587cc76b8eb4","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_add_dnsclient_rule.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Powershell Add Name Resolution Policy Table Rule\nid: 4368354e-1797-463c-bc39-a309effbe8d7\nstatus: test\ndescription: |\n  Detects powershell scripts that adds a Name Resolution Policy Table (NRPT) rule for the specified namespace.\n  This will bypass the default DNS server and uses a specified server for answering the query.\nreferences:\n    - https://twitter.com/NathanMcNulty/status/1569497348841287681\n    - https://learn.microsoft.com/en-us/powershell/module/dnsclient/add-dnsclientnrptrule?view=windowsserver2022-ps\nauthor: Borna Talebi\ndate: 2021-09-14\nmodified: 2022-10-09\ntags:\n    - attack.impact\n    - attack.t1565\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|contains|all:\n            - 'Add-DnsClientNrptRule'\n            - '-Namesp'\n            - '-NameSe'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1565","id":"T1565","name":"Data Manipulation","page":"techniques/enterprise/T1565/"}],"data_path":"data/detection-rules/4368354e-1797-463c-bc39-a309effbe8d7.json","kind":"sigma"}
