Universidade de Coimbro
Implementation and evaluation of security mechanisms for LLMs
Abstract
dc:description.abstractLarge Language Models (LLMs) are increasingly integrated into cybersecurity workflows to automate vulnerability interpretation and exploit generation. However, their deployment in tool-connected pipelines introduces critical vulnerabilities, such as prompt injection, hallucinations, jailbreaks, or unsafe code generation. This dissertation focuses on the implementation and evaluation of security mechanisms for LLM-based components within the EthiGen orchestration layer of the Ethiack Portal. The primary objective is to ensure the safe execution of autonomous offensive-security tasks without compromising operational utility.The methodology encompassed a Systematic Literature Review (SLR), conducted in accordance with PRISMA guidelines, in order to map the threat landscape and the subsequent integration of a multi-layered GuardrailManager using the Invariant Labs framework. This security layer enforced lexical obfuscation prevention, permission restriction, network sanitisation, and prompt injection detection. The system's robustness was empirically evaluated through automated mass adversarial testing using the BIPIA dataset and simulated pipeline attack scenarios.The results demonstrated that the unguarded baseline system was susceptible to manipulation, exhibiting a 10.8% Attack Success Rate (ASR) during mass testing. The implementation of guardrails successfully mitigated 77.8% of these previously effective adversarial payloads, reducing the overall ASR to 2.4% while maintaining functional continuity.In conclusion, relying exclusively on the intrinsic security alignment of LLMs is insufficient for autonomous orchestration. The integration of guardrails provides a robust defence against adversarial manipulation while preserving the practical utility of generative cybersecurity workflows.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Loberto, Lucas Miguel Simões
- Advisors dc:contributor.advisor
-
- Figueiredo, Sérgio
- Cruz, Tiago José dos Santos Martins da
Subjects
dc:subject × 9- Large Language Models (LLMs), LLM security
- Multi-agent systems
- Prompt injection, Adversarial testing
- Guardrails
- Offensive security automation
- Modelos de Linguagem de Grande Escala (LLMs), Segurança de LLMs
- Sistemas multiagentes
- Injeção de prompts, Testes adversariais
- Automatização de segurança ofensiva
Rights
dc:rights- Statement dc:rights
-
- embargoedAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204414440