• jjjalljs@ttrpg.network
      link
      fedilink
      English
      arrow-up
      7
      ·
      10 hours ago

      This reminds me of the new vector for malware that targets “vibe coders”. LLMs tend to hallucinate libraries that don’t exist. Like, it’ll tell you to add, install, and use jjj_image_proc or whatever. The vibe coder will then get an error like “that library doesn’t exist” and "can’t call jjj_image_proc.process()`.

      But you, a malicious user, could go and create a library named jjj_image_proc and give it a function named process. Vibe coders will then pull down and run your arbitrary code, and that’s kind of game over for them.

      You’d just need to find some commonly hallucinated library names

      • Serinus@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        41 minutes ago

        It’s taught me that bigger standard libraries are better. You still have similar issues, but at least nobody’s importing LeftPad. And your remaining dependency probably isn’t importing LeftPad either.