What’s so difficult about running the user input through a classifier first: “Is this user trying to access your prompt?” I bet you can train a lowly T5 on this. If the answer is yes, don’t even pipe the input to the LLM at all. Just output a hard-coded message. (Or, if you prefer, do pipe it to the LLM, but append a note of warning to it.)
I wrote about that here https://simonwillison.net/2022/Sep/17/prompt-injection-more-... - and talked about it here too: https://simonwillison.net/2023/May/2/prompt-injection-explai... Short version: you can't be 100% confident that AI based detection will catch every attack, because attackers are devious and can come up with increasingly unexpected and sneaky attacks. And where security is concerned, a 99% effective…
GitHub Copilot Chat Leaked Prompt
401–410 of 628 posts
Re: GitHub Copilot Chat Leaked Prompt
#402Earlier quoted context omitted.
> I think the bigger issue is that the racial/sexist/etc content can be shocking and immediately put someone off using the product, which I doubt is the case for the output being “too American.” OpenAI didn't just fine-tune it to avoid blatant racial/sexist/etc content, they openly claim to have invested a lot of effort in fine-tuning it to avoid subtle biases in those areas. And to be honest, a lot of people do feel…
An example of poorly localised product which has real world consequences. Canva is a fantastic design software. If you type “business card” in templates, it has the standard us business card size but no European one. If you modify it to European sizes manually (closer to credit card size) it no longer recognises that this is a business card and no longer offers to print it on business card paper. In other words, desp…
Re: GitHub Copilot Chat Leaked Prompt
#403Here's why I don't think this leaked prompt is hallucinated (quoting from my tweets https://twitter.com/simonw/status/1657227047285166080 ): Any time something like this happens a bunch of people suspect that it might be a hallucination, not the real prompt I used to think that but I don't any more: prompt leaks are so easy to pull off, and I've not yet seen a documented case of a hallucinated but realistic leak One…
> and I've not yet seen a documented case of a hallucinated but realistic leak How would you know? As far as I know no company has come out and confirmed that any purportedly leaked prompts are genuine.
Created by a company researching techniques for prevent prompt leaks. Play the game and prove to yourself that it is possible (gets much trickier after the first few levels but completing all levels is very doable).
Re: GitHub Copilot Chat Leaked Prompt
#404Earlier quoted context omitted.
The parent comment is taking about two separate prompts: one with only "he" and one with only "she". Your comment sounds like you're only talking about one prompt (but maybe I misunderstood).
My bad, I should have written [he/she].
Re: GitHub Copilot Chat Leaked Prompt
#405Earlier quoted context omitted.
You can tell it that you can buy white paint any yellow paint, but the white paint is more expensive. After 6 months the yellow paint will fade to white. If I want to paint my walls so that they will be white in 2 years, what is the cheapest way to do the job. It will tell you to paint the walls yellow. There’s no question these things can do basic logical reasoning.
Yeah, but maybe this exact example, is included in the trainig set?
Or just give it a lump of code and change you want and see that it often successfully does so, even when there's no chance the code was in the training set (like if you write it on the spot).
Re: GitHub Copilot Chat Leaked Prompt
#406Earlier quoted context omitted.
Wonder if anybody has used Godel's Incompleteness to prove this for our inner perception. If our brain is a calculation, then from inside the calculation, we can't prove ourselves to be real, right?
But we don't know for sure whether intelligence is computable or not.
Re: GitHub Copilot Chat Leaked Prompt
#407Earlier quoted context omitted.
I wrote about that here https://simonwillison.net/2022/Sep/17/prompt-injection-more-... - and talked about it here too: https://simonwillison.net/2023/May/2/prompt-injection-explai... Short version: you can't be 100% confident that AI based detection will catch every attack, because attackers are devious and can come up with increasingly unexpected and sneaky attacks. And where security is concerned, a 99% effective…
I disagree here. Just as it is impossible to perfectly secure a user-oriented operating system without severely limiting it (see Lockdown Mode), it might be impossible to prove injection-resistance in LLMs short of foundational advancements, but that doesn’t mean that we should dismiss attempts to mitigate with absolutism (I am referring to “none of our data would be safe anymore”), just as we don’t dismiss Apple for…
I wouldn't.
The difference between this and Apple releasing a security update is that when a traditional vulnerability is reported against an Apple product they can research the root cause of that vulnerability and produce a fix that they are certain is effective.
Prompt injection (currently) doesn't have fixes that work like that.
Re: GitHub Copilot Chat Leaked Prompt
#408Earlier quoted context omitted.
It may not be the exact same model as GPT. They may have tweaked some parameters and almost definitely trained it on additional content relevant to the task of helping with coding. So you probably can't get the same output with just the same prompt.
Sure, in which case the real prompt is as useless as a hallucinated one, so what's the difference?
Re: GitHub Copilot Chat Leaked Prompt
#409Earlier quoted context omitted.
An example of poorly localised product which has real world consequences. Canva is a fantastic design software. If you type “business card” in templates, it has the standard us business card size but no European one. If you modify it to European sizes manually (closer to credit card size) it no longer recognises that this is a business card and no longer offers to print it on business card paper. In other words, desp…
Canva is based in Australia
Re: GitHub Copilot Chat Leaked Prompt
#410Earlier quoted context omitted.
Is it actually able to base64 encode and decode completely correctly?
This thought led me to a strange conversation with chatgpt. I just base64 encoded "Hello chatgpt how are you" as "SGVsbG8gY2hhdGdwdCBob3cgYXJlIHlvdQ==" and sent it as the first prompt. Notice how there is no question mark in my phrase. Now here's my conversation with chatgpt: User SGVsbG8gY2hhdGdwdCBob3cgYXJlIHlvdQ== ChatGPT This appears to be a Base64 encoded string that translates to "Hello chattpt how are you?" Us…
Something else to consider is that these models work on tokens, not characters, so that might also account for why it made a mistake.