If you’re looking for a technical explanation of how the sandbox works, see our Sandboxing Technical Details article.
What is sandboxing?
Sandboxing is a security feature in the Modrinth App that limits what Minecraft and mods can access on your computer.
When you run an instance, you’re allowing Minecraft and any mods you’ve installed to run code on your computer. This means a malicious mod could access your personal files, steal your account credentials, or make unwanted changes to your system.
While we have a content review process to help prevent malicious mods from being distributed on Modrinth, the sandbox is designed to provide an additional layer of protection regardless of where you get your mods from.
How does sandboxing work?
Modrinth’s sandbox uses features of your operating system (Windows, MacOS, Linux) to restrict what Minecraft can do on your computer. It’s designed to be as permissive as possible while still protecting your system. An instance running with the sandbox enabled can still make network requests, interact with devices (mouse, keyboard, controllers, etc.), and access the files required for Minecraft to run.
The main restriction is around which files and folders on your computer the instance can access. This is limited to files required for Minecraft to run, certain system files, and anything else you explicitly allow.
When should I use sandboxing?
Eventually, we’d like to have the sandbox enabled for all instances, regardless of whether the content is published on Modrinth or comes from somewhere else. However, it will take some time and work to ensure the majority of mods work out of the box with the sandbox enabled.
For now, the sandbox is disabled by default for all instances. We encourage you to enable it and see how it impacts the mods installed on your instance.
Managing your sandbox settings
You can configure the sandbox globally in the Modrinth App’s settings. This includes when the sandbox is enabled and any additional permissions you’d like your instances to have, such as access to specific files or folders on your computer.
You can also override these settings on a per-instance basis in your instance settings. For example, you might want to enable the sandbox for a particular instance containing mods from outside Modrinth.
Compatibility and troubleshooting
Some mods may not work as expected with the sandbox enabled. If Minecraft fails to launch or a specific feature of a mod isn’t working in-game, your instance logs are the first place to look to see what’s going wrong (e.g. a mod attempting to access a folder outside of the instance).
We also recommend being extremely cautious of anyone asking you to disable the sandbox or grant additional permissions, even if it’s a friend or a mod author you trust. Both accounts and projects can be compromised, and this is one way someone could try to get around the protections provided by the sandbox. While there are legitimate reasons why a mod might require additional permissions, you should make sure you understand why it needs them before granting access.
Frequently Asked Questions
Does sandboxing affect Minecraft's performance?
Sandboxing does not use heavy virtualization, instead relying on lightweight mechanisms provided by the operating system. The sandbox should result in almost zero performance impact on the game.
Does sandboxing prevent all malware?
Sandboxing can’t prevent all malicious behaviour, and it is possible for malware to find escapes or bypasses to the sandbox. You should still be careful when downloading mods from untrustworthy sources like Discord DMs or suspicious websites.
Can sandboxed mods access my Minecraft account?
Sandboxed mods can still perform many operations on your Minecraft account like logging in to servers, reporting players or changing your skin/cape/username. However, sandboxed mods cannot perform sensitive operations like changing your password or deleting your account.
How do I know if sandboxing is breaking mods in my instance?
The most common tell is a mod reporting that a file can’t be accessed, that a file which should be accessible is missing instead, or that another program like Steam/Discord isn’t running when it is running. Mods should be designed to gracefully report any permission issues to the user, but some mods may silently break or crash instead. Depending on the nature of the error, you should contact either Modrinth support or the developer of the mod.
Does sandboxing work the same way across Windows, macOS, and Linux?
Sandboxing uses different mechanisms across various platforms. That said, we’ve tried to make sure the sandboxing behaviour is roughly consistent across all of them.
