DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Catching Data Perimeter Drift Before It Reaches Production
  • The Hidden Cost of Overprivileged Tokens: Designing Messaging Platforms That Assume Compromise
  • A 5-Step SOC Guide That Meets RBI Expectations and Strengthens Security Operations
  • How to Detect Spam Content in Documents Using C#

Trending

  • The Developer's Guide to Context-Aware AI: When Your Code Documentation Becomes Intelligent
  • Context-Aware Authorization for AI Agents
  • The Vector Database Lie
  • The Prompt Isn't Hiding Inside the Image
  1. DZone
  2. Software Design and Architecture
  3. Security
  4. Shifting Security Left: The Innovation of DevSecOps

Shifting Security Left: The Innovation of DevSecOps

Shifting security to the left in DevOps is the start of practicing DevSecOps. Take a look at why you should shift left and how you can get started.

By 
Sylvia Fronczak user avatar
Sylvia Fronczak
·
Jan. 20, 20 · Opinion
Likes (3)
Comment
Save
Tweet
Share
15.0K Views

Join the DZone community and get the full member experience.

Join For Free

plant in lightbulb

A world of innovation begins with shifting left in DevSecOps


What is DevSecOps? It involves taking all the practices of DevOps and pulling in security practices to improve security. Tom Stiehm (@thomasstiehm) explains the process.

In DevSecOps, we want to shift security left. Shifting left brings security into the application process earlier instead of allowing it to be an afterthought.

Why Shift Security Left?

Shifting left lets us deal with security issues early and often. If we leave security practices to the end, we end up with security defects in production. So shifting left reduces risk and the costs of fixing security problems.

As with other bugs, finding and fixing security bugs earlier leads to fewer errors and fewer compromises.

How Can We Do This?

Let's next talk about how we can shift security left.

Processes

We start with proactive processes instead of reactive processes. Then we architect and design security early. Finally, we automate testing that focuses on security as well.Security in DevOps

Security practice in DevSecOps from Tom Stiehm's "Shifting Security Left: The Innovation of DevSecOps" presentation.

An important step is to also review the automated test results and remediate early. Without that step, we won't be fixing problems before they hit production.

SCA and SAST

When looking at the model above, look at all the ways that you can bring security into every step. When planning, we can use threat analysis to figure out what our risks for the application are. Then when we write our code, we can use static analysis (SCA or SAST) to make sure we're not introducing vulnerabilities like SQL injection. With SAST, we're analyzing the code we've written for common vulnerabilities. On the other hand, with SCA, we're looking for vulnerabilities in our dependencies like open-source libraries. The combination of SAST and SCA will help us determine if we have something that puts us at risk.

DAST, IAST, and Pen Testing

Next, we'll look at DAST and IAST. DAST provides dynamic testing against your running application. One problem with that seems to be a number of false positives. IAST uses an interactive model that watches your software to see if someone is currently attacking your system. It's been shown to have fewer false positives than DAST.

Another great tool is pen testing. This can be automatically or manually tested against your running system. For your production system, tools like RASP and SIEM can provide additional views of security. Again, with all these tools the focus is on bringing security into the whole development lifecycle.

Security practices in a pipeline
Secure practices in a pipeline from Tom Stiehm's "Shifting Security Left: The Innovation of DevSecOps" presentation.
   

When looking at the DevOps pipeline, you can see how these tools can fit in throughout the process. As you can see, we've got a number of places where we're pulling security in. This is more thorough and reduces risk compared to the old model where we did security testing and analysis last.

Where to Start

So where should we begin? Starting with SCA provides a lot of benefit. Many vulnerabilities have been found and exploited because of open-sourced dependencies. Because teams don't always know their dependencies are vulnerable, they often have delays in getting the dependencies patched or upgraded.

The next step would be using SAST. It's quick to integrate in the build pipeline and provides benefits for the code your team writes.

And third, we can start looking at DAST. It's a bit more involved, but it's becoming more automated and easier to integrate into your pipeline.

Going back to the shifting left, let's talk about the culture shift. The culture shift should build the mindset that "everyone is responsible for security."

Part of that includes building a knowledge base. Encourage people to talk about how to deal with security challenges. Work with your security professionals to share that knowledge between teams. Figure out what lessons teams can learn from each other.

Each organization is different. We have different processes and different tools. Start doing things that work and stop doing things that don't work for your particular organization

Starting to shift left is more important than which practices you start with. Write security requirements and make sure that you have tests that verify your security requirements are covered. And make iterative changes to improve the process.

Further Reading

Shift Left, Shift Right: What Are We Shifting, and Why?

security

Published at DZone with permission of Sylvia Fronczak. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Catching Data Perimeter Drift Before It Reaches Production
  • The Hidden Cost of Overprivileged Tokens: Designing Messaging Platforms That Assume Compromise
  • A 5-Step SOC Guide That Meets RBI Expectations and Strengthens Security Operations
  • How to Detect Spam Content in Documents Using C#

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook