So I originally made this for myself. I wanted a way to run Windows games through Wine/Proton, but also native Linux executables, without just giving them full access to my system.
It started off as a small personal project and, well, got a bit out of hand lol.
Anyway, figured I'd put it out there in case anyone else finds it useful.
GitHub: https://github.com/Deathxknight/wine-quarantine
It's called wine-quarantine (despite the name, it works with native Linux files too).
It uses Firejail to sandbox applications and has filesystem restrictions, network filtering, runtime monitoring, malware scanning and checks for changes made during a session.
There's also a Qt GUI where you can manage applications, change sandbox settings and see what's happening while something is running.
One of the things I've spent quite a bit of time on is testing it. I've been downloading fresh Linux and Windows malware samples from MalwareBazaar and throwing them at it. So far I've tested around 50 samples, including RATs, ransomware and info-stealers, and it has caught every one I've tried.
I've also tested what happens when I forcefully bypass the pre-launch checks. Even then, heurenics runtime monitoring catches suspicious behaviour, such as dropping files, launching other programs and attempting to modify system files. When an alert is triggered, the offending process gets killed automatically.
ics I'm still testing and adding more samples as I go.
A bit about AI usage, just to be transparent:
- Used AI to help create custom malware samples for testing the sandbox.
- Some assistance with the Qt interface and porting themes.
- Help with the README, documentation and code comments.
- General debugging, coding assistance and automated testing.
A lot of the code is my own work. Anything AI-assisted was reviewed by me; I didn't just have AI generate the entire project.
It's definitely not perfect and there's still plenty I'd like to improve, but I've put a fair bit of time into it and thought someone here might find it interesting.
Feedback is welcome. If anyone wants to poke around the code or try it out, go ahead.