Tutorial Sandboxie Plus Quick Start.

5.00 star(s) 2 Votes

Uncle Eugene

Active Member
Modder
Respected User
Jun 6, 2020
602
4,583
426
even Renpy refused to start when I restricted it that much
Yes, that's the problem and what I would like to know myself. How strict can you make a sandbox until the game fails to run. Probably the answer is different depending on an engine and plugins used.
Also this is problematic for save files

I'll send you virus links sometime later once I get to them
 
  • Like
Reactions: colobancuz

WheresLucifer

Well-Known Member
Sep 1, 2018
1,351
1,339
327
Uncle Eugene colobancuz , both of you two have good comments in last several posting.

Sandboxie Plus is one of the "recommended" features for majority of the users who are not experience with alternate methods such as Virtual Machine (VM). However, Sandboxie Plus help reduce the risk, another word not 100% protect the host (computer/laptop). Each AVNs has it own preference layout by the developer which may requires additional needs to allow the AVN to perform.

In older posting or posting in another forum, the best solution is to use and older/unused computer that have recovery software available. The next solution is to use Virtual Machine (Virtual Box/VMware Workstation). The draw back with VM is the virtual graphic card (GPU). The third possible solution is use Sandboxie Plus (maybe Microsoft Sandbox, havent test it and only available on Windows 10/11 Professional).

Any of the AVN/Ren'PY/RPGM/games that I run, I run them in VM first, if the performance is not good, then I run it in Sandboxie Plus. When I run it in VM, I have the vNIC (Network) disabled. When I run it in Sandboxie Plus, I have no admin and no network set up. If AVN/Ren'PY/RPGM/games does not run or have poor performance, i dish that AVN/Ren'PY/RPGM/games.

All we can do is help others to be able to reduce the risk of the outbreak, however we all say nothing is guarantee it 100% safe.

Have a great day and be safe... (y)
 
  • Like
Reactions: Finuee

Uncle Eugene

Active Member
Modder
Respected User
Jun 6, 2020
602
4,583
426
When I run it in VM, I have the vNIC (Network) disabled.
Sounds like it would be much better for you to run the games in VM with network access so if they do download a virus archive you would know that before you run it on a host even in sandbox, just saying
 

Boromir.

Member
Jul 2, 2021
100
112
154
How do I delete or move a game? Do I need to disable forced folders before deleting/moving the game folder? Also, is it normal to see two CMD processes when launching a Ren'Py game?
 

colobancuz

Active Member
Respected User
Aug 11, 2019
995
2,527
367
How do I delete or move a game? Do I need to disable forced folders before deleting/moving the game folder?
You don't need to disable anything to delete, move or copy files to/from the forced folder. Only launching applications in this folder will cause them to run in the sandbox.

Also, is it normal to see two CMD processes when launching a Ren'Py game?
What are these CMD processes? Please provide a screenshot.
 
  • Like
Reactions: Boromir.

Boromir.

Member
Jul 2, 2021
100
112
154
You don't need to disable anything to delete, move or copy files to/from the forced folder. Only launching applications in this folder will cause them to run in the sandbox.


What are these CMD processes? Please provide a screenshot.


Two, sometimes even three CMD processes briefly appear when launching the game, but they close right away once the game starts.
 

F1forhalp

MRP: Murlocrev
Donor
Oct 28, 2019
2,451
2,150
447
looking at it, these cmd are started as a child process of the AnEveningOfEvents.exe which i assume is the game's exe file.

/c Carries out the command specified by string and then terminates, the string here is "ver"

so would mean, the game starts a command prompt (cmd.exe) with the instruction to execute the string "ver" and then quit.
my understanding from older win versions would be it's a version check, but i couldn't say which file is checked, or for what reason.
dev could tell if it's a legit action.
 
  • Like
Reactions: Boromir.

Boromir.

Member
Jul 2, 2021
100
112
154
looking at it, these cmd are started as a child process of the AnEveningOfEvents.exe which i assume is the game's exe file.

/c Carries out the command specified by string and then terminates, the string here is "ver"

so would mean, the game starts a command prompt (cmd.exe) with the instruction to execute the string "ver" and then quit.
my understanding from older win versions would be it's a version check, but i couldn't say which file is checked, or for what reason.
dev could tell if it's a legit action.
https://f95zone.to/threads/an-evening-of-events-final-digitaljplayground.224004/

I downloaded the game from here months ago, but I didn't execute the launcher until I installed Sandboxie.
 

colobancuz

Active Member
Respected User
Aug 11, 2019
995
2,527
367
https://f95zone.to/threads/an-evening-of-events-final-digitaljplayground.224004/

I downloaded the game from here months ago, but I didn't execute the launcher until I installed Sandboxie.
I compared the Renpy files with the SDK - everything matched, even the exe. A quick check of the game scripts also found nothing unusual. When I ran it in the sandbox, I didn't have any cmd processes in the log, maybe I didn't keep it running long enough. I don't know what to say here, everything looks normal. But to be honest, this is the first time I've seen a Renpy game launch cmd — it doesn't seem like standard behaviour. I think you can play in the sandbox.
Just in case, I downloaded the MEGA link: SHA-256 dd71d8e9459631dc67a02be42b996bcbd9bb19c64355b7c711091898a257a1fc *AnEveningOfEvents-pc.zip
 
  • Like
Reactions: Finuee and Boromir.

Boromir.

Member
Jul 2, 2021
100
112
154
I compared the Renpy files with the SDK - everything matched, even the exe. A quick check of the game scripts also found nothing unusual. When I ran it in the sandbox, I didn't have any cmd processes in the log, maybe I didn't keep it running long enough. I don't know what to say here, everything looks normal. But to be honest, this is the first time I've seen a Renpy game launch cmd — it doesn't seem like standard behaviour. I think you can play in the sandbox.
Just in case, I downloaded the MEGA link: SHA-256 dd71d8e9459631dc67a02be42b996bcbd9bb19c64355b7c711091898a257a1fc *AnEveningOfEvents-pc.zip
I also tried launching Bad Bobby Saga 1.1.0 in a sandbox. Even though I was already playing it outside the sandbox, it showed me the same CMD prompts. However, I don't experience this with any other games that I tried besides these two.
 

WheresLucifer

Well-Known Member
Sep 1, 2018
1,351
1,339
327
noob question guys but how do you run an RPGM game in the sandbox
Most of the newer RPGM should run in Sandboxie Plus. However there are some RPGM needs certain "RPG Maker" Run Time tools install to order to have it functional. I havent have the extra time to spare to analysis it and document it. However, I do have Sandboxie Plus installed in my VM, so my VM already have few "RPG Maker" Run Time tools installed. It just I need to make some time to figure that out. What RPGM game/AVN are you referring to that you are having issue with?

Have a great day and be safe... (y)
 
  • Like
Reactions: RackUser

RackUser

Newbie
Aug 21, 2023
48
34
102
Most of the newer RPGM should run in Sandboxie Plus. However there are some RPGM needs certain "RPG Maker" Run Time tools install to order to have it functional. I havent have the extra time to spare to analysis it and document it. However, I do have Sandboxie Plus installed in my VM, so my VM already have few "RPG Maker" Run Time tools installed. It just I need to make some time to figure that out. What RPGM game/AVN are you referring to that you are having issue with?

Have a great day and be safe... (y)
I assumed it was something like that as a few RPGM games would run fine and some wouldn't the two games that gave me trouble recently was Knight of Love and Ex.D.e., I'm assuming these games need internet connection in order to acquire what it needs to run. Guess I could just wait a week and see if a virus is found and if not then run it outside the sandbox or just allow internet access
 

colobancuz

Active Member
Respected User
Aug 11, 2019
995
2,527
367
I assumed it was something like that as a few RPGM games would run fine and some wouldn't the two games that gave me trouble recently was Knight of Love and Ex.D.e., I'm assuming these games need internet connection in order to acquire what it needs to run. Guess I could just wait a week and see if a virus is found and if not then run it outside the sandbox or just allow internet access
изображение_2025-09-03_083142322.png
Dude, I posted a link to the solution to the problem at the very beginning of the OP. Here it is.
 
  • Like
  • Sad
Reactions: Finuee and RackUser

dluser

Well-Known Member
Apr 23, 2024
1,407
1,322
232
Sandboxie Plus


Attention!
If you have problems launching games on the RPGM engine in Sandboxie, try this solution.

F95 has been under attack recently (see https://f95zone.to/threads/recent-malware-infected-games.207437/ for details) and a good way to protect yourself is to run games in a sandbox. There are several sandboxes available (even from Microsoft, built into Windows), but here we will look at Sandboxie Plus. There used to be a setup guide, but it was deleted and people are asking for it to be restored. Which I have tried to do (well, as best I could).

Attention!
If you are really concerned about your security, then a sandbox cannot be the only solution. First and foremost, your user must have limited rights. This is incredibly important, and without it, all other security actions are largely meaningless. You should also have antivirus software and a firewall configured. A description of this is beyond the scope of this guide, but you can read more about it here and .

What does Sandboxie do? It runs programs (games) in an isolated environment, preventing (well, almost) any changes to the host system. It also allows you to block internet access for isolated programs, preventing them from downloading malware or sending personal information to hackers. Sandboxie Plus has the ability to create multiple sandboxes, each with its own settings. For example, with or without internet access allowed.

As this is a sandbox and not a virtual machine, it offers maximum performance and access to the hardware. I've run games on UE and Unity with heavy graphics without any problems and haven't noticed any performance degradation, at least not in-game. Sometimes games take longer than usual to start due to copying files inside the sandbox.

How Sandboxie Plus works with files
For each sandbox created in Sandboxie, an isolated file-system folder is created, but you don't need to copy anything there (or from there), as Sandboxie allows you to use files from your system, and only when an isolated program tries to modify a file in the system (or create a new one), it will be placed in this isolated file-system, and the program will continue to work with it without noticing the change. When you are finished, you can either find this file in the sandbox folder yourself, or use the Recovery Sandboxie tool. You can also do this automatically when clearing (deleting the contents of) the sandbox by specifying the folder to be restored in the settings. How to set it up and use it is described below.

This manual is intended as a quick start and does not contain details on the operation and configuration of Sandboxie. If you are interested in the details, use the forum (there is a link on the application's website).
Warning! I am not an expert in using Sandboxie and am only sharing my experience as a regular user. If you have any useful comments - post them in the thread. If you have questions about configuration details (especially security) - I am unlikely to be able to help you, you should go to the developer forum and look there. Also, I apologize in advance as English is not my first language.

Download this guide

Download the latest version here:
Sandboxie Plus has a free and a paid version. The free version is sufficient for most applications.
All images are for version 1.15.8 and may be different for other versions, always check the name of the parameter/option as they may be different in wording and location.

Installation is very simple - next, next, next...
View attachment 4688019

The first time you start the program, the setup wizard will appear.
1. Select Personal use. Click Next.
View attachment 4688023

2. For the free version, skip this screen. Continue.
View attachment 4688026

3. Customize the interface or leave it as it is.(If you select not advanced UI then there will be no advanced options in the settings, how to fix afterwards see here) Next.
View attachment 4688029

4. Make sure you select to run at startup. I also recommend adding Run in sandbox to the context menu, the rest is up to you. Next.
View attachment 4688031

5. Make sure you enable version checking. Always update Sandboxie to the latest version when it asks you to (this process is automatic and you only have to accept). Next.
View attachment 4688036

Right after the setup wizard, the global Sandboxie Plus settings will open. There are a lot of things you can configure here, but in short, you can leave everything as it is, except for three things:
1. Check 'Hide Sandboxie's own processes from the task list' so that no viruses can see that the sandbox is running. Of course, this will not protect you from sandbox detection, but it is something.
View attachment 4688039

2. Enable 'Show file recovery window when emptying sandboxes'. If enabled, you will be offered to recover files from the sandbox when emptying it (manually or automatically). This must be enabled if you want to recover files automatically (see below).
View attachment 4688040

3. Important addition (thanks to trumpthatbitch). You should restrict the ability to change Sandboxie settings to administrator accounts only. It is very desirable that you have a separate administrator user, but even if you don't, your account should have a password and should be prompted for it when you try to change settings. Details.
View attachment 4691549

That's it, the Sandboxie configuration is done. You now have a sandbox called “DefaultBox”. You can rename it or move the sandbox files to another location. Also in the context menu there are important items “Recover Files” and “Delete Content”, if you want to do it manually. For now, we need to configure the sandbox itself - select 'Sandbox Options'.
View attachment 4688079

1. Appearance settings are up to you, but the default setting for windows of applications running in the sandbox is an annoying (to me) thick yellow border. I recommend removing it.
View attachment 4688047

2. If you don't want to recover files from the sandbox manually (of course, saves go to an isolated folder), and to increase protection (even if something bad got into the files), I recommend enabling automatic sandbox cleanup. When you exit the application (game), if recovery folders are configured, a window will automatically appear asking you to select the files you want to recover. All sandbox content will then be deleted. If you are afraid of losing your saves, do not activate this option, you will have to restore everything manually.
View attachment 4688051

3. This allows you to specify the folders that will be scanned for files to recover. There are default folders here, but you can add your own and/or delete existing folders.
View attachment 4688056 View attachment 4688058
For example, for Renpy games. For other engines you may need to add the whole AppData folder or even the games folder.
Warning! If you have set up automatic deletion and there are no files in the folders specified here when the game is finished, the recovery window will not appear and the sandbox content will be deleted. Pay attention to the recovery folders, find out where your games are saved and add them here. Another option is to create multiple sandboxes for different engines, so that it is easier to sort out which files to restore and which not to.

4. Off by default, but recommended. I would switch it on.
View attachment 4688061

5. Here we can configure to force programs to run in the sandbox. There are several options, but I think the best one is a folder. Anything running in that folder will be sandboxed. This way you won't accidentally forget to select 'Run in sandbox' for every game (and every time). Very handy. You can add several folders, but I usually choose one and unzip the games into it (into sub-folders). It is important to remember that EVERYTHING that runs from this folder goes into the sandbox - for example, images and video viewers run in the sandbox, as do text files and links to the internet. The same goes for archivers. To avoid this, start a software (player, viewer, editor) and choose to open a file from this folder, then everything will be normal. Or turn off the forced folder for a while.
View attachment 4688063

6. The second important setting. This allows you to disable access to the Internet (and the network as a whole). It is enabled by default. For most of the games on this site, you can easily turn it off. For others, use a separate sandbox.
Basically you don't have to switch this off here, you can do it after setting it up, see here.
Important!
Some games (mainly RPGM) may stop working if you completely block access to the network. Simply allowing access may not solve the issue. The solution is described here.
View attachment 4688064

7. For the vast majority of games (and applications) there is no need to look at other processes. So we turn this option on. If you want to run a cheater - run it in the same sandbox, otherwise it will not get to the game process (although I have not checked). The second option is also useful, nothing for a normal game to interfere with the system.
View attachment 4688065

8. I'm turning everything on here. Again, this is unnecessary information for a normal game, and only identity thieves, hackers and viruses will look at it. Well, don't!
View attachment 4688067

That's it, everything is set up.

How to install/unpack games, patches and saves.
Basically the same as usual, but remember that if you set up a forced folder, the archives should be stacked outside it, and only unpacked into that folder. The same goes for patches and saves. If you need to edit a file (e.g. text), run the editor and then choose to open the file in the folder. Then any changes will be on your disc, not in the sandbox. If the installer runs any scripts FROM the folder it installs in, things can go wrong. It would be easier to disable the forced folder during installation.

Is it even necessary to automatically clean the sandbox?
Not at all. If you're playing on a single computer and don't need to transfer your saves, you can leave them in the sandbox. Even if you start a new version of the game, it will take the files from the sandbox (they have priority over the ones you have on the disc). And there is no fuss about recovering files.
But! If something nasty gets through to you, it may not break your system, but it can easily break the files in YOUR sandbox, i.e. your saves. Also, it will stay in the sandbox, it can collect data (whatever it can get out of the sandbox), and maybe it can somehow transfer that data out. The longer it stays there, the more chances it has to get out and do some damage. With auto-removal, it will all be wiped out and the virus won't be able to get a foothold.
Personally, I prefer the slight inconvenience of file recovery, but it's up to you.

How to recover files from the sandbox.
The easiest way is to use Sandboxie's Recover Files feature. If you have recovery folders and auto-delete configured, you will see a window like this when the game is finished.
View attachment 4688070 View attachment 4688071
"Recover": When you click this button all files you have selected will be restored to their original location outside the sandbox and deleted in the sandbox. The window will not close and you can continue to restore files.
"Delete content": When you click this, ALL content in the sandbox will be deleted, that is, if you have not restored saves of other games - they will be deleted. The window closes (there is nothing else to do as the sandbox is empty).
"Close": Nothing is deleted and the sandbox keeps all files (except those that have been restored) and just closes this window. When you next start and close the game, this window will appear again and will include new files and old files stored in the sandbox.
If you want to restore (or just look at) all the files in the sandbox, tick the "Show all files" box.
If you select "Recover Files" from the sandbox context menu, you will see a similar window (there is no "Delete Content" button).
You can simply go into the sandbox folder and copy the files you need. Normally, the files for each sandbox are located in C:\Sandboxie\%USERNAME%\%SANDBOXNAME%\.
thank you, i need to take some time to read all of this !!!!!!!!!!
 
  • Like
Reactions: Finuee

delabeca49

Newbie
Nov 7, 2017
20
7
126
Personally, I have not used mtool myself, but I suppose you can add the folder with mtool here:
View attachment 5186855
This should allow Internet access only for the software in this folder. I have not checked it.

Update
Or you can even specify a specific exe file that is allowed access. That would be safer.
I tried your suggested method but it causes error, this is just mtool starting up, not hooked to the game yet.
image_304.png
 

colobancuz

Active Member
Respected User
Aug 11, 2019
995
2,527
367
I tried your suggested method but it causes error, this is just mtool starting up, not hooked to the game yet.
View attachment 5216383
I am not familiar with mtool. How exactly does it work—do you run mtool first and then the game through it? And where are mtool and the game located—both in a forced folder (where everything starts in the sandbox) or not? It's just that for a process outside the sandbox, it's difficult to connect to a process inside the sandbox. So maybe you need to run both programmes in the same sandbox...
 

delabeca49

Newbie
Nov 7, 2017
20
7
126
I am not familiar with mtool. How exactly does it work—do you run mtool first and then the game through it? And where are mtool and the game located—both in a forced folder (where everything starts in the sandbox) or not? It's just that for a process outside the sandbox, it's difficult to connect to a process inside the sandbox. So maybe you need to run both programmes in the same sandbox...
Yes, in a normal scenario i'd run mtool first then drag and drop a game .exe into it then press start game which will inject the game with the tool actively.

Upon launching mtool, the program automatically connect to the internet to scan for updates. I did another scenario test, this time i just plugged off my router. The program launched as it should (displaying menu and all, just unable to update).

Though, the error happens at the very start of just launching mtool in my previous post without reaching the menu display at all as i shown. I think sandboxie method here makes mtool think they're connected to my router but isn't given access to the internet. So the tool just keep on trying and stuck on update check loop at the start. While when i turned off the connection to my router for real, mtool skips the update checks.

Anyway, i already found a solution. It seems like sandboxie is still not allowing internet access despite the exclusion i gave to the directory. I do another test, this time by checking the user prompt for exclusion option.
image_306.png
I just allow it manually through the prompt pop ups for every process in the mtool directory after i launch it and now the program runs normally with working internet access.
image_305.png
 
  • Like
Reactions: colobancuz

hsehsing

Member
Jul 11, 2017
429
108
218
Yes, in a normal scenario i'd run mtool first then drag and drop a game .exe into it then press start game which will inject the game with the tool actively.

Upon launching mtool, the program automatically connect to the internet to scan for updates. I did another scenario test, this time i just plugged off my router. The program launched as it should (displaying menu and all, just unable to update).

Though, the error happens at the very start of just launching mtool in my previous post without reaching the menu display at all as i shown. I think sandboxie method here makes mtool think they're connected to my router but isn't given access to the internet. So the tool just keep on trying and stuck on update check loop at the start. While when i turned off the connection to my router for real, mtool skips the update checks.

Anyway, i already found a solution. It seems like sandboxie is still not allowing internet access despite the exclusion i gave to the directory. I do another test, this time by checking the user prompt for exclusion option.
View attachment 5221037
I just allow it manually through the prompt pop ups for every process in the mtool directory after i launch it and now the program runs normally with working internet access.
View attachment 5221047
How is the performance when running RPGM games with MTool in sandboxie?
For me it completely kills the performance (reduces the FPS by around 90%)
 
  • Thinking Face
Reactions: F1forhalp

jems666

Active Member
Jun 22, 2022
982
1,187
267
hey, first time using sandboxie and have a question, i selected run in the folder option unpacked a unity game in it and it still uses the save file from my appdata folder in my c drive? is that normal or should that be restricted some how?
 
5.00 star(s) 2 Votes