Application Security and DevOps

Status
Not open for further replies.
I work in Application Security at my company, and have noticed that unfortunately, the development of applications in my company is very decentralized. Users stand up their own systems at times (sysadmins do production systems, and sometimes QA), but development environments fluctuate wildly, QA never matches with dev, etc.

One workflow that I thought may help would be:

Define a "golden/base" image that vagrant will use
Vagrant will then create a Docker container (also using a "golden/base" image) for the development environment. This container will contain all the necessary tools, such as Apache, MySQL, PHP, Wordpress.
Developers will run the container, with their data stored locally and synced via synced folders
Ports will be forwarded accordingly.
Does this make sense to try and implement? I really would love consistency between all environments, especially making sure that QA and Production match up, and that our environments are patched appropriately.

I am very interested in hearing of how people have integrated security into DevOps.
 
When developers are spinning off their own systems, configured their own ways that do not comply with our security policies, it presents a problem to us. Too many times I have seen systems with passwords that have not changed in 5 years, weak passwords, root access over SSH, etc. By providing them a better process of deploying systems that we have already hardened, we could avoid some of these challenges where developers simply spin off their own images and deploy them without involving anyone from security.
 

herko

Tone down Your Control issues.
7,012
Moderator
[url=http:/civis/viewtopic.php?p=27414097#p27414097:vsxrt30u said:
Ravensroke[/url]":vsxrt30u]Maybe you should examine why developers are spinning off their own systems without consulting anyone. In my experience it happens when your organization makes getting stuff done through normal channels such a PITA that everyone just goes around the processes.

This. So very much this.
 
While Ravensroke and herko bring up a very good point, I also wanted to share some experience from a roundtable discussion at Blackhat a few weeks ago (see https://www.blackhat.com/us-14/roundtab ... l#Johansen). The basic gist is to leverage your CI environment to your advantage if you have one (you do have one correct?). As part of the CI process, enhance the end of the pipeline with deployment/application specific scans. So in your case, immediately after a deployment, have a CI task to hit the newly built system with a light Nessus/Qualys scan. Got a web app on the box? Add another CI task to do something like AppScan (note... I hate AppScan with the passion of a thousand firey suns). While this will not solve all of your problems, it will take care of most of the low hanging fruit. Then do a monthly audit to see if any systems have been deployed outside of the CI process and if so nail their asses to the wall. This backed up with a good monthly vulnerability auditing program should effectively curtail vulnerabilities from popping up.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
[url=http:/civis/viewtopic.php?p=27412923#p27412923:1ez2x9r6 said:
pendraggon87[/url]":1ez2x9r6]When developers are spinning off their own systems, configured their own ways that do not comply with our security policies, it presents a problem to us. Too many times I have seen systems with passwords that have not changed in 5 years, weak passwords, root access over SSH, etc. By providing them a better process of deploying systems that we have already hardened, we could avoid some of these challenges where developers simply spin off their own images and deploy them without involving anyone from security.
This all sounds like system / network security, not application security. I agree you should make deployment into properly-configured environments the path of least resistance, but where's the part that ensures developers don't introduce vulnerabilities into their own apps?
 
Status
Not open for further replies.