Securing the Software Pipeline: A Practical Map
Contents
1. Introduction
In a modern software pipeline, security is spread across the whole path code takes, from a developer’s keyboard to a live production system, as a set of tools and checks rather than one control applied at a single moment. Each one sees a different slice of the same problem.
This article maps that path. It starts with the concepts that make it legible — cloud, the SDLC, shift left, DevSecOps — then walks the pipeline stage by stage, tracing a single SQL injection through all of it to see what each stage actually catches on its own, and closes with the OWASP risk categories, for web applications and for large language models, that these controls exist to address.
Key arguments
- Shift left is correct in principle, but not everything is naturally detectable at push or commit time — effective pipeline security controls the whole pipeline, at the point where each type of problem first becomes visible.
- This article maps that pipeline stage by stage: the fundamentals, the tools running at each stage, one SQL injection traced from an editor to production, and the main OWASP risk categories.
2. Core Concepts
Before the rest of this article makes sense, four concepts are worth pinning down.
2.1 Cloud
Cloud is the backdrop for essentially all of it: the overwhelming majority of software today runs on infrastructure rented on demand from a provider such as Amazon Web Services, Microsoft Azure, or Google Cloud, rather than on servers a company owns outright.
Underneath, it breaks down into five building blocks:
| Building block | What it is |
|---|---|
| Compute | Where code actually runs, as a virtual machine, a container, or a serverless function |
| Network | How systems connect, through virtual private networks and the subnets inside them |
| Edge & CDN | What public traffic reaches first, load balancers and content delivery nodes |
| Data | Where information is kept, in object storage, block volumes, or managed databases |
| Identity | Who is allowed to act, defined by accounts, roles, and the permissions attached to them |
2.2 SDLC
SDLC stands for the Software Development Life Cycle, the sequence of phases software moves through from idea to retirement:
Plan → Code → Build → Test → Release → Deploy → Operate
Every phase hands its output to the next. Each phase is also a point where a security check can run, as later sections show.
2.3 Shift Left
Shift left is the practice of moving those security checks as early as possible in that sequence, so a problem is caught while it is still cheap to fix rather than after other work has been built on top of it. The name comes from drawing the SDLC as a left-to-right timeline: pushing a check left means running it closer to the moment the code is written, not closer to release.
A hardcoded database password shows why the timing gap is not a minor detail:
- Caught early
a pre-commit check flags it before the commit is even accepted. Fixing it costs seconds, deleting the string and referencing a secret instead. - Caught late
it ships to production and is only found because it enabled a breach. Fixing it now means a full incident response, working out what was accessed, rotating every exposed credential, and notifying whoever needs to be notified.
The gap is not only economic. A late catch is also more severe in its own right, and a single leaked credential rarely stays contained: it can become the entry point for lateral movement, turning one small mistake into a far larger compromise.
2.4 DevSecOps
DevSecOps is the operating model that makes shift left practical at scale. It folds security into the same pipeline Development and Operations already use to build and ship, rather than keeping it as a separate function that signs off right before release. That way, all three groups share responsibility for it continuously, instead of one team owning a final gate everyone else has to wait on.
3. The Pipeline, Stage by Stage
The CI/CD pipeline runs every code change through four stages: Commit, Build, Deploy, and Runtime. Each stage sees the code differently, moving from the cheapest, most static view available before anything is even compiled, to the most realistic and most expensive view once the software is live and handling real traffic.

3.1 Commit
The earliest gate. Runs on the developer’s machine and at push time, before anything is built.
| Control | What it does | Tools |
|---|---|---|
| IDE plugins | Extensions that flag issues directly in the editor, the earliest possible feedback, before the code is even saved | SonarLint, Snyk |
| Pre-commit hooks | Scripts that block a bad change before it is accepted as a commit | pre-commit framework, Husky |
| Secret management | Scanners that catch credentials before they reach the repository, with dedicated tools holding the real secrets instead | gitleaks, TruffleHog, HashiCorp Vault, AWS Secrets Manager |
Practical Tip Run secret scanning locally at pre-commit, not only in CI: by the time a CI job runs, a leaked credential may already be sitting in git history, where removing it means rewriting history rather than editing a file.
3.2 Build
Where source is compiled and dependencies are pulled in, so the pipeline can analyze the application as a whole while it is still not running.
| Control | What it does | Tools |
|---|---|---|
| SAST (Static Application Security Testing) | Scans source code for vulnerable patterns without executing it | SonarQube, Semgrep, CodeQL |
| SCA (Software Composition Analysis) | Checks third-party dependencies against databases of known vulnerabilities | Snyk, Dependabot, Trivy |
| SBOM (Software Bill of Materials) | Generates a full inventory of every component in the artifact, paired with signing to prove the build was not tampered with afterward | Syft, Sigstore/cosign |
Note SAST’s blind spot is not knowing what actually executes: it flags a vulnerable pattern wherever the pattern exists in the source, whether or not that code path is ever reached, so expect false positives and budget time to triage them rather than treating every finding as confirmed.
3.3 Deploy
Where a deployable artifact and a running test environment let controls exercise the application and its infrastructure as they will actually run.
| Control | What it does | Tools |
|---|---|---|
| DAST (Dynamic Application Security Testing) | Attacks a running application from the outside, the way a real attacker would | OWASP ZAP, Burp Suite |
| IAST (Interactive Application Security Testing) | Combines an agent inside the running app with outside requests, confirming a vulnerability and pointing to the exact line of code behind it | Contrast Security |
| Secure IaC scanning | Checks infrastructure-as-code files, like Terraform, before they are applied | Checkov, tfsec, Terrascan |
| Compliance as code | Enforces policy and regulatory rules automatically instead of through manual audits | Open Policy Agent (OPA) |
Note DAST’s blind spot is the mirror of SAST’s: it confirms an exploitable issue is real but has no way to point at the line of code causing it, so plan to trace the finding back manually or pair it with a tool, like IAST.
3.4 Runtime
Where the application is live and exposed. Controls here exist to detect and contain whatever slipped through the earlier stages.
| Control | What it does | Tools |
|---|---|---|
| RASP (Runtime Application Self-Protection) | Lives inside the running application and blocks an attack based on its real effect, not just its shape | Contrast Protect |
| WAF (Web Application Firewall) | Filters HTTP traffic at the perimeter before it reaches the application | AWS WAF, Cloudflare, ModSecurity |
| Monitoring | Collects logs, metrics, and traces, with a runtime sensor watching for suspicious behavior inside containers | Prometheus, Grafana, ELK, Datadog, Falco |
| Chaos engineering | Deliberately injects failures to test how the system holds up under real stress | Chaos Monkey, Gremlin |
| Vulnerability management | Continuously finds, prioritizes, and tracks fixes across the running estate | Nessus, Qualys |
Key Insight WAF and RASP are both reactive: neither does anything until a request has actually arrived. A WAF inspects traffic from the outside and blocks whatever matches a known attack pattern — cheap, but blind to what a request actually does once it is inside the app. RASP sits inside the running application and sees that real effect, such as a string about to become a database query rather than plain text. It can block a payload a perimeter filter would wave through, at the cost of instrumenting the application itself.
4. One SQL Injection Through the Whole Pipeline
Picture a developer building a login form. The username field goes straight into a SQL query through string concatenation, and a database password sits hardcoded in a configuration file a few lines away.
What follows imagines both mistakes reaching each stage as if nothing upstream had already caught them, to show what every stage in the pipeline is actually capable of finding on its own.
| # | Stage | Control | What it finds |
|---|---|---|---|
| 1 | Commit | IDE | Flags the string concatenation as a SQL injection sink while the developer is still writing the function |
| 2 | Commit | Pre-commit | Scans the diff before the commit is accepted, finds the hardcoded database password, and blocks the commit. The credential moves to HashiCorp Vault instead |
| 3 | Build | SAST | Traces the data flow from the HTTP parameter through the concatenation into the SQL query, confirming the path is unsanitized |
| 4 | Build | SCA | Separately flags a known vulnerability in the JDBC driver dependency |
| 5 | Deploy | DAST | Sends ' OR '1'='1 to /api/login and gets a 200 OK back, confirming the endpoint is exploitable — with no way to know which line of code is responsible |
| 6 | Deploy | IAST | An in-app agent observes the same request and traces it to the exact line — UserRepository.java:47 — confirming the same exploit with the location this time |
| 7 | Runtime | WAF | Assuming the flaw reached production untouched, an attack payload arrives. The managed SQL injection rule set drops it before it reaches the origin |
| 8 | Runtime | RASP | Assuming a payload still slipped past the WAF, anomalous behavior is detected at the workload level and blocked before it does damage |
No single tool in this chain would have caught everything on its own. Each one only saw the flaw once the context it needed actually existed — a pattern to scan, a live request to send, or real behavior to observe. Before that point, there was nothing to find, not because a stage failed, but because that evidence hadn’t shown up yet.
5. OWASP 2025: The Categories That Matter
OWASP, the Open Worldwide Application Security Project, is a nonprofit organization that maintains several “Top 10” lists classifying types of attacks on web apps, APIs, and LLMs.
These are, in my opinion, the most important categories from the Web Top 10:
| ID | Category | What it means |
|---|---|---|
| A01 | Broken Access Control | Fails to restrict actions to what a user is actually permitted, such as changing an id in a URL and getting back someone else’s data |
| A02 | Security Misconfiguration | Weak defaults, overly open permissions, or verbose error messages that expose internal details |
| A03 | Software Supply Chain Failures | Compromise introduced through a dependency, a build pipeline, or a package delivery process, rather than the application’s own code |
| A09 | Security Logging and Alerting Failures | Security events go unlogged or unalerted, so an incident runs far longer than it should before anyone notices |
And from the LLM Top 10:
| ID | Category | What it means |
|---|---|---|
| LLM01 | Prompt Injection | Input overrides the model’s intended behavior because instructions and the data it reads arrive through the same channel |
| LLM02 | Sensitive Information Disclosure | The model leaks personal data, proprietary information, or credentials it was never supposed to reveal |
| LLM04 | Data and Model Poisoning | Training or retrieval data is deliberately polluted to introduce bias or a backdoor |
| LLM10 | Unbounded Consumption | No limit on compute, tokens, or cost, opening the door to a runaway bill or a denial of service |
I highly recommend checking out the complete rankings on the OWASP website, especially the LLM one, which features modern and highly unique attacks.
6. A Reflection: From Shift Left to Shift Good
Shift left says: catch the problem as early as possible. Most of the time that works. But take a SQL injection with no obvious pattern. The tainted input passes through a few layers of normal-looking code before it reaches the query, so a static tool sees nothing to flag. That’s not a miss. Static analysis only reads code, it doesn’t run it. A DAST tool catches this one instead, because it sends a real request and watches what actually happens. It doesn’t rely on a pattern at all, only on watching the code actually run.
That’s why I’d rather call it shift good. The question isn’t how early a check can run. It’s which layer can actually see the problem. Static analysis fails here for a simple reason: there’s nothing static to find. So the first layer capable of catching it has to be one that watches the code execute, not one that reads it.