Do Users Write More Insecure Code with AI Assistants?

By Neil Perry, Megha Srivastava, Deepak Kumar, Dan Boneh. Conference on Computer and Communications Security, 2022

397 citations recorded by the source corpus.

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.

Subfields: Computer Science Applications, Information Systems, Safety Research

View Paper: https://www.semanticscholar.org/paper/ce3f027b68dad014a58aa35f52380932c8d0b209

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Science Applications

  1. Paul Denny
  2. Juho Leinonen
  3. Sami Sarsa
  4. Arto Hellas
  5. Andrew Luxton-Reilly
  6. James Prather
  7. Brett A. Becker
  8. Noah D. Goodman

In Information Systems

  1. Paul Denny
  2. Juho Leinonen
  3. Sami Sarsa
  4. Arto Hellas
  5. Andrew Luxton-Reilly
  6. James Prather
  7. Noah D. Goodman
  8. Brett A. Becker

In Safety Research

  1. Dylan Hadfield-Menell
  2. Noah D. Goodman
  3. Peter Hase

Citations in the corpus