DevSecOps in the AIDLC Era: Continuous Security in Every Release

A scan that passed last week says little about this week's release. This article lays out a pipeline with stage-by-stage controls, release gates, exceptions and evidence, and explains why AI-generated change makes continuous assurance more important, not less.

When I assess a delivery pipeline during a SOC 2 or ISO 27001 readiness exercise, I rarely find that security tools are missing. I find that they are scattered. A scanner runs in one repository, a dependency check in another, a manual review happens before big releases and nobody can show, for last Tuesday's release, which checks ran and what happened to the findings.

AI-assisted development makes that scattering more costly. More change arrives per week, some of it written by tools whose output no human read line by line, and the pipeline is the one place where every change must pass. This article sets out how I would build that pipeline: what each stage should check, which results stop a release, how exceptions are handled and what evidence to keep. It is aimed at teams of any size, and I scale the recommendations at the end.

Where a statement comes from a source, I cite it. Where it is my own design or experience, I say so. I do not name vendors or recommend products.

Why this matters now

NIST's Secure Software Development Framework describes secure practices to be added to any software development lifecycle, in four groups: preparing the organisation, protecting the software, producing well-secured software and responding to vulnerabilities 1. The framework is deliberately not tied to one methodology, so it fits a pipeline as well as it fits a waterfall plan. The practical message is that security is distributed across the lifecycle. A single test before release cannot carry it.

DORA's capability catalogue lists pervasive security, described as building security into the software development lifecycle without compromising delivery speed, next to continuous integration, continuous delivery and working in small batches 3. I take two points from that: security is framed as part of delivery capability, not opposed to it, and small, frequent changes are on the list of things that help. Both support a pipeline-centred approach. I did not verify any measured effect from that catalogue page.

There is also a reason specific to AI. The 2024 DORA survey analysis associated higher AI adoption with a small negative throughput estimate and a larger negative stability estimate 11. It is correlational and I could not confirm its release date, so I do not claim AI causes instability. But if stability is under pressure, a pipeline that catches problems before production is where that pressure gets absorbed.

Background: what a pipeline is for

A pipeline does three jobs that people often confuse.

  1. Detect. Find known classes of problem: vulnerable dependencies, exposed secrets, insecure patterns, misconfiguration.
  2. Decide. Apply a stated policy to the findings: block, warn, or require a person to accept the risk.
  3. Prove. Leave evidence that the checks ran, on which artefact, with what result and who decided.

Most teams invest in detecting and neglect the other two. Auditors ask about decisions and proof. So do customers, and so do you after an incident.

The OWASP DevSecOps Guideline describes how to build and operate a secure software delivery pipeline. It lists steps in a basic pipeline including secrets scanning, software composition analysis, static analysis, infrastructure-as-code scanning, software supply-chain security (SBOMs, artefact signing and provenance, and CI/CD pipeline security), interactive and dynamic testing, API security, infrastructure scanning, continuous scanning, compliance checks and AI and LLM security. It says the steps can be customised and added progressively, and it recommends securing the CI/CD tools themselves 2. The page states no version or date, so I use it as a menu rather than a specification.

The pipeline, stage by stage

The table below is my own synthesis. The controls come from the guideline's list 2 and from the other sources cited, and the ordering and gate recommendations are my design. For each stage I say what to check, what stops a release and what evidence to keep.

StageControlsTypical gateEvidence to keep
Plan and designThreat model for new or risky features; security requirements in the storyRequired for high-risk changes before work startsThreat model record, requirement list
Code (workstation and pull request)Secrets scanning; push protection; pre-merge static analysis; review by a person for sensitive areasBlock on detected secrets; block on high-severity static findings in changed codeScan results per pull request, reviewer identity
BuildDependency analysis and lockfile checks; SBOM generation; build in a controlled environmentBlock on unapproved or new unreviewed dependencies; warn on known vulnerabilities by severitySBOM per build, dependency decision log
Package and signArtefact signing; provenance statementBlock releasing unsigned or unattributed artefactsSignature and provenance records
Infrastructure and configurationInfrastructure-as-code scanning; configuration baselinesBlock on public exposure of data stores and wide permissionsScan result, approved exceptions
Test (pre-production)Dynamic and API testing; abuse-case and authorisation tests; regression tests for past security fixesBlock on failed authorisation or security regression testsTest reports, linked to the commit
ReleaseApproval by a named owner for the risk tier; check that gates passed and exceptions are validHuman approval for high-risk releasesRelease record with approver and exceptions
OperateLogging and monitoring; vulnerability monitoring; drift detectionAlerts on new critical findings in running servicesAlert history, remediation tickets

Several of those rows deserve explanation.

Code stage: secrets and static analysis

OWASP's Secrets Management Cheat Sheet advises avoiding secrets in source code, using least-privilege access, rotating secrets and preferring short-lived ones 7. GitHub's blog says more than 39 million secrets were leaked across GitHub in 2024, citing its State of the Octoverse 2024 report, and describes push protection that blocks secrets at commit time 8. That figure is a vendor statistic quoted second-hand, and it is not a measure of AI-caused leakage; I use the source only for the control. My rule of thumb: put the block as early as the developer's push, because a secret that reaches history has to be treated as compromised, and rotation is far more expensive than prevention.

For static analysis, a single point I stress: scanners find known patterns. They do not tell you whether authorisation is present for each object. OWASP's API security entry on broken object-level authorisation says failures lead to data disclosure, modification or destruction and that authorisation must be checked on every object access 15. That is a property to test with abuse cases, which is why the test stage in my table includes authorisation tests and not only scanners.

Build and package: dependencies and provenance

AI assistants propose dependencies. OWASP's software supply chain cheat sheet recommends pinning to previously verified versions with lockfiles, assessing suppliers, using a private artefact repository that cannot be bypassed and verifying signatures and provenance 6. SLSA describes itself as a set of incrementally adoptable supply-chain security guidelines 5. The word incremental is useful. I tell small teams to begin with a reproducible, controlled build and a recorded provenance statement and to ask for more rigour as the product's risk grows. I did not verify SLSA's level definitions for this article, so I do not describe them here.

OWASP's Top 10 for vulnerable components recommends keeping a continuous inventory of component versions, monitoring vulnerability sources and having an update plan for the lifetime of the software 9. A new package in a diff should be a decision logged in the pipeline, not a side effect.

The pipeline itself is a target

The OWASP Top 10 CI/CD Security Risks list includes CICD-SEC-1 Insufficient Flow Control Mechanisms, CICD-SEC-2 Inadequate Identity and Access Management and CICD-SEC-6 Insufficient Credential Hygiene 4. I read the landing page only, so I use these three as examples and do not claim the full list. My interpretation of why they matter for AI: if an agent or assistant can change pipeline configuration, it can change the gates. Flow control and identity are then the controls that stop a change from approving itself. OWASP's LLM supply chain guidance recommends vetting suppliers, using SBOMs, verifying signatures and hashes and patching 10, and its excessive-agency entry recommends minimal tools, scoped permissions and human approval for high-impact actions 12. For a pipeline, that translates into three rules:

  1. Agents and assistants must not be able to edit the pipeline definition and the code it protects in one unreviewed step.
  2. Credentials for deployment are short-lived and scoped, held by the pipeline and not by developers or tools.
  3. Gates are enforced by the platform, so that disabling one needs a recorded, reviewed change.

Operate: logging and monitoring

OWASP lists security logging and monitoring failures as a category, noting that without logging and monitoring, breaches cannot be detected 13. Its Logging Cheat Sheet advises logging authentication successes and failures, access-control failures, administrative actions and uploads, while never logging passwords, secrets, session identifiers or connection strings 14. The last point is the one I see broken most often when an assistant adds debugging output.

A green scan is a statement about one commit at one moment. Continuous security is the habit of asking again at every release.
Akarsh N

Release gates, warnings and exceptions

I recommend three categories, which are my own design.

  1. Blocking findings. These stop the release automatically: detected secrets, high-severity findings in changed code, unsigned artefacts, failed authorisation tests, public exposure of sensitive data stores. The list should be short enough that people believe in it.
  2. Warning findings. These are recorded and assigned with a due date but do not stop the release: lower-severity vulnerabilities, outdated dependencies without a known exploit path, style-level static findings. A warning with no owner is the start of security debt.
  3. Risk-based exceptions. When a blocking finding cannot be fixed before release, a named, accountable owner may accept the risk for a stated period with compensating controls. The security lead records the exception, and it expires. In article 05 I argue that risk acceptance is a human-only decision, and a pipeline is where that principle becomes concrete: the exception is a record, not a Slack message.

What decides a vulnerability's priority is context. A flaw in an internet-facing service that handles personal data is not the same as one in an internal batch job. I do not have a verified source for a scoring formula, so I will not offer one. I ask three questions: is it reachable, what does it expose and is there a compensating control?

Human approval in the pipeline

Not every release needs a person. I would require one for high-risk services, for any change to the pipeline or its permissions and for any security exception. For everything else, automated gates plus sampling are proportionate. The approval has to be meaningful: the approver should see the gate results, the exception list and what changed, and should be able to refuse without penalty. Otherwise the approval is a box that gets ticked.

Continuous assurance: why one scan is not enough

A passed scan describes one artefact at one moment. Things change around it.

So I think of assurance as a loop, not a gate: build with checks, release with evidence, monitor in production, feed findings back into the backlog and re-check. SAMM, the OWASP Software Assurance Maturity Model, offers a way to assess how mature your practices are; version 2 defines five business functions and fifteen practices 16. I use it to find where the loop is weakest, not as a score to chase.

Evidence should be a by-product of the pipeline and not a project at audit time. For every release I want to be able to answer, from stored records, five questions: what changed, which checks ran, what they found, who accepted what risk and what was deployed. The tools differ; the five questions do not. This is also the material that SOC 2 and ISO 27001 auditors, and your customers' security reviewers, ask for.

Where AI changes DevSecOps, and where it does not

The AIDLC argument, developed in article 01, is that AI shifts the constraint from writing code to assuring it. For the pipeline that means four adjustments, all of them my analysis.

  1. Raise the pipeline's capacity. If volume of change doubles, scan time, test time and review queues become the limit. Measure them.
  2. Treat model output as untrusted input even when it is code. OWASP's improper output handling entry advises validation, encoding for context and parameterised queries 17. The pipeline is the independent validator.
  3. Add checks for AI-specific paths. The OWASP guideline already lists AI and LLM security and AI governance as a pipeline concern 2. In practice, I add a rule that new dependencies and new tool integrations introduced in a change require approval.
  4. Do not let AI mark its own homework. Tests authored independently, and scan results that the author cannot edit, preserve the independence that the whole pipeline relies on.

What does not change: the principles. Least privilege, short-lived credentials, signed artefacts, logged decisions and human accountability were right before AI and remain right.

Industry gaps

Based on the sources I could verify and my own experience:

  1. No verified benchmark for what "good" DevSecOps coverage looks like for AI-heavy teams. The OWASP guideline offers a menu and no thresholds 2.
  2. Little public evidence on gate effectiveness. I did not find a verified study of which gates prevent the most incidents.
  3. Pipeline security is under-attended. The CI/CD risk list exists 4, but in my experience teams harden the application far more than the system that builds it.
  4. Evidence retention is undefined in most frameworks I read beyond general guidance. I describe a practical set above, but it is my design.
  5. Measured effects of DevSecOps practices were not confirmed from the sources I opened 3.

Practical recommendations

For early-stage startups

  1. Turn on secret scanning with push protection and a dependency check before anything else 78.
  2. Commit lockfiles and require approval for new dependencies 6.
  3. Keep gates few: secrets, high-severity findings, unsigned or unreviewed dependency additions.
  4. Keep a simple exception log with an owner and an expiry date.

For scaling companies

  1. Adopt the stage table and assign each gate to a platform setting, not to a convention.
  2. Add authorisation and abuse-case tests as blocking checks for sensitive endpoints 15.
  3. Generate an SBOM per build and record provenance 56.
  4. Protect the pipeline itself: scoped, short-lived deploy credentials and reviewed changes to pipeline configuration 4.

For enterprises

  1. Map pipeline evidence to SSDF practices 1 and to your control framework.
  2. Use SAMM to find the weakest practices and plan improvement 16.
  3. Require human approval for high-risk releases, pipeline changes and exceptions.
  4. Include assistants and agents in supplier and permission reviews 1012.

Key takeaways

Conclusion

DevSecOps was never about buying scanners. It is about making security decisions repeatable, visible and fast enough to keep up with how the team really ships. AI-assisted development leaves that goal unchanged and raises the stakes, because the volume of change grows and some of it comes from tools nobody reviewed line by line.

My suggestion for next week is small. List the checks that ran on your last release. For each one, write down whether it can stop the release, who owns its findings and where the evidence lives. The blanks in that list are your roadmap.

Views are my own; examples are composites and do not describe any specific employer or client.

Key takeaways

References

  1. NIST (CSRC). "Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities (NIST SP 800-218)." 2022-02. https://csrc.nist.gov/pubs/sp/800/218/final — Supports: SSDF adds secure practices to any SDLC, in four groups (PO, PS, PW, RV). Limitations: a practice framework, not specific to AI assistants.
  2. OWASP. "OWASP DevSecOps Guideline." n.d. (page shows a 2026 copyright line, no version or date). https://owasp.org/www-project-devsecops-guideline/ — Supports: explains how to build and operate a secure software delivery pipeline; lists basic pipeline steps (secrets scanning, SCA, SAST, IaC scanning, supply-chain security including SBOM, artefact signing and provenance and CI/CD pipeline security, IAST, API security, DAST, CNAPP, infrastructure scanning, continuous scanning, compliance checks, AI/LLM security and governance); steps can be customised and added progressively. Limitations: incubator project; no version or date stated.
  3. Google Cloud, DORA. "DORA Capabilities." n.d. https://dora.dev/capabilities/ — Supports: lists capabilities including pervasive security (building security into the SDLC without compromising delivery speed), continuous integration, continuous delivery and working in small batches. Limitations: catalogue page only; no measured effects verified.
  4. OWASP Foundation. "OWASP Top 10 CI/CD Security Risks." n.d. https://owasp.org/www-project-top-10-ci-cd-security-risks/ — Supports: lists CI/CD risks including CICD-SEC-1 Insufficient Flow Control Mechanisms, CICD-SEC-2 Inadequate Identity and Access Management, CICD-SEC-6 Insufficient Credential Hygiene. Limitations: landing page only; no version stated.
  5. SLSA (Linux Foundation / OpenSSF). "SLSA Specification (Supply-chain Levels for Software Artifacts), v1.2." n.d. https://slsa.dev/spec/v1.2/about — Supports: SLSA is a set of incrementally adoptable supply-chain security guidelines. Limitations: level definitions not verified for this article.
  6. OWASP Cheat Sheet Series. "Software Supply Chain Security Cheat Sheet." n.d. https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html — Supports: pin to previously verified versions using lockfiles; assess suppliers; use a private artefact repository that cannot be bypassed; verify signatures and provenance. Limitations: gives no typosquatting guidance.
  7. OWASP Cheat Sheet Series. "Secrets Management Cheat Sheet." n.d. https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html — Supports: least-privilege access, no hardcoded secrets, rotation, short-lived secrets.
  8. GitHub. "Next evolution of GitHub Advanced Security" (blog). n.d. https://github.blog/security/application-security/next-evolution-github-advanced-security/ — Supports: blog states more than 39 million secrets were leaked across GitHub in 2024 (citing the State of the Octoverse 2024), and describes push protection. Limitations: vendor blog; Octoverse report not opened; not a measure of AI-caused leakage.
  9. OWASP Top 10 project. "A06:2021 Vulnerable and Outdated Components." 2021 edition. https://top10.owasp.org/2021/A06_2021-Vulnerable_and_Outdated_Components — Supports: continuous inventory of component versions, monitoring CVE sources and a lifetime update plan; obtain components from official sources, prefer signed packages. Limitations: 2021 edition.
  10. OWASP Gen AI Security Project. "LLM03:2025 Supply Chain." n.d. (2025 edition). https://genai.owasp.org/llmrisk/llm032025-supply-chain/ — Supports: LLM supply chain vulnerabilities and mitigations including vetting suppliers, SBOM or AI BOM, signatures and hashes, patching.
  11. Google Cloud, DORA. "Accelerate State of DevOps Report 2024." 2024. https://dora.dev/research/2024/dora-report/ — Supports: survey analysis associated higher AI adoption with a small negative throughput estimate and a larger negative stability estimate. Limitations: correlational survey data; exact release date unconfirmed.
  12. OWASP Gen AI Security Project. "LLM06:2025 Excessive Agency." n.d. (2025 edition). https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ — Supports: root causes are excessive functionality, permissions and autonomy; mitigations include minimal tools, scoped permissions and human approval for high-impact actions.
  13. OWASP Top 10 project. "A09:2021 Security Logging and Monitoring Failures." 2021 edition. https://top10.owasp.org/2021/A09_2021-Security_Logging_and_Monitoring_Failures — Supports: without logging and monitoring, breaches cannot be detected. Limitations: 2021 edition.
  14. OWASP Cheat Sheet Series. "Logging Cheat Sheet." n.d. https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html — Supports: log authentication successes and failures, access-control failures, admin actions, uploads; do not log passwords, secrets, session IDs or connection strings.
  15. OWASP API Security Project. "API1:2023 Broken Object Level Authorization." 2023 edition. https://api-security.owasp.org/editions/2023/en/0xa1-broken-object-level-authorization — Supports: object-level authorisation failures in APIs lead to data disclosure, modification or destruction; check authorisation on every object access.
  16. OWASP. "OWASP Software Assurance Maturity Model (SAMM) v2 - Model." n.d. https://owaspsamm.org/model/ — Supports: SAMM v2 has five business functions and fifteen practices for assessing security maturity.
  17. OWASP Gen AI Security Project. "LLM05:2025 Improper Output Handling." n.d. (2025 edition). https://genai.owasp.org/llmrisk/llm052025-improper-output-handling/ — Supports: model output should be treated as untrusted input; validate, encode for context, parameterise queries.