arXiv:2609.11303cs.SESep 2026

Manuscript Offprint

arXiv:2609.11303

Exploring the Role of Security Experience and ChatGPT Usage Strategies on Secure Software Engineering Education

Alessio Ferrari, Minh An Nguyen, Kushal Ramkumar, Liliana Pasquale

Abstract

The rapid adoption of Large Language Models (LLMs) is reshaping software engineering education, but their role in secure software engineering education remains underexplored. We report an exploratory empirical study of how 26 graduate students in a part-time MSc Cybersecurity programme used ChatGPT during a vulnerability-fixing assignment. To characterise ChatGPT use, we analysed students' ChatGPT interaction logs using a structured double-coding procedure and examined whether usage patterns and prior cybersecurity expertise were associated with assignment performance. The results show that students with varying levels of cybersecurity expertise used broadly similar ChatGPT strategies. Individual usage patterns showed descriptive differences by grade, but none remained statistically significant after correcting for multiple comparisons. In contrast, diversity of ChatGPT usage —the number of distinct usage patterns adopted—was positively associated with performance, even after controlling for cybersecurity expertise. These exploratory findings suggest that the way students engage with ChatGPT may be more informative than whether they use it, and motivate future controlled studies to guide students toward effective LLM use in secure software engineering education.

1 Introduction

Generative AI is reshaping programming and software engineering education. LLMs such as ChatGPT can generate code, explain concepts, assist with debugging, and provide immediate feedback, enabling students to seek help while analysing problems, developing solutions, and revising code. At the same time, their use raises concerns about learning quality, assessment, teaching integration, and over-reliance [1]. These concerns are amplified in secure software engineering modules, where students are expected not only to write functional code, but also to reason about attack vectors and implement mitigations that reduce risk without introducing new weaknesses. A generated solution that passes functional tests may still be insecure, making the use of LLMs in vulnerability fixing potentially risky when students lack the expertise to evaluate generated fixes critically.

Prior work has studied LLM support for programming and software engineering education from several perspectives: code generation and assessment implications [5], students' ChatGPT-facilitated programming behaviours and perceptions [10], the effect of ChatGPT access on introductory programming learning [12], and AI tutoring in software engineering education [2]. Other studies have examined the security of AI-generated code [7] and the use of LLMs for vulnerability detection and repair [3, 6]. However, prior work has paid less

Figure

Except where otherwise noted, content of this report is licensed under a Creative Commons BY 3.0 Unported license

Dagstuhl Reports, pp. 1–11

DAGSTUHL Dagstuhl Reports

REPORTS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

Role of Security Experience and ChatGPT Usage on Secure Software Engineering

attention to LLM use in secure software engineering education, especially to how different interaction patterns relate to student outcomes.

In this paper, we investigate how students use ChatGPT during cybersecurity vulnerability-fixing activities and how different forms of use relate to task performance. Rather than treating ChatGPT use as a binary variable, we analyse students' interaction logs to identify distinct usage patterns, such as asking for help with implementing specific security controls, refining generated code, debugging errors, exploring alternative solutions, and copying generated code without careful review.

We conducted an exploratory study with 26 participants who used ChatGPT while completing a cybersecurity vulnerability-fixing exercise. Participants had varying levels of cybersecurity expertise, which allowed us to examine whether observed performance differences were associated with prior expertise, specific ChatGPT usage patterns, or the diversity of patterns adopted. We coded students' ChatGPT interactions and analysed both individual usage patterns and the total number of distinct patterns used.

Our results show that students with different cybersecurity expertise levels used broadly similar ChatGPT strategies. Several task-oriented patterns, such as asking for help with a specific security control and refining AI-generated code, were descriptively associated with higher grades. However, no individual pattern remained statistically significant after correcting for multiple comparisons, reflecting the exploratory nature of the study and the limited sample size.

More consistently, usage diversity was positively associated with performance: participants who used a larger number of distinct ChatGPT patterns tended to obtain higher grades. This association remained visible in an exploratory regression model controlling for cybersecurity expertise, while cybersecurity expertise itself was not a statistically significant predictor. These findings suggest that, in this setting, how students engaged with ChatGPT may be more informative than whether they used it, and potentially more informative than prior cybersecurity expertise alone.

We do not interpret these findings as causal evidence. Instead, this study provides an initial empirical characterisation of ChatGPT-supported vulnerability-fixing practices and identifies hypotheses for future controlled studies. In particular, our results motivate further investigation into whether diversified, task-oriented, and reflective use of ChatGPT can help students engage more effectively with secure software engineering tasks.