Work

Implementation of Penetration Testing in Continuous Integration and Deployment

Year: 2025
Type: dissertation
Abstract: The general use of Continuous Integration and Continuous Deployment (CI/CD) pipelines has enabled organizations to plan, test, and deploy software programs quickly at a speed unimaginable before. This shift in delivering software not only drives innovation but also increases the agility of development teams. Yet, this increased velocity of development cycles has brought with it a new set of security vulnerabilities that makes it even more imperative to incorporate strong security measures into the development process. Notably, the inclusion of penetration testing as part of CI/CD pipelines remains a key practice to detect and fix security problems prior to their becoming exploitable vulnerabilities. This thesis provides details on how penetration testing can be integrated into CI/CD pipelines and explains thoroughly the various methods and techniques that can be applied. In particular, it examines various types of penetration testing such as, white box, gray-box, and black-box testing and explains how each type of testing impacts application security differently. White-box testing, with its intense scrutiny of inner code and system design, is compared to gray-box testing where the testers are partially aware of the system and black-box testing where an external attack is mimicked without any advance knowledge. Through a relative analysis of these practices, the study clarifies the individual strengths and weaknesses, as well as how each can be appropriately utilized in an automated setup. Along with the theoretical analysis, the thesis further presents a case study implementation that demonstrates the real-world imitation of penetration testing in a CI/CD pipeline. The case study employs a collection of open source tools such as GitHub for version control, GitHub Actions for workflow automation, Docker for containerization, Render for cloud deployment, and Discord for real-time notifications. The integration of these tools produces an example of how continuous security analysis can be implemented into the development cycle. Furthermore, the study discusses the application of automated penetration testing as a key element in an integrated DevSecOps workflow. By incorporating security testing directly into the continuous integration and continuous deployment process, development teams are able to identify vulnerabilities early, allowing for swift remediation and minimizing the window of opportunity for would-be attackers. Best practices and tactical consideration necessary to balance security controls and development productivity so that the addition of penetration testing does not lead to barriers or get in the way of fast deployment of new features are also covered in the thesis.
Institution: Tampere University
Language: English
Open Access status: green
OpenAlex ID: W7132939148
Cites: 32
Cited by:
Related to: 10