Lost at C: A User Study on the Security Implications of Large Language Model Code Assistants

By Gustavo Sandoval, Hammond A. Pearce, Teo Nys, Ramesh Karri, Siddharth Garg, Brendan Dolan-Gavitt. 2022

184 citations recorded by the source corpus.

Large Language Models (LLMs) such as OpenAI Codex are increasingly being used as AI-based coding assistants. Understanding the impact of these tools on developers' code is paramount, especially as recent work showed that LLMs may suggest cybersecurity vulnerabilities. We conduct a security-driven user study (N=58) to assess code written by student programmers when assisted by LLMs. Given the potential severity of low-level bugs as well as their relative frequency in real-world projects, we tasked participants with implementing a singly-linked 'shopping list' structure in C. Our results indicate that the security impact in this setting (low-level C with pointer and array manipulations) is small: AI-assisted users produce critical security bugs at a rate no greater than 10% more than the control, indicating the use of LLMs does not introduce new security risks.

Subfields: Health Informatics, Information Systems, Large Language Models, Code Generation & Program Synthesis, Privacy & Security

How researchers see this paper

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

In Information Systems

  1. Siddharth Garg
  2. Juho Leinonen
  3. Ramesh Karri
  4. Hammond A. Pearce
  5. Ming-Ho Yee
  6. Brendan Dolan-Gavitt
  7. Andrew Luxton-Reilly
  8. Benjamin Tan

In Large Language Models

  1. Brendan Dolan-Gavitt
  2. Qian Liu
  3. Benjamin Tan
  4. James Prather
  5. Siva Reddy
  6. Nicholas Meade
  7. Ramesh Karri
  8. Manan Dey

In Code Generation & Program Synthesis

  1. Juho Leinonen
  2. Brendan Dolan-Gavitt
  3. Qian Liu
  4. Benjamin Tan
  5. Raymond Li
  6. Carolyn Jane Anderson
  7. Siddharth Garg
  8. Ramesh Karri

In Privacy & Security

  1. Siddharth Garg
  2. Ramesh Karri

Citations in the corpus