Security weaknesses of Copilot generated code in GitHub
1–10 of 87 posts
Re: Security weaknesses of Copilot generated code in GitHub
#2Re: Security weaknesses of Copilot generated code in GitHub
#3Re: Security weaknesses of Copilot generated code in GitHub
#4The studies results are rather unsurprising and its conclusions are oft-repeated advice. As many have said, treat copilot’s code in the same light you would treat a junior programmer’s code.
Re: Security weaknesses of Copilot generated code in GitHub
#5If a weakness is common, then of course Copilot is going to suggest it. Copilot gives you popular responses not correct ones. Yet if a weakness is common, it also means that human coders frequently make the same mistake as well. The studies results are rather unsurprising and its conclusions are oft-repeated advice. As many have said, treat copilot’s code in the same light you would treat a junior programmer’s code.
Same thing with the data it is trained on — not all code requires all levels of refinement. Most of the data is probably around average.
Re: Security weaknesses of Copilot generated code in GitHub
#6If a weakness is common, then of course Copilot is going to suggest it. Copilot gives you popular responses not correct ones. Yet if a weakness is common, it also means that human coders frequently make the same mistake as well. The studies results are rather unsurprising and its conclusions are oft-repeated advice. As many have said, treat copilot’s code in the same light you would treat a junior programmer’s code.
I wonder if llm are biased towards older, more insecure implementations because there is a higher volume of old code vs new code. Same thing with the data it is trained on — not all code requires all levels of refinement. Most of the data is probably around average.
Re: Security weaknesses of Copilot generated code in GitHub
#7Earlier quoted context omitted.
I wonder if llm are biased towards older, more insecure implementations because there is a higher volume of old code vs new code. Same thing with the data it is trained on — not all code requires all levels of refinement. Most of the data is probably around average.
I'm not sure that code being newer inherently means it will be more secure
Since there is more older code than newer code would the llm be suspectible to that ?
Re: Security weaknesses of Copilot generated code in GitHub
#8If a weakness is common, then of course Copilot is going to suggest it. Copilot gives you popular responses not correct ones. Yet if a weakness is common, it also means that human coders frequently make the same mistake as well. The studies results are rather unsurprising and its conclusions are oft-repeated advice. As many have said, treat copilot’s code in the same light you would treat a junior programmer’s code.
I wonder if llm are biased towards older, more insecure implementations because there is a higher volume of old code vs new code. Same thing with the data it is trained on — not all code requires all levels of refinement. Most of the data is probably around average.
I know this is not how distributions work, but I had to chuckle at the literal interpretation of this.
Re: Security weaknesses of Copilot generated code in GitHub
#9Did they prompt it to consider security weaknesses?
(could be quite real!)
Re: Security weaknesses of Copilot generated code in GitHub
#10What percent of non-Copilot generated public GitHub repos contain CWEs?
Edit: According to this study, Copilot generates C/C++ code with vulnerabilities, but at a lower rate than your average human coder: https://arxiv.org/pdf/2204.04741.pdf