Hi there,

Win10 is soon not supported. Tbh Linux have been on my radar since I started to break from the US big tech.

But how is security handled in Linux? Linux is pretty open-source, or am I not understanding it correctly. So how can I as a new user make sure to have the most secure machine as possible?

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    18 minutes ago

    So how can I as a new user make sure to have the most secure machine as possible?

    Shut the computer down. That’s it; computer as secure as possible.

    Otherwise, if you actually want to use your computer, google for “threat model” first.

    But generally: use an adblocker in your webbrowser, don’t execute random commands/tools from the internet before you know for sure what you’re doing, update stuff now and then and make backups.

  • fodor@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    9 minutes ago

    You don’t actually need “perfect” security in the future, any more than you did in the past. Windows was not perfect, right? So stop looking for perfection. Instead, look for “good enough for 99.9% of the world”. And you can get that with many of the popular Linux distributions.

    Basically, install a popular distro, and keep your software to whatever is in the package manager. Don’t install random shit manually. Don’t download random software from random websites. Don’t fuck with security settings unless you read up on the topic very thoroughly. Then you’ll be fine.

  • SayCyberOnceMore@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    29 minutes ago

    Just make sure everything’s updated.

    Microsoft do a good job of updating drivers and their applications, but Windows application updates vary so much.

    For Linux - mostly - the distro maintainers handle all updates and just updating is usually enough.

    After that it’s down to you… if you disable all the built-in protection and visit dodgy websites then any OS is going to struggle.

    You can improve the out-of-box security by removing software you don’t use, improving default configurations (one size doesn’t fit all) and considering if you want additional security software - this applies to any OS.

    So, to return to your question, choose a Linux distro which has regular updates and only contains applications that you use.

    • fodor@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      14 minutes ago

      Visiting dodgy websites in itself isn’t as risky as you make it out to be. There are very few exploits in an updated version of Chrome or Firefox that would compromise your machine.

  • shreyan@lemmy.cif.su
    link
    fedilink
    arrow-up
    1
    ·
    38 minutes ago

    Security is a rabbit hole.

    You’re going to end up wasting a lot of time and effort on learning about something that in the end will not have a substantial impact on your computing experience.

    It will make you look good in front of losers on the internet you’ll never meet, though.

  • 🧟‍♂️ Cadaver@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    4 hours ago

    To have the most secure machine possible, you might need a hardened kernel but you absolutely need to have SELinux (or equivalent) rules set up.

    The easiest way to have a go at this would be to install OpenSuSE (any version will do, they all ship with SELinux ootb) and follow guides on how to setup SELinux permissions.

    • pitiable_sandwich540@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      41 minutes ago

      I think this article is a great analysis of what deep rooted flaws linux desktop distros have, but I think it is a bit disconnected from the average user (obligatory xkcd).

      If the average linux user needs a programm they google what they need land on stack overflow telling them to use their package manager to install it.

      If the average windows user needs a program/feature, they google it. They klick on the first link and install the first .exe they find. Has anyone you know used the microsoft store?

      Or take gaming as another example. The default expirience for online multiplayer games requires kernel level anticheat on windows. This effectively circumvents windows carefully crafted security model for most tripple A online games.

      So yes the average linux machine is probably not as secure as a MacOs or windows machine. But the way they are commonly used I highly doubt windows machines are more secure.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      8 minutes ago

      About sandboxing, not like the Java-VM helps much in Android security.

      The inherent problem why sandboxing should not be on this list:

      sandboxing cycle

  • bykdd@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    what i did after install mint, enable firewall, disable vnc, ssh ,rdp ports. install opensnitch, install pihole

  • missfrizzle@discuss.tchncs.de
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    9 hours ago

    the most secure possible? you’ll need to learn a ton. you’ll get there, but it’ll take a while.

    decently secure? install Linux Mint, install your updates, don’t run sketchy commands with URLs in them unless you know what you’re doing, maybe follow a hardening guide. you’ll be okay.

    if you need to be extremely secure and private, install Tails on a USB stick. it will be slow and frustrating, and you’ll need to save files to a second USB drive, but it will probably keep you pretty safe, and it’s decently user-friendly. just make sure you keep Tails updated! you’ll have to do that by flashing the new Tails onto a new USB drive, there’s no easy way around that.

    those are your two most user-friendly, safe approaches.

  • /home/pineapplelover@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    34
    arrow-down
    1
    ·
    edit-2
    14 hours ago

    There’s a lot of people with the idea that open source can’t be secure because people see the source code.

    But imagine this. You have 2 locks, one that is completely viewable of the innerworkings, and another that is covered, both have been unbreakable, but could you imagine the balls on the guy that made the clear lock? Imagine feeling so confident that your lock was clearly the best, that you just expose it to any hacker ever and they still can’t get in.

    Microsoft can barely get things working with their closed source code.

    In reality, anything is exploitable and hackable eventually. With the open source community there are so many eyes on it that when someone notices that the program is running 2 seconds slower than it used to, they discover a vulnerability instead of just accepting it and saying “probably MS doing some BS” and dealing with it.

    • CheesyFox@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      3 hours ago

      your analogy doesn’t quite work here tbh.

      It’s not a transparent lock, a transparent lock would be easy to pick. It’s more of a usual lock, but everyone can see all the blueprints and changes done to them. You can make changes to the blueprints yourself, and if the locksmiths approve of it, the next iteration of the lock will have them included.

      Everyone who’s in the set of users of OSS software can contribute, therefore the set of people in control of the software that want it to have no backdoors whatsoever is always larger than the set of people who want to let the backdoors in, unlike in closed source, where corporate can singlehandedly decide to include a backdoor on purpose, not to mention, lots of OSS projects have such a large quantities of different people working on them, corpos won’t be able to gather so much humanpower under a single project ever.

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    edit-2
    14 hours ago

    To be honest, security in the desktop Linux space has traditionally been a bit shit.

    Since you’re new, it’s important for you to understand that Linux is a kernel. That’s the most low-down part of your operating system that handles your OS talking to your hardware and vice versa. Linux is not a full OS; it doesn’t provide any userspace tools that an OS provides. That’s why people don’t install Linux on its own, but they install Linux distributions, which are full OSes using the Linux kernel that come with more or less software to make Linux a complete OS, or at least bootable. That means that there is no one way to do things in Linux. There are some Linux distributions that are security-focused, such as Qubes OS and Alpine Linux. There’s also the new immutable distros, which provide security because the entire OS is defined declaratively, meaning you can easily rollback changes, and it’s harder to get infected with malware on those systems. There’s a lot of variability. Some systems are quite secure by default. A lot of other systems do not set up any security measures by default and expect the user to do that.

    If you’re interested in hardening your Linux install, I would recommend the Arch wiki’s security page which has a lot of good advice.

    Security is a really broad topic and the relevant security measures for you are going to vary based on your threat model. General good practices include using some form of MAC, setting up a firewall, don’t install random crap you don’t need (and if you are getting software from somewhere that isn’t vetted, e.g. the AUR, you should vet it yourself—e.g. if you use the AUR, learn to read PKGBUILDs), use full-disk encryption. Anti-virus software is largely not necessary on Linux, especially if you only install software from your package manager and follow other security good practice.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    edit-2
    10 hours ago

    Microsoft being closed source hides their bugs and vulnerabilities. Even when security researchers have sent in reports MS has sat on them due to profit being motive not security, and not taking vulners seriously until the researchers say screw that and publish it.

    Linux being open can have all eyes on it, and if there is an exploit, there is a community willing to help ASAP.

    On many distros you may have weekly or even daily updates or patches coming through with fixes. A distro like OpenSUSE has various patch and list patch commands that show what security patches are avilailable, their status (critical, recommended) and if it’s needed on your system or not depending on what you have installed. You don’t get transparency on closed source systems.

    If you are paranoid about security you can use AppArmor tools or SELinux. AppArmor can be set to learn how an app behaves, then you lock it so the app can’t do new things.

    SELinux you set rules for files and folders, so even with remote access an attacker can’t access data if rules don’t allow file listing over SSH etc

  • deadcade@lemmy.deadca.de
    link
    fedilink
    arrow-up
    61
    ·
    19 hours ago

    Security is an insanely broad topic. As an average desktop user, keep your system up to date, and don’t run random programs from untrusted sources (most of the internet). This will cover almost everyones needs. For laptops, I’d recommend enabling drive encryption during installation, though note that data recovery is harder with it enabled.

    • Tanoh@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      16 hours ago

      That is good advice, however sadly a lot of install scripts are basically: download this script from us, and pipe it to a root shell.

      • procapra@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        12 hours ago

        Why not? You (usually) just click the check box during install, and you have 1 extra password when you boot up your system. Doesn’t seem too hard but I might be missing something.

        • Jumuta@sh.itjust.works
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          9 hours ago

          when you fuck shit up you can’t really easily boot in from a usb drive and learn the recovery process

          • Xylight@lemdro.id
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            8 hours ago

            It’s a few extra steps to start fixing, but it’s still definitely possible once you get the crypto device mapper.

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    32
    ·
    18 hours ago

    I just want to say that you’re probably worrying too much about it. Of course, there is lots of things one can do to improve security (which the others here are listing dutifully) and it is foolish to just assume that one’s computer is entirely secure, because as a user, you will always have the ability to bypass that.

    But there’s a pretty firm consensus in the IT industry that Linux is more secure than Windows. And that the popular Linux distributions are more trustworthy organizations than Microsoft.

    So, it’s good to inform yourself, but if you survived on Windows, you at least should not worry about the Linux side of things. It’s more than fine.

  • spaghettiwestern@sh.itjust.works
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    16 hours ago

    I’ve used Linux Mint and other distros daily for more than 10 years. Never had a virus or malware issue and don’t even run antivirus software.

    During that same time I’ve had to help friends remove viruses and malware from their Windows machines dozens of times. The latest Windows disaster I’ve assisted with was a few months ago. A retired friend had her Windows 10 machine hijacked and $8K stolen from her savings account. Making sure the malware was removed required hours of work formatting the drive and reinstalling Windows.

    IMO you are far safer with a plain vanilla Linux install that you are with Windows, no matter what steps you take to secure your Windows installation.

    • Mihies@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      14 hours ago

      You sure though? Windows has more viruses because it’s more popular (desktop) and monolithic, not because Linux is much better in that regard. IOW Linux is not magically virus resistant. If you run an infected file, it will infect both without much trouble. Also removing infection would be similar. At least that’s my understanding.

      • spaghettiwestern@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        7 hours ago

        You sure though?

        What do you want? It should go without saying that I am absolutely sure of my own experience.

        In probably 15 years total of running Linux I have not had a single problem with malware or viruses. Part of that time was also running Windows regularly and my Windows systems DID become infected with both malware and viruses occasionally, despite my best efforts. And you’re not mentioning the fact that Linux runs on 63% of the server market and those systems are under constant attack.

        Reports of Linux system infections are truly rare, and considering the nature of the user community would be widely and loudly reported if they were happening.

        Do you have any experience in this matter? Have you had your own Linux installations infected, or are you a Windows user questioning what you’re reading? (Perfectly reasonable if the 2nd one’s the case.) Please fill us in on the details.

        • Mihies@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          Servers are a different story. I’m both Windows and Linux user, meaning more towards the later recently. I’m still wondering why do you think Linux is more resistant to malware - besides the incompatibility (mentioned in other reply here). Your experience doesn’t tell much about why and I wrote my theory.

            • Mihies@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              3 hours ago

              I think I’m cautious enough to not have the experience, luckily. But why does that matter? I’m still waiting from you for rationale why is Linux experiencing less infections. And you keep asking unimportant questions…

      • DiamondOrthodox@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        14 hours ago

        It’s hard enough getting legit software in general to work on Linux. Even if a virus was written for Ubuntu, it is likely not going to run on Fedora, or Arch, or even downstream/upstream versions of Ubuntu.

        Edit: Although thinking about it, Linux terminal commands are pretty universal, so if you manage to execute a script or terminal command as root or sudo then I guess it could apply to multiple distros.

        • Mihies@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          Ha, yes, incompatibility is the secret defense of linux 🫣. But even without root access, malware can create a lot of damage.