vix.ing · top · new · best · stats · spec

Do Users Write More Insecure Code with AI Assistants?

2022/11/07 by Neil Perry, Megha Srivastava, Deepak Kumar +1 · 23 voices · 53 citations
Computer Science · Social Sciences · #Software Engineering Research #Ethics and Social Impacts of AI #Mobile Crowdsensing and Crowdsourcing

paper · pdf · doi:10.1145/3576915.3623157

Abstract

AI code assistants have emerged as powerful tools that can aid in the software development life-cycle and can improve developer productivity. Unfortunately, such assistants have also been found to produce insecure code in lab environments, raising significant concerns about their usage in practice. In this paper, we conduct a user study to examine how users interact with AI code assistants to solve a variety of security related tasks. Overall, we find that participants who had access to an AI assistant wrote significantly less secure code than those without access to an assistant. Participants with access to an AI assistant were also more likely to believe they wrote secure code, suggesting that such tools may lead users to be overconfident about security flaws in their code. To better inform the design of future AI-based code assistants, we release our user-study apparatus to researchers seeking to build on our work.

Cited by

Discussions

Related