May the Source Be with You: On ChatGPT, Cybersecurity, and Secure Coding
Open Access
- 18 September 2024
- journal article
- research article
- Published by MDPI AG in Information
- Vol. 15 (9) , 572
Abstract
Software security is an important topic that is gaining more and more attention due to the rising number of publicly known cybersecurity incidents. Previous research has shown that one way to address software security is by means of a serious game, the CyberSecurity Challenges, which are designed to raise awareness of software developers of secure coding guidelines. This game, proven to be very successful in the industry, makes use of an artificial intelligence technique (laddering technique) to implement a chatbot for human–machine interaction. Recent advances in machine learning have led to a breakthrough, with the implementation and release of large language models, now freely available to the public. Such models are trained on a large amount of data and are capable of analyzing and interpreting not only natural language but also source code in different programming languages. With the advent of ChatGPT, and previous state-of-the-art research in secure software development, a natural question arises: to what extent can ChatGPT aid software developers in writing secure software? In this work, we draw on our experience in the industry, and also on extensive previous work to analyze and reflect on how to use ChatGPT to aid secure software development. Towards this, we conduct two experiments with large language models. Our engagements with ChatGPT and our experience in the field allow us to draw conclusions on the advantages, disadvantages, and limitations of the usage of this new technology.Keywords
Funding Information
- Fundação para a Ciência e a Tecnologia (UIDB/04466/2020, UIDP/04466/2020, FKZ 13N16581, 13N16585)
- Bundesministerium für Forschung, Technologie und Raumfahrt (UIDB/04466/2020, UIDP/04466/2020, FKZ 13N16581, 13N16585)
This publication has 15 references indexed in Scilit:
- Do Users Write More Insecure Code with AI Assistants?2023
- VulDetect: A novel technique for detecting software vulnerabilities using Language Models2023
- LineVul2022
- Asleep at the Keyboard? Assessing the Security of GitHub Copilot’s Code Contributions2022
- A Brief History of AI: How to Prevent Another Winter (A Critical Review)PET Clinics, 2021
- Vulnerability detection with fine-grained interpretations2021
- Sifu - a cybersecurity awareness platform with challenge assessment and intelligent coachCybersecurity, 2020
- A Survey of Automatic Software Vulnerability Detection, Program Repair, and Defect Prediction TechniquesSecurity and Communication Networks, 2020
- LadderBot: A Requirements Self-Elicitation System2019
- Specifying IT Security Awareness2014