Show HN: A minimal TS library that generates prompt injection attacks

(prompt-injector.blueprintlab.io)

23 points | by yaoke259 5 hours ago

4 comments

  • sippeangelo 3 hours ago

    Was the whole lib and website vibe coded? I can't find any instructions on how to use it, the repo is for the website itself and the readme is AI blurb that doesn't make me any wiser.

      // Test your AI system
      const results = await injector.runTests(yourAISystem);
    
    ???

    Even the "prompt-injector" NPM package is something completely different. Does this project even exist?

  • mosselman 1 hour ago

    What are some good prevention mechanisms for this? A sort of firewall for prompts? I've seen people recommend LLMs, but that seems like it wouldn't work well. What is the industry standard? Or what looks promising at least?

    • mkesper 3 hours ago

      The meat seems to be in https://github.com/BlueprintLabIO/prompt-injector/tree/main/..., the generation could be done without any UI but then it probably would not look so flashy.

      • HKayn 3 hours ago

        Why did you use something as heavy as SvelteKit for a website with a single page? This doesn't inspire confidence.