SAPwned: SAP AI vulnerabilities expose customers’ cloud environments and private AI artifacts
SAP AI Core allowed users to run arbitrary code in Kubernetes Pods, and due to misconfigurations, attackers could bypass network restrictions and access internal services without authentication, leading to cluster takeover and access to customer cloud credentials and private AI artifacts.
Published on wiz.io
Over the past months, we on the Wiz Research Team have conducted extensive tenant isolation research on multiple AI service providers. We believe these services are more susceptible to tenant isolation vulnerabilities, since by definition, they allow users to run AI models and applications – which is equivalent to…
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 root cause was insufficient isolation and authentication of internal services, allowing a user with basic permissions to run arbitrary code and then bypass network restrictions to access unauthenticated internal components.
Impact
Attackers could access customers' cloud credentials and private AI artifacts, and potentially poison images and builds, but no customer data was compromised.
What the attacker needed
An SAP AI Core account with basic permissions
The fix
SAP fixed all reported vulnerabilities and rotated relevant secrets.
How it was found
- Create an AI project and application on SAP AI Core with basic permissions.
- Provide an Argo Workflow file that spawns a Kubernetes Pod running arbitrary code.
- Configure the Pod with shareProcessNamespace to access the Istio sidecar's token.
- Set runAsUser to 1337 to run as the Istio user and bypass iptables traffic restrictions.
- Scan the internal network and query services like Loki, EFS, and Tiller for sensitive information.
- Use Tiller's install command to deploy a malicious Helm package with cluster-admin privileges.
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.
SAP AI Core is a service that lets customers run AI training jobs. The researchers found that by running their own code, they could break out of the restricted environment and reach internal systems that had no extra protection, like a shared file store or a management server. This let them take over the whole service and see other customers' data and secret keys.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.