Guide

What is DevSecOps for AI systems?

DevSecOps for AI extends secure delivery practice to models, prompts, data and agents. This guide covers the new risks and the controls that fit.

By iFortis Worldwide ResearchPublished Updated 3 min read

On this page

SummaryDevSecOps for AI systems is the practice of building security into every stage of delivering AI software, covering models, prompts, training and retrieval data, tools and agent permissions as well as code, with automated checks in the pipeline and monitoring in production.

The starting point

DevSecOps means security is part of software delivery from the first commit, with automated checks in the pipeline, and is not a gate at the end. DevSecOps for AI systems applies the same principle to a wider set of parts. An AI system is code plus models, prompts, data, tools and permissions. Each can be changed, and each can be attacked.

Standard practice still applies in full: code scanning, dependency checks, secrets management, least privilege, patching. The AI-specific work is added to that base. It does not replace it.

What is different about AI systems

  • Behaviour is not fixed. The same input can give different outputs, so tests measure rates of success across many cases.
  • Instructions and data share a channel. A model reads everything as text, so content can carry commands. See prompt injection.
  • Models are opaque artefacts. A downloaded model file can hide malicious behaviour or unsafe code.
  • Data shapes behaviour. Tampered training or retrieval data changes what the system does.
  • Agents hold permissions. A manipulated agent can misuse whatever access it has been given.

Controls across the life cycle

  • Design. Threat-model the system, including what an attacker could achieve by controlling any text the model reads.
  • Supply chain. Use models and datasets from known sources, verify them, and keep an inventory of what each system depends on.
  • Build. Version prompts, configurations and evaluation sets alongside code, with review for each change.
  • Test. Run automated evaluations and adversarial tests in the pipeline. Block a release that falls below threshold.
  • Release. Deploy gradually, with a route back to the previous version.
  • Operate. Screen inputs and outputs, monitor for misuse and drift, log decisions, and rehearse incident response.

Agents need particular care

An agent with tools is the highest-risk form. Give each agent its own identity and the narrowest permissions that allow the job. Validate every tool request outside the model. Require approval for actions that are hard to reverse. Keep agents that read untrusted content, such as inbound email or web pages, away from tools that can move money or export data, unless a check sits between them.

The same applies to coding agents inside the delivery pipeline itself. They read repositories and dependencies that may contain hostile text, and they should not hold production credentials.

Common gaps

  • Security review covers the application and ignores the prompt and the retrieval sources.
  • Prompts are edited directly in production with no version or approval.
  • API keys for model providers sit in code or shared documents.
  • Red-teaming is done once before launch and never again.
  • Logs capture prompts containing personal data with no masking or retention rule.
  • The security team has no inventory of AI systems in use, including tools staff adopted themselves.

How to establish the practice

Start with an inventory: every AI system, its models, data sources, tools and owner. Extend the existing pipeline. Add prompt and configuration versioning, an evaluation stage and adversarial test cases to the steps teams already run. Publish a short set of secure patterns that teams can copy, and supply the shared controls through the platform.

Train security engineers on how models fail and train AI engineers on threat modelling. The two groups need a shared vocabulary. Public frameworks from bodies such as OWASP and NIST give a useful checklist of risks to work through. The cybersecurity and resilience page covers the wider security practice, and zero trust explains the access model that suits agents.

Questions for the security lead

  • Do we have a complete list of AI systems and what they can access?
  • What would a successful injection let an attacker do in our highest-risk agent?
  • Does a prompt change go through review and testing?
  • How would we detect misuse in production, and how fast?
  • When did we last test our response to an AI incident?

All insights RSS feed

Tell us the outcome you need

The first meeting is a working session about your situation, with an engagement lead, not a sales call.

Contact us Submit an RFQ