Where does PH get its Network data from? #1154
-
I am in the middle of debugging some weirdly botched network situation. One of the things that has caught my attention, is that PH claims a process (WSL1/packed process) has tons of open ports, while an I am wondering "Where does PH get its Network data from?", and then, if I could somehow restart only that subsystem (instead of doing a reboot) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Is the connection state
This happens when a process duplicates the socket handle into a child process then exits. The Windows kernel doesn't update the ProcessId for the socket handle and the Windows network stack continues referencing the dead parent process instead of the current process and returning the wrong ProcessId owner. For example: WSAStartup -> DuplicateHandle -> send/recv/sendto/recvfrom Duplicate a socket handle from chrome/edge/firefox processes into malicious.exe... Netstat, Sysinternals TcpView, Process Hacker, Netlimiter, Antivirus and Firewall software (both user and kernel) start having various issues:
It's been mentioned to Microsoft more than once but they've never done anything to fix the behavior: |
Beta Was this translation helpful? Give feedback.
Is the connection state
Bound
orListen
?netstat -nq
?This happens when a process duplicates the socket handle into a child process then exits. The Windows kernel doesn't update the ProcessId for the socket handle and the Windows network stack continues referencing the dead parent process instead of the current process and returning the wrong ProcessId owner.
For example: WSAStartup -> DuplicateHandle -> send/recv/sendto/recvfrom
Duplicate a socket handle from chrome/edge/firefox processes into malicious.exe... Netstat, Sysinternals TcpView, Process Hacker, Netlimiter, Antivirus and F…