What is Hardened Sandbox and Data Protection?

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by DjKilla, Jul 27, 2022.

  1. DjKilla

    DjKilla Registered Member

    Joined:
    Oct 4, 2021
    Posts:
    237
    Location:
    Tampa, FL
    What does Security Hardened Sandbox change/do? What does Data Protection change/do? If you can provide examples, that would be helpful. I couldn't find any info anywhere on how these settings could help or benefit a user.

    Security.jpg
     
  2. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,522
    Location:
    Viena
    Hardened is as od 1.2.x and earlier just a sandbox with drop admin rights enabled.
    As of 1.3.x it will include additional mitigation like syscall restrictions and device isolation (not allowing sandboxed programs to talk to drivers unless explicitly permitted)

    Data Protection also called Privacy Enhanced Boxes are boxes set up such that programs can only read the HKLM, C:\Windows, C:\Program Files, C:\Program Files (x86) and nothing else, no HKCU and no other path on any volume.
    This way boxed programs can not access any private or personal data.

    You may also wonder what an Application Compartment type box is, these are boxes that don't use the a restricted token instead they only relay on file, registry and handle filtering, while this results in a much lowered isolation, it significantly increases the compatibility with problematic applications.
     
  3. DjKilla

    DjKilla Registered Member

    Joined:
    Oct 4, 2021
    Posts:
    237
    Location:
    Tampa, FL
    Thanks David for explaining the features. Data Protection is an interesting feature that prevents programs/viruses from trying to access/read files in other locations on my computer. I bought a certificate at https://xanasoft.com/product-category/sandboxie/ and will activate this feature. Thanks again!
     
  4. DjKilla

    DjKilla Registered Member

    Joined:
    Oct 4, 2021
    Posts:
    237
    Location:
    Tampa, FL
    Sandboxie Plus 1.2.6 (64 bit)
    Windows 10 21H2 (64 bit)
    Thunderbird 102.0.3 (64 bit)

    I have Firefox set up and working perfectly but I'm unable to get Thunderbird working using Data Protection and get the following error messages. How can I fix this issue?

    Message1.jpg

    Message2.jpg

    Message3.jpg

    Message4.jpg

    Message5.jpg
     
  5. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,522
    Location:
    Viena
    A good strategy to get the needed folder structure is to switch the data protection of for the first start of an app this way it can copy required files/folders into the box.
    After the first run you can create a snapshot to which the box will revert on content deletion instead of going back to an empty state.
     
  6. henryg1

    henryg1 Registered Member

    Joined:
    Jun 14, 2020
    Posts:
    452
    Location:
    uk
    I assume this will only work as a strategy if using IMAP? If POP3 then the local files outside of TB wouldn't get updated?

    Yes, you can guess which I use ;)
     
  7. Glitzersternchen

    Glitzersternchen Registered Member

    Joined:
    Sep 5, 2021
    Posts:
    53
    Location:
    Germany
  8. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    @DjKilla @Glitzersternchen

    Try adding this to the box config:
    Code:
    WriteKeyPath=thunderbird.exe,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole
    Info: https://github.com/sandboxie-plus/sandboxie-docs/blob/main/Content/WriteKeyPath.md

    OR

    Code:
    ReadKeyPath=thunderbird.exe,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole
    Info: https://github.com/sandboxie-plus/sandboxie-docs/blob/main/Content/ReadKeyPath.md

    If neither works

    Code:
    OpenKeyPath=thunderbird.exe,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole
    Info: https://github.com/sandboxie-plus/sandboxie-docs/blob/main/Content/OpenKeyPath.md
     
    Last edited: Oct 24, 2022
  9. Glitzersternchen

    Glitzersternchen Registered Member

    Joined:
    Sep 5, 2021
    Posts:
    53
    Location:
    Germany
    @busy,
    I think, between your offered codes "ReadKeyPath" is the safest one, because only read access is given. I entered your line in the Thunderbirdbox and TB now works perfectly with Data Protection. Many, many thanks busy !
    Sabine
     
  10. DjKilla

    DjKilla Registered Member

    Joined:
    Oct 4, 2021
    Posts:
    237
    Location:
    Tampa, FL
    I actually tried everything and couldn't get Thunderbird to work with Data Protection so I had given up. What a surprise to see an answer/fix to get Thunderbird to work with Data Protection posted. Big thank you to 'busy' for posting! Looking forward to finally having a little more extra protection in my setup!
     
  11. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,522
    Location:
    Viena
    there seam to be some underlying issue with permissions in the user registry when data protection is enabled, I'm looking into it ...
     
  12. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,252
    Location:
    .
    Proper fixes to this and another issues might be addressed in a timely fashion if a separate telemetry module could be implemented already.
     
  13. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,252
    Location:
    .
    Stills failing on sbie+ 1.6.1, LibreWolf and Firefox both portables.
     
  14. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    585
    Librewolf (portable) works for me (v1.6.1). I do not use firefox.
    You may have some non-default config/settings/locations etc.
    If you care to share them here, someone may be able to help.
     
  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.