sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.81k stars 1.54k forks source link

Can't recover files when using snapshots #3266

Open hippalectryon-0 opened 1 year ago

hippalectryon-0 commented 1 year ago

Describe what you noticed and did

When creating a snapshot, the list of files recoverable from "Recover Files" becomes empty. Upon using the sandbox after taking a snapshot, only the newly created files are recoverable through the popup.

This behavior is both unexpected and unpractical.

How often did you encounter it so far?

Always

Affected program

-

Download link

-

Where is the program located?

Not relevant to my request.

Expected behavior

Users should be able to recover all files inside the current sandbox state

What is your Windows edition and version?

Windows 10

In which Windows account you have this problem?

Not relevant to my request.

Please mention any installed security software

-

What version of Sandboxie are you running?

Sandboxie Plus 1.11.0

Is it a new installation of Sandboxie?

I just updated Sandboxie from a previous version (I remember which one it is).

Is it a regression?

No response

In which sandbox type you have this problem?

In a standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

No response

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

No response

DavidXanatos commented 1 year ago

well is it unexpected? why not recover your files before making a snapshot?

hippalectryon-0 commented 1 year ago

From your answer I get the feeling that maybe my use of snapshots is not what you've designed snapshots for (??)

Here's a typical use case: I install a potentially "bad" program into an existing sandbox. The program is not necessarily malicious, but may act in unexpected ways. In order to avoid losing my sandbox state, I make a snapshot. I then run the program in the sandbox. After making sure that all went fine (if not I revert the snapshot), I want to recover the relevant files from the sandbox.

It doesn't make sens to recover the files before running the program, since we're only interested in the end result.

More generally, I use the snapshot tool as a way to backup the state of the sandbox in case anything happens, and therefore I expect both that the sandbox's usability is the same right after taking the snapshot, and that if I revert the snapshot it will also revert the sandbox's functionality to what it was right before taking the snapshot (which is currently not the case, as evidenced by the recover files dialog).