• zbyte64@awful.systems
    link
    fedilink
    English
    arrow-up
    20
    ·
    12 hours ago

    Is there nightshade but for text and code? Maybe my source headers should include a bunch of special characters that then give a prompt injection. And sprinkle some nonsensical code comments before the real code comment.

    • KubeRoot@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 hours ago

      I think the issue is that text uses comparatively very little information, so you can’t just inject invisible changes by changing the least insignificant bits - you’d need to change the actual phrasing/spelling of your text/code, and that’d be noticable.

    • Honytawk@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      Maybe like a bunch of white text at 2pt?

      Not visible to the user, but fully readable by crawlers.

        • Apytele@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          Well if it’s a prompt injection to fuck with llms you don’t want any users having to read it anyway, vision impaired or no.