I noticed a very peculiar thing with copilot. I was writing a twitter api wrapper and had hardcoded access token for a test user. Copilot when testing a function that requires a user id suggested one. I searched the id and it belonged to my test user. I searched my entire codebase but couldn't find any place I had used the particular id. The only place it could have extracted it from would have been access token whic…
If it‘s always in the same location inside the api key, it seems very reasonable that it would pick up that pattern, as most projects that include a hardcoded key would include it. API key variables are probably named almost the same everywhere.
Ask HN: Any indications Copilot scans your local files?
61–70 of 88 posts
Re: Ask HN: Any indications Copilot scans your local files?
#62How exactly does Copilot not open Microsoft up to significant legal liability, when it has been demonstrated that copilot will regurgitate entire blocks of scanned code?
Part of the problem is much simpler actually. Copyrighted text can cited without permission or product names become public before release, revealing disclosed information to competitors.
Re: Ask HN: Any indications Copilot scans your local files?
#63So I'm thinking either it made a very good guess, or the assets got included in your project without you realizing?
Re: Ask HN: Any indications Copilot scans your local files?
#64Earlier quoted context omitted.
I have seen that as well and it is impressive. But this is more than that. The code contained a string variable named accessToken with a string like "218276172612672-jash127hg27128h'(random data here, not the actual id), where 218276172612672 was the user id. When testing a function that required user id it not only suggested 218276172612672 but also did it with the full context participant.follow({twitterUserId:"218…
Seems totally reasonable to me too. It probably has just seen the pattern ``` str = "{{SOME_ID_HERE}}-jash127hg27128h" participant.follow({twitterUserId:"{{SOME_ID_HERE}}"}) ```
Re: Ask HN: Any indications Copilot scans your local files?
#65I think it also reads your clipboard. Yesterday, I had copied something from stackoverflow, and was about to paste it, and it gave me a suggestion before I could even drop it in.
Re: Ask HN: Any indications Copilot scans your local files?
#66Earlier quoted context omitted.
I have seen that as well and it is impressive. But this is more than that. The code contained a string variable named accessToken with a string like "218276172612672-jash127hg27128h'(random data here, not the actual id), where 218276172612672 was the user id. When testing a function that required user id it not only suggested 218276172612672 but also did it with the full context participant.follow({twitterUserId:"218…
are you sure that "big number that starts with 2" wasn't just the greatest 32 bit 2s complement signed integer, which is often used for sentinel/testing values?
Re: Ask HN: Any indications Copilot scans your local files?
#67Is the name of the company unique and very random or something more in the trend of "WeatherForecastsForFishermen Inc"? Are you sure the AI couldn't get some context from the current file? No title tag in the head, no description nor keywords ? The filename/path is also used, could it be it?
Re: Ask HN: Any indications Copilot scans your local files?
#68This copilot nonsense also was the straw that broke the camel's back and got me to delete my github account
Re: Ask HN: Any indications Copilot scans your local files?
#69Earlier quoted context omitted.
I’m assuming you meant “blurb” instead of “blur”?
Thanks corrected. While we are at it. Is it "make the following experiment" or "do the following experiment" ?
Re: Ask HN: Any indications Copilot scans your local files?
#70Earlier quoted context omitted.
This is a joke, but it may be the correct answer: if the company name is self-demonstrating, it's possible Codex could recognize that.
I don't think so. The phrase is 272 characters long and contains very specific terms which cannot be derived from the company's name. Also, it's a 1:1 match with the unpublished marketing material.