Adding Security into your CI Process

Shows how to integrate OWASP ZAP into CI by routing functional test traffic through a security proxy to surface vulnerabilities earlier. The post advocates embedding lightweight security checks into normal delivery workflows instead of waiting for late-stage pen tests.

Coveros Staff

November 15, 2014

Most organizations I’ve worked with often think they are concerned about security, but never actually do anything about it until right before the big production release when it’s often too late to actually make any major security changes before the big “Go/No-Go” decision.  What if security was baked into our CI processes in order to ensure testing takes places during our testing efforts?

Many organizations will use some combination of unit tests and functional tests to test their application and ensure it works.  For web applications, I have found tools like selenium provide a fairly robust functional testing framework to test the UI.  Many organizations will also have some organization do some detailed scan of the code and application to try and pen test the application for vulnerabilities.  This is not an easy task, is often time and resource intensive and the tools may not be configured to test all of the capabilities of the application.  Luckily, there may be a way for you to get the most out of your testing efforts while also providing pen test results.

The Zed Attack Proxy (ZAP), an open-source tool was developed at the Open Web Application Security Project (OWASP)is a penetration testing tool used to find vulnerabilities in web applications. It is ideal for developers and functional testers as well as security experts. One of its features includes setting up ZAP as a proxy, so that it gathers information about the application as you traverse through it and access different parts of the application.

By setting up a proxy to your application and pointing your functional tests (through a tool like selenium) at your ZAP proxy, you could quickly retrieve a host of valuable security findings during your CI process with little to no effort.

Coveros Staff

Coveros Staff

This post represents the collective insights of the Coveros team. Our staff consists of software experts who bring deep experience in secure agile development, DevOps, testing, and software quality. Over the past 20 years, Coveros has trained more than 30,000 professionals and worked with half of the Fortune 100 companies on mission-critical software development challenges. We draw on this extensive experience to share practical insights, proven strategies, and real-world solutions that help organizations build better software faster and more securely.