DevSecOps: Shifting Security Left
Intermediate · 45 minutes · 100 points
In this foundational DevSecOps lab, you will learn how to integrate security practices early in the development lifecycle — a concept known as 'shifting security left'. You will install and use real security scanning tools to detect vulnerabilities in code, dependencies, and configurations before they reach production. By the end of this lab, you will have hands-on experience with static analysis, dependency auditing, secret detection, and security policy enforcement directly from the command line.
What you’ll learn
- Understand the concept of shifting security left and why it matters in modern DevSecOps pipelines
- Use Bandit to perform static application security testing (SAST) on Python source code
- Use Safety to audit Python dependencies for known CVEs and vulnerabilities
- Use detect-secrets to scan a codebase for accidentally committed secrets and credentials
- Produce a consolidated security report and understand how to interpret and act on findings
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: devsecops, shift-left, sast, bandit, safety, detect-secrets, python, security-scanning, ci-cd, vulnerability-management
Create a free account to start this lab.