DevOps Security: What Is DevSecOps?
Published: 2021-01-14 21:14:05

First of all you must be thinking, what is DevOps? What the hell is DevSecOps? And will we keep adding more acronyms to it? 

It could look like something like this in the coming years.


![EkW61VCXgAAIhSb (1)](https://dev-to-uploads.s3.amazonaws.com/i/ikngf6bc2fz8c3plnnhf.jpg)
 

Source: <a href="https://www.facebook.com/acloudguru/photos/a.929718417087932/3451968114862937/?type=3">Acloud Guru</a>


I think TriceratOps would be at the stage where you've been transforming into so many Ops roles you forget where your focus is supposed to be. 

For now, to understand DevSecOps, we must first know what DevOps is.

What is DevOps?

Firstly, DevOps is an acronym, short for development (Dev) and operations (Ops). It is mainly the union of people, processes and technology to continually provide value to the business and their customers. 

It can also be its own department of engineers who posses hybrid skills that developers, network administrators and operations have. 

![Operations-1-1024x493](https://dev-to-uploads.s3.amazonaws.com/i/r4a2yyy99qwau6k0v30j.png)
 

Their main focus is to take the former siloed departments like development, IT operations and quality engineering to collaborate and coordinate them into one. 

Their outcome should lead to a faster time to market, highly available systems and more reliable products. 

![pexels-taras-makarenko-593172-2](https://dev-to-uploads.s3.amazonaws.com/i/qhhvvtlw8pihyovgjbke.jpg)
 
By adopting to DevOps practices and implementing their tools, teams gain the ability to better respond to customer needs, enable continuous feature integration and increase confidence in the applications they produce.

Examples of DevOps practices would be:

Continuous development.
Continuous testing.
Continuous integration (CI). 
Continuous delivery.
Continuous deployment (CD).
Continuous monitoring.
Infrastructure as code. 
However, the problem in the past was that these practices allowed us to develop too fast, not run vulnerability scans and not allow us to be security compliant. This allowed systems, resources and code to have open vulnerabilities. 

What is a Vulnerability?

![pexels-lalesh-aldarwish-147634](https://dev-to-uploads.s3.amazonaws.com/i/5iyjxgbta5s7an14v7f1.jpg)
 
In the dictionary, a vulnerability can be defined as "the quality or state of being exposed to the possibility of being attacked or harmed, either physically or emotionally."

In our DevOps world, a vulnerability could be something like our credentials being uploaded go to a public repository, malware being embedded in a software dependency or having a misconfigured resource that allows to access our resources.

Believe it or not, the last consultancy I worked at, someone uploaded their credentials to Github and within 3 seconds it was scrapped by a scanner bot. The following week, the company got a $20,000 bill for AWS as a hacker had spun up resources to do crypto mining. A very expensive mistake indeed!

![pexels-markus-winkler-4584830-1-1024x683](https://dev-to-uploads.s3.amazonaws.com/i/1fby6mp2tiiwnkbnsb1y.jpg)
 
Did you delete your credentials before pushing to Github?

With these gaps, security was no longer decided to be implemented right at the end of the development cycle. This is where DevOps security comes into play. It is also now known as another buzzword called "DevSecOps". With its implementation security is inserted right from the beginning until the end of production. 

Why Do We Really Need DevSecOps?

![pexels-pixabay-39584-1](https://dev-to-uploads.s3.amazonaws.com/i/5ue0soakgqgzyenlcn0r.jpg)
 
Everyday hackers are looking for ways in to deploy malware and other exploits on your system. 

For example, imagine if they were able to insert malware into a software dependency or application during the build process. The malware would not be found until the application had been distributed to thousands of its customers. 

The damage to both the customer software and company's reputation would be huge, especially in a world where bad news goes viral within minutes.

This is why making security a top consideration alongside development and operations is a must for any organization involved in developing applications and software distribution. 

When you integrate or involve DevSecOps, every developer, operations and network administrator will have security at the front of their minds when developing and deploying applications.

Benefits of DevOps Security?

![pexels-pixabay-163467-1-1](https://dev-to-uploads.s3.amazonaws.com/i/cxcwu6mjlej45cut5ute.jpg)
 

The first thing that comes to mind for DevSecOps is enhanced secure automation throughout the software delivery pipeline. This helps eliminate mistakes and reduces downtime and attacks.

The objective is to make security one of the core components of the software development workflow. Otherwise it would more resource expensive to fix any bugs you find later on in the development cycle. 

Some of the benefits are as follows:

Automation. Your focus as a DevSecOps engineer is speedy secure delivery. The delivery pipeline wont be slowed down by inserting security to the mix. By embedding automated security and tests early in the development cycle, you can ensure faster and more secure delivery times of your applications.

Threat modeling. Threat modeling can help you to discover vulnerabilities of your resources and fill any gaps in your security controls. An Example is using Forcepoint's Dynamic Data Protection.

This can be added to your pipeline to help you to identify even the riskiest events that occur across your infrastructure. This can also help to build the necessary protection into your DevSecOps workflows.

Efficiency. If you are only adding security to your workflows, you can just use tools that can scan code as you write it. You will find security issues much earlier.

DevSecOps - AWS Security

One the of great things about a cloud provider like AWS is that they provide security tools that can easily be integrated into your development process, software deployment and infrastructure.

In the below diagram, AWS lays out for what security measures they are responsible for and what security measures customers are responsible for too. 

![Screen-Shot-2021-01-10-at-2.49.42-PM](https://dev-to-uploads.s3.amazonaws.com/i/pvut0nrxqdestdyuw5lh.png)
 
AWS doesn't leave us unequipped to secure ourselves. For example, every domain that the customer has control over, they have provided us with the necessary tools to achieve optimum security.

A brief list:

Network Security

Network firewalls - giving us the ability to create VPCs (Virtual Private Cloud) with private networks.

Connectivity options which enable private, or dedicated, connections from our office or on-premises environment.

DDoS mitigation technologies that can be applied to layer 3 or 4 and layer 7.

Automatic encryption of all traffic coming through via AWS global and regional networks.

Configuration Management
Deployment tools to manage the creation and decommissioning of AWS resources.

Tools to allow us to track and manage our inventory and configuration management.

Preconfigured template and management tools to create a standard in resources that can be used across the business like hardened virtual machines.

The list goes on. If you'd like to dive more into it I would recommend logging on to the AWS console and search security. 

You would get a whole list of services and documentation to how you could use security in your cloud deployment. 
﻿

Aws security
If you would like to check out AWS security best practices, I would recommend reading their white paper: Introduction to AWS Security 2020.

Please note that other cloud providers like Azure or GCP will also offer similar tools to help place security at the heart of your operations. They all have simialr functions but just use a different name like we can see below:
﻿

![Screen-Shot-2021-01-10-at-3.11.16-PM-1024x574](https://dev-to-uploads.s3.amazonaws.com/i/dssgvmum3gtgsaiuna2x.png)
 
Source: <a href="https://i.blackhat.com/USA-19/Thursday/us-19-Shrivastava-DevSecOps-What-Why-And-How.pdf"> Black hat Events</a>

Final Thoughts
DevOps security has now evolved into DevSecOps which as you can see aims to unite Development, Security and Operations. 

Its not enough to now have speedy delivery to market, DevOps engineers need to include security early on to catch any malware or vulnerabilities that may show after distribution.

All it takes is a password to be exposed on Github and the hacker will have the keys to your environment. The best way to implement security is by thinking about how secure your application, processes and environment is.

Check out our <a href="http://a-links.me/JaPR2">A-Techie blog</a> for more!

Here is the link to the <a href="http://a-links.me/CvhTa"> original blog post</a>!