Sandboxie-Plus v1.7.0, v1.7.0c

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by DavidXanatos, Jan 27, 2023.

  1. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
    This build enables shadow stack for the SbieDll.dll improving on security on systems with gen11 Intel and Ryzen 5000 AMD CPUs.
    As this required a change in the entry-point hooking scheme, compatibility should be thoroughly tested.
    Further more a couple missing hooks have been added to improve on compatibility.
    This build restructures the Box options a bit and adds a hole new page allowing to control the file migration behavior as well as adding a couple SBIE messages to indicate file migration operations which may cause compatibility issues.
    Last but not least with this build it is possible to define file checker triggers to for example invoke a script to run a virus scan on a file before it is allowed to be recovered.

    Note: as this is a pre-release the installers are not signed, only the driver is.

    Download: https://github.com/sandboxie-plus/Sandboxie/releases/tag/v1.7.0

    Changelog
    Added
    • added OnFileRecovery trigger allowing to check files before recovering them #2202
    • added more presets to sandbox options
      -- Note: these can only be changed when the box is empty
    • added new file migration option page with additional settings
    • added SBIE2113/SBIE2114/SBIE2115 message to indicate when files are not migrated due to presets
    changed
    • moved SeparateUserFolders checkbox from global settings to per box options
    fixed
    • resolved SbieDll.dll incompatibility with shadow stack and enabled /CETCOMPAT for SbieDll.dll #2559
    • added missing registry hooks to improve compatibility with newer applications
    • fixed permission issue with registry entries in privacy mode boxes
     
  2. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    Once I had told Microsoft and Emsisoft to allow unsigned items, I had no issues installing and running 1.70 with Vivaldi and Edge.
     
  3. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    I see this option in Options... Advanced Options.... Triggers.

    ''added OnFileRecovery trigger allowing to check files before recovering them #2202''

    What do I enter in 'Run Command' to get it to work ?
     
  4. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    Same question!
    An example command to use virustotal to check files before recovering would be appreciated. Thanks.
     
  5. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
    You can set it for example to something like this:
    Code:
    OnFileRecovery=powershell -exec bypass -nop -File %SbieHome%\CheckFile.ps1 -bin
    %SbieHome% is a placeholder for your installation directory so it evaluates usually to "C:\Program Files\Sandboxie-Plus"

    CheckFile.ps1
    Code:
    param ($bin)
    $sigcheck="C:\Tools\sc\sigcheck64.exe" -vt -vs -accepteula $bin
    if(-not ($sigcheck -like "*   0/*")){
        Write-Output $sigcheck
        exit 1
    }
    exit 0
    
    and copy sigcheck64.exe to "C:\Tools\sc"
    sigcheck is a sysinternals tool that can be downloaded for free form microsoft: https://learn.microsoft.com/en-us/sysinternals/downloads/sigcheck
     
  6. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    Thank you for this example. Will give it a try.

    In the meantime, sandman just crashed with v1.7.0.
    I have emailed you the dump file.
     
  7. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    Last edited: Jan 27, 2023
  8. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    I just found there were nearly 20 dmp files generated within a few minutes.
    I had emailed you just one. I'd be happy to send you all of them if you like.
     
  9. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
    This is not a real crash, i added a new exception handler and it seams its a bit over achiving also triggering on cought exceptions, ups, 1.7.0a with a fix will be out sortly
     
  10. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    I edited all paths to D:\SbiePlus (my portable sbie folder), and
    copied sigcheck64.exe and checkfile.ps1 to the same directory.
    While recovering a file for download, an informational ribbon
    pops up and the file is recovered to my desired location :thumb:
     
  11. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
    I have updated the installers please re download and re install to solve the sandman issue, or use the live updater in the preview channel to get 1.7.0a
     
  12. plat

    plat Registered Member

    Joined:
    Dec 19, 2018
    Posts:
    2,233
    Location:
    Brooklyn, NY
    OK, well since Smart Screen had a problem w/first 1.7.0, went ahead and installed the "a" over the top. Didn't experience any "crash" yet with the prev. but felt better about over-writing that build.

    So, we'll see how it goes. :)
     
  13. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
    1.7.0b uploaded with a bunch more fixes
     
  14. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    sandman crash with v1.7.0b (also with v1.7.0a)
    when implementing "maintenance=>stop all"
    sbie_1702.png
    Clicking 'OK' proceeds successfully with operation.
    Would you like me to email you the dump file?
     
  15. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    v1.70b: More sbie messages (that I have not seen before) when I rebooted my machine:
    sbie1702restart.png

    EDIT:
    Re-downloaded from link in first post (instead of sbie live) and rebooted.
    No sandman crash so far, and no sbie messages as in attachment above.
     
    Last edited: Jan 27, 2023
  16. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    @DavidXanatos
    A question for you.
    I am on 1.70b on Win 10.

    When I want to change a browser setting I do it unsandboxed so it shows in a sandboxed browser session.
    In Edge today I have blue, orange and yellow (tester) boxes.
    When I right-click on Edge desktop icon and select run sandboxed, in the blue box I see the screenshot below on the far right of the browser. It does not show in an unsandboxed Edge, in the orange box, or the yellow box.

    Obviously I can turn it off in settings for that session, but it re-appears when I open a new Edge session.
    In my other Edge boxes that setting is turned off.

    How can I get the sidebar settings from an unsandboxed Edge to show in the blue box like they are in my other Edge boxes ?
    Screenshot 2023-01-28 053512.jpg
     
  17. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
    well the blue box protects your data form being accessed by sandboxed programs, so whatever setting you make unsandboxed will not be seen by the sandboxed programs.
    You will need to set the right file or registry paths to "Normal" in order to be readable by a sandboxed process. Probably something in AppData/local/....
     
  18. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    419
    @stapp
    Probably, for some users, the sidebar is turned on by default.

    On my regular system, it's on by default. (to test it (unsandboxed): rename "%LocalAppData%\Microsoft\Edge\User Data" "User Data_BAK")

    On my VM system, it's off by default.
     
  19. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    On my regular (unsandboxed) version of Edge the sidebar setting is OFF by default, and it shows as off in all my boxes apart from the blue one.
     
  20. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    419
    I'm asking for be sure. Did you rename "User Data" folder before opening unsandboxed Edge? So it can create new defaults like BlueBox.
     
  21. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    I just tried that and it completely screwed up Edge !!
    Looks like a lot of work for me this afternoon or restore last image.
     
  22. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    Well I've set up a new Edge, redoing all the settings (and some I missed before!) and blue box still shows the sidebar :D:argh:
    I may try redoing the blue box as Google won't load in it now. All other boxes work fine in my new Edge.
     
  23. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    419
    1. Let's say you renamed "User Data" to "User Data_BAK"
    2. When you open Edge unsandboxed it will create new "User Data" folder.
    3. Close Edge (Make sure no other msedge.exe's are running because of Startup Boost)
    4. Rename newly created "User Data" to "User Data_test"
    5. Copy "User Data_BAK" as "User Data"
    6. When you copy the "User Data_BAK" folder as "User Data", the settings should be restored.
     
  24. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    24,074
    Location:
    UK
    I did items 1 and 2.
    Edge opened as if it had never been installed before and needed setting up.
    I had to kill it in taskmanager to get it to close :D
    I have redone all settings and everything is working well ....apart from the blue box !!
    I am not going to mess with it anymore as it works in all boxes but the blue one.
     
  25. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,327
    Location:
    Viena
  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.