I understand that no Operating System is 100% safe. Although this backdoor is likely only affects certain Linux desktop users, particularly those running unstable Debian or testing builds of Fedora (like versions 40 or 41), **Could this be a sign that antivirus software should be more widely used on Linux desktops? ** ( I know this time is a zero-day attack)

What if, malicious code like this isn’t discovered until after it’s released to the public? For example, imagine it was included in the initial release of Fedora 40 in April. What if other malware is already widespread and affects more than just SSH, unlike this specific case?

My point is,

  • Many people believe that Linux desktops don’t require antivirus software.
  • Antivirus can at least stop malware once it’s discovered.
  • Open-source software is protected by many parties, but a backdoor like this one, which reportedly took 2 years to plan and execute, raises my concern about being more cautious when choosing project code maintainers.
  • Linux desktops will likely be targeted by more attacks as they become more popular.

IMO, antivirus does not save stupid people(who blindly disable antivirus // grant root permission) but it does save some lazy people.

OS rely heavily on users practicing caution and up-to-date(both knowledge and the system). While many users don’t follow tech news, they could unknowingly be running (this/any) malware without ever knowing. They might also neglect system updates, despite recommendations from distro maintainers.

This is where antivirus software can be useful. In such cases, users might be somewhat protected once the backdoor signature is added to the antivirus database.

Thankfully, the Linux community and Andres Freund responded quickly to this incident.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    3 months ago

    An antivirus wouldn’t protect against the xz exploit. Imagine it did pull down the database of hashes and found a malicious xz binary, what is it going to do?

    It can’t quarantine it, because that would break programs. It could update it, but shouldn’t your package manager be the one in charge of that? So the best it can do is notify you of the exploit… Which also feels like a thing the package manager should be doing.

    I think instead of an antivirus, we should have a stricter permissions model. Certain applications can identity locations as “private” which blocks untrusted applications. So a random file you downloaded won’t be able to read your browser cookie jar or Discord session.

    Random files you download from the internet should be executed in an unprivileged context which requires a “do you want this application to have access to this?” prompt whenever it does something sketchy.

    Interestingly, afaik, Valve already runs Windows games in a secure container when using Proton. Fun fact.

    • limelight79@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      3 months ago

      I’d add that if one of the basic libraries is compromised, you can’t trust the anti-virus or really any other program on that system.

        • limelight79@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          3 months ago

          The xz issue might not directly affect an anti-virus, so maybe in this specific case, it would work fine. But it wouldn’t be hard to come up with another library that would make the anti-virus moot. And even in the xz situation, doesn’t it affect systemd?

          All bets are off when you can no longer trust low level software like this.

          Also, the Ken Thompson Hack comes to mind.

            • Atemu@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              3 months ago

              Sorta.

              You still need to trust a full Linux kernel and x86 hardware system.

            • limelight79@lemm.ee
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              3 months ago

              I am not familiar with that. From a quick glance it looks like the new HURD. But I think even there you’re relying on the work of others.

  • biribiri11@lemmy.ml
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    3 months ago

    By the way, all Fedora packages are scanned with ClamAV as part of bodhi tests. Here’s the test matrix where xz 5.6.0 passed the scan, and would have allowed the exploit in for the F40 beta if it wasn’t obsoleted by another build where the vulnerability’s mechanism was disabled because it triggered valgrind failures in other software.

    Sure, there’s more sophisticated AV software out there, but at the end of the day, the F40 beta was temporarily saved because of luck, the beta freeze period, and valgrind. The ecosystem as a whole was saved because “Jia Tan” wasn’t aware that making Postgres run slightly slower immediately raises alarm bells.

  • shirro@aussie.zone
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    1
    ·
    edit-2
    3 months ago

    Anti-viruses are a scam and always have been. They aren’t much more than security theater and box ticking. Don’t get into the mindset that you can outsourse security to a single product. Security is something that happens in depth. The more intrusive av software can itself become an attack vector as it often runs with lots of privileges.

    Distros operate with webs of trust and cryptographically signed packages. Your distro installer verifies the integrity of the package. There is no need to check a third party signature database. It adds no value. Even well audited software could contain hidden vulnerabilities so increasingly we are running software with less capabilities via systemd, flatpak/brwrap or in containers. The environment is very different to the origins of av software on Window 9x where people would download random unsigned executables to a system with no privilege restrictions.

    There are lots of challenge for the FOSS community. We love features and freedoms and those features and freedoms sometimes make security more complicated. We need to show more restraint packaging software like ssh and not add so many patches and additional dependencies. We also need to show more restraint in the typical rust, go or javascript project where adding dependencies is so easy we end up sometimes including hundreds of them for stupid crap like coloured messages or being able to handle a dozen config file formats. I don’t care about your garbage collection or advanced compile time checks, if you include hundreds of crates from other developers you are no better than npm and I would put more faith in a 20 year old c library.

    • Responsabilidade@lemmy.eco.br
      link
      fedilink
      arrow-up
      8
      ·
      3 months ago

      And more, it’s known that av can increase sloppy behavior regarding security in people that does not know about security, making them feel safe and, therefore, clicking anywhere and installing anything

      Av does increase the risk of being infected for most people

      The way this xz backdoor was treated is good enough!

      1. Identify
      2. Announce
      3. Evaluate
      4. Rollback

      Always with good version control and cryptographic keys to sign the packages

    • BreakDecks@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      Antivirus software is really useful if you’re running a lot of workstations and/or severs and you can’t trust the users. It is just another layer of security.

      For a single Linux user, there’s really no need for one.

  • danielfgom@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    3 months ago

    Nope. In Linux the typical action is to immediately get a fix out ASAP and be done with it.

    Plus it’s unlikely that AntiVirus would actually make any difference. Even in Windows many things go undetected. All it does is bog down your system

  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    16
    ·
    3 months ago

    What? Use a bloatware that consumes a lot of resources, slows down the whole system and increases the attack surface instead of regular updates? Are you kidding?

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 months ago

      Not to mention the proprietary nature of most mainstream antimalware solutions means is can conveniently ignore threats. Such software also tends to be spyware and sometimes even malware

  • SennheiserHD600@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    3 months ago

    I dont think av would help with a backdoor, only things like malware, miners, ect. I feel most people that use linux can figure out not to run lil-uzi_leaked-song.mp3.exe

  • Secret300@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    ·
    3 months ago

    In this xz scenario an antivirus wouldn’t do shit. it’s better to find and fix vulnerabilities rather than bog your system down with malware

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 months ago

    The maintainer of xz was pressured into adding a new, unknown maintainer because he was alone and most likely unpaid. Had this critical piece of software been well-funded and the maintainer well-compensated, he probably never would’ve added the maintainer.

    Regardless, I’m not sure how an antivirus would help here. This was a component upon which many others were built. How would this have been detected heuristically? Maybe somebody with a deeper understanding can also weigh in whether SELinux could’ve helped here, but if it’s a lib*, I guess not.

    IMO the major problem is upstream: fund critical components. If you work in an org using opensource (and I bet you do), try and get them to set aside some kind of budget for opensource projects they use. For example a simple 100€ distributed across selected projects every month or every year. Or more, whatever… just something.

    Also probably reproducible builds would help. The distributed archives should not differ from that of multiple build services.

  • chameleon@kbin.social
    link
    fedilink
    arrow-up
    5
    ·
    3 months ago

    Realistically, I think vendors will be trying to push their crap using this attack as leverage. They did it with Heartbleed, Shellshock and the Log4j issue. Their software won’t/wouldn’t accomplish anything, just like it didn’t with those issues, but they’re sure as hell gonna try to make it seem like it does.

  • nyan@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    In the specific case of xz-utils, many lazy people would never have been at risk because the issue is limited to xz-utils 5.6.x (a quite recent version). Not updating provided (unusually) a mitigation in this case.

  • lemmyingly@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    I think you got the response we all expected you’d get.

    I wonder why we don’t hear about open source anti-virus even though I think there are a couple of them out there.

  • Melmi@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    Unless they’re running LFS, I don’t see the point. By the time the antivirus database is updated, surely an update will be available in the package repo?

    The Linux ecosystem is built around package repos rather than manually installed software, so antivirus makes even less sense on Linux than it does on Windows. If there’s malware it’ll get removed from the repo as soon as it’s detected.

    • RvTV95XBeo@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      3 months ago

      I generally agree, but I will point out there are more ways to get packages than a repo - sure most things come from there, but plenty of things are provided as standalone installers (e.g., .deb packages). Having something that can scan that random .deb you need to do that one thing could be nice.

      Not saying AV is the fix, but if Linux is ever going to become even slightly mainstream, you need some way to keep the “normies” from hurting themselves