LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Aguilera-Martínez, Francisco, Berzal, Fernando
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918007050076160
author Aguilera-Martínez, Francisco
Berzal, Fernando
author_facet Aguilera-Martínez, Francisco
Berzal, Fernando
contents As large language models (LLMs) continue to evolve, it is critical to assess the security threats and vulnerabilities that may arise both during their training phase and after models have been deployed. This survey seeks to define and categorize the various attacks targeting LLMs, distinguishing between those that occur during the training phase and those that affect already trained models. A thorough analysis of these attacks is presented, alongside an exploration of defense mechanisms designed to mitigate such threats. Defenses are classified into two primary categories: prevention-based and detection-based defenses. Furthermore, our survey summarizes possible attacks and their corresponding defense strategies. It also provides an evaluation of the effectiveness of the known defense mechanisms for the different security threats. Our survey aims to offer a structured framework for securing LLMs, while also identifying areas that require further research to improve and strengthen defenses against emerging security challenges.
format Preprint
id arxiv_https___arxiv_org_abs_2505_01177
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures
Aguilera-Martínez, Francisco
Berzal, Fernando
Cryptography and Security
Artificial Intelligence
Machine Learning
Neural and Evolutionary Computing
As large language models (LLMs) continue to evolve, it is critical to assess the security threats and vulnerabilities that may arise both during their training phase and after models have been deployed. This survey seeks to define and categorize the various attacks targeting LLMs, distinguishing between those that occur during the training phase and those that affect already trained models. A thorough analysis of these attacks is presented, alongside an exploration of defense mechanisms designed to mitigate such threats. Defenses are classified into two primary categories: prevention-based and detection-based defenses. Furthermore, our survey summarizes possible attacks and their corresponding defense strategies. It also provides an evaluation of the effectiveness of the known defense mechanisms for the different security threats. Our survey aims to offer a structured framework for securing LLMs, while also identifying areas that require further research to improve and strengthen defenses against emerging security challenges.
title LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures
topic Cryptography and Security
Artificial Intelligence
Machine Learning
Neural and Evolutionary Computing
url https://arxiv.org/abs/2505.01177