PowerShell Script With File Hostname Resolving Capabilities
Description
Detects PowerShell scripts that have capabilities to read files, loop through them and resolve DNS host entries.
Query · sigma
selection: ScriptBlockText|contains|all: - 'Get-content ' - foreach - '[System.Net.Dns]::GetHostEntry' - Out-File condition: selection
Known false positives
- The same functionality can be implemented by admin scripts, correlate with name and creator