• terranoid@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    95
    arrow-down
    3
    ·
    16 hours ago

    Prompt injection… my ass. I know it’s the going term, but they make it sound like sql injection or cross site scripting when the nature of it is politely asking the person’s computer to delete files.

    We shouldn’t even be in this situation, where just politely asking someone’s computer to delete files is effective. It’s a symptom of a much, much bigger problem.

    • bignose@programming.dev
      link
      fedilink
      English
      arrow-up
      18
      ·
      edit-2
      12 hours ago

      We shouldn’t even be in this situation, where just politely asking someone’s computer to delete files is effective.

      Exactly, it’s a problem only for those who have knowingly handed their development environment over to obey commands from an untrusted source.

      If you’re the one holding the syringe to your own vein and pushing the plunger, but you didn’t think to ask what’s inside first? That’s no one else’s fault.

      This is a well targeted sabotage of a system that’s causing untold damage. Of course it’s going to annoy and surprise the people using the system it’s targeted to.

    • litchralee@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      41
      arrow-down
      2
      ·
      16 hours ago

      The person who coined the term “prompt injection” has the same gripe, because the original term genuinely did mean an attack using untrusted user input, a la SQL injection. But it’s been conflated with jailbreak attacks in general, muddying the term.

      Example of a bona fide prompt injection: white text in the background of a resume PDF, attacking a job application portal that uses LLMs to filter applicants. No privilege escalation is involved to give the candidate top marks on their resume screening.

      Whereas a non-prompt injection jailbreak would be bypassing a safety filter, such as how Morse code might get past the filter and allow a user to request other people’s cryptocurrency be transfered away. This is more akin to finding a poorly-secured, public facing API and then exploiting it.

      • pixxelkick@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        12 hours ago

        By that definition this is a prompt injection then, its adding a “hidden” prompt that is obscured from the human in order to change the behavior of the AI to do something else malicious.

      • Wirlocke@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        11 hours ago

        Finding a poorly-secured public facing API is exactly how injections work, whether it’s SQL or prompts. If I put SQL commands in a username field and it works, it’s still an SQL injection even if it’s just developer incompetence.

        The difference between that and prompt injection is that unfiltered LLM inputs are basically the standard at the moment, so it takes next to no effort.

        Plus I think the Morse code example is far more clever and exploits the LLM directly, whereas the white text trick has been around long before widespread LLMs.