you are viewing a single comment's thread
view the rest of the comments
[–] -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