Skip to content

Commit ecb8b41

Browse files
author
Keshon Karishan
committed
Update Test-NetConnection rule metadata and tags (#6132)
1 parent 282369f commit ecb8b41

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

rules/windows/powershell/powershell_script/posh_ps_test_netconnection.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
title: Testing Usage of Uncommonly Used Port
1+
title: PowerShell Port Probing Via Test-NetConnection
22
id: adf876b3-f1f8-4aa9-a4e4-a64106feec06
33
status: test
4-
description: |
5-
Adversaries may communicate using a protocol and port paring that are typically not associated.
6-
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.
4+
description: Detects the use of the PowerShell cmdlet 'Test-NetConnection' to probe remote network ports, which is often used by adversaries for host discovery or network service scanning.
75
references:
86
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1571/T1571.md#atomic-test-1---testing-usage-of-uncommonly-used-port-with-powershell
97
- https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2022-ps
108
author: frack113
119
date: 2022-01-23
10+
modified: 2026-07-14 # Updated to reflect today's alignment changes
1211
tags:
13-
- attack.command-and-control
14-
- attack.t1571
12+
- attack.discovery
13+
- attack.t1046 # Realigned to Network Service Scanning
1514
logsource:
1615
product: windows
1716
category: ps_script
@@ -28,5 +27,5 @@ detection:
2827
- ' 80 '
2928
condition: selection and not filter
3029
falsepositives:
31-
- Legitimate administrative script
30+
- Legitimate administrative scripts or network diagnostics run by systems administrators.
3231
level: medium

0 commit comments

Comments
 (0)