Suspicious PowerShell Script With File Hostname Resolving Capabilities (via ps_script)
This rule detects PowerShell scripts that have capabilities to read files, loop through them and resolve DNS host entries.
SigmamediumWindowsv1
sigma
suspicious-powershell-script-with-file-hostname-resolving-capabilities-via-ps-script
title: Suspicious PowerShell Script With File Hostname Resolving Capabilities (via ps_script)
id: c4bea436-9317-56d4-b517-359115e5114b
status: stable
description: This rule detects PowerShell scripts that have capabilities to read files, loop through them and resolve DNS host entries.
references:
- https://attack.mitre.org/techniques/T1020/
- https://www.fortypoundhead.com/showcontent.asp?artid=24022
- https://labs.withsecure.com/publications/fin7-target-veeam-servers
author: Huntrule Team
date: 2026-01-16
tags:
- attack.exfiltration
- attack.t1020
logsource:
product: windows
category: ps_script
definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
selection:
ScriptBlockText|contains|all:
- 'Get-content '
- 'foreach'
- '[System.Net.Dns]::GetHostEntry'
- 'Out-File'
condition: selection
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.