I set up a quick demonstration to show risks of curl|bash and how a bad-actor could potentially hide a malicious script.

It’s nothing new or groundbreaking, but I figure it never hurts to have another reminder.

  • osanna@thebrainbin.org
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    8 hours ago

    the difference though is you can check a script. if it’s an open source project, you can also compile from source. but I get what you mean

    • Dave@lemmy.nz
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      8 hours ago

      You can, but to me it seems weird to say it’s crazy to pipe to bash when people happily run binaries. If anything, the convenience script is lower risk than the binary since people have probably checked it before you.

      I wouldn’t pipe a random script to bash though, nothing where I wouldn’t trust the people behind it.