Read the tree, not the process
The shell is the symptom. What matters is who spawned it: a service account that owns a listening port has no business starting bash, cmd or powershell. Walk the tree until you reach the process that owns the socket, and file that.