+3 votes
239 views
How to enable or disable Windows Sandbox in Windows 10

in Security by (551k points)
reopened | 239 views

1 Answer

+4 votes
Best answer

1. Enable Windows Sandbox in Windows 10
2. How Windows Sandbox works in Windows 10

Executable files (.exe) are the preferred mechanism through which attackers seek the possibility of accessing our equipment and performing various actions (not pleasant) without permission. In some cases they can hijack information , delete or corrupt hosted files, damage system logs and many more situations..

Unfortunately, in more than 95% of cases the error is the user's own when double clicking on this type of executable files many times without verifying the developer of the same since a large part of these infected executables come from unreliable sites or through links of e-mail.

Windows 10, in its quest to improve user security , has launched a new functionality as of its 18305 version (currently available only in the Insider program) with which it seeks to know in advance what this executable is about without affecting the original system or the documents stored there. TechnoWikis will explain how to enable Sandbox in Windows 10 version 18305..

Note
This version will be available to all users in the first months of 2019.
What is Sandbox?
Sandbox has been developed as an isolated and temporary desktop environment in which it will be possible to run unsecured software without its installation on the local disk as this implies a security vulnerability in case this executable contains malicious code.

With Windows Sandbox, we will have a closed, test-oriented environment, in which we can run as many applications as we want. Everything we do there will disappear once we close Sandbox, in this way, all the software installed in Windows Sandbox will only remain in the Sandbox and at no time will it have an impact on the equipment physically. When Windows Sandbox is closed, all software along with all its files and states is permanently deleted.

What is Sandbox?
Windows Sandbox offers us features such as:
  • It is part of Windows 10 since we must have the Windows 10 Pro or Enterprise editions without the need to download a VHD.
  • When Windows Sandbox is running, its environment is similar to a completely new installation of Windows 10.
  • All tasks performed there are deleted after closing the application.
  • Sandbox relies on hardware virtualization to isolate the kernel, which is based on the Microsoft hypervisor in order to run a remote kernel making the Windows Sandbox isolated from the physical host.
  • It integrates a kernerl programmer, an intelligent memory manager and virtual GPU to facilitate management tasks.
Sandbox Requirements
The basic requirements to make use of this functionality are:
  • Against with a version of Windows 10 Pro or Windows 10 Enterprise.
  • Use an AMD64 architecture.
  • Have virtualization capabilities enabled in BIOS (UEFI).
  • Have a minimum of 4GB of RAM (8GB recommended).
  • Have at least 1 GB of free disk space and preferably if we use a solid state disk (SSD).
  • Have at least 2 CPU cores (4 cores with hyperthreading recommended).

1. Enable Windows Sandbox in Windows 10

Step 1

The first step is to have version 18305 or higher of Windows 10, this can be validated with the winver command, once this is verified, we must enable virtualization using one of the following methods:
  • If we use a physical machine, we must enable virtualization capabilities in the BIOS or UEFI.
  • In case of using a virtual machine, we must enable nested virtualization with the following PowerShell cmdlet:
 Set-VMProcessor -VMName <VM Name> -ExposeVirtualizationExtensions $ true 
Step 2

Later we will check why it is vital to have virtualization enabled in Windows 10. Once this is done, we will use the following keys and run the following line:

+ R

 appwiz.cpl 

image

Step 3

Press Enter or Accept and the following window will appear: image
Note
We can also go to the path Control Panel \ Programs \ Programs and Features.
Step 4

There we click on the line "Activate or deactivate Windows features" and in the window we will see the following if we have not enabled system virtualization:

image

Step 5

Note that the line "Windows Sandbox" is attenuated which will be impossible to activate, once virtualization is enabled we will see this:

image

Step 6

We can check if the virtualization of our equipment is enabled from the Task Manager in the "Performance" tab: image
Step 7

There we check the status in the "Virtualization" line. Once we activate the “Windows Sandbox” box, click on the Accept button and the file search process will begin:

image

Step 8

After this the changes will be applied:

image

Step 9

When this concludes, we will see the following message:

image

Step 10

There we click on the "Restart now" button for Windows 10 to apply the changes: image
Step 11

Once the operating system is restarted, we can access Windows Sandbox from the Start menu or from Cortana or the search box:

image

Step 12

Clicking there will start the Sandbox opening process:

image

Step 13

When we access this the environment of our operating system as if it were a new installation: image
Step 14

Now, we are going to copy an executable file from the physical host and paste this executable file in the Windows Sandbox window (on the Windows desktop), after this we can run the executable file in the Windows Sandbox and install the app if necessary . Once installed we can test it and validate all its functions in order to check the integrity and operation of it. Once this has been validated, we can close Windows Sandbox and everything done will be permanently deleted.

For security, we must confirm that the host does not have any of the modifications we execute in Windows Sandbox..

Windows Sandbox respects the diagnostic data settings of the physical equipment and all other privacy settings are set to the default values.

image

2. How Windows Sandbox works in Windows 10


We have seen what Sandbox's purpose is regarding the protection of information and the operating system, but TechnoWikis wants to explain a little more about Sandbox's internal operation.

image

Windows Sandbox is based on the technologies used in Windows containers. These Windows containers have been designed to be run in the cloud, so Windows developers have taken that technology and integrated it with Windows 10. That is why Sandbox can run on portable devices and devices without require the full power of Windows.

At its core, Windows Sandbox is a lightweight virtual machine. This means that you need an operating system image to boot, hence one of Sandbox's improvements is the ability to take a copy of the locally installed Windows 10 system. This avoids the need to download a new VHD image as it happens with virtual machines.

Windows Sandbox is based on a functionality called dynamic base image which uses the Windows Container language. When an image of the operating system has clean copies of files that can be modified, but links to files that cannot be changed. These are housed in the existing Windows image on the physical computer. Much of these files are links that occupy about 100 MB, so when Windows Sandbox has not been installed, the dynamic base image is preserved in a compressed package with a weight of 25 MB and when the dynamic base package is installed, This occupies about 100 MB of disk space.

As we mentioned at the beginning, Sandbox integrates a memory management utility that allows the physical host to be able to recover Sandbox memory if required.

Windows Sandbox takes the same physical memory pages as the host for all operating system binaries using a technology called direct map. Continuing with the internal functions of Windows Sandbox, it makes use of a new technology called integrated scheduler which allows the host to decide when the sandbox is running and not waste system resources.

The main advantage of using the integrated scheduler is that the computer manages Windows Sandbox as a process instead of a virtual machine. This allows the equipment to be much more receptive and act at key moments of use.
We can see how with each new update of Windows 10, we seek to improve the final user experience with news that will have a positive impact on the daily use of the system and its applications are jeopardizing the availability and integrity of these.


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Jul 31, 2020 in Security by backtothefuture (551k points) | 694 views
+4 votes
1 answer
+3 votes
1 answer
asked Nov 20, 2021 in Guides by backtothefuture (551k points) | 94 views
+4 votes
1 answer
asked Nov 10, 2019 in Windows 10 by backtothefuture (551k points) | 267 views
+5 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users