Does the vault use dynamic high ports, and is this behavior a security concern when seen in a utility like Netstat?

Does the vault use dynamic high ports, and is this behavior a security concern when seen in a utility like Netstat?

87
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:57 PM


Question


Does the vault use dynamic high ports, and is this behavior a security concern when seen in a utility like Netstat?
Ex.
C:\Windows\system32>tasklist
Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
...
mysqld-nt.exe                  640 Services                   0    162,132 K
dbmain.exe                    1392 Services                   0     38,800 K
ENE.exe                       2480 Services                   0     16,348 K

PARagent.exe                  1172 Services                   0     10,716 K
...

C:\Windows\system32>netstat -ano
Active Connections
  Proto  Local Address          Foreign Address        State           PID
  ...    ...                    ...                    ...             ...
  TCP    0.0.0.0:1858           0.0.0.0:0              LISTENING       1392
  TCP    10.0.1.2:1858          10.0.1.2:49208         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49171         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49173         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49174         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49181         FIN_WAIT_2      1392
  TCP    10.0.1.2:1858          10.0.2.2:49196         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49207         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49220         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49223         ESTABLISHED     1392
  TCP    10.0.1.2:49208         10.0.1.2:1858          ESTABLISHED     2480
  TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640
  TCP    127.0.0.1:3306         127.0.0.1:49156        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49183        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49184        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49185        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49186        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49187        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49188        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49189        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49190        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49191        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49192        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49193        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49194        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49195        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49196        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49197        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49198        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49199        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49200        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49201        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49202        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49203        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49204        ESTABLISHED     640
  TCP    127.0.0.1:49156        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49183        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49184        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49185        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49186        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49187        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49188        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49189        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49190        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49191        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49192        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49193        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49194        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49195        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49196        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49197        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49198        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49199        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49200        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49201        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49202        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49203        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49241        127.0.0.1:53552        ESTABLISHED     1392
  UDP    0.0.0.0:51984          *:*                                    1172

  UDP    127.0.0.1:63450        *:*                                    1392

  ...    ...                    ...                    ...             ...


Environment


10.5;10.10;11.5;11.6;11.7;12.0;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Vault Server;Vault

Answer


The above example is not showing the Idira components listening on dynamic high ports. As of Microsoft OS Windows 2008 and newer, the Dynamic Port range by default is 49152 to 65535. None of the LISTENING ports fall in that range.

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    0.0.0.0:1858           0.0.0.0:0              LISTENING       1392
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640


With that said, you do see a number of ports from the Dynamic port range listed for various Idira Component processes, such as the one below: 

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============

dbmain.exe                    1392 Services                   0     38,800 K

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    127.0.0.1:49156        127.0.0.1:3306         ESTABLISHED     1392


These entries are not for that process listening on that port but rather using that port for communication. In the case above dbmain used a dynamic high port (49156) to communicate to the mysqld-nt process on mysqld-nt's listening port (3306)

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============

mysqld-nt.exe                  640 Services                   0    162,132 K
dbmain.exe                    1392 Services                   0     38,800 K

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    127.0.0.1:49156        127.0.0.1:3306         ESTABLISHED     1392
TCP    127.0.0.1:3306         127.0.0.1:49156        ESTABLISHED     640
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640


Next you should notice the "LocalAddress" used for the listening port. Those listening on the 127.0.0.1 loopback address will only listen to loopback communications, such as with the Listening port for mysqld-nt.exe. They are not listening on the Routable network address.

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640


Now, notice that PARagent.exe is communicating on a dynamic high port with the UDP protocol and it bound to all addresses on the system (0.0.0.0:51984). This port is being used by PARagent for outbound UDP messages.  In this case for SNMP.
Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============

PARagent.exe                  1172 Services                   0     10,716 K

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
UDP    0.0.0.0:51984          *:*                                    1172


The last thing to note is that by default only ICMP and Port 1858 to dbmain.exe are allowed inbound to the Vault server. When the Remote Agent is configured additional default rules are added for ICMP and Port 9022 to the PARagent.exe process. Any other inbound communication must be opened up by the administrator. It is not allowed by the default configuration.


Additional Information


Details

Q:
 

Does the vault use dynamic high ports, and is this behavior a security concern when seen in a utility like Netstat?

 

Ex.

C:\Windows\system32>tasklist

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
...
mysqld-nt.exe                  640 Services                   0    162,132 K
dbmain.exe                    1392 Services                   0     38,800 K
ENE.exe                       2480 Services                   0     16,348 K

PARagent.exe                  1172 Services                   0     10,716 K
...

C:\Windows\system32>netstat -ano

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  ...    ...                    ...                    ...             ...
  TCP    0.0.0.0:1858           0.0.0.0:0              LISTENING       1392
  TCP    10.0.1.2:1858          10.0.1.2:49208         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49171         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49173         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49174         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49181         FIN_WAIT_2      1392
  TCP    10.0.1.2:1858          10.0.2.2:49196         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49207         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49220         ESTABLISHED     1392
  TCP    10.0.1.2:1858          10.0.2.2:49223         ESTABLISHED     1392
  TCP    10.0.1.2:49208         10.0.1.2:1858          ESTABLISHED     2480
  TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640
  TCP    127.0.0.1:3306         127.0.0.1:49156        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49183        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49184        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49185        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49186        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49187        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49188        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49189        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49190        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49191        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49192        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49193        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49194        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49195        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49196        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49197        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49198        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49199        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49200        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49201        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49202        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49203        ESTABLISHED     640
  TCP    127.0.0.1:3306         127.0.0.1:49204        ESTABLISHED     640
  TCP    127.0.0.1:49156        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49183        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49184        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49185        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49186        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49187        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49188        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49189        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49190        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49191        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49192        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49193        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49194        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49195        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49196        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49197        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49198        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49199        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49200        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49201        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49202        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49203        127.0.0.1:3306         ESTABLISHED     1392
  TCP    127.0.0.1:49241        127.0.0.1:53552        ESTABLISHED     1392
  UDP    0.0.0.0:51984          *:*                                    1172

  UDP    127.0.0.1:63450        *:*                                    1392

  ...    ...                    ...                    ...             ...

 

A:
 

The above example is not showing the Idira components listening on dynamic high ports. As of Microsoft OS Windows 2008 and newer, the Dynamic Port range by default is 49152 to 65535. None of the LISTENING ports fall in that range.

 

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    0.0.0.0:1858           0.0.0.0:0              LISTENING       1392
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640


With that said, you do see a number of ports from the Dynamic port range listed for various Idira Component processes, such as the one below: 

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============

dbmain.exe                    1392 Services                   0     38,800 K

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    127.0.0.1:49156        127.0.0.1:3306         ESTABLISHED     1392

 

These entries are not for that process listening on that port but rather using that port for communication. In the case above dbmain used a dynamic high port (49156) to communicate to the mysqld-nt process on mysqld-nt's listening port (3306)

 

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============

mysqld-nt.exe                  640 Services                   0    162,132 K
dbmain.exe                    1392 Services                   0     38,800 K

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    127.0.0.1:49156        127.0.0.1:3306         ESTABLISHED     1392
TCP    127.0.0.1:3306         127.0.0.1:49156        ESTABLISHED     640
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640

 

Next you should notice the "LocalAddress" used for the listening port. Those listening on the 127.0.0.1 loopback address will only listen to loopback communications, such as with the Listening port for mysqld-nt.exe. They are not listening on the Routable network address.

 

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       640

Now, notice that PARagent.exe is communicating on a dynamic high port with the UDP protocol and it bound to all addresses on the system (0.0.0.0:51984). This port is being used by PARagent for outbound UDP messages.  In this case for SNMP.

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============

PARagent.exe                  1172 Services                   0     10,716 K

Proto  Local Address          Foreign Address        State           PID
=====  =============          ===============        =====           ===
UDP    0.0.0.0:51984          *:*                                    1172

 

The last thing to note is that by default only ICMP and Port 1858 to dbmain.exe are allowed inbound to the Vault server. When the Remote Agent is configured additional default rules are added for ICMP and Port 9022 to the PARagent.exe process. Any other inbound communication must be opened up by the administrator. It is not allowed by the default configuration.




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001SYYCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail