Skip to main content
XenonStack

DevSecOps

XenonStack Insights DevSecOps Pipeline: Stages, Checks and AI Agents

| Published | Updated

DevSecOps Pipeline: Stages, Checks and AI Agents
7:34
DevSecOps pipeline: plan and code safeguards, build checks, test and release gates, agent-assisted triage

Key takeaway

  • A DevSecOps pipeline adds security checks to every CI/CD stage. See the stages, SAST versus DAST, false-positive handling and where AI agents fit.

A DevSecOps pipeline is a CI/CD pipeline with automated security checks built into each stage, so that vulnerabilities are found while code is being written and built instead of just before release. It applies the DevSecOps idea of shared responsibility for security to the practical path code takes from commit to production.

This guide is for engineering leads, DevOps and security teams who want to add security to an existing pipeline. It explains the stages, what each check does, how static and dynamic testing differ, how to handle false positives, and how AI agents fit in. For the wider philosophy and tool landscape, see DevSecOps framework and tools.

What is a DevSecOps pipeline?

The OWASP Developer Guide says DevSecOps "seeks to add steps into the existing CI/CD pipelines to build security into the development and release process". The NIST SP 800-218 (Secure Software Development Framework, February 2022) explains why this is needed: "Few software development life cycle (SDLC) models explicitly address software security in detail", so security practices must be added to the model a team already uses.

A pipeline is the automated sequence behind continuous integration and delivery. Developers merge changes to a shared repository, and a CI/CD server builds, tests and prepares each change. DevSecOps adds security tasks to that same sequence, so they run every time and do not depend on someone remembering to ask.

What are the stages of a DevSecOps pipeline?

A typical pipeline moves through plan, code, build, test, release and deploy. Security work attaches to each stage.

Two-column diagram. Early stages: plan, code, build with SAST, build with SCA. Later stages: test with DAST, release, deploy, feedback.
StageSecurity activityTypical check
PlanDecide what could go wrong and where, how and when testing will happenThreat modelling and a security test plan
CodeStop secrets and obvious flaws reaching the repositoryLinting, secrets scanning and Git controls for passwords and API keys
BuildFind flaws in source code and in imported librariesStatic analysis (SAST) and software composition analysis (SCA)
TestTest the running application the way an attacker wouldDynamic analysis (DAST) for authentication, authorisation, injection and API endpoint errors
ReleaseCheck the release candidate before it shipsVulnerability scanning of images and infrastructure, and penetration testing where needed
DeployShip only builds and infrastructure that passed the earlier gatesPolicy gates and runtime monitoring

The OWASP Developer Guide names the same families of checks in its pipeline guidance: SAST, DAST, SCA, secrets management, container vulnerability scanning and infrastructure vulnerability scanning. The OWASP DevSecOps Guideline states the aim as detecting security issues "as fast as possible", and recommends a central vulnerability management solution for a single view of application security.

How do SAST and DAST differ?

The two techniques find different problems and work best together.

AspectSAST (static)DAST (dynamic)
What it examinesSource code and dependencies, without running the applicationThe running application, from the outside
Where it fitsEarly, at commit or build timeLater, against a test or staging environment
Language dependenceTools are specific to a programming language, so choose one that matches your stackLargely independent of language, because it interacts with the application from outside
Typical findingInsecure code patterns, vulnerable libraries, exposed secretsAuthentication and authorisation errors, injection and API endpoint problems
Main cautionCan report false positivesNeeds a running, representative environment

Using both gives early feedback while code is cheap to change and a later check on how the assembled system behaves.

How do you introduce continuous security without slowing the team?

  • Start with security unit tests and fast checks, such as secrets scanning, that give an answer in the developer’s own workflow.
  • Plan for false positives. Record a justified dismissal so the pipeline remembers it, because a team that stops trusting alerts stops responding to a broken build.
  • Make findings fixable. Detecting a vulnerability is half the job; the team also needs clear guidance and time to fix it.
  • Introduce gates in stages: report first, then fail the build on the highest severity, then tighten.
  • Give auditors and security staff a shared view of results, so security review becomes part of the pipeline rather than a late hand-off.

Pipeline checks matter most in architectures with many independent services; our guide to DevSecOps for microservices, the article on DevSecOps tools and continuous security and the overview of the DevSecOps pipeline cover tooling and architecture in more depth.

How do AI agents change the DevSecOps pipeline?

Agents change the pipeline in two ways. They can work inside it, and they can produce what flows through it.

  • Triage: an agent can group scanner findings, link them to the changed code and draft a fix for a developer to review, which helps when false positives drain attention.
  • Context: an agent can gather ownership, deployment and dependency information so that a finding reaches the right team with the right detail.
  • Generated code: code written with AI assistance should pass the same SAST, SCA and secrets checks as any other change.
  • Agent actions: an agent that changes configuration or blocks a release needs scoped permissions, an approval rule for risky steps and a full log of what it did.

The ElixirClaw AI agents computing platform is XenonStack’s platform for building and running agents for DevOps and automation work.

What should you do first?

  1. Map your current pipeline stages and mark where no security check exists today.
  2. Add secrets scanning and dependency checks, which are fast to run and easy to explain.
  3. Add SAST at build and DAST against a staging environment, and agree how false positives are recorded.
  4. Set a severity threshold that fails the build, and review it every quarter.
  5. Decide which pipeline tasks an agent may perform, and which need a person to approve.

To map one decision your agents make in the pipeline, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is a DevSecOps pipeline?

A DevSecOps pipeline is a CI/CD pipeline with automated security checks built into each stage, so that vulnerabilities are found while code is written and built instead of just before release.

What are the stages of a DevSecOps pipeline?

Plan, code, build, test, release and deploy, with a security activity at each stage such as threat modelling, secrets scanning, SAST, DAST and release checks.

What is the difference between SAST and DAST?

SAST examines source code and dependencies without running the application, and DAST tests the running application from outside. They find different problems, so teams use both.

How do you handle false positives in security scanning?

Record a justified dismissal so the pipeline remembers it, tune the tool, and keep alerts trustworthy so the team keeps responding to a broken build.

Where do AI agents fit in a DevSecOps pipeline?

Agents can triage findings, gather context and draft fixes, and the code they help write must pass the same checks. Agent actions need scoped permissions, approval rules and logs.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

dr-jagreet-gill

Dr. Jagreet Kaur

Chief AI Officer, XenonStack

LinkedIn profile

Dr. Jagreet Kaur specializing in Generative AI for synthetic data, Conversational AI, and Intelligent Document Processing. With a focus on responsible AI frameworks, compliance, and data governance, she drives innovation and transparency in AI implementation

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue