• LavenderDay3544@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    1 day ago

    I mean programming language package managers are just begging to be used as an attack vector. This is why package management should be an OS responsibility across the board and only trusted package sources and publishers should ever be allowed.

    • HereIAm@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      I’m not sure I understand what you are saying. What part of the OS should managed the packages? The creators aka. Microsoft/Linux foundation/Apple/Google, the distributor, or a kernel module? What about cross platform package managers like Nuget, gradle, npm?

      • tekato@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        What part of the OS should managed the packages?

        The OS package manager. This is already a thing with Python in apt and pacman, where it will give you a fat warning if you try to install a package through pip instead of the actual OS package manager (i.e. pacman -Syu python-numpy instead of pip install numpy)

    • Kairos@lemmy.today
      link
      fedilink
      English
      arrow-up
      7
      ·
      22 hours ago

      Or at the very fucking least require specific versions with checksums, like golang.

      • LavenderDay3544@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 hours ago

        I really think every package repository should be opt in and every publisher should be required to verify their identity and along with checksum verification for the downloaded files.

    • Reptorian@lemmy.zip
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      edit-2
      1 day ago

      There’s also the alternatives of making your own library. I’m happy to use minimal amount of 3rd parties and just make my own instead.