From MLOps to MLOops: Exposing the Attack Surface of Machine Learning Platforms
The research found that many open-source MLOps platforms allow arbitrary code execution by design, for example through malicious models, datasets or pipelines, and that several platforms lack authentication so any network user can run code. Attackers could use these features to execute code on the platform and, with a container escape, move laterally to other models and datasets.
Published on jfrog.com
The JFrog Security Research team recently dedicated its efforts to exploring the various attacks that could be mounted on open source machine learning (MLOps) platforms used inside organizational networks.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the platforms treat code execution as a built-in feature (models, datasets and pipelines run code on load) while lacking authentication and isolation, so untrusted input or unauthenticated users can run arbitrary code.
Impact
An attacker could run arbitrary code on MLOps platforms, and with a container escape could move laterally to other models and datasets; in KServe the model environment was well isolated, so code execution alone did not give lateral movement.
What the attacker needed
Network access to the platform; ability to upload a model or pipeline; default configuration
The fix
Platforms should add built-in authentication and authorisation, isolate model serving containers, and users should treat untrusted models, datasets and recipes as unsafe and read documentation before loading them.
How it was found
- Upload a malicious model to the Seldon inference server.
- The malicious model triggers code execution inside the Docker container and hijacks it.
- Use a container escape privilege escalation as part of the malicious model payload to move laterally.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Machine learning platforms help data scientists train and serve models, but some of their normal features run code automatically. For example, loading a model file or a dataset can execute hidden code, and creating a training pipeline is itself a way to run code. If such a platform has no login or is reachable from the network, anyone can use those features to run their own code on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.