• 5ymm3trY@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          1 month ago

          I haven’t checked the scripts from OP, but i think there is a script that is provided by the CachyOS team that basically just contains a list of compromised packages and compares that to your pacman -Qm output. If it finds a match, it tells you that the compromized package X is on your system. That seems pretty reasonable.

          I get your point and as always, you should check the source of the script as well as the code inside of it. Never installing anything outside of official OS repositories is probably not an option for most people. There are always pros and cons. Like in my example maybe some OS maintainers know more about the affected packages than I do with a quick search. On the other hand, the script might be outdated because the number of packages changed a lot over the last few days.

          • HaraldvonBlauzahn@feddit.org
            link
            fedilink
            arrow-up
            0
            arrow-down
            4
            ·
            1 month ago

            but i think there is a script that is provided by the CachyOS team that basically just contains a list of compromised packages and compares that to your pacman -Qm output.

            So, the CachyOS maintainers suggest running untrusted code?

            Noice. I don’t need to know more.

            • radamant@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 month ago

              In which way is it untrusted? If you use CachyOS, you use their binaries, that could contain anything at all inside of them. Do you draw the line at a shelll script you can read yourself?

            • 5ymm3trY@discuss.tchncs.de
              link
              fedilink
              arrow-up
              0
              ·
              1 month ago

              I don’t use CachyOS nor do I know anything about their team and I haven’t used the script either. My point was just that I would trust OS maintainers more than some random guy on the internet.

              I have checked again and it seems the script I was referring to was actually from a mod on their community forum. Not sure if this is a maintainer as well or not.

              My point still stands, if you trust the source and checked the code that nothing shady is going on, it is perfectly fine to run a script. Even if it is just an additional check after you cleaned it manually. Maybe you have missed something.

              • HaraldvonBlauzahn@feddit.org
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                1 month ago

                You are right that the distribution as it provides binary code is a trust root. If you can’t trust them, you have nothing to stand on.

                I had the impression that CachyOS suggests to use AUR packages - maybe I am wrong here?

                And if CachyOS is (what I am just assuming) geared towards less technical users, can you really expect their average user to examine shell scripts from a forum post?

                How do their users even know that the post and its author is legitimate? Are they supposed to check PGP keys?

                You can call that paranoid but there is a reason why distributions use packkage signing, publish webs of trust, and why the Guix developers even worked hard to reduce the binary bootstrapping code for the distro down to 512 bytes - it is a consequence of the “trusting trust” problem posed by Ken Thompson that the more stuff is opaque, the more trust is needed.

            • Holytimes@sh.itjust.works
              link
              fedilink
              arrow-up
              0
              arrow-down
              1
              ·
              1 month ago

              They are the source of the code… They are a trusted source so the code… Is trustable code.

              How are you this fucking stupid. Or do you think the cachy team is a bunch of bad actors? At which point HOW ARE YOU THIS STUPID?!

    • HaraldvonBlauzahn@feddit.org
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      1 month ago

      And don’t forget that a system compromise means you need to re-install all in order to re-gain control of your system. Without the malware of course.

      Edit: I see downvotes… Some people don’t seem to understand why running malware permanently destroys a system’s integrity. I do not have more time today - can somebody explain for me why?

    • HaraldvonBlauzahn@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      You can then search the list of compromised packages.

      Or just uninstall all AUR packages, instead of waiting for your ones to appear on that list, and having to re-install your full system to ensure its integrity.

    • Grass@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      I had more aur packages than I thought but none in the list. Is this just known ones and there could be more?

      • bless@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Of course. A compromised package can’t be on the list if it’s unknown. Hopefully not, but there’s still a possibility

    • Christian@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 month ago

      To be clear, -Qm displays installed packages not currently in the repositories. This will include AUR packages, but I avoid the AUR (except for davmail years ago) every once in a while I’ll run it just to check and sometimes it finds packages.

      When you install things from the main repos the dependencies get installed too, and if those dependencies are no longer needed they’ll be removed from the repositories. (I also have a bad habit of forgetting --asdeps when installing optional dependencies.) Sometimes they’ll conflict with a new dependency and pacman will ask to remove and replace them, but other times the functionality has become a part of an existing package, so with no conflict to prompt removal they’ll just sit unused on your install. If you haven’t tried -Qm in a long while you’ll probably find a few harmless currently-unused packages that were installed through the normal repos. (-Qdt will cover the other cases where dependencies remain in the repos but are now only needed for packages you don’t have installed.)

      Obviously -Qm will also show removed packages that aren’t dependencies, a few years back my preferred pdf viewer was removed from the repositories.

      -Qm will also find manually installed packages that aren’t in the AUR if you ever do that.