Universidade de Coimbro
Continuous, automated and certification-aware penetration testing
Abstract
dc:description.abstractThe increasing adoption of REST APIs has significantly expanded the attack surface of modern applications, introducing new security challenges related to undocumented endpoints, authorization flaws, and regulatory compliance. Traditional penetration testing tools often struggle to understand the semantic structure of APIs, resulting in limited coverage and reduced effectiveness in identifying complex vulnerabilities such as Broken Object Level Authorization and Broken Function Level Authorization. This dissertation proposes a PTES-aligned, LLM-driven multi-agent framework for automated penetration testing of REST APIs. The framework combines OpenAPI specification analysis, attack surface discovery, Shadow API detection, threat modelling, vulnerability validation, and compliance-oriented reporting through a set of specialisedagents. By comparing documented API specifications against the observed attack surface, the framework is capable of identifying undocumented or hidden endpoints,commonly referred to as Shadow APIs, which may expose organizations to significantsecurity risks.In addition to vulnerability assessment, the proposed framework incorporates mechanisms for mapping validated security findings to both the requirements of the NIS2Directive and relevant MITRE ATT&CK tactics and techniques, enabling the generation of threat-informed and audit-ready security reports.The framework is implemented using a multi-agent architecture and evaluated throughmultiple case studies involving CrAPI. The evaluation assesses its effectiveness in ShadowAPI discovery, authorization vulnerability detection, compliance support, and threat-informed reporting. The results demonstrate the potential of LLM-driven multi-agent systems to enhance REST API penetration testing while supporting cybersecurity governance, regulatory compliance, and operational resilience.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Vela, António Kianu Gomes
- Advisors dc:contributor.advisor
-
- Sousa, Bruno Miguel de Oliveira
- Campos, João Rodrigues de
Subjects
dc:subject × 8- REST APISecurity; Penetration Testing;
- Large Language Models (LLMs); Multi-Agent Systems;
- Shadow APIs; BOLA; BFLA; OpenAPI;
- NIS2 Directive; MITRE ATT&CK.
- Segurança de APIs REST; Testes de Penetração;
- Modelos de Linguagem de Grande Escala (LLMs); Sistemas Multiagente;
- APIs Sombra; BOLA; BFLA; OpenAPI;
- Diretiva NIS2; MITRE ATT&CK.
Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204413559