Lingering SbieSvc? [SOLVED]
Posted: Mon Jan 23, 2017 8:01 pm
So far I've had a hard time reproducing this in a VM, I suspect it may be due to the VMs being unable to run multiple programs in separate boxes at the same time.
Starting from the beginning...on my system I find several SbieSvc.exe instances remain even when no longer used. These aren't the normal [original] service or the primary GuiProxy instances running as \SYSTEM. Instead they seem to be 'box' specific instances. I say that because the cmd line parameters seem to reflect this. They have the user sid they were run under along with the boxname in it and are running with the integrity level of that user. However they never exit. They aren't wasting cpu, the ram is low, <100 handles- so not a real problem to speak of so I decided to ask under questions instead.
The oldest instance I noticed when finally deciding to look at this was from about 30 hours before [minecraft if it matters] around when I was playing with my kid. I'm confused as to why they are hanging around though!
At first I thought this could be another case of sandboxie not behaving 'normally' similar to the auto-delete function which fails when runas is used because SbieCtrl passes the user name it runs under in the path instead of the user the program was running as (which is what the sandbox path includes by default so it just passes the wrong path when the user variable is used in the sandbox path). That doesn't seem to be it though as even when runas is used some instances of these box specific SbieSvc.exe's will close down as expected.
Terminating the lingering SbieSvc.exes manually and re-launching the app in the same box doesn't seem to cause any problems either.
Looking a tad closer I did notice a different path and pid upon launch/exit.
Example:
Launched Minecraft.exe (forced) and the cmd line shows something like this:
"C:\Program Files\Sandboxie\SbieSvc.exe" Sandboxie_GuiProxy_Console,Sandboxie_ConsoleReadyEvent_05AE1542
In this case the PID of said service was 1716
When the program [minecraft and in turn java] is closed and the box becomes inactive I then find an entry like this. The xxx's are my edits, not what was actually there:
"C:\Program Files\Sandboxie\SbieSvc.exe" Sandboxie_ComProxy_S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1000_MineCraft_1_0_:
This PID was 2376 so obviously not the same one that was used while it was 'active'
So it seems to be created as part of a cleanup-phase (guessing) or is otherwise created some time after the initial launch still but never exits itself?
What's more is something like Skype, which is also ran using runas under the same user account [separate box] doesn't result in such a 'mystery' SbieSvc instance remaining afterward.
Then I thought maybe it's related to what you have set to auto-delete? That doesn't track though because my primary browser box (palemoon) is set to delete and so is the chrome box. Yet of these two only the chrome box reflects the above behavior with a lingering SbieSvc instance.
Does the format of: SbieSvc.exe Sandboxie_ComProxy_*SID*_*BoxName*_#_#_ ring any bells on what this might be a part of and in turn what I might look at so that they all end normally?
Or perhaps this might be more familiar? Sandboxie_ComProxy_%s_%s_%d_%d_%s
Windows 7 x64
No 3rd party AV installed atm (or previously with this image) Defender was removed via NTLite among other components prior to install
No 3rd party FireWall installed atm (or previously with this image) just Windows Firewall
No HIPS installed atm (or previously with this image)
No Anti-Exploit installed atm (or previously with this image)
AppLocker
FBWF
Group Policy
Sandboxie 5.16
Other system related apps that 'might' be relevant and are installed
Actual Window Manager 8.10
VMWare Workstation 11.1.4 (12.x has a certain network issue that has plagued me and hasn't been resolved yet)
Starting from the beginning...on my system I find several SbieSvc.exe instances remain even when no longer used. These aren't the normal [original] service or the primary GuiProxy instances running as \SYSTEM. Instead they seem to be 'box' specific instances. I say that because the cmd line parameters seem to reflect this. They have the user sid they were run under along with the boxname in it and are running with the integrity level of that user. However they never exit. They aren't wasting cpu, the ram is low, <100 handles- so not a real problem to speak of so I decided to ask under questions instead.
The oldest instance I noticed when finally deciding to look at this was from about 30 hours before [minecraft if it matters] around when I was playing with my kid. I'm confused as to why they are hanging around though!
At first I thought this could be another case of sandboxie not behaving 'normally' similar to the auto-delete function which fails when runas is used because SbieCtrl passes the user name it runs under in the path instead of the user the program was running as (which is what the sandbox path includes by default so it just passes the wrong path when the user variable is used in the sandbox path). That doesn't seem to be it though as even when runas is used some instances of these box specific SbieSvc.exe's will close down as expected.
Terminating the lingering SbieSvc.exes manually and re-launching the app in the same box doesn't seem to cause any problems either.
Looking a tad closer I did notice a different path and pid upon launch/exit.
Example:
Launched Minecraft.exe (forced) and the cmd line shows something like this:
"C:\Program Files\Sandboxie\SbieSvc.exe" Sandboxie_GuiProxy_Console,Sandboxie_ConsoleReadyEvent_05AE1542
In this case the PID of said service was 1716
When the program [minecraft and in turn java] is closed and the box becomes inactive I then find an entry like this. The xxx's are my edits, not what was actually there:
"C:\Program Files\Sandboxie\SbieSvc.exe" Sandboxie_ComProxy_S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1000_MineCraft_1_0_:
This PID was 2376 so obviously not the same one that was used while it was 'active'
So it seems to be created as part of a cleanup-phase (guessing) or is otherwise created some time after the initial launch still but never exits itself?
What's more is something like Skype, which is also ran using runas under the same user account [separate box] doesn't result in such a 'mystery' SbieSvc instance remaining afterward.
Then I thought maybe it's related to what you have set to auto-delete? That doesn't track though because my primary browser box (palemoon) is set to delete and so is the chrome box. Yet of these two only the chrome box reflects the above behavior with a lingering SbieSvc instance.
Does the format of: SbieSvc.exe Sandboxie_ComProxy_*SID*_*BoxName*_#_#_ ring any bells on what this might be a part of and in turn what I might look at so that they all end normally?
Or perhaps this might be more familiar? Sandboxie_ComProxy_%s_%s_%d_%d_%s
Windows 7 x64
No 3rd party AV installed atm (or previously with this image) Defender was removed via NTLite among other components prior to install
No 3rd party FireWall installed atm (or previously with this image) just Windows Firewall
No HIPS installed atm (or previously with this image)
No Anti-Exploit installed atm (or previously with this image)
AppLocker
FBWF
Group Policy
Sandboxie 5.16
Other system related apps that 'might' be relevant and are installed
Actual Window Manager 8.10
VMWare Workstation 11.1.4 (12.x has a certain network issue that has plagued me and hasn't been resolved yet)