Advanced Plus Security Victor M Fedora Cosmic Linux config

Thread details
Last updated
Sep 12, 2026
Main use of this computer
For work or educational use
Operating system
Linux
OS version and support details
Fedora Cosmic 44
On-device encryption
Other full-disk drive encryption software
Device sign-in security
    • Hardware security key
    • Account password
Security updates
Allow security updates
Update channels
Allow stable updates only
User Account Control (UAC)
Not applicable - not running Windows
Smart App Control
Not applicable / not available on this device
Network firewall
Enabled
Router and network details
ISP supplied + MikroTik VLAN
Real-time protection
SELinux
systemctl
Hagezi
Device firewall
Built-in Firewall for Mac/Linux
Custom security settings
SELinux staff_u, user_u confinement
fapolicyd (App Control) custom rules for untrusted scripts
Browser sandbox + SELinux
Hardening compromised surfing acc scorched earth
Constrain command line 125 char
Mitigations for Mitre Att&ck: T1547.013 T1543.002 T1053.006 T1053.002 T1053.003 T1176.001 T1548 T1068 T1055 T1611
Surfing account level Hagezi DNS blocking (Threat Intel Feed, NewRegisteredDomains)
C2 mitigation
Libre Office policy: no Macros
Brave policy: noJavascriptJIT, no RemoteDebugging, no Extensions, no DevTools
dnf policy
Yubikey 2FA for login, sudo
CIS STIG (Center for Internet Security) baseline Workstation Level 2
Periodic malware scanners
n/a
Malware sample testing
I do not participate in malware testing
Environment for malware testing
n/a
Browsers and extensions
Brave ( extensions banned by policy )
Secure DNS
Quad9
Desktop VPN
ProtonVPN
Password and passkey manager
keepass
Maintenance tools
Cosmic defaults
File and photo backups
manual
Subscriptions
    • Other subscription
System recovery
Clonezilla
Usage and exposure
    • Visiting familiar websites
    • Working from home
Computer specs
Dell Latitude (2016)
Feedback preference

Detailed suggestions and alternatives welcome

Victor M

Level 28
Verified
Top Poster
Well-known
Here is my latest build: Fedora 44 Cosmic. Was using Fedora KDE, hated the Windows styled start menu. Previous to that Fedora Gnome, but it has problems with user_u confinement; had to ask chatgpt to fix. And my fault didn't document it properly. This time every configuration hardening step is documented so it's repeatable. ( 20 main steps )

I stick with Fedora because of their fast track updates. Patches arrive sooner.

I find Cosmic is similar to Gnome roughly in appearance. It doesn't have a Switch User feature. Maybe it was deliberately designed out. The login screen doesn't show big icons of user names, instead there's a tiny button which is a pull down menu of users; not as convenient.

Cosmic just came out of 2 yrs development in Dec and is still under development. For example when copying a large number of files, sometimes a progress bar comes up, sometimes not. Things get moved around within a span of a few months ( last time I distro hopped ) and a PAM setting changed file location. I am willing to put up with it as long as they don't break my security configuration or it's easy to fix. Cosmic is built by System76 a hardware vendor, so it is well funded. I think of it like Sun Microsystems.

But, Cosmic is built with RUST. No buffer overflows, no use-after-free, no dangling pointers and all that good stuff that comes with a modern language. Less attackable I believe.
 
Last edited:
Looks nice, tried it before, but went back to my good friends Ubuntu and Gnome.

1789206132703.png
 
Wow - fapolicyd really strong next level setup (y)(y)(y)

I have a light NIDS in my router (came build-in with the router) which allows setting alert levels and when those levels are hit, sends you an e-mail. Together with logcheck (light HIDS) and opensnitch (together with build-in FW) it is with Linux sandboxing (AppArmor for print, Firejail for desktop assecoires and Flatseal stripped Flatpak's for applications) the back bone of my security.

I read that fapolicyd also can be used on Ubuntu/Mint distro's. How is your experience with it?
 
Last edited:
You inspired me to install it also. I noticed that I could not backup mt extensions with FreeFileSync because users are not even allowed to read scripts. Because I am running as standard user fapolicyd only applies to standard users and I allowed standard users to read/write scripts, executbles and libraries (for backup).

Thanks for posting your new setup :-)
 
iI allowed standard users to read/write scripts, executbles and libraries (for !backup)
You mean like the following ?
allow exe=backupApp perm=open : ftype=%languages ( I think this %languages is defined in a higher rule: 10-languages.rules )
allow exe=backupApp perm=open : ftype=application/x-executable
allow exe=backupApp perm=open : ftype=application/x-sharedlib

There is a loophole when it comes to python and other language interpreters when it comes to ftype=text/plain . If you don't regulate it, then they can execute plain text files that has no #! , and attackers can use it to run any file they want. I use:
deny_log exe=python3.14 perm=any : trust=0

Then you will need to make allow rules for specific text files like .conf which aren't part of any .deb and are generated post install.

The baseline for these conf files I found by trying update-manager (software updater) and doing "fapolicyd --debug-deny"
 
Last edited:
Having been using BraveVault inet security for Cosmic for a few weeks now. So far so good. Cosmic was the first platform developed. Then came Ubuntu and Kubuntu.

 
Last edited:

Join the discussion

Write your reply below. You'll create a free account or log in before it's posted.

Recently browsing

Members who viewed this thread in the last 5 minutes

Back
Top