r/github • • Feb 14 '25

Github Copilot Leaks Peoples Filesystem

Copilot started suggesting a win file path as a comment, even though I'm not running Windows. When I provided the beginning of a C drive path, it randomly completed it with different people's filesystem paths. I assume this comes from its training data.

375 Upvotes

62 comments sorted by

View all comments

2

u/TedditBlatherflag Feb 15 '25

Copilot was trained on massive segments of GH open source. 

That includes a lot of random code where people just hard coded and committed stuff they shouldn’t. 

From what I know they tried to exclude lots of sensitive stuff (it won’t autocomplete with a cert key for example). But also lots of non-obvious stuff I’m sure it got trained with.