TL;DR
Developers are increasingly using AI-generated code, but trust in its reliability has significantly decreased. Research revealed that many GitHub stars, which indicate project popularity, are fake, and AI-written code often contains more critical issues.
✦ Why It Matters
Engineers should critically evaluate AI-generated code and be aware of its potential vulnerabilities and inefficiencies.
Key Takeaways
Full Summary
GitHub hosts 630 million repositories, with nearly half of new code being generated by AI. However, a study from Carnegie Mellon University found that 6 million stars on GitHub are fake, undermining the credibility of project popularity.
Security firm Socket identified 370,000 'fix stars' linked to scams, indicating that many highly-rated projects may not be trustworthy. A scan of 470 pull requests (PRs) showed that AI-generated code had 1.7 times more critical issues than human-written code, with 45% containing vulnerabilities from the OWASP Top 10 list.
Additionally, a randomized controlled trial revealed that AI users were actually 19% slower in coding tasks, despite believing they were 20% faster. These findings suggest that reliance on AI for coding may lead to inefficiencies and increased security risks.
Related