Key takeaway
- MLOps security explained: the 7 layers from data to monitoring, mapped to OWASP and NIST AI attack lists, with an adoption sequence for enterprises.
MLOps security is the set of controls that protect the data, pipelines, models and endpoints of a machine learning system from the first experiment to production. It matters because a model carries training data, business logic and often competitive value, and it is exposed to users and other systems that you may not fully know. Seven layers cover it: data, data storage, the orchestrator, the model, model hosting, how models are exposed to users, and logging and monitoring.
This guide takes an enterprise view. It maps each layer to the attacks catalogued in the OWASP Machine Learning Security Top Ten and NIST AI 100-2 E2025, sets out an adoption sequence, and shows where governance and audit evidence fit. For the delivery practice behind it, see MLOps processes and principles; for how the stages connect, see machine learning pipeline architecture.
What is MLOps security, and why does it matter?
MLOps coordinates data scientists, DevOps and machine learning engineers so that models move into production reliably. MLOps security adds the access control, protection and monitoring that keep that path trustworthy. Models in production are usually part of a larger system, and their outputs are consumed by applications that may not all be known to the team that built them, so access has to be controlled for every consumer.
It is needed from the first day of development through the whole life of the model. Some organisations also use machine learning to detect breaches elsewhere, which makes the safety of that model a precondition for trusting the security system that depends on it. For the opposite direction, using ML as a defence tool, see machine learning in cybersecurity.
What are the 7 layers of MLOps security?
Each layer below protects a different part of the lifecycle. Treat them as a stack: a weakness at the data layer is not repaired by a strong endpoint, and the reverse is also true.
| Layer | What it protects | Closest OWASP ML risk | First control to put in place |
|---|---|---|---|
| 1. Data | Training and inference data, and the metadata that describes it | ML02 Data Poisoning Attack | Classify data, limit access, record where each dataset came from |
| 2. Data storage | Datasets, features and artefacts at rest | ML04 Membership Inference Attack (privacy exposure) | Encryption, access control, access logging, retention and destruction rules |
| 3. Orchestrator | Pipeline scheduler, build and deploy automation | ML06 AI Supply Chain Attacks | Least-privilege service accounts, secrets management, reviewed pipeline changes |
| 4. ML model | Weights, code, training process and lineage | ML10 Model Poisoning, ML07 Transfer Learning Attack | Model and data lineage, approved base models, integrity checks |
| 5. Model hosting | The deployed model and its runtime | ML05 Model Theft | Isolated runtime, signed artefacts, restricted access to model files |
| 6. Exposing models to users | APIs and applications that call the model | ML01 Input Manipulation Attack, ML03 Model Inversion Attack | Authentication, authorisation per consumer, rate limits, input validation |
| 7. Logging and monitoring | Telemetry, performance and abuse signals | ML08 Model Skewing, ML09 Output Integrity Attack | Central logs, drift and anomaly alerts, a defined response owner |
The OWASP mapping is our reading of the closest risk for each layer; one layer can face several. The OWASP list is a 2023 edition at version 0.3 draft, so treat it as a checklist for discussion rather than a settled standard.
Layer 1: How do you secure the data?
Start with a minimum privacy and access policy that limits who can see what, and keep the data organised so that it is clean and traceable. Metadata helps here: knowing which data you hold, where it sits and who can reach it is what makes protection practical. Depending on the data, use encryption, hashing or tokenisation, and masking. The aim is that every dataset used for training has a known source and an accountable owner, which also answers the poisoning question of whether the training data can be trusted.
Layer 2: How do you protect data storage?
Storage is where large volumes of sensitive data sit, so it attracts both external threat agents, such as criminals, organised groups and competitors engaged in industrial espionage, and internal ones, such as malicious insiders and careless or poorly trained staff. Combine three kinds of control:
- Physical: environmental monitoring, biometric or smart card entry, and CCTV with video retention. In public cloud these are the provider's responsibility, so check the provider's assurance reports.
- Technical: access controls and authentication, profiling of data access to notice unusual movement, and application and system logs with reporting.
- Administrative: policies for retention, protection and destruction, storage requirements for the most sensitive data categories, and checks that end-to-end infrastructure follows policy.
Layer 3: How do you secure the orchestrator?
The orchestrator is the workflow manager that creates, monitors and deploys resources automatically. Whoever controls it can change what reaches production, so it deserves the same protection as a build system. Give it least-privilege credentials, keep secrets out of pipeline code, require review for pipeline changes, and protect the traffic it handles. The SLSA guidelines describe provenance as tamper-resistant evidence of how an artefact was built, which is a useful idea for models and their containers. SLSA v1.0 defines a Build Track with Levels 1 to 3; see MLOps tools for the platforms involved.
Layer 4: How do you secure the ML model itself?
Models can be manipulated through their training data, their code or the pre-trained components they start from. Ask and record the answers to these questions for every model:
- Where does the training data come from?
- What kind of data was used to train the model?
- Who developed the model?
- Who else has access to the model?
- Who has access to the pipeline?
Layer 5: How do you secure model hosting?
Deployment means making a trained model's predictions available to users or other systems. Many challenges appear once a model meets the accuracy bar and goes live, so plan the hosting controls before that point: an isolated runtime, restricted access to model files, versioned and approved artefacts, and a rollback path.
Layer 6: How do you expose models to users securely?
Models are usually served through web servers so that users can query them with new input data. Server-side deployment means user data travels to the server on each query, which raises network load and can raise legal questions about where data goes. Authenticate every caller, authorise per consumer, rate-limit, and validate inputs. Running a model on the device keeps the input local, but it places the model in a place you do not control, so weigh it against model theft.
Layer 7: How do you log and monitor MLOps infrastructure?
After deployment, engineers monitor model performance and retrain when it falls short. That depends on infrastructure that provides metrics and logs in good time so that they can see where things go wrong. Extend the same telemetry to security signals: unusual query patterns, access to model files, changes to pipelines and unexpected shifts in outputs. Name an owner for each alert.
What has changed in ML security since this guide was first written?
| Development | What it says | Source and status |
|---|---|---|
| Adversarial ML taxonomy | NIST organises attacks by ML method, attack life cycle stage and attacker goals, capabilities and knowledge, and covers evasion, poisoning, privacy and abuse | NIST AI 100-2 E2025, March 2025: NIST CSRC |
| OWASP ML Top Ten | Ten risks from input manipulation to model poisoning | 2023 edition, version 0.3 draft, 'being modified frequently': OWASP |
| Secure AI Framework | Organises AI security across four component areas: Data, Infrastructure, Model and Application | Google's framework; contributed to the Coalition for Secure AI (CoSAI); no version or date on the page: SAIF |
| AI risk management | Voluntary framework for trustworthy AI; AI RMF 1.0 released 26 January 2023, Generative AI Profile (NIST AI 600-1) 26 July 2024 | NIST says AI RMF 1.0 is being revised as part of the White House AI Action Plan: NIST |
The common thread is that ML security now has shared vocabulary and checklists, but several of them are still drafts or under revision. Build your controls on the layers above and re-check the references each year.
How should an enterprise govern and sequence MLOps security?
Our own solution teams advise building MLOps pipelines, security guardrails and monitoring in from the start rather than bolting them on later. The sequence below follows that principle.
| Step | Action | Evidence to keep |
|---|---|---|
| 1. Inventory | List every model, dataset, pipeline and endpoint, with an owner | Register of ML assets |
| 2. Risk analysis | Review the architecture of each ML system against the seven layers and the OWASP and NIST lists | Architectural risk review |
| 3. Lock down data and storage | Classify, encrypt, restrict and log access | Access logs, retention rules |
| 4. Harden the pipeline | Least privilege, secrets management, reviewed changes, provenance for artefacts | Pipeline change records |
| 5. Protect serving | Authenticate and authorise callers, rate-limit, validate inputs | Endpoint access policy |
| 6. Monitor and respond | Drift and abuse alerts with named owners | Alert and response log |
| 7. Review | Re-test after model, data or pipeline changes | Test results per release |
As ML estates add agents that call models and tools, the same controls need to apply to automated decisions. Elixir Govern (formerly AgentGRC) keeps autonomous agent actions inside policy, with the audit trail risk teams need. The ElixirData Audit Agent assembles decision lineage, policy versions, approvals and authority chains for compliance teams. The wider decision layer is described by ElixirData Context OS, which keeps governed context, versioned policy and decision traces in one decision layer above AI agents.
What are the trade-offs, and when is this not enough?
- More controls add friction for data scientists. Agree which environments need strict controls and which can stay open for experiments.
- Monitoring and logging add storage and review effort. Log what you will act on.
- Security controls do not fix bad data or biased models; they protect what you already have.
- Frameworks such as OWASP ML Top Ten and SAIF are guidance, not certification. Regulated sectors need to check obligations with their own counsel.
To map one ML decision your models should make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What is MLOps security?
MLOps security is the set of controls that protect the data, pipelines, models and endpoints of a machine learning system across development and production, including who can access each part and how changes are tracked.
What are the 7 layers of MLOps security?
Data, data storage, the orchestrator, the ML model, model hosting, exposing models to users, and logging and monitoring.
What attacks do ML models face?
The OWASP Machine Learning Security Top Ten (2023 edition, version 0.3 draft) lists input manipulation, data poisoning, model inversion, membership inference, model theft, AI supply chain attacks, transfer learning attacks, model skewing, output integrity attacks and model poisoning.
Which framework should we start with?
NIST AI 100-2 E2025 gives a taxonomy of adversarial machine learning attacks and mitigations, Google's SAIF organises security across Data, Infrastructure, Model and Application, and the NIST AI RMF covers wider risk management. Use them together with the seven layers.
When does MLOps security start?
From the beginning of development and through the production stages, for as long as the model is in use.
Next Steps in MLOps Security
Talk to our experts about implementing MLOps security layers and how industries leverage Agentic Workflows and Decision Intelligence. Learn how AI optimizes IT operations, automates tasks, and enhances security to improve efficiency and decision-making across departments.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE