Navigating (in)security of AI-generated code

被引:1
|
作者
Ambati, Sri Haritha [1 ]
Ridley, Norah [1 ]
Branca, Enrico [1 ]
Stakhanova, Natalia [1 ]
机构
[1] Univ Saskatchewan, Saskatoon, SK, Canada
关键词
AI-generated code; ChatGPT; Bard; vulnerabilities;
D O I
10.1109/CSR61664.2024.10679468
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The increasing use of large language models (LLMs) such as OpenAI's ChatGPT and Google's Bard in the software development industry raise questions about the security of generated code. Our research evaluates Java, C, and Python code samples that were generated by these LLMs. In our investigation, we assessed the consistency of code samples generated by each LLM, characterized the security of generated code, and asked both LLMs to evaluate and fix the weaknesses of their own generated code as well as the code of the other LLM. Using 133 unique prompts from Google Code Jam competitions, we produced 3,854 code samples across three distinct programming languages. We found that the code produced by these LLMs is frequently insecure and prone to weaknesses and vulnerabilities. This concerns human developers who must exercise caution while employing these LLMs.
引用
收藏
页码:30 / 37
页数:8
相关论文
共 50 条
  • [41] ChatGPT, AI-generated content, and engineering management
    Zuge Yu
    Yeming Gong
    Frontiers of Engineering Management, 2024, 11 : 159 - 166
  • [42] AI Usage Cards: Responsibly Reporting AI-generated Content
    Wahle, Jan Philip
    Ruas, Terry
    Mohammad, Saif M.
    Meuschke, Norman
    Gipp, Bela
    2023 ACM/IEEE JOINT CONFERENCE ON DIGITAL LIBRARIES, JCDL, 2023, : 282 - 284
  • [43] Auto articles: an experiment in AI-generated content
    Catherine Armitage
    Markus Kaindl
    Nature, 2020, 588 (7837) : S138 - S141
  • [44] AI-Generated Media for Exploring Alternate Realities
    Dunnell, Kevin
    Agarwal, Gauri
    Pataranutaporn, Pat
    Lippman, Andrew
    Maes, Pattie
    EXTENDED ABSTRACTS OF THE 2024 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS, CHI 2024, 2024,
  • [45] AI-Generated Clinical Summaries-Reply
    Goodman, Katherine E.
    Morgan, Daniel J.
    JAMA-JOURNAL OF THE AMERICAN MEDICAL ASSOCIATION, 2024, 331 (22):
  • [46] Presentation matters for AI-generated clinical advice
    Marzyeh Ghassemi
    Nature Human Behaviour, 2023, 7 : 1833 - 1835
  • [47] Towards Detection of AI-Generated Texts and Misinformation
    Najee-Ullah, Ahmad
    Landeros, Luis
    Balytskyi, Yaroslav
    Chang, Sang-Yoon
    SOCIO-TECHNICAL ASPECTS IN SECURITY, STAST 2021, 2022, 13176 : 194 - 205
  • [48] Astronomers explore uses for AI-generated images
    Castelvecchi, Davide
    NATURE, 2017, 542 (7639) : 16 - 17
  • [49] Appeal and quality assessment for AI-generated images
    Goering, Steve
    Rao, Rakesh Ramachandra Rao
    Merten, Rasmus
    Raake, Alexander
    2023 15TH INTERNATIONAL CONFERENCE ON QUALITY OF MULTIMEDIA EXPERIENCE, QOMEX, 2023, : 115 - 118
  • [50] Human heuristics for AI-generated language are flawed
    Jakesch, Maurice
    Hancock, Jeffrey T.
    Naaman, Mor
    PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 2023, 120 (11)