Blog

Solving the Pitfall of Environments

Written by GREG ANDERSON | Jul 5, 2023 8:57:00 AM

Automating Dynamic Security Testing

If you’re reading this, chances are you’re already a believer in DevSecOps and you’re currently going through some pain related to automating dynamic scanning.

In order to automate dynamic security testing, we must have a live environment, and as good security professionals know your tests are only as good as the environment you’re testing in.

More often than not, the environments that are provided to me do not match production. I see the majority of teams asking developers to maintain an additional environment just for security testing. In this standard approach we are always at the mercy of the devs, and if your employer is price sensitive, you may also get grief about the cost of the server.

I greatly dislike being at others’ mercy to complete my work, but fortunately you can put the challenge of getting an accurate environment in your control! I’ve had a great deal of success with asking developers to provide a production container via docker-compose, that is updated when a pull request is merged.

This should be a very small investment by engineering to port an install to docker-compose. It is drop-in simple. If it isn’t drop-in simple, you have much bigger problems. This allows me to spin up a production ready environment at will, in CI, for security testing.

Final Result Diagram

In-Practice

Conclusion

And that’s it! Automated dynamic scanning made sane and easy.