Prevent application from restarting computer

Ideas for enhancements to the software
Domochevsky
Posts: 125
Joined: Wed Jun 05, 2013 7:04 pm

Prevent application from restarting computer

Post by Domochevsky » Tue Oct 20, 2015 10:52 am

Can this already be done? I basically don't want any application inside of a sandbox to automatically restart the computer without explicit consent by any means.

Craig@Invincea
Sandboxie Support
Sandboxie Support
Posts: 3523
Joined: Thu Jun 18, 2015 3:00 pm
Location: DC Metro Area

Re: Prevent application from restarting computer

Post by Craig@Invincea » Tue Oct 20, 2015 12:13 pm

Usually programs give you the option to restart now / restart later.

Domochevsky
Posts: 125
Joined: Wed Jun 05, 2013 7:04 pm

Re: Prevent application from restarting computer

Post by Domochevsky » Tue Oct 20, 2015 12:54 pm

Usually, yes. In this case it didn't, deeming itself too important to wait.

Curt@invincea
Sandboxie Lead Developer
Sandboxie Lead Developer
Posts: 1661
Joined: Fri Jan 17, 2014 5:21 pm
Contact:

Re: Prevent application from restarting computer

Post by Curt@invincea » Tue Oct 20, 2015 3:40 pm

The Sbie code specifically allows sandboxed apps to restart/shutdown the system. I don't know the history on why this was done. Has it been discussed in the past? What are the views of the users?

btm
Posts: 160
Joined: Sat Nov 23, 2013 11:31 am

Re: Prevent application from restarting computer

Post by btm » Tue Oct 20, 2015 4:49 pm

I don't see why a sandboxed program should be able to do this. In most instances a reboot is needed to finish a driver/service install which doesn't work within sbie anyhow.... Perhaps some timed/event driven auto shut down app might have a legit reason to do so but I'd prefer to have a choice to explicitly enable this (eg setting) for a specific sandbox but have it disabled by default. Failing that, IMO, block it entirely.. :-/
This account has been abandoned. If you need to PM me, please send a message to Syrinx.

Domochevsky
Posts: 125
Joined: Wed Jun 05, 2013 7:04 pm

Re: Prevent application from restarting computer

Post by Domochevsky » Wed Oct 21, 2015 12:50 am

I would also prefer to have a per-sandbox option for this, disabled by default. There is very little legitimate reason for a sandboxed application to restart the host system, as said.

Dun
Posts: 353
Joined: Mon Jun 23, 2014 5:00 am
Location: Poland

Re: Prevent application from restarting computer

Post by Dun » Wed Oct 21, 2015 4:23 am

+1 to prevent by default
Sandboxie 5.27.1 personal lifetime license user || Win10 x64 Pro b17134 (up to date) || ESET IS 11+ x64 || Google Chrome 69+ x64 || UAC on

BatmanCatman
Posts: 42
Joined: Sun Oct 04, 2015 3:32 pm

Re: Prevent application from restarting computer

Post by BatmanCatman » Thu Oct 22, 2015 7:33 am

I also totally think programs should be prevented from restarting the computer by default. Maybe a message should pop up asking "Chrome wants to restart your computer. Should we allow it?" then with options of Yes and No?

Laitues
Posts: 1
Joined: Fri Oct 30, 2015 4:39 pm

Re: Prevent application from restarting computer

Post by Laitues » Fri Oct 30, 2015 5:38 pm

+1 for this.

Curt@invincea
Sandboxie Lead Developer
Sandboxie Lead Developer
Posts: 1661
Joined: Fri Jan 17, 2014 5:21 pm
Contact:

Re: Prevent application from restarting computer

Post by Curt@invincea » Fri Apr 08, 2016 2:01 pm

Domochevsky wrote:Can this already be done? I basically don't want any application inside of a sandbox to automatically restart the computer without explicit consent by any means.
One of our new developers has been looking into this. From the post above, and looking at the code, I assumed that sandboxed apps were being allowed to reboot/shutdown the machine. But apparently, Sbie was already blocking this. The hook code in Sbie that I thought was allowing this apparently is dead code from a time long past.

So according to our testing, Sbie is already blocking this. Sandboxed apps cannot reboot/shutdown the machine.

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 621
Joined: Fri Nov 13, 2015 4:11 pm

Re: Prevent application from restarting computer

Post by Syrinx » Fri Apr 08, 2016 10:12 pm

Thanks for the update, refreshing news. Now I'm confused though, I was using TeamViewer (sandboxed at the start) on Mr. X's PC the other day [he later removed the box so I could really hack him, erm um test things] and was able to reboot the pc (didn't try a shutdown) but I know it uses a service on the host [outside of the scope of SBIE] so that might explain it why it worked....nm!
https://www.ntlite.com

Mr.X
Posts: 602
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Prevent application from restarting computer

Post by Mr.X » Fri Apr 08, 2016 10:33 pm

Syrinx wrote:Thanks for the update, refreshing news. Now I'm confused though, I was using TeamViewer (sandboxed at the start) on Mr. X's PC the other day [he later removed the box so I could really hack him, erm um test things] and was able to reboot the pc (didn't try a shutdown) but I know it uses a service on the host [outside of the scope of SBIE] so that might explain it why it worked....nm!
Now I understand why my computer started behaving so strange. Thankfully I have a full image backup to manage this things out :evil: :mrgreen:
Windows 8.1 x64 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

Craig@Invincea
Sandboxie Support
Sandboxie Support
Posts: 3523
Joined: Thu Jun 18, 2015 3:00 pm
Location: DC Metro Area

Re: Prevent application from restarting computer

Post by Craig@Invincea » Thu Apr 14, 2016 11:07 am

Mr.X wrote:
Syrinx wrote:Thanks for the update, refreshing news. Now I'm confused though, I was using TeamViewer (sandboxed at the start) on Mr. X's PC the other day [he later removed the box so I could really hack him, erm um test things] and was able to reboot the pc (didn't try a shutdown) but I know it uses a service on the host [outside of the scope of SBIE] so that might explain it why it worked....nm!
Now I understand why my computer started behaving so strange. Thankfully I have a full image backup to manage this things out :evil: :mrgreen:
It could, if it had a valid request. If malware started to write, etc in the SB...say trying to write a new MBR (sandboxeds) and then rebooted....that's all that would happen. A reboot. As everything is contained in the SB.

But that's moot now.

Klausel
Posts: 15
Joined: Sat Mar 26, 2016 8:32 am

Re: Prevent application from restarting computer

Post by Klausel » Thu Apr 28, 2016 1:43 pm

In my case a sandboxed app were still be able to perform a reboot and it was not malware. A normal installer that I've ran sandboxed where I forgot the tick off the mark "reboot now" after sandboxed installation.

Craig@Invincea
Sandboxie Support
Sandboxie Support
Posts: 3523
Joined: Thu Jun 18, 2015 3:00 pm
Location: DC Metro Area

Re: Prevent application from restarting computer

Post by Craig@Invincea » Thu Apr 28, 2016 1:49 pm

Klausel wrote:In my case a sandboxed app were still be able to perform a reboot and it was not malware. A normal installer that I've ran sandboxed where I forgot the tick off the mark "reboot now" after sandboxed installation.
If it's a valid reboot command, yes. If it was malware attempting to write and then reboot, it wouldn't matter. The "writing" is happening in the SB, which is gone when the computer reboots. The only harm is...you've rebooted. That's all..MBR, etc are not changed by a program that is running/writing in the SB.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests