Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
legitsecurity.com
Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
1–10 of 57 posts
Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#2Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#3GitLab's remediation seems a bit sketchy at best.
Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#4Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#5Until prompt injection is fixed, if it is ever, I am not plugging LLMs into anything. MCPs, IDEs, agents, forget it. I will stick with a simple prompt box when I have a question and do whatever with its output by hand after reading it.
But the reality is I'm very well compensated to summon CRUD slop out of thin air. It's well tested though.
I wish good luck to those who steal my code.
Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#6Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#7Until prompt injection is fixed, if it is ever, I am not plugging LLMs into anything. MCPs, IDEs, agents, forget it. I will stick with a simple prompt box when I have a question and do whatever with its output by hand after reading it.
I would have the same caution, if my code was any special. But the reality is I'm very well compensated to summon CRUD slop out of thin air. It's well tested though. I wish good luck to those who steal my code.
I absolutely am not implying you are one of them, merely that the risk is not the same for all slop crud apps universally
Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#8Data leakage via untrusted third party servers (especially via image rendering) is one of the most common AI Appsec issues and it's concerning that big vendors do not catch these before shipping.
I built the ASCII Smuggler mentioned in the post and documented the image exfiltration vector on my blog as well in past with 10+ findings across vendors.
GitHub Copilot Chat had a very similar bug last year.
Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#9Re: Remote Prompt Injection in Gitlab Duo Leads to Source Code Theft
#10Until prompt injection is fixed, if it is ever, I am not plugging LLMs into anything. MCPs, IDEs, agents, forget it. I will stick with a simple prompt box when I have a question and do whatever with its output by hand after reading it.
That's not to say that they are employees or perform at that level, they don't, but it's to say that LLM behaviours are fuzzy and ill-defined, like humans. You can't guarantee that your users won't click on a phishing email – you can train them, you can minimise risk, but ultimately you have to have a range of solutions applied together and some amount of trust. If we think about LLMs this way I think the conversation around security will be much more productive.