The main failure is coverage, not visibility in a single tool. Cloud posture tools can find misconfigurations, and code scanning can catch defects, but ML pipelines also depend on runtime behaviour, model provenance, prompt handling, and delegated identities. If those layers are not governed, the pipeline can be compliant at rest and still unsafe in motion.
Where the blind spot is in ML pipeline security
Cloud posture and code scanning are useful controls, but they only see part of the ML system. The failure is that the pipeline is treated like static infrastructure plus source code, when it also behaves like a living runtime with model assets, training jobs, orchestration layers, and external dependencies that change outside the scanned repository. That is why a pipeline can look clean in review and still fail in execution.
For practitioners, the key distinction is between configuration at rest and control in motion. ML pipelines often depend on runtime tokens, model registries, notebook environments, artifact stores, and deployment paths that are not fully represented in either posture findings or source-code findings. Once those moving parts are outside governance, the control picture becomes incomplete even if the cloud account and repository both pass checks.
In practice, the gap is coverage across the full operating surface, not a lack of alerts from the tools you already run. That is especially relevant for ML systems because the security boundary often shifts from infrastructure settings to model provenance, prompt handling, data flow, and who or what is allowed to trigger jobs or consume outputs.
What cloud posture and code scanning can miss
Cloud posture tools are strongest on misconfiguration, exposed services, and insecure platform settings. Code scanning is strongest on visible defects in committed code. Neither one fully captures how an ML pipeline behaves when a model is pulled from a registry, a notebook calls an API, a training job inherits credentials, or an artifact is promoted across environments with implicit trust.
That matters because ML pipelines are assembled from several layers of trust. A secure repository does not guarantee a secure training run, and a clean cloud baseline does not prove that the model consumed or produced by the pipeline is the intended one. The omitted layers are often the ones that determine whether the system can be influenced, poisoned, or quietly misused after deployment.
For a broader control view, cloud security assessments should be paired with a framework that spans IAM, supply chain, and data handling. The CSA Cloud Controls Matrix is useful here because it forces coverage beyond code and posture into identity, cloud operations, and supply-chain control expectations.
What has to be governed for ML pipelines to be safe in motion
The practical answer is to govern the runtime path, not just the build path. That means understanding provenance of the model and data, controlling who can launch or approve jobs, reviewing delegated identities used by notebooks and pipeline workers, and making sure the pipeline does not inherit broad access simply because the infrastructure is approved.
It also means treating model and artifact movement as security-relevant events. If a model can be replaced, a prompt template can be altered, or a job can reach production resources through an overprivileged service identity, then the system is exposed even if the code repo is static and the cloud posture score is high.
For ML-specific identity and runtime exposure, NHIMG’s AI Infrastructure Workload Identity Guide is directly relevant because it focuses on the identities behind AI platforms, including pipelines, model registries, training jobs, and inference endpoints. The related NHI Lifecycle Management Guide helps with the provisioning, rotation, and offboarding issues that cloud posture and code scanning do not close by themselves.
Risk and Threat Considerations
When ML pipelines rely only on cloud posture and code scanning, the main risk is false confidence. A team can believe the system is controlled because the account is configured well and the repository is clean, while the actual attack surface sits in runtime credentials, model artifacts, notebook sessions, and delegated access that were never fully checked.
Failure mechanism: An attacker or insider can abuse unscanned runtime paths, such as a compromised token, a poisoned model artifact, or an overprivileged pipeline identity, to alter outputs or exfiltrate data without changing the static codebase.
Impact: The pipeline may pass control reviews while still enabling model tampering, data leakage, unauthorized promotion of artifacts, or downstream production compromise.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while CSA Cloud Controls Matrix, SLSA and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CSA Cloud Controls Matrix | IAM — Identity & Access Management | ML pipelines depend on runtime identities and delegated access across cloud services. |
| Recommendation — Map pipeline and model-runtime identities to IAM controls and restrict execution to least privilege. | ||
| SLSA | Supply-chain Levels for Software Artifacts | Model artifacts and pipeline outputs need provenance and integrity beyond code scanning. |
| Recommendation — Require provenance checks for models and artifacts before promotion into production. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Pipeline service identities can become overprivileged even when posture and code are clean. |
| Recommendation — Audit pipeline service identities for excess privilege and remove broad access paths. | ||
| NIST SP 800-53 Rev 5 | IA-9 — Service Identification and Authentication | Pipeline workers, model services, and APIs authenticate as non-human identities at runtime. |
| AC-6 — Least Privilege | The question centers on runtime access that posture scans often miss, making privilege scope critical. | |
| Recommendation — Authenticate pipeline services with strong machine identity controls and rotate credentials. Limit pipeline and notebook permissions to the minimum needed for each execution step. | ||
Practitioner Guidance
What to verify: Confirm that your control set covers the pipeline runtime, not only the repository and the cloud account. If you cannot show who can assume pipeline identities, where model artifacts come from, and which secrets are used at execution time, the control coverage is incomplete.
Decision rule: If a control only proves the environment is configured correctly or the code is scanned cleanly, treat it as necessary but not sufficient. Add checks for provenance, runtime authorization, and delegated access before you trust the pipeline for production use.
Practitioner takeaway: ML security fails most often when teams confuse static hygiene with runtime control, so the right question is not whether the pipeline was scanned, but whether every execution path is attributable, bounded, and provenance-aware.
Related resources from NHI Mgmt Group
- What fails when organisations rely on code scanning without runtime enforcement?
- How should security teams integrate code scanning into Bitbucket Cloud pipelines without slowing delivery?
- What fails when cloud teams rely on alert volume as a security measure?
- What breaks when organisations rely only on post-commit scanning for AI code?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org