Lost at C: A User Study on the Security Implications of Large Language Model Code Assistants
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 87 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Aug 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 17; 2024: 24; 2025: 20; 2026: 26.
87 papers.
Sort:
By area:
- 2023StarCoder: may the source be with you!cited by 790
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2023Evaluating Large Language Models: A Comprehensive Surveycited by 200
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 197
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2023Who Wrote this Code? Watermarking for Code Generationcited by 116
- 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 91
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
- 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generationcited by 72
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
38 more
- 2024Using AI-Based Coding Assistants in Practice: State of Affairs, Perceptions, and Ways Forwardcited by 44
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 36
- 2024Constrained Decoding for Secure Code Generationcited by 35
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testingcited by 35
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 33
- 2023StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Codecited by 32
- 2023The FormAI Dataset: Generative AI in Software Security Through the Lens of Formal Verificationcited by 32
- 2026Agentic Much? Adoption of Coding Agents on GitHubcited by 31
- 2025Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projectscited by 23
- 2024Depending on yourself when you should: Mentoring LLM with RL agents to become the master in cybersecurity gamescited by 20
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysiscited by 18
- 2023Semantic Compression With Large Language Modelscited by 17
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
- 2025Agentic Refactoring: An Empirical Study of AI Coding Agentscited by 17
- 2024AcTracer: Active Testing of Large Language Model via Multi-Stage Samplingcited by 16
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editorscited by 14
- 2024Rocks Coding, Not Development--A Human-Centric, Experimental Evaluation of LLM-Supported SE Taskscited by 13
- 2023A Security Risk Taxonomy for Prompt-Based Interaction With Large Language Modelscited by 12
- 2024Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answerscited by 12
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 12
- 2024An Investigation into Misuse of Java Security APIs by Large Language Modelscited by 11
- 2024Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Modelscited by 10
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 10
- 2025The Invisible Hand: Unveiling Provider Bias in Large Language Models for Code Generationcited by 10
- 2025Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferencescited by 10
- 2024Guiding Enumerative Program Synthesis with Large Language Modelscited by 9
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
- 2023FLAG: Finding Line Anomalies (in code) with Generative AIcited by 7
- 2024A Study of Vulnerability Repair in JavaScript Programs with Large Language Modelscited by 7
- 2024Enhancing Security of AI-Based Code Synthesis with GitHub Copilot via Cheap and Efficient Prompt-Engineeringcited by 6
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025Aero-LLM: A Distributed Framework for Secure UAV Communication and Intelligent Decision-Makingcited by 5
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Reviewcited by 5
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
- 2024When Geoscience Meets Generative AI and Large Language Models: Foundations, Trends, and Future Challengescited by 4
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairscited by 4
50 most cited of 87 All 87 (JSON)
- 2026Not All Agents Are Equal: Code Quality and Post-Merge Maintenance Across Five Autonomous Coding Agents in the Wild12 Sep 2026
- 2026Compared to What? A Human-Anchored Security Benchmark for LLM-Generated Infrastructure-as-Code28 Aug 2026
- 2026Vibe Coding and Web Application Security: A Twin-Prompt Study21 Aug 2026
- 2026Characterizing the Quality Profile of AI-Generated C++ in Production6 Aug 2026
- 2026SecDrift: Measuring Sector-Conditioned Security Drift in AI-Generated Code28 Jul 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026Understanding the Impact of AI Code Assistants on Security API Usage: An Empirical Study13 Jul 2026
- 2026TrustX Agent Risk Classification Framework (ARC): Risk-Tiering Internally Created Agentic AI Systems10 Jul 2026
- 2026Functional and Secure Code Generation with Task Vectors8 Jul 2026
- 2026An Empirical Study of Security Calibration in Large Language Models for Code30 Jun 2026
- 2026Helpful or Harmful? Evaluating LLM-Assisted Vulnerability Patching via a Human Study24 Jun 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
38 more
- 2026Separating Secrets from Placeholders: A Hybrid CNN-CodeBERT Framework for Three-Class Credential Leakage Detection29 May 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods22 May 2026
- 2026Security of LLM-generated Code: A Comparative Analysis21 May 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Development20 Apr 2026
- 2026Surgical Repair of Insecure Code Generation in LLMs17 Apr 2026
- 2026LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software14 Apr 2026
- 2026Do AI Coding Agents Log Like Humans? An Empirical Study10 Apr 2026
- 2026Broken by Default: A Formal Verification Study of Security Vulnerabilities in AI-Generated Code7 Apr 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026Supporting Artifact Evaluation with LLMs: A Study with Published Security Research Papers6 Mar 2026
- 2026Agentic Much? Adoption of Coding Agents on GitHub26 Jan 2026
- 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?2 Jan 2026
- 2025DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents24 Nov 2025
- 2025LLM-CSEC: Empirical Evaluation of Security in C/C++ Code Generated by Large Language Models24 Nov 2025
- 2025Agentic Refactoring: An Empirical Study of AI Coding Agents6 Nov 2025
- 2025Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projects6 Nov 2025
- 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generation8 Oct 2025
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors26 Sep 2025
- 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chain24 Sep 2025
- 2025A Systematic Evaluation of Parameter-Efficient Fine-Tuning Methods for the Security of Code LLMs16 Sep 2025
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code25 Aug 2025
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrieval1 Aug 2025
- 2025Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferences31 May 2025
- 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectives18 Mar 2025
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Review8 Mar 2025
- 2025Application Modernization with LLMs: Addressing Core Challenges in Reliability, Security, and Quality13 Feb 2025
- 2025Aero-LLM: A Distributed Framework for Secure UAV Communication and Intelligent Decision-Making5 Feb 2025
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysis3 Feb 2025
- 2025Large Language Models for Cryptocurrency Transaction Analysis: A Bitcoin Case Study30 Jan 2025
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representations22 Jan 2025
- 2025The Invisible Hand: Unveiling Provider Bias in Large Language Models for Code Generation14 Jan 2025
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilities13 Jan 2025
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security19 Dec 2024
- 2024Optimizing AI-Assisted Code Generation14 Dec 2024
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing2 Dec 2024
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testing16 Sep 2024
50 newest of 87 All 87 (JSON)
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testingcited by 35
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
- 2026Agentic Much? Adoption of Coding Agents on GitHubcited by 31
- 2025Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projectscited by 23
- 2024Depending on yourself when you should: Mentoring LLM with RL agents to become the master in cybersecurity gamescited by 20
- 2025Agentic Refactoring: An Empirical Study of AI Coding Agentscited by 17
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editorscited by 14
- 2026Do AI Coding Agents Log Like Humans? An Empirical Studycited by 2
- 2025DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agentscited by 1
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detectioncited by 1
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forwardcited by 0
- 2026TrustX Agent Risk Classification Framework (ARC): Risk-Tiering Internally Created Agentic AI Systemscited by 0
12 most cited of 13 All 13 (JSON)
- 2026Not All Agents Are Equal: Code Quality and Post-Merge Maintenance Across Five Autonomous Coding Agents in the Wild12 Sep 2026
- 2026TrustX Agent Risk Classification Framework (ARC): Risk-Tiering Internally Created Agentic AI Systems10 Jul 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026Do AI Coding Agents Log Like Humans? An Empirical Study10 Apr 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026Agentic Much? Adoption of Coding Agents on GitHub26 Jan 2026
- 2025DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents24 Nov 2025
- 2025Agentic Refactoring: An Empirical Study of AI Coding Agents6 Nov 2025
- 2025Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projects6 Nov 2025
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors26 Sep 2025
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing2 Dec 2024
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testing16 Sep 2024
12 newest of 13 All 13 (JSON)
- 2023Who Wrote this Code? Watermarking for Code Generationcited by 116
- 2023Who Wrote this Code? Watermarking for Code Generation24 May 2023
- 2023StarCoder: may the source be with you!cited by 790
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2023Evaluating Large Language Models: A Comprehensive Surveycited by 200
- 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 197
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 91
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
- 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generationcited by 72
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
- 2024Using AI-Based Coding Assistants in Practice: State of Affairs, Perceptions, and Ways Forwardcited by 44
12 most cited of 71 All 71 (JSON)
- 2026Compared to What? A Human-Anchored Security Benchmark for LLM-Generated Infrastructure-as-Code28 Aug 2026
- 2026Vibe Coding and Web Application Security: A Twin-Prompt Study21 Aug 2026
- 2026Characterizing the Quality Profile of AI-Generated C++ in Production6 Aug 2026
- 2026SecDrift: Measuring Sector-Conditioned Security Drift in AI-Generated Code28 Jul 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026Understanding the Impact of AI Code Assistants on Security API Usage: An Empirical Study13 Jul 2026
- 2026Functional and Secure Code Generation with Task Vectors8 Jul 2026
- 2026An Empirical Study of Security Calibration in Large Language Models for Code30 Jun 2026
- 2026Helpful or Harmful? Evaluating LLM-Assisted Vulnerability Patching via a Human Study24 Jun 2026
- 2026Separating Secrets from Placeholders: A Hybrid CNN-CodeBERT Framework for Three-Class Credential Leakage Detection29 May 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods22 May 2026
12 newest of 71 All 71 (JSON)