Back to search

Universidade de Coimbro

Implementation and evaluation of security mechanisms for LLMs

Abstract

dc:description.abstract

Large 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

Rights

dc:rights
Statement dc:rights
  • embargoedAccess
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Tid
204414440

Chain of custody

source
Harvested from
Universidade de Coimbro
Base URL
estudogeral.sib.uc.pt/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Loberto, Lucas Miguel Simões. Implementation and evaluation of security mechanisms for LLMs. 2026. https://hdl.handle.net/10316/124738