Assessing the Software Security Comprehension of Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Siddiq, Mohammed Latif, Sekerak, Natalie, Karam, Antonio, Leal, Maria, Islam-Gomes, Arvin, Santos, Joanna C. S.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915693474086912
author Siddiq, Mohammed Latif
Sekerak, Natalie
Karam, Antonio
Leal, Maria
Islam-Gomes, Arvin
Santos, Joanna C. S.
author_facet Siddiq, Mohammed Latif
Sekerak, Natalie
Karam, Antonio
Leal, Maria
Islam-Gomes, Arvin
Santos, Joanna C. S.
contents Large language models (LLMs) are increasingly used in software development, but their level of software security expertise remains unclear. This work systematically evaluates the security comprehension of five leading LLMs: GPT-4o-Mini, GPT-5-Mini, Gemini-2.5-Flash, Llama-3.1, and Qwen-2.5, using Blooms Taxonomy as a framework. We assess six cognitive dimensions: remembering, understanding, applying, analyzing, evaluating, and creating. Our methodology integrates diverse datasets, including curated multiple-choice questions, vulnerable code snippets (SALLM), course assessments from an Introduction to Software Security course, real-world case studies (XBOW), and project-based creation tasks from a Secure Software Engineering course. Results show that while LLMs perform well on lower-level cognitive tasks such as recalling facts and identifying known vulnerabilities, their performance degrades significantly on higher-order tasks that require reasoning, architectural evaluation, and secure system creation. Beyond reporting aggregate accuracy, we introduce a software security knowledge boundary that identifies the highest cognitive level at which a model consistently maintains reliable performance. In addition, we identify 51 recurring misconception patterns exhibited by LLMs across Blooms levels.
format Preprint
id arxiv_https___arxiv_org_abs_2512_21238
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Assessing the Software Security Comprehension of Large Language Models
Siddiq, Mohammed Latif
Sekerak, Natalie
Karam, Antonio
Leal, Maria
Islam-Gomes, Arvin
Santos, Joanna C. S.
Software Engineering
Cryptography and Security
Machine Learning
Large language models (LLMs) are increasingly used in software development, but their level of software security expertise remains unclear. This work systematically evaluates the security comprehension of five leading LLMs: GPT-4o-Mini, GPT-5-Mini, Gemini-2.5-Flash, Llama-3.1, and Qwen-2.5, using Blooms Taxonomy as a framework. We assess six cognitive dimensions: remembering, understanding, applying, analyzing, evaluating, and creating. Our methodology integrates diverse datasets, including curated multiple-choice questions, vulnerable code snippets (SALLM), course assessments from an Introduction to Software Security course, real-world case studies (XBOW), and project-based creation tasks from a Secure Software Engineering course. Results show that while LLMs perform well on lower-level cognitive tasks such as recalling facts and identifying known vulnerabilities, their performance degrades significantly on higher-order tasks that require reasoning, architectural evaluation, and secure system creation. Beyond reporting aggregate accuracy, we introduce a software security knowledge boundary that identifies the highest cognitive level at which a model consistently maintains reliable performance. In addition, we identify 51 recurring misconception patterns exhibited by LLMs across Blooms levels.
title Assessing the Software Security Comprehension of Large Language Models
topic Software Engineering
Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2512.21238