Sandboxie technical tests and other technical topics discussion thread

Discussion in 'sandboxing & virtualization' started by MrBrian, Oct 17, 2014.

  1. bo elam

    bo elam Registered Member

    Joined:
    Jun 15, 2010
    Posts:
    6,147
    Location:
    Nicaragua
    Mr Brian, you can create and use more than one sandbox in the free version, you just cant use more than one at the same time. When you are using the free version, this allows you to create a new sandbox for sensitive browsing and restrict it more than when you are only using one and where all programs are allowed to run, connect, etc.

    But anyway, the recommended way to do sensitive browsing using Sandboxie is not to have programs running in more than one sandbox when you are doing it.

    Sandboxie control>Sandbox>Create new sandbox

    Bo
     
  2. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    Right. I need to use two sandboxes with programs running at the same time in order to test cross-sandbox keylogging. If someone tests this, also please list the operating system used.
     
  3. bo elam

    bo elam Registered Member

    Joined:
    Jun 15, 2010
    Posts:
    6,147
    Location:
    Nicaragua
    Thats a no no with Sandboxie. Tzuk specifically advises not to do that. Almost at the end of this link, he said:

    "Note that if you don't like to regularly delete your sandbox, you can set aside one sandbox for trusted browsing, and delete just that sandbox before carrying out the trusted activity. But it is still important to first stop all sandboxed activity in all sandboxes, for maximum protection."
    http://www.sandboxie.com/index.php?DetectingKeyLoggers#defend

    Bo
     
  4. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    Right, but I hypothesize that with Sandboxie v4.x with all default settings on Vista+ (but not XP), with Anti-Keylogger Tester 3.0 in one sandbox, and typing in Notepad in another sandbox, Anti-Keylogger Tester will be unable to keylog Notepad with any of its methods. Maybe someone can test this?
     
  5. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
  6. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    I did some testing on my Win XP SP2 machine, and it's now 100% certain that SBIE does indeed NOT block code injection from one sandboxed process to another. It DOES block code injection to processes running outside the sandbox.

    I'm not sure if there is real risk involved with it, from what I've read, almost all banking trojans need to inject code into "Windows System" processes, besides the browser. So if you run some banking trojan inside the sandbox, it probably can not hijack the browser.
     
  7. Peter2150

    Peter2150 Global Moderator

    Joined:
    Sep 20, 2003
    Posts:
    20,590
    You are correct Rasheed. Sandboxie is not an antivirus, not an anti malware, not an anti anything. It is basically an isolation program. Years ago I tested against a real live and real nasty piece of malware. When run outside of Sandboxie what you saw was an immediate take over of the computer, dazzling display on the screen, no systray etc. Only recourse was to do a power reset. On reboot it became clear, that the bad guys owned your machine. Real nasty. Running inside Sandboxie, you saw exactly the same screen display, exact same loss of control, no systray to give you a chance to kill the sandbox. Again the only recourse was a power reset.... BUT on reboot the machine was completely untouched, no evidence of any malware. Delete the sandbox and that was that. THAT is the essence of Sandboxie.

    The restrictions are frosting on the cakes.
     
  8. bo elam

    bo elam Registered Member

    Joined:
    Jun 15, 2010
    Posts:
    6,147
    Location:
    Nicaragua
    Thats exactly how I see them.....the cake being the sandbox. I said earlier in this thread :):
    Bo
     
  9. SLE

    SLE Registered Member

    Joined:
    Jun 30, 2011
    Posts:
    361
    That's exactly how it is designed and how it was explained by Tzuk in the past many times.
    - Sandboxie protects everything outside the current Sandbox from contents but all what is inside the SAME sandbox can access each other.
    - Thatswhy the recommendation to use seperate sandboxes and/or, empty sandbox before critical activities and so on.

    Beside that ReadFilePath=C:\Windows\ is quite a useful setting ;)
     
  10. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    Can somebody please test the following in a real (i.e. non-virtual) machine on Vista or later with a sandbox having all default values:

    Notepad - not sandboxed
    Anti-Keylogger Tester - sandboxed

    My results: keys were logged on 0 of 6 keylogging tests.

    A person has privately reported to me different results than what I got.
     
    Last edited: Oct 21, 2014
  11. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    The same individual has privately reported to me that a retest in fact did get the same results as I got.
     
  12. Peter2150

    Peter2150 Global Moderator

    Joined:
    Sep 20, 2003
    Posts:
    20,590
    MrBrian, let me try saying this very plainly, SO WHAT. Sbie is not an anti keylogger so testing to prove that is not just plain foolish. You are testing to prove it doesn't do something it isn't supposed to do. It's like trying to beat a dead horse to make it get up. Not happening. Give it up.
     
  13. SLE

    SLE Registered Member

    Joined:
    Jun 30, 2011
    Posts:
    361
    He proves that it workes how it should work. It find this quite nice to show how effective sandboxie is.
    Most keyloggers which run sandboxed can't read keystrokes from system. That is how it should work. Nice test.
    What not works: Some keyloggers can read keystrokes from within the same sandbox. By design.
     
  14. deBoetie

    deBoetie Registered Member

    Joined:
    Aug 7, 2013
    Posts:
    1,832
    Location:
    UK
    I'm very happy MrBrian and others are testing what SBIE does as opposed to what people decide it is or should be.

    For example, people DO use Sandboxie for banking, and you'd have thought people would want to know the actual behaviour of keyloggers in those circumstances, whether inside or outside the box.

    I am also concerned about risks of user-mode malware running in the sandbox (not even needing escalation, and possibly memory only and stealth) and exfiltrating data from sensitive parts of my disk - that's exactly why I block paths to some areas and/or restrict internet access.
     
  15. 142395

    142395 Guest

    I second (third?).
    Definately "How it works" is different from "How it should work".
    Obviously what MrBrian want to know is former so there's no point to accuse him IMO.
     
  16. Peter2150

    Peter2150 Global Moderator

    Joined:
    Sep 20, 2003
    Posts:
    20,590
    Fair enough, but a question. Do you use it without testing for yourself?
     
  17. 142395

    142395 Guest

    I tested, but it's just from my point of view and limited by my skill/knowledge.
    Others have other view, interest and background.
    Even if I never use a product in such a way, knowlegde of how each product works sometimes help me to solve unexpected issue.
     
  18. deBoetie

    deBoetie Registered Member

    Joined:
    Aug 7, 2013
    Posts:
    1,832
    Location:
    UK
    Personally I trust no application - including Sandboxie! Or people who test it. On the other hand, I use the balance of probabilities, and what seems plausible given my current knowledge. I don't see what else is possible given our time constraints.

    And I'm actually more satisfied with these sorts of reports than I am about the situation with something like Heartbleed where "we" were lulled by the "many eyes" hypothesis.

    Plus, all I'm trying to do is stack reasonably effective controls (as far as I can ascertain) to get multi-layer combining of probabilities, and avoid being low-hanging fruit.
     
  19. Peter2150

    Peter2150 Global Moderator

    Joined:
    Sep 20, 2003
    Posts:
    20,590
    Hi deBoetie

    I don't rely on tests like these, I do them myself to see if the software does what it is supposed. SBIE wasn't hard to test neither was Appguard. Yes it does take time, but for me it's a necessity.

    Pete
     
  20. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    Yes correct, but to clarify, I was just trying to figure out if it can be a risk in theory, pure from a technical point of view. Code injection is one of the most dangerous techniques that's used by malware. Of course you can mitigate the risk by using separate sandboxes, or by using HIPS.
     
  21. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    Sandboxie with default settings does the following with respect to keyloggers:
    1. Blocks 100% of driver-based keyloggers in a sandbox, because Sandboxie doesn't allow installation of drivers in a sandbox. Source: http://www.sandboxie.com/index.php?DetectingKeyLoggers.
    2. In one of the scenarios (A.3) that I tested, no keylogging was allowed by any of the tested methods on one tested operating system (Win 7 x64), but these results did not hold for the other tested operating system (Win XP x86).
     
  22. Rasheed187

    Rasheed187 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    17,559
    Location:
    The Netherlands
    BTW, I was testing Avant Browser (with Chrome engine), but it would not run sandboxed. I've also read that Google Chrome and other browsers like Opera 25 often give problems inside the sandbox.

    So I was thinking, if these problems are perhaps caused by the design of the Chrome sandbox, perhaps it's an idea to add a feature to SBIE, which will make it virtualize only the file-system and registry (perhaps also IPC). So it will leave the "usermode sandboxing" part to Chrome itself. Does this make any sense? :)

    http://www.malwaretech.com/2014/10/usermode-sandboxing.html
     
  23. Compu KTed

    Compu KTed Registered Member

    Joined:
    Dec 18, 2013
    Posts:
    1,414
    Are we comparing "apples to apples"? Windows 7 may have different results than Windows XP.
    Sandboxie default settings may have different results than non-default (changed) settings.

    A fair test would encompass the same settings on the same OS would it not?
     
  24. MrBrian

    MrBrian Registered Member

    Joined:
    Feb 24, 2008
    Posts:
    6,032
    Location:
    USA
    I did use the same Sandboxie settings (all defaults) on both operating systems that I tested.
     
  25. Compu KTed

    Compu KTed Registered Member

    Joined:
    Dec 18, 2013
    Posts:
    1,414
    You can't compare results between Windows 7 and XP because they are 2 different OSs. You can compare results
    individually (Windows 7 & Sandboxie) (Windows XP & Sandboxie)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.