Detectionmediumtest
Testing Usage of Uncommonly Used Port
Adversaries may communicate using a protocol and port paring that are typically not associated. For example, HTTPS over port 8088(Citation: Symantec Elfin Mar 2019) or port 587(Citation: Fortinet Agent Tesla April 2018) as opposed to the traditional port 443.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
Requirements: Script Block Logging must be enabled
Detection Logic
Detection Logic2 selectors
detection:
selection:
ScriptBlockText|contains|all:
- Test-NetConnection
- '-ComputerName '
- '-port '
filter:
ScriptBlockText|contains:
- ' 443 '
- ' 80 '
condition: selection and not filterFalse Positives
Legitimate administrative script
MITRE ATT&CK
Tactics
Techniques
Rule Metadata
Rule ID
adf876b3-f1f8-4aa9-a4e4-a64106feec06
Status
test
Level
medium
Type
Detection
Created
Sun Jan 23
Author
Path
rules/windows/powershell/powershell_script/posh_ps_test_netconnection.yml
Raw Tags
attack.command-and-controlattack.t1571