Version 4.01 - Major changes to underlying architecture

Listing issues addressed in beta version 4.01
tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Version 4.01 - Major changes to underlying architecture

Post by tzuk » Thu Jan 10, 2013 2:16 pm

SANDBOXIE INTERNALS REDESIGNED IN VERSION 4

The 64-bit edition of Windows 8 introduces a new version of the Kernel Patch Protection (PatchGuard) component, which limits Sandboxie v3 in establishing some of the kernel hooks that it needs in order to fully supervise programs.

To ensure a high level of sandbox isolation on Windows 8 and future versions of Windows, and to mitigate the risk that a future update to Windows 7 will include the new PatchGuard, and break compatibility with Sandboxie, version 4 introduces a change in the way Sandboxie works under the hood.

In version 4, Sandboxie is designed to not rely on unofficial hooks into the kernel. (A few such hooks are still in use on Windows XP.) Instead, a program under the supervision of Sandboxie v4 runs with no permissions and cannot access or manipulate objects in the system outside the program's own memory. (This restricted security context can be seen by looking at a process in the sandbox using Process Explorer.)

Sandboxie 4 on 64-bit Windows removes the Experimental Protection feature, and no longer has to suggest use of Drop Rights option.

Minimum Windows Version

Features in the Windows kernel which guarantee that a program cannot improve its own set of permissions are only available starting with Windows XP SP 2, with additional security features in Windows Vista.

Sandboxie v4 officially supports Windows XP SP 3, Windows Vista with Service Pack 2, Windows 7 with Service Pack 1, and Windows 8. Other variants may or may not work at this time.

Please note that these changes do not mean that Sandboxie now supports Metro apps.
tzuk

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Thu Jan 10, 2013 2:17 pm

KNOWN PROBLEMS IN VERSION 4

Important Note: This is a major revision, and some stuff will break. Following is a brief list of issues that are known at this time.

- Printing doesn't work for 32-bit programs running on 64-bit Windows
tzuk

soccerfan
Posts: 440
Joined: Tue Sep 25, 2007 2:59 pm

Re: Version 4.01 - Major changes to underlying architecture

Post by soccerfan » Thu Jan 10, 2013 2:26 pm

tzuk wrote:SANDBOXIE INTERNALS REDESIGNED IN VERSION 4
[~snipped~]
Minimum Windows Version

Features in the Windows kernel which guarantee that a program cannot improve its own set of permissions are only available starting with Windows XP SP 2, with additional security features in Windows Vista.

Sandboxie v4 officially supports Windows XP SP 3, Windows Vista with Service Pack 2, Windows 7 with Service Pack 1, and Windows 8. Other variants may or may not work at this time.
Thanks for your efforts.:D I have been on Windows XP SP2 for years and it is not clear (to me)
from your first post (quoted above) if sandboxie v4 and higher will continue to support XP SP2.
Thanks.
soccerfan

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Thu Jan 10, 2013 2:30 pm

That really depends on the changes between XP SP 2 and SP 3. I didn't test with earlier service packs than the latest service pack for each version of Windows, because that would multiply the number of setups I have to support. You can easily check if Sandboxie 4.01 works on your XP SP 2, and easily go back to version 3.76 if it doesn't. Maybe it works fine and this is a non-issue.
tzuk

soccerfan
Posts: 440
Joined: Tue Sep 25, 2007 2:59 pm

Post by soccerfan » Thu Jan 10, 2013 2:40 pm

tzuk wrote:...You can easily check if Sandboxie 4.01 works on your XP SP 2, and easily go back to version 3.76 if it doesn't.
I might just do that once the dust settles on v4 :P
Thanks for the testing update on XP machines.

EDIT: I assume sandboxie v4 does not check if
service pack SP3 is actually installed.
soccerfan

DR_LaRRY_PEpPeR
Posts: 291
Joined: Wed Jul 04, 2012 6:40 pm
Location: St. Louis area

Re: Version 4.01 - Major changes to underlying architecture

Post by DR_LaRRY_PEpPeR » Thu Jan 10, 2013 3:18 pm

Cool. :D
tzuk wrote:In version 4, Sandboxie is designed to not rely on unofficial hooks into the kernel. (A few such hooks are still in use on Windows XP.) Instead, a program under the supervision of Sandboxie v4 runs with no permissions and cannot access or manipulate objects in the system outside the program's own memory. (This restricted security context can be seen by looking at a process in the sandbox using Process Explorer.)
I'm curious to know more about the "runs with no permissions part and cannot access..." :) But of course Resource Access stuff will still all function as expected, even in a restricted context? Is this "restricted" context like the Restricted level using RunAs (in XP at least)? e.g. Less than "Basic User?" I don't guess so, since it sounds like Drop Rights still exists, therefore programs CAN still have admin permissions in a sandbox? (admin+restricted, hmm... :?) Well, barring any bugs, I guess everything is still supposed to operate the same from a user's point of view?

Besides improving things for 64-bit systems, do these changes in general (inc. 32-bit, XP, etc.) help to protect even "better," by locking things down even more or anything...?

Thanks!
XP Home-as-Pro SP3 (Admin) w/ continued updates (Embedded/POSReady 2009)
> Permissions + "2-level" SRP, latest Sandboxie (Pro/registered), EMET 4, no anti-anything (ever)
Did I make tzuk crazed... in his last days? :o

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Thu Jan 10, 2013 5:16 pm

soccerfan wrote:EDIT: I assume sandboxie v4 does not check if service pack SP3 is actually installed.
At this time no. But I'm not ruling out doing something like that eventually.
DR_LaRRY_PEpPeR wrote:Well, barring any bugs, I guess everything is still supposed to operate the same from a user's point of view?
Yes, exactly the same, including Resource Access and even Resource Monitor.

The way this works is Sandboxie reduces the permissions of the program to nothing, so the program has to go through Sandboxie to access resources, or else the resource access is guaranteed to fail. If Sandboxie thinks the access is ok, it will do the access on behalf of the program with the original permissions of the program. So Drop Rights can still determine if those original permissions will include Administrators or not.

These changes don't make much difference in 32-bit systems in terms of protection, or compared to 64-bit systems with Experimental Protection for that matter.
tzuk

DR_LaRRY_PEpPeR
Posts: 291
Joined: Wed Jul 04, 2012 6:40 pm
Location: St. Louis area

Post by DR_LaRRY_PEpPeR » Fri Jan 11, 2013 11:36 am

Hoooooly crap, definitely some amazing changes. :P I just spent a couple hours messing with stuff on the laptop's fresh Windows install, since I'm still keeping 3.74 running on the main system to see IF I have any EMET+Firefox problems (9 days so far...). Anyway, don't want to be too excited in case there's something wrong that I haven't noticed yet, haha. :shock: But some interesting findings -- some good, some bad (hopefully fixable, will post in other topic). Looks like good news about this: Run Sandboxed + SRP doesn't work? Thanks! :D


tzuk, after your reply yesterday, I was going to say/ask: Sounds more like a full "proxy" for resources now, instead of something like a "gatekeeper" up until now? Does the new way of handling stuff have any impact on performance?


I see in Process Explorer that Job Objects are being used now (which I guess is part of what you described), and under the ANONYMOUS LOGON user name. Chrome users: Is that the same way it works? (Yeah, I still haven't tried Chrome :oops:, and only found out about Jobs when reading about its sandbox.)

Makes it easier to see sandboxed processes in Task Manager, etc. with the different name... I was wondering if that meant files needed different permissions, or would be created with that ANON owner, but no, everything is as before. :) (Don't know if that's Sandboxie handling things, or just part of the Job system.)

I also noticed a small (but unlikely) security hole with file permissions that I never posted about has been fixed as well! (I was going to post about it awhile ago with another possible hole, which I haven't investigated further yet...)

Lumberjack
Posts: 91
Joined: Fri Nov 25, 2011 12:37 am

Re: Version 4.01 - Major changes to underlying architecture

Post by Lumberjack » Sat Jan 12, 2013 11:29 am

I was hoping that it will possible for Sandboxie 4 supporting from Windows 200 SP1, I have now Windows XP 3, but how long will you support this?
I still have old computer which works just fine for my usual needs and it would be a shame if Sandboxie stops supporting this version.

My friend has windows 2000 sp4, he was afraid that future versions of Sandboxie will not support these systems anymore what a shame..., and he bought a lifetime license like me...
I wonder what he will use for protection if Sandboxie does not support older windows systems anymore...
Last edited by Lumberjack on Sat Jan 12, 2013 11:32 am, edited 1 time in total.

Lumberjack
Posts: 91
Joined: Fri Nov 25, 2011 12:37 am

Re: Version 4.01 - Major changes to underlying architecture

Post by Lumberjack » Sat Jan 12, 2013 11:31 am

I'm not sure if I understand, does this mean the Patchguard in Windows 64-bit systems does not allow to Sandboxie to reach its full protection level like in previous version of Sandboxie on both 32-bit and 64-bit systems?

Stephan

Post by Stephan » Sat Jan 12, 2013 1:23 pm

Will we also get a new, cool, modern interface to Sandboxie? :)

Please?

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sat Jan 12, 2013 2:28 pm

Sorry guys, too much stuff going on here, so I'm going to be brief.

DR_LaRRY_PEpPeR:
- I suppose you can still say it's a gatekeeper. It used to be about closing the gate on the program, now it's about opening it for the program.
- There are a few similarities to the Chrome sandbox, but also many differences, the chief one being that there isn't a separate proxy, like in Chrome. The program will be able to access the resources it needs, but only if Sandboxie says it's ok.

Lumberjack: The point of compatibility with old versions of Windows and service packs was already mentioned in this topic.
tzuk

Escalader
Posts: 17
Joined: Fri Oct 05, 2012 1:53 pm

Post by Escalader » Sun Jan 13, 2013 4:51 pm

tzuk wrote:KNOWN PROBLEMS IN VERSION 4

Important Note: This is a major revision, and some stuff will break. Following is a brief list of issues that are known at this time.

- Printing doesn't work for 32-bit programs running on 64-bit Windows
So making it simple for me I have MS Office 10 32 bit running on 64 bit W7 i7.

does this mean no printing will be possible for word, excel etc etc?
Regards

Mathematics is not an opinion

reand

Post by reand » Sun Jan 20, 2013 1:45 am

this feels stable enough, i didn't find bugs also.

PiwPi
Posts: 84
Joined: Mon Jan 31, 2011 12:36 pm

Post by PiwPi » Tue Jan 29, 2013 5:27 am

Sounds good!

But how does Sandboxie decide what kind of permissions to grant to a program ? (i.e. whitelist or heuristics ?)
What kind of permissions will the default configuration grant ? (i.e. disk operations and everything else that can be allowed or blocked)
Can a malicious program within a sandbox take control of a more trusted program in the same box and abuse of its permissions ?

Side question, why doesn't Sandboxie support Metro apps ? I don't use Win 8 but am wondering.

Thanks and keep up the good work :)
All I need from Sandboxie 4 is an even more detailed understanding of its internals, and a better looking interface / icon. No I'm not shallow!

Locked

Who is online

Users browsing this forum: No registered users and 0 guests