• Something Burger 🍔
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    4
    ·
    20 days ago

    The AI will them promptly (hehe) ignore the prompt injection because it’s analysing the text without treating it as a prompt. Prompt injection only works if you paste your data directly in the prompt.

      • Something Burger 🍔
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        3
        ·
        20 days ago

        It is. The file is read outside of the context of a prompt, therefore it isn’t read as instructions.

        • SkaveRat@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          5
          ·
          20 days ago

          If the content of the file isn’t put into the context on some way, there’s no point in reading it

          Even in you use a subprocess/agent/whatever that reports back, it is injection vulnerable. Just a tiny bit more complicated