• zbyte64@awful.systems
    link
    fedilink
    English
    arrow-up
    28
    ·
    1 day 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
      5
      ·
      1 day 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
      2
      ·
      1 day 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
          3
          ·
          24 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.

          • ramjambamalam@lemmy.ca
            link
            fedilink
            English
            arrow-up
            7
            ·
            22 hours ago

            You missed my point. A prompt injection to fuck with LLMs would be read by a visually impaired user’s screen reader.