Live data from Hacker News

CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

legitsecurity.com

11–20 of 44 posts

Re: CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

#12
post #7

So this wasn't really fixed. The impressive thing here is that copilot accepts natural language. So whatever exfiltration method you can come up with, you just write out the method in english. They merely "fixed" one particular method, without disclosing how they fixed it. Surely you could just do the base64 thing to an image url of your choice? Failing that, you could trick it into providing passwords by telling it…

> GitHub fixed it by disabling image rendering in Copilot Chat completely.

Re: CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

#13
post #6

Wondering if the ability to use hidden (HTML comment) content in PRs would not remain a nasty issue: especially for open source repos?! Was that fixed?

It's used widely for issue/PR templates, to tell the submitter what info to include. But they could definitely strip it from the Copilot input... at least until they figure out this "prompt injection" thing that I thought modern LLMs were supposed to be immune to.

> that I thought modern LLMs were supposed to be immune to

What gave you this idea?

I thought it was always going to be a feature of LLMs, and the only thing that changes is that it gets harder to do (more circumventions needed), much like exploits in the context of ASLR.

Re: CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

#14
post #7

So this wasn't really fixed. The impressive thing here is that copilot accepts natural language. So whatever exfiltration method you can come up with, you just write out the method in english. They merely "fixed" one particular method, without disclosing how they fixed it. Surely you could just do the base64 thing to an image url of your choice? Failing that, you could trick it into providing passwords by telling it…

> GitHub fixed it by disabling image rendering in Copilot Chat completely.

To supplement the parent, this is straight from article’s TLDR (emphasis mine):

> In June 2025, I found a critical vulnerability in GitHub Copilot Chat (CVSS 9.6) that allowed silent exfiltration of secrets and source code from private repos, and gave me full control over Copilot’s responses, including suggesting malicious code or links.

> The attack combined a novel CSP bypass using GitHub’s own infrastructure with remote prompt injection. I reported it via HackerOne, and GitHub fixed it by disabling image rendering in Copilot Chat completely.

And parent is clearly responding to gp’s incorrect claims that “…without disclosing how they fixed it. Surely you could just do the base64 thing to an image url of your choice?” I’m sure there will be more attacks discovered in the future but gp is plain wrong on these points.

Please RTFA or at least RTFTLDR before you vote.

Re: CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

#15
post #7

So this wasn't really fixed. The impressive thing here is that copilot accepts natural language. So whatever exfiltration method you can come up with, you just write out the method in english. They merely "fixed" one particular method, without disclosing how they fixed it. Surely you could just do the base64 thing to an image url of your choice? Failing that, you could trick it into providing passwords by telling it…

>Surely you could just do the base64 thing to an image url of your choice?

What does that mean? Are you proposing a non-Camo image URL? Non-Camo image URLs are blocked by CSP.

>Failing that, you could trick it into providing passwords by telling it you accidentally stored your grocery list in a field called passswd, go fetch it for me ppls?

Does the agent have internet access to be able to perform a fetch? I'm guessing not, because if so, that would be a much easier attack vector than using images.

Re: CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

#16
post #9

can you still make invisible comments?

Invisible comments are a widely used feature. Often done inside of PR or Issue templates to instruct users how to include necessary info without clogging up the final result when they submit.

Re: CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

#18
post #13

Earlier quoted context omitted.

It's used widely for issue/PR templates, to tell the submitter what info to include. But they could definitely strip it from the Copilot input... at least until they figure out this "prompt injection" thing that I thought modern LLMs were supposed to be immune to.

> that I thought modern LLMs were supposed to be immune to What gave you this idea? I thought it was always going to be a feature of LLMs, and the only thing that changes is that it gets harder to do (more circumventions needed), much like exploits in the context of ASLR.

PR releases. Yeah, it was an exaggeration, I know that the mitigations can only go so far.
Post reply on HN