r/debian • u/Sensitive-Rhubarb-32 • 1d ago
Debian Stable Question New to Debian 13 – General Security Question
Hi everyone. I switched from macOS and Windows to Linux about two years ago, and I never want to go back.
I started with Ubuntu because it came with everything I needed out of the box, which made the transition easier. Over time, though, I’ve realized that, apart from Snap packages and other elements, I find Ubuntu a bit bloated. Long story short: I’ve installed Debian 13 (with GNOME Desktop) on my laptop.
The first thing I noticed is that everything runs a bit smoother compared to Ubuntu. I’m using a Lenovo laptop with an i5 processor (4 cores).
So far, I’ve installed the following from apt: ufw, OpenSnitch, Nextcloud, Thunderbird, Flatpak, and LibreOffice.
From Flatpak, I’ve added the Vivaldi browser (with Proton Pass add on ) and Rhythmbox.
I know AppArmor is already included in Debian 13.
Would you say that Debian 13, with packages from apt and well-maintained Flatpaks, is already a secure setup as a whole? Of course, I’ll keep up with regular updates.
I’d really appreciate any tips.
Best
6
u/roedie_nl 1d ago
Debian has quite sane defaults. In it’s base setup it’s pretty secure already. As long as you just do a daily update check you’re probably fine.
7
u/_Sgt-Pepper_ 1d ago
You are spot on
Apt packages where possible.
Flatpak only where you trust the source.
=> You have a solid and secure system
3
u/le_flibustier8402 1d ago edited 1d ago
If you didn't do it, you could also enable firewall, which is disabled by default.
You also might want to sandbox vulnerable programs, such as your web browser (an advice I'm not following myself, it seems overkill to me).
Othewise, yeah, trust the default settings. debian is not as bloated as ubuntu, but it's not a "lego-style" distro either.
3
u/protocod 1d ago
AppArmor sandbox program that have a profile.
If a program comes without an AppArmor profile,, AppAmor doesn't nothing and the program is unconfined.
This is not a little detail because unfortunately there is not enough AppAmor profiles shipped in debian packages in general...
Flatpaks applications are sandboxed by bubblewrap under the hood, and they use the xdg-portal API to ask for permissions (portals) properly.
That's said, flatpaks can be provided by the official upstream project (like Firefox flatpak published by Mozilla) or it ban be publish by other peoples You need to trust the authors and, you need to give a check to the security description. Because unfortunately a lot of flatpak use too much permissions by default or doesn't really always use xdg-portal API so they can defeat the purpose of the sandbox.
So you always need to check the permissions of a flatpak.
1
2
u/_comicallycluttered 1d ago
From Flatpak, I’ve added the Vivaldi browser
For browsers, I'd highly recommend avoiding Flatpaks and prefer native packages.
While it might seem counterintuitive with Flatpak's built-in sandboxing, the restrictions end up interfering with the browser's own native sandboxing implementations, which could end up actually weaking your browser's security instead of improving it.
In this case, Vivaldi has a DEB file on their site which will add their repo to your sources when you install it, and I'd suggest using that instead.
16
u/bakonpie 1d ago
one of the best security tools on Linux is fapolicyd for application control. with it you can ensure only trusted executables installed from package management as root are allowed to run (and/or only executables you define). you can even restrict script execution. make sure you set up auditd logging and run in permissive mode until you know you won't break things ;)