Trust No Program
Reply to topic
Whitelist sandbox
Ruhe


Joined: 03 Jul 2008
Posts: 803
Location: Germany
Reply with quote
Is this the correct way for a "Whitelist sandbox"?

Only allow the specified apps to run (ProcessGroup=<StartRunAccess_Firefox>), and allow Internet access to the ones in ProcessGroup=<InternetAccess_Firefox>.
There should be no further restrictions to the apps allowed to run.



Code:
[GlobalSettings]

ProcessGroup=<InternetAccess_Firefox>,firefox.exe,java.exe,plugin-container.exe,plugin~1.exe
ProcessGroup=<StartRunAccess_Firefox>,firefox.exe,jp2launcher.exe,jp2lau~1.exe,java.exe,plugin-container.exe,plugin~1.exe,dllhost.exe,foxit reader.exe,foxitr~1.exe

[Firefox]

ConfigLevel=7
Enabled=y
BoxNameTitle=y
BorderColor=#8000FF
AutoDelete=y
NeverDelete=n
NotifyInternetAccessDenied=y
DropAdminRights=y
NotifyStartRunAccessDenied=y
Template=BlockPorts
Template=Firefox_Force
OpenFilePath=*
OpenPipePath=*
OpenKeyPath=*
OpenIpcPath=*
OpenWinClass=*
OpenClsid=*
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Http\*
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Nsi
ClosedFilePath=!<InternetAccess_Firefox>,\Device\RawIp6
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Udp6
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Tcp6
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Ip6
ClosedFilePath=!<InternetAccess_Firefox>,\Device\RawIp
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Udp
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Tcp
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Ip
ClosedFilePath=!<InternetAccess_Firefox>,\Device\Afd*
ClosedIpcPath=!<StartRunAccess_Firefox>,*
View user's profileSend private message
Mike


Joined: 16 Nov 2009
Posts: 592
Reply with quote
Hi Ruhe, I haven't tried whitelisting like that so I can't comment, but a couple very minor points:

1. You might want to use ClosedFilePath=!<InternetAccess_Firefox>,InternetAccessDevices to replace those 11 lines from ...Http\* to ...Afd*.
2. You probably don't need both the long- and short-format process names. For example, for plugin-container.exe I've never used the 8.3 form, plugin~1.exe. Tzuk explained it here: http://www.sandboxie.com/phpbb/viewtopic.php?t=9407
View user's profileSend private message
Ruhe


Joined: 03 Jul 2008
Posts: 803
Location: Germany
Reply with quote
Thanks.

1. Where can I find information in the board regarding InternetAccessDevices?
2. In the past there were problems with long file names, like Foxit Reader.exe. Therefore the recommendation was to include the short name too.
View user's profileSend private message
Re: Whitelist sandbox
Guest10


Joined: 27 Apr 2008
Posts: 4367
Location: Ohio, USA
Reply with quote
Ruhe wrote:
Is this the correct way for a "Whitelist sandbox"?
My first question back to you, would be what version of Sandboxie are you using?
The latest versions create their "ProcessGroup=..." lines underneath the sandbox heading, not under [GlobalSettings]:
Code:
[Firefox]

ProcessGroup=<InternetAccess_Firefox>,firefox.exe,java.exe,plugin-container.exe,plugin~1.exe,...
Sandboxie will create them in the individual sandbox section, if you are using a recent version.
Also, there's new section in the GUI called "Program Groups", in which you can create your own Program Group for a particular sandbox.

I hope that the following lines are only there for some test you were planning on making, because they will allow everything to escape from the sandbox:
Ruhe wrote:
OpenFilePath=*
OpenPipePath=*
OpenKeyPath=*
OpenIpcPath=*
OpenWinClass=*
OpenClsid=*
Plus, the latest Sandboxie versions will create a simplified line for Internet Access:
ProcessGroup=<InternetAccess>,firefox.exe,plugin-container.exe,.... and so on
ClosedFilePath=!<InternetAccess>,InternetAccessDevices

The "InternetAccessDevices" grouping of lines is a recent development, and may not be documented yet.
It's automatically used for you, if you use the latest Sandboxie beta versions.
I imagine that you need to be using one of the latest versions in order to use this, or the setting won't make any sense to the earlier Sandboxie versions.

_________________
Paul
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
Re: Whitelist sandbox
Ruhe


Joined: 03 Jul 2008
Posts: 803
Location: Germany
Reply with quote
Guest10 wrote:
I hope that the following lines are only there for some test you were planning on making, because they will allow everything to escape from the sandbox

These are intentional settings. The sandbox should only control what apps may run.
View user's profileSend private message
Mike


Joined: 16 Nov 2009
Posts: 592
Reply with quote
Ruhe wrote:
1. Where can I find information in the board regarding InternetAccessDevices?
2. In the past there were problems with long file names, like Foxit Reader.exe. Therefore the recommendation was to include the short name too.

1. InternetAccessDevices was introduced in the 3.49 betas, I think. I mentioned this setting but there was never any discussion. Anyway, if you create a new sandbox and block all internet access, this is the setting that Sandboxie Control adds.
2. Ah, I remember now. I thought that issue was specific to Foxit, but perhaps not.

Guest10 wrote:
The latest versions create their "ProcessGroup=..." lines underneath the sandbox heading, not under [GlobalSettings]

Very true. But when process groups are used by multiple sandboxes, it can be convenient to leave them under [GlobalSettings]. Does anyone know if this is now deprecated? If it is, I suppose templates would be the obvious answer.
View user's profileSend private message
Ruhe


Joined: 03 Jul 2008
Posts: 803
Location: Germany
Reply with quote
InternetAccessDevices and ProcessGroup are done. All my sandboxes are adjusted with the new settings.
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4367
Location: Ohio, USA
Reply with quote
Concerning the wild card exclusion lines that you have in the Firefox sandbox section -
make sure you do not use "Run Sandboxed" for an installer program, like the Firefox installer, because your install will take place unsandboxed.
----
I was planning to check what settings might be needed for a program that I was installing in a sandbox, and I added the wild card exclusions to the sandbox settings before I installed the program. I should have waited to use the wild card settings until after the install.

Anyway, the installer program was happy to make use of the wild card settings, and I wound up with the program installed outside of the sandbox, even though I had used "Run Sandboxed".
View user's profileSend private message
Whitelist sandbox
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

Use the RSS feed to watch this topic for replies
  
  
 Reply to topic  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,789,897 times since June 2004