• sik0fewl@piefed.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    Ya, this type of design (npm, Rust, Go?) seems crazy to me. I’m glad I use Java in my day job, haven’t run into any build script attacks yet.

    I guess Rust probably chose it so you can build easily on any system? But why can build scripts download stuff an me inject it?

    • ISO@lemmy.zip
      link
      fedilink
      arrow-up
      4
      ·
      5 hours ago

      Almost all non-trivial projects in any language have external dependencies. And those dependencies have to come from somewhere.

      I also wonder what you think Maven/Gradle/…etc job is.

      • sik0fewl@piefed.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Gradle and Maven create static build artifacts, they do not dynamically run 3rd party build scripts. And it is uncommon (though not impossible) to use dynamic version targets.

        I’m it saying it’s an impossible attack vector Java, but I haven’t seen it yet and I’ve seen it a couple times with Rust and countless times with Javascript. The Javascript ones now use your credentials to publish even more malicious build scripts, so it spreads like a virus.