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:
Have made a RMF (NIST Risk Management Framework) Assessment for Ubuntu BraveVault Inet Security.
see here : Introducing BraveVault: inet security Ubuntu & Kubuntu | MalwareTips

An RMF assessment's purpose is to make sure that protections work to protect as implemented. It doesn't mean that they cannot be bypassed. It maps the protections to NIST 800-53 control categories, just so that people familiar with 800-53 know what they are looking at. It basically test for functionality and adds some 800-53 labeling.
 
Currently doing penetration test of Ubuntu BraveVault Inet Security with the help of ChatGPT Cyber. I like to instill confidence, and the best way is to do that is do a pen test. The pen test first does some network based attacks, then does whitebox examine the code for weakness tests. It's not magical proof of invincible-ness. It is a point-in-time evaluation as of these few days. ChatGPT Cyber AI is like a human, on good days it will think up a good set of attacks, on a 'bad' day it will think of less. Plus, a pen test is point-in-time, so 'around these few days' there exists these exploitable paths and they were attempted, but that also means in the next few days some new exploits may unforeseeably appear. But that's cybersecurity, and it's better to do a pen-test than not. You end up with some things to correct. Fix them. Continue on development. Be careful in development. Do SAST. Perform an assessment. And pen-test again.

Tip: Try ask your favorite AV/security vendor for pen-test results. If they are up to snuff, they should be able to hand over one. Or ask for a SOC-2 report. If they don't test, how do you know the product can survive a targeted attack ? How can you possibly rely on them? Case in point , @Shadowra sometimes point out that this or that product gets overwhelmed and can't defend itself. Businesses routinely ask for reassurances like these. I have seen companies lose major contracts because they can't hand over a report. You should as diligent and protect your investment too. Your stuff is important, no? All you have to do is send an email and ask.

When I was focusing on Windows security, I asked ESET PROTECT to send over the report. They said it's too much work. I didn't renew. Their product suffered an outage for 1 month, days of tech support calls, that's what woke me up to ask. We are a small company, with no SOC team, we RELY on security vendors. It's my fault, I didn't do due diliegence. Independent tests check out. Features check out. Reputation checks out. But.
Thank god it was only 1 test workstation
 
Last edited:

MalwareTips community

Join the discussion. It's free.

Create an account to reply to this thread, ask your own questions and get help from people who know security.

  • Reply and ask your own questions
  • Get an alert when someone answers
  • Free malware removal help from volunteers

Free account

7Oz-64 Sampei.Nihira ghostkernel RoxasDev 75,758 members since 2010
or
Have malware? Get free help

Recently browsing

Members and guests who viewed this thread in the last 5 minutes

Back
Top