you are viewing a single comment's thread
view the rest of the comments
[–] -3 points 1 month ago (3 children)

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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 month ago (2 children)
  • [–] -2 points 1 month ago (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 5 points 1 month 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

  • source
  • parent