Secure By Design: Architecting your cloud and AI workloads from the perspective of infosec
Natalie Godec44:172026
Eine KI-App können Sie vibe-coden, ihre Sicherheit nicht
Der Tesla-Vorfall von 2018 beginnt mit einem ungeschützten Kubernetes-Dashboard und endet mit geleakten AWS-Zugangsdaten und einer Krypto-Mining-Rechnung von über 100.000 $. Vibe-gecodete KI-Apps laufen auf denselben Containern, Netzwerken und Datenspeichern, oft ausgeliefert, ohne darüber nachzudenken, wo sie laufen. Natalie Godec, Senior Cloud Architect bei Zencore und Google Developer Expert in Cloud, fragt, welche Leitplanken diese Lücken schließen und welche echten Aufwand bei der Einrichtung erfordern.
Erhalten Sie eine Checkliste Schicht für Schicht, um Cluster, Serverless-Apps, Daten und Ihre gesamte Cloud abzusichern
Natalie Godec, Senior Cloud Architect bei Zencore, zeigt, dass KI-Workloads nur so sicher sind wie die Cloud-Plattform darunter, und stellt einen Defense-in-Depth-Ansatz anhand von Google Cloud-Beispielen vor, die sich auf jeden Anbieter übertragen lassen. Sie behandelt die Härtung von Kubernetes und Cloud Run, den Schutz von Daten in AlloyDB und BigQuery sowie organisationsweite Leitplanken mit Org Policies und VPC Service Controls.
“Und manchmal vergessen wir, dass wir über diese Dinge nachdenken müssen, besonders wenn wir vibe coden und überall Dinge erschaffen und sie bereitstellen, ohne jegliches Wissen oder ohne einen Gedanken daran, wo das, was wir vibe-gecodet haben, laufen wird.”
“Und wir alle bewegen uns weg von statischen Schlüsseln hin zu dynamisch generierten Tokens.”
What you will learn
Härten Sie Kubernetes-Cluster mit privaten Nodes und Control Planes, VPC-nativem Routing, einem DNS-Endpunkt anstelle von Bastion Hosts sowie Shielded VMs.
Ersetzen Sie statische Service-Account-Schlüssel durch Workload Identity Federation, damit Dienste kurzlebige, automatisch erzeugte Tokens nutzen.
Wenden Sie fertige Compliance-Bundles wie CIS und PCI DSS mit Policy Controller oder Gatekeeper an und prüfen Sie die Herkunft von Images mit Binary Authorization.
Schützen Sie Daten mit Private Service Connect-Endpunkten, privaten DNS-Zonen sowie Sicherheit auf Spalten- und Zeilenebene in BigQuery.
Setzen Sie organisationsweite Leitplanken mit Org Policies und entwerfen Sie getrennte VPC Service Controls-Perimeter für Daten, Compute und gemeinsam genutzte Daten.
Details
Level
Intermediate
Format
Tech talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
44:17
Published
July 2026
Questions this talk answers
Warum ist Plattformsicherheit für KI-Workloads weiterhin wichtig?
Jeder KI-Workload läuft auf einer Runtime-, Netzwerk- und Datenschicht, daher müssen Container, Netzwerke und Daten gesichert werden, nicht nur Prompts und Modelle. Godec warnt, dass vibe-gecodete Apps oft bereitgestellt werden, ohne darüber nachzudenken, wo sie laufen.
Wie verwaltet man einen privaten GKE-Cluster ohne Bastion Host?
Mit einem DNS-Endpunkt: einem verwalteten, TLS-terminierenden Endpunkt vor der Control Plane mit einem Identity-Aware Proxy, der den Zugriff prüft. Damit entfällt die Pflege und das Patchen einer eigenen SSH-Bastion-VM.
Warum sollten Teams statische Service-Account-Schlüssel durch Workload Identity Federation ersetzen?
In Pods gemountete statische Schlüssel können geleakt werden, wie die AWS-Zugangsdaten beim Tesla-Vorfall 2018, der laut der Referentin zu einer Krypto-Mining-Rechnung von über 100.000 $ führte. Workload Identity Federation gibt Namespaces und Service Accounts Cloud-Identitäten, die über die offiziellen Bibliotheken automatisch temporäre Tokens erzeugen.
Wie stoppt Binary Authorization ein kompromittiertes Container-Image?
Attestoren in der Pipeline signieren jeden Image-Digest mit KMS-Schlüsseln, und der Admission Controller stellt nur Images bereit, deren Digest die richtige Signatur trägt. Tags kann ein Angreifer überschreiben, Digests nicht.
Können hochsensible Daten außerhalb der Cloud bleiben, während Cloud-Workloads sie trotzdem nutzen?
Ja: Verbinden Sie das Rechenzentrum über einen verschlüsselten VPN-Tunnel oder einen direkten Interconnect mit dem Cloud-Netzwerk und öffnen Sie Firewalls nur für bestimmte Daten. Godec ergänzt, dass richtig abgesicherte Cloud-Plattformen bereits Gesundheits- und Bankdaten hosten.
Wie statische Schlüssel zu Teslas Krypto-Mining-Rechnung führten (48 s)
Warum Image-Digests Tags im Kampf gegen Hintertüren schlagen (83 s)
Können hochsensible Daten in der Cloud liegen? (83 s)
All right, let's roll. Welcome to the session. Good morning, good afternoon, depending where you are. I'm in London. It is a very great morning today and a cold one. So good morning to you who are joining me from Europe and good afternoon to those from Asia, Pacific, Australia. Good evening, probably already. I hope you've been having a wonderful conference and have joined a lot of interesting sessions.
I had one yesterday, which was a panel on cybersecurity in the AI age, which is obviously a big topic and very intimidating and interesting one. But today we are going to talk about technical security in cloud. My name is Natalie Godec. I'm a principal cloud architect at Zencore. We are a Google cloud partner, which means that I go out and build.
Cloud platforms for different companies around Europe, mostly, but sometimes in other places of the world as well. I'm also a Google developer expert, meaning that I'm like an ambassador of Google cloud tech because I work with it so much. And the examples that I will be giving you today will be based on Google cloud, but you can implement the very same principles everywhere else. And I'll be giving specific examples where it is applicable to use open source tools, to use some other features of other features of AWS or Azure or other cloud providers, depending where you are. My background is in infrastructure and DevOps and platform engineering. So that's where the technicality comes from. And this QR code leads to my social media. If you would like to stay in touch. I'm also a photographer. You can see behind me one of the pictures that I had taken. So yeah, let's stay in touch.
We're starting with securing services. So run times, containers, Kubernetes, serverless, all of that. Then securing data because nothing runs without data. And specifically in the AI era, we need to deal with our data even more than ever before and need to consider security of that data even more than ever before in different ways and in new ways that we haven't had to consider before.
Which would be like, how do you secure your whole entire cloud? Again, for those who joined a bit later, I will be giving examples of Google cloud tech, but all of these principles are applicable wherever you're hosting your services. And the reason I'm talking about securing your AI and cloud workloads, well, there is a platform, an infrastructure, a runtime that will run underneath your AI workloads, regardless where they are. So you still need to secure your containers, you still need to secure your networks, you still need to secure your data. It is not all about AI security itself. Of course, you need to have model armors and prompt security and protect against prompt injection and make sure that there is safety and explainability in the models that you run. But the platform and the infrastructure
is equally important. And sometimes we forget that we do need to think about those things, especially when we are vibe coding and creating things left, right and center and deploying them without having any knowledge or without giving any thought to where that thing that we vibe coded will run. So today you will learn the basics of securing the thing that will support your applications and your services and your runtimes. Let's start with securing services and start with Kubernetes. GKE is a Google managed Kubernetes, just a name. Why does this matter? This matters because right now, probably most of the world is running on Kubernetes. Most of the services in the world are running on some sort of Kubernetes. Already in 2024, 93% of companies around the world were using
communities in production. Half of that Kubernetes is running on data versions. We all know that updating and upgrading Kubernetes itself is very hard. Part of the reason why managed services such as GKE, EKS, AKS are so popular, not even mentioning the Red Hat one and the multitude, Weave and the multitude of other third parties that will manage your communities for you because managing it and upgrading it is hard, which results in 46% of the Kubernetes clusters worldwide running out of life and of support versions.
And this results in a lot of incidents. A very famous one was in 2018 where the Tesla's Kubernetes control plane running on AWS was compromised. And we'll talk about that a little bit more later. Fortune 500 companies' secrets were leaked into public repositories. So, we're talking big established companies, big established enterprises that have probably a very strong compliance team, a very strong security team, very strong rules around what goes where, what gets deployed into production. And yet, here we are, finding their secrets in public repositories.
And, of course, the infrastructure itself, the things that are powering our services, keep getting vulnerabilities, keep scanning vulnerabilities. And if you're following the project of Claude Mythos, that is a collaboration of big tech companies around the world, such as Antropic, Google, Amazon, etc., collaborating on using AI to detect vulnerabilities and fix vulnerabilities because the detection of them is accelerating and the exploitation of them is accelerating.
Last year, there was the, there was a set of vulnerabilities found in the Ingress controllers called Ingress Nightmare. And Ingress is what you use to expose your services for users out of Kubernetes. So, Kubernetes is like a bubble that runs inside your cloud or your infrastructure, but then you need to make sure that your users can reach those services and use Ingress for that.
That is to say, everybody uses it. So, vulnerabilities in those controllers are really, really impactful. So, what do we do? We approach our clusters, our infra, with the thought about defense in depth. We will think about cluster security itself, and we will think about workload security. So, if you're a software engineer, you probably have heard like, oh, you don't use outdated libraries, don't use insecure configurations, make sure that your prompt is sanitized, etc., your input is sanitized and your prompt in the AI case.
But there is more to that. And in terms of cluster security, Jiki, Google Kubernetes, manage Google Kubernetes, offers you a couple of things. One is, I'll go bottom up, one is your very basic foundational network security, and you will use this again on whatever infrastructure that you use, whatever your cloud provider, your infrastructure provider, make sure that your clusters are private, meaning there is no public IP address assigned to the nodes.
There is no public IP address assigned to the control plane, and your cluster and the control plane of the cluster are not accessible over the Internet. You will have in Google VPC native clusters, meaning that the routing out of the cluster and within the cluster always goes through the VPC. So, all of the firewalls, not gateways, egress rules, Cloud Armor, and all of that is applicable to the in-cluster traffic as well.
And also use a DNS endpoint. And I have a typo there. If you're paying attention, you will have noticed. A DNS endpoint is a way to eliminate the need for bastion hosts, because if your control plane of Kubernetes is not accessible over the Internet, how are your users and the administrators of the cluster going to administer the cluster, right?
You need to connect to the cluster somehow. And typically with private clusters, we would have had to have a bastion, so a dedicated VM that is kind of super secured and has the SSH port open. And we could tunnel through that port or connect directly to that VM and connect to Kubernetes from there because it would live in the same network as the cluster.
This is tedious, this is tiresome, this is very difficult to maintain as well because you need to make sure that it's updated, make sure that the bastion itself doesn't have vulnerabilities. So we are replacing that with a DNS endpoint in Google Cloud, meaning that there is a TLS terminating endpoint in front of the GKE control plane, allowing you to access it through a DNS with an identity-aware proxy in front, meaning that your, yes, it is an endpoint that is available through the Internet, but there is an identity-aware proxy, meaning an endpoint that will validate accesses and validate the authorization mechanisms for the control plane.
And there is also a TLS termination, like I said, so you're not getting a direct access into the cluster. It's rather terminated on the endpoint, like it is all managed, so you don't need to worry about it, but it is more secure than having just a port exposed. Then secure boot and shielded VMs, we're talking about encryption of the boot mechanism, the boot sequence on the disk of every VM, meaning that the boot sequence of your VM that comprises the node of the cluster is not compromised and cannot be compromised.
It's a really easy feature to enable, you should just enable it by default on everything and require it to be enabled everywhere. And policy controller is a feature that allows you to deploy the same policies and the same security mechanisms across clusters. So if, let's say, you have multiple regions and you're serving your application in multiple regions to people around the world, you will have multiple clusters.
Each of those clusters needs to have the same policies, security controls, etc. Policy controller allows you to do that. And something else that we will talk about in terms of workload security, one is binary authorization, and I'll explain in more detail, but basically, that is your supply chain security, that is your making sure that the image that is running in the cluster has been built internally through your CI/CD pipelines, and has been validated against your compliance and security requirements.
And workload identity, which just enables us to not use static keys. So let's talk about that a little bit in a little bit more detail. So traditionally, typically, each service that runs in Kubernetes needs an identity, right? That identity needs to be mapped to a cloud identity so that it can access other cloud resources, such as buckets, your object storage, your databases, your Kafka, your Pub/Sub, and all of the other places that it potentially needs access to.
So typically, in the old days, we would create a Kubernetes service account, attach it to the Kubernetes service that we created for, and then maybe mount some sort of key. Maybe create a service account in in Google IAM or create an AWS user with access keys and mount those keys into the pod in order to use it as an identity.
That is, of course, super not secure. And we are all moving away from static keys to dynamically generated tokens. Everybody, I mean, Google, Amazon, Azure, all of the cloud, big cloud providers will have a functionality to assign a cloud identity to your community service, and then that identity can generate tokens temporarily. So in Google, this is called workload identity federation for GKE, different from just normal workload identity.
And what this does is every cluster has a Google assigned identity, a principle set, every namespace in the cluster has a principle set. So an identity that already exists, you can see here namespace, for example, for an application one, we create a namespace, that namespace will automatically have a Google IAM identity, and a Kubernetes service account, just like we were doing before, we will have a Kubernetes IAM principle this time, corresponding to that Kubernetes service account.
I really like the namespace side of things because for security and for separation of concerns, it is a nice practice to separate your applications into namespaces. So each app, each service gets their own namespace, that namespace already has an identity, so I don't even need to create a Kubernetes service account and assign it to my application. I can just deploy the namespace and use the namespace principle set to access other cloud resources.
This is really convenient and really easy to use. And in terms of how this works inside the applications, when you use the normal libraries, you will have, like, this will use workload identity automatically. You will have the generation of the tokens happen automatically once you use the official libraries. And that incident that I mentioned at the beginning about Tesla in 2018 when their control plane was compromised.
So their Kubernetes cluster is running in KS, Kubernetes dashboard was broken in because they failed to authenticate and authorize it properly. And the AWS credentials for the services, because this was in 2018. Dynamic token generation didn't yet exist. So their credentials for other AWS services were just there in the control plane and they were leaked. And the result was a 100,000, more than $100,000 bill for crypto miners.
That was not nice. So we all have moved on to dynamic token generation in cloud providers. So please use this. The next is policy controller. Like I mentioned, it is a way to deploy security policies across your clusters. You don't need to have multiple clusters. You can use it in one cluster to just use a set, like apply a set of security policies globally.
What is interesting here is that it is basically a managed gatekeeper. So if you are on another cloud provider, you can just use gatekeeper. That is an open source tool on Google cloud. You have the policy controller. What's interesting is that it comes with ready-made bundles for your compliance frameworks. So if you need to be compliant with PCI DSS, you can just apply that set of policy, that policy bundle onto your Kubernetes cluster.
And it will make sure that the cluster is compliant and the workloads are compliant with PCI DSS. Isn't that wonderful? And you can, of course, have individual constraints and you can write your own policy bundles depending on your organization. But the ready-made bundles, and these are just three examples that I found interesting. CIS benchmark is, of course, your basic security framework, how to harden your infrastructure and your services.
PCI DSS is a very hardcore one. So that's an interesting example that you can apply a ready-made bundle that will make sure that your Kubernetes workloads are compliant with PCI DSS. And bot security policy was more lightweight if you just want, you're not, you don't need to be compliant with any regulatory frameworks, but you just want to make sure that your clusters are secure.
You can just use that. A very, very interesting feature. And another very interesting feature and very powerful one, a little bit more complex to set up. So policy controller and others, you can just enable that on the cluster and you can use ready-made bundles. Nothing else to do. Binary authorization requires a bit more setup. But what it does, essentially, is every single Docker image that is deployed into your Kubernetes clusters or into Cloud Run will be cryptographically verified.
So, again, this is a managed service on Google Cloud. But there is a -- I'm forgetting the name of the open source one at the moment. But there is an open source version of this. And there are many managed versions of this. And basically, what you do is you create KMS keys, encryption keys, for your parts of the approval process of the -- of an image before it gets rolled out.
So, for example, you can have a build a tester. And a tester is just a terminology of binary authorization. So, an entity that will create an authorization. So, build a tester, for example, make -- can be integrated into your CI/CD pipeline, making sure that the image that is being deployed has been built using your CI/CD. It hasn't been compromised.
It hasn't been swapped. It hasn't been hijacked. It is the image that has gone through your CI/CD pipelines. And then you can have many more testers. For example, a prod ready. After you have done your tests in non-prod, you can certify that this image has gone through those tests. You can have a compliance tester. For example, if you have a compliance team that needs to validate images before they go into a specific production environment.
If you have, let's say, a restricted production environment. And so on. So, instead of sitting on a big, long change management call, where everyone needs to discuss every single change that they're trying to introduce. And that gets approved verbally or through a change management system. This gives you an encrypted cryptographic signature for each image. And it works through the digest of the image.
So, like an attack scenario would be if your CI/CD pipeline gets compromised, for example, or an image on its way to the deployment gets compromised. The attacker can introduce a backdoor into your Docker image. So you're thinking that you're deploying a legitimate application internally developed, but actually it's been compromised. And the cluster will just deploy it thinking that it is legitimate.
But instead, you will get malware that runs in production. However, if you have the binary authorization enabled, then what happens is that your image will be validated, the digest of the image. So you can see here that this is backdoor column latest. Latest is a tag. Tags can be overwritten. So somebody can create an image that looks legitimate, including the tag, but it's actually compromised.
Digest of an image is not replaceable, you cannot overwrite it. So the admission controller will validate that that digest has a corresponding cryptographic signature with binary authorization. And it will not let the malicious image to be deployed. Very cool. Of course, it has an additional cost because this uses KMS, this uses encryption, but it is a very, very powerful way to make sure that what's running in your production has actually gone through all of your internal review processes.
But we're not always running Kubernetes, are we? Kubernetes is not the only way to run things. So Cloud Run is a serverless container platform. An alternative on AWS is Fargate or Lambda. To an extent, we can say that it is an alternative to Cloud Run. All Azure, I'm not entirely sure. I'm not that familiar with Azure products, but maybe I'm sure they have an alternative.
But basically it's where you, when you take a container image, throw it to the cloud and it runs and you're not managing in front. What happens with Cloud Run is that by default, it creates, it gets an HTTPS endpoint. Same with Lambda, right? It gets a DNS address. That DNS address can accept calls from wherever in the, on the internet.
So, and it will allow, but the default setting of ingress for Cloud Run is allow all ingress. So what we will want to do is to disable all ingress and put a load balancer in front of our Cloud Run service and an identity aware proxy. This enables user authentication built in. You don't have to build your user authentication separately inside your application.
You can leverage the normal general Google Cloud auth. Another little tip is do not use the default service account. Again, Google Cloud Identities, you will want to create a dedicated service account for Cloud Run service, or at least for a group of services. And you can also use binary authorization here too. The attack scenario would be that your Cloud Run service has its default DNS address.
If you didn't set the ingress setting to internal and load balancer, if you left it as ingress allow all, a threat actor could guess the DNS address of your Cloud Run service and bypass authentication that you have built here with load balancer and identity aware proxy. So you will want to change ingress to ingress traffic internal and load balancer in order to make sure that nobody can bypass this from outside of your network.
Of course, if somebody has infiltrated your network, they will still be able to access the Cloud Run service by passing the identity aware proxy. But if somebody is inside of your network, you have other problems to think about. For internet access, you have to set this ingress setting and also set up the identity aware proxy. And also you can use Cloud Armor in this case as well for web protection.
Let's move on to data. For data, I wanted to use two examples of services that are very much Google Cloud. AlloyDB is a Postgres database, but is a super managed, super scalable and hybrid workload database, meaning that it is a traditional Postgres operational database that you can use for your services. But it also has analytical capabilities and AI capabilities without impacting performance of the operational side of things.
That is very cool. And BigQuery is a big data platform that powers data analytics, data science, provides data for AI use cases, super scalable again, and very easy to manage. So alloyDB being a database, it means private networking, of course. So how do we do that? There are two options. One is VPC peering. So LODB instance itself, like this is the database instance, will be deployed into a managed VPC by Google.
You don't see that VPC, but it's not deployed like RDS instances in AWS are deployed into your subnet. LODB and Cloud SQL will not be deployed into your subnet. So there is a peering established between your VPC and the so-called tenant VPC. This means that both VPCs are fully connected. You have the IP address conflict risks and you have the transitive peering, which if you had another VPC somewhere there, another cloud, for example, or data center, private data center, the services there wouldn't be able to access your database because transitive peering is not allowed.
So what we have instead is private service connect. It is a concept of private networking and exposing services privately within the Google network backbone. So not your VPC in Google Cloud, but the Google network on which Google Cloud and Google itself run global hyperscaled private network. So what happens is your LODB, your database will expose something called a PC endpoint and your services inside your VPC can privately connect to this endpoint.
The advantage is that you can have these endpoints anywhere in other VPCs, in other projects, in other organizations, et cetera. You don't need VPNs, you don't need peerings, you don't need to fully connect networks. You just dedicate a single IP address outside of your subnet range and connect through that IP address through a specific configuration of hops.
And that configuration of hops looks a little bit like this. It looks complicated. I do wonder why it has to be so complicated. Maybe another layer of abstraction here from Google managed would have been nice. But this is what you need to do, basically. LODB exposes the service attachment. You can use that service attachment to create a PSE endpoint, which is just a forwarding rule.
And then you can have a private DNS zone for convenience. You can have like a .internal private DNS zone in this VPC. And then you would say your database instance name .internal points to that internal IP address. And then your Kubernetes services and other services that run in this VPC will be able to just call this DNS address.
It gets resolved and it gets forwarded on to the LODB instance requires a bit of setup. I highly recommend terraforming this and using it in repeated deployments without having to think about it much. I really like the private DNS zone setup because the address of like, oh, my database .internal, that's where in my application needs to connect.
You don't need to keep a set of IP addresses somewhere. You don't need to remember complicated connection strings. It makes the developer's life a lot easier. But what about BigQuery? BigQuery doesn't have an instance. BigQuery doesn't have IP addresses. So we need to protect data itself. And on top of having just normal IAM, BigQuery allows you to have column-based and row-based security, which is very cool.
You can have your data set where your analysts or your AI agent has access to, but not to everything. So sensitive fields like address or social security number needs to be masked. We don't care about them in terms of our analytical or AI use cases and we don't want to give access to them. So what we'll do is we will define something called taxonomy and organized tags.
And then define access based on those tags and those policies. This is what it looks like high risk social security number, medium risk address. And then in the schema we apply, in the schema of the table, we apply the policy tags. And then based on those tags, we will or will not have access. Row-based security works a tiny bit differently.
In order to define it, you need to actually execute SQL queries inside the table to set internal SQL, because BigQuery is still SQL compatible. So you will need to set the internal access mechanisms within the table. But basically what it does is you choose a column which contains values on which you will want to filter. So, for example, if you have multi-regional customers and you want a specific person or a specific team to only be able to access their Asia-Pacific customers, you will just have a region field in the table and then enable row-based security on the region.
Another use case for that is, for example, if you have a consent field in your registration form and customers can consent to analytics or research data science being done on their data, you can store that consent as a true/false inside a BigQuery table and then enable access to customer data based on the content of that table. Really convenient.
And this is the SQL query that you need to run, filter using region Asia-Pacific. And let's finish with global perimeters. So, our cloud is, in general, a set of publicly accessible API endpoints. If you access any cloud resource inside the cloud console, you will notice that everything has an address, an HTTP address. So, everything is just an HTTP endpoint.
How do we protect the cloud in general? A very important thing to do is to have your security guardrails installed. In GCP, this is org policies. In AWS, it is the control tower and the security policies, SCPs. And in Azure, not sure what it is, but there are equal functionalities as well. In org policies, you have predefined constraints such as, for example, no service account keys.
Those persistent, permanent keys that we spoke about at the beginning with workload identity federation. You can prohibit service accounts from having keys. You can skip default network creation because you want to manage your own networks. And default networks can be an attack surface. You can require a shielded VM. Remember, I said the boot loader sequence that needs to be protected on your VMs.
And it's an easy feature to enable. Well, you can have an org policy that forces all of your newly created VMs inside your environment to have shielded VM enabled. And so on. Like a bunch of other, these, the ones that you can see on the screen are the policies that we enable for everybody we work with. These are the baseline security without even going into regulatory compliance or any specific requirements.
These are the baseline security guardrails that you should have. With org policy and with SCPs, you can also write your own. So something that we found interesting to do, for example, is restricting direct user IAM grants. So only groups or service accounts or principal sets can get IAM roles assigned to them instead of individual users, because individual users, like it's just a bad practice to have each user a different set of IAM roles.
Make sure that they are in groups and then the group gets IAM roles assigned to it. And something for your budget, for your financial department, for your spend. Restricting compute engine machine types. This was actually inspired by an AWS SCP that one of our customers had. Make sure that in dev or in sandbox nobody can create a VM with 96 CPUs, 16 GPUs and a gazillion terabytes of RAM and just leave it running over the weekend.
People do that. You will be surprised. People do do that. And making sure that those accessible environments where people experiment, especially data scientists experiment, are restricted to slightly less expensive. Let's put it this way. VMs is an important thing to do. And one of my favorite features of Google Cloud, probably, and one is that that is quite unique to Google Cloud, again, is VPC service controls.
Basically, firewall and steroids. What happens in our cloud? When you have a VPC, the services that run inside the VPC, your Kubernetes, your VMs, your Airflow clusters, Kafka clusters, et cetera, they have IP addresses and they have the network boundary. So you can apply firewall rules and filtering and all sorts of things that you traditionally apply to your networks. However, as soon as we go out of that, BigQuery, Cloud Functions, anything serverless, Cloud Run, some of the serverless Dataplex features, Vertex AI features, the serverless Spark pipelines, all of that, even storage and all of your Pub/Sub and serverless data stores, none of this will be under the umbrella of firewalls.
So how do we protect boundary access? We have IAM, of course, but what about the boundary access? Don't we want to have a multiple layer protection on our sensitive data? Of course we do. So VPC enables you to have a perimeter, a guardrail around your entire cloud and around your APIs. What we do is we choose the APIs that we want to protect.
Typically for a data platform, for example, this will be storage, BigQuery, Pub/Sub maybe, Composer, Manage Airflow, Vertex AI. And we choose the projects that we want to put inside this perimeter. And the perimeter is, I mentioned, like a firewall on steroids, meaning that it will filter the HTTP requests that are incoming to these APIs in these projects.
And once we enable the perimeter, every outside request gets denied. Meaning that only requests that exist within these projects and these APIs are allowed. And then we choose which external requests we want to allow using ingress/segress policies, whitelisted identities, and other things that we want to, like, enable, like the Office VPN, the Office IP range, et cetera.
The way this works is through DNS. So these APIs that are inside the perimeter will have a different DNS address. Rather than being BigQuery.GoogleAPIs.com, it will now be restricted.GoogleAPIs.com. And every single request that comes to that endpoint gets filtered and scammed. The best practice for organizing those APIs and those projects: Your data, your data platform, your golden dataset goes into a data perimeter.
So all of your projects that contain data and all of the APIs that are around data will go into the data perimeter. Your services need to run somewhere, so maybe you want to protect them as well. So you put them in a compute perimeter. The reason we separate compute and data is because typically a company's data warehouse or data lake contains tons and tons of super sensitive data, so we really want to protect that separately.
But the services still need to generate the data and write it into the data warehouse or lake house. So we set up bridges or specific access policies, ingress and egress policies, that will allow the specific services that do write data into the data warehouse that those requests are allowed to go through. And then, of course, data might be your product and you might be sharing that data, specific datasets, with your partners, customers, etc.
If you are doing that, those projects and those APIs, those data stores, are better be in a different perimeter. I know not everybody does that. Some people elect to have all data in the same perimeter. And that is okay if they have other strict controls on the IAM side of things and on the separation of projects and datasets side of things. But ideally, you will have a separate data sharing perimeter.
And another example is you might want to have a general production perimeter where everything that is around production, But some services are more sensitive than others. And you will want to have them in a special restricted perimeter. For example, if you're a bank, you might have your core services being in a restricted perimeter. Or if you have KMS keys and special secrets, they might be in a separate perimeter.
And then we still recommend to have data stored separately. So, to recap, defense in depth. You secure your services, your runtimes. You secure your data. You better secure your data, given how much we are now all using AI. And you secure your perimeters. You make sure that your overall cloud is protected. Thank you for your attention. You can get the slide deck through the QR code on your left.
And if you want to stay in touch again, you can scan the QR code on the right. Have a lovely day and enjoy the rest of the conference. I think we're still live and I have a question. What about using these services, but we do not want the data to be stored in the cloud as some data are too sensitive to go into the cloud.
I can tell you there are ways to store hypersensitive data in the cloud still. I have done healthcare data platforms and banking data platforms and financial services data platforms in the cloud. If you secure it properly, there is absolutely no concern. But if your compliance is still hesitating and you have data that is in the data center, that is fine.
You set up VPNs between or direct interconnect between your data center network and your cloud network. And you make sure that the firewalls are open in a specific way that allow access to specific data. And then you run the services and the experimentation. Very often it's, of course, the AI workloads and the specific data science, data analytics workloads that go into the cloud first.
Because they're not operational critical and they're not critical to the core business side of things. And we start experimenting, but you still have the network connection. The network, that network connection is a VPN. So it will be an IPsec tunnel or an encrypted tunnel. And you can also have a direct network connectivity between a data center and a cloud platform.
All cloud providers have those options available. So you just traverse through a private network that goes over the internet or over a dedicated cable. And have access to that data. It is a lot of work to set it up, but it is very much possible and it is a very common use case. Thank you for the question.
If anyone else has any other questions, don't hesitate to write in the chat or reach out to me after the session. That is also absolutely fine. If you scan the QR code for the slide deck, you will notice that there were more slides than I presented. Some technical examples of how to set up binary authorization, how to set up DVC service controls, so that you can consult those and see how it is implemented in reality using Terraform and things like that.
Thank you. Thank you for coming. You're very welcome. And yes, it was a lot of technical details and technical features. But once you have a look and maybe have a read about each of those features and products, you'll see that it's not that difficult, bar maybe I would say binary authorization and VPC service controls are a bit difficult to implement.
So it would take a bit of time to wrap your head around those. But the rest are like those are the features that you really need to implement in your environments to make sure that they're secure. All right, I'm going to wrap it up. Thank you again for coming and have a wonderful day. you.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Warum Ihre KI-Workloads nur so sicher sind wie die Cloud darunter
Natalie Godec erklärt Defense in Depth für Cluster, Serverless-Dienste, Daten und Cloud-Perimeter, mit Google Cloud-Beispielen, die sich auf jeden Anbieter übertragen lassen.
Kurz gefasst
Natalie Godec, Senior Cloud Architect bei Zencore, argumentiert, dass die Absicherung von KI-Workloads weit unterhalb des Modells beginnt: Jeder Agent und jede App läuft weiterhin auf Containern, Netzwerken und Datenspeichern, die geschützt werden müssen. Anhand von Google Cloud-Beispielen, die laut ihr bei jedem Anbieter gelten, stellt sie einen Defense-in-Depth-Ansatz über drei Schichten vor: Dienste, Daten und den Cloud-Perimeter.
Die wichtigsten Erkenntnisse
Sie müssen Ihre Systeme von Anfang an mit Blick auf Sicherheit entwerfen, sonst ist der Preis hoch.
Die beliebtesten Technologien (k8s, Postgres, Cloud-Dienste) lassen sich tatsächlich sehr einfach schützen. Hier lernen Sie die passenden Werkzeuge kennen.
Sie müssen Ihre Infrastruktur nicht komplett abriegeln: Viele Werkzeuge erlauben es, Sicherheitsleitplanken im Dry-Run-Modus anzuwenden.
Sichtbarkeit ist entscheidend! Kontinuierliches Monitoring Ihrer Systeme und die Weitergabe dieser Informationen an Entwickler ebnen den Weg zu mehr Sicherheit.
Die Plattform unter Ihrer KI muss weiterhin abgesichert werden
Godec erinnert zu Beginn daran, dass Gespräche über KI-Sicherheit oft bei Model Armor, Prompt Injection und Erklärbarkeit enden. Das sei wichtig, sagt sie, aber Runtime, Netzwerk und Daten darunter seien ebenso wichtig. „Es geht nicht nur um KI-Sicherheit selbst.“ (2:29) Sie warnt, dass das Risiko wächst, wenn schnell gebaut wird: „Und manchmal vergessen wir, dass wir über diese Dinge nachdenken müssen, besonders wenn wir vibe coden und überall Dinge erschaffen und sie bereitstellen, ohne jegliches Wissen oder ohne einen Gedanken daran, wo das, was wir vibe-gecodet haben, laufen wird.“ (3:24)
Laut den von der Referentin genannten Zahlen steht viel auf dem Spiel. Sie sagt, 2024 hätten 93 % der Unternehmen Kubernetes in Produktion betrieben, und 46 % der Cluster weltweit liefen auf End-of-Life- oder nicht unterstützten Versionen. Sie verweist auf die Kompromittierung von Teslas Kubernetes im Jahr 2018, auf Secrets von Fortune-500-Unternehmen in öffentlichen Repositories und auf die Ingress-Nightmare-Schwachstellen in Ingress-Controllern als Belege dafür, dass selbst gut ausgestattete Organisationen hier Fehler machen.
Kubernetes Schicht für Schicht härten
Bei Clustern arbeitet Godec von unten nach oben. Nodes und Control Planes sollten keine öffentlichen IP-Adressen haben, Cluster sollten VPC-nativ sein, damit Firewall- und Egress-Regeln auch für den Traffic im Cluster gelten, und ein DNS-Endpunkt mit Identity-Aware Proxy kann den mühsamen, schwer zu wartenden Bastion Host ersetzen. Shielded VMs mit Secure Boot schützen die Boot-Sequenz jedes Nodes und sollten ihrer Ansicht nach einfach überall aktiviert sein.
Als Nächstes kommt die Identität. Statische Cloud-Schlüssel in Pods zu mounten war der alte Weg, und der Tesla-Vorfall zeigt, warum er scheitert: AWS-Zugangsdaten in einer schlecht geschützten Control Plane wurden geleakt und führten, wie sie berichtete, zu einer Krypto-Mining-Rechnung von über 100.000 $. „Und wir alle bewegen uns weg von statischen Schlüsseln hin zu dynamisch generierten Tokens.“ (12:23) Mit Workload Identity Federation for GKE hat jeder Namespace bereits eine Identität, sodass Teams Zugriff auf Buckets, Datenbanken oder Pub/Sub gewähren können, ganz ohne Schlüssel zu erstellen.
Policy Controller, eine verwaltete Version des Open-Source-Projekts Gatekeeper, wendet dieselben Sicherheitsrichtlinien clusterübergreifend an und bringt fertige Bundles wie den CIS-Benchmark und PCI DSS mit. Binary Authorization geht weiter und nutzt KMS-gestützte Attestoren in der CI/CD-Pipeline, um jedes Image zu signieren. Ihr Angriffsszenario ist ein Image mit Hintertür, das mit einem legitim wirkenden Tag gepusht wird. Tags lassen sich überschreiben, aber „Der Digest eines Images ist nicht ersetzbar, man kann ihn nicht überschreiben.“ (20:53) Der Admission Controller lehnt jedes Image ab, dessen Digest nicht die richtige Signatur trägt, und ersetzt lange mündliche Change-Freigabe-Calls durch einen kryptografischen Nachweis.
Serverless-Dienste und Daten
Cloud Run (mit Fargate oder Lambda als ungefähre AWS-Entsprechungen) erhält einen öffentlichen HTTPS-Endpunkt und erlaubt standardmäßig jeglichen Ingress, sodass ein Angreifer, der die Adresse errät, eine vorgeschaltete Authentifizierung umgehen könnte. Ihre Lösung: „Was wir also tun wollen, ist, jeglichen Ingress zu deaktivieren und einen Load Balancer sowie einen Identity-Aware Proxy vor unseren Cloud Run-Dienst zu setzen.“ (22:21) Außerdem rät sie vom Standard-Service-Account ab und empfiehlt Cloud Armor für den Webschutz.
Bei Daten stellt sie für AlloyDB VPC Peering und Private Service Connect gegenüber. Peering verbindet Netzwerke vollständig, birgt das Risiko von IP-Adresskonflikten und verhindert transitiven Zugriff, während ein Private Service Connect-Endpunkt nur eine einzige IP-Adresse benötigt und projekt- sowie organisationsübergreifend funktioniert. Mit einer privaten DNS-Zone verbinden sich Anwendungen über einen einfachen internen Namen: „Das macht Entwicklern das Leben viel leichter.“ (28:19) BigQuery hat keine Instanz und keine IP-Adresse, die geschützt werden müsste, und setzt daher auf Sicherheit auf Spaltenebene über Policy Tags (zum Beispiel zum Maskieren von Sozialversicherungsnummern) und auf Zeilenebene, die nach Region oder nach einem Kundeneinwilligungsfeld filtern kann.
Leitplanken und Perimeter für die gesamte Cloud
Da jede Cloud-Ressource letztlich ein HTTP-API-Endpunkt ist, schließt Godec mit organisationsweiten Kontrollen. Org Policies in Google Cloud und Service Control Policies in AWS können Service-Account-Schlüssel blockieren, das Anlegen des Standardnetzwerks überspringen, Shielded VMs vorschreiben und direkte IAM-Berechtigungen für einzelne Nutzer einschränken. Eine eigene Policy begrenzt teure Maschinentypen in Sandboxes: „Stellen Sie sicher, dass in Dev oder in der Sandbox niemand eine VM mit 96 CPUs, 16 GPUs und unzähligen Terabyte RAM erstellen und sie einfach übers Wochenende laufen lassen kann.“ (33:19)
Eines ihrer Lieblingsfeatures, VPC Service Controls, zieht einen Perimeter um ausgewählte APIs und Projekte und lehnt Anfragen von außen ab, sofern Ingress- und Egress-Policies sie nicht erlauben. Sie empfiehlt getrennte Perimeter für Daten, Compute, gemeinsam genutzte Daten und streng eingeschränkte Dienste wie die Kernsysteme einer Bank.
Sensible Daten und die Cloud
Im Q&A fragt eine Zuschauerin nach Daten, die als zu sensibel für die Cloud gelten. Godec greift auf ihre eigenen Projekte zurück: „Ich habe Datenplattformen für das Gesundheitswesen, für Banken und für Finanzdienstleistungen in der Cloud gebaut. Wenn man sie richtig absichert, gibt es absolut keine Bedenken.“ (40:07) Wo Compliance-Teams noch zögern, kann ein verschlüsselter VPN-Tunnel oder ein direkter Interconnect ein Rechenzentrum mit Cloud-Workloads verbinden. „Die Einrichtung ist viel Arbeit, aber sie ist durchaus möglich und ein sehr häufiger Anwendungsfall.“ (41:23)
Den Talk ansehen
„Secure By Design: Architecting your cloud and AI workloads from the perspective of infosec“ von Natalie Godec, 44 Minuten: https://www.womentech.net/video/secure-design-architecting-your-cloud-and-ai-workloads-perspective-infosec
Über die Referentin
Natalie Godec ist Senior Cloud Architect bei Zencore, eine System- und Infrastruktur-Ingenieurin, die zur Cloud-Architektin wurde und eine Schwäche für Datenplattformen und Sicherheit hat. Sie ist Google Developer Expert in Cloud, Women Techmakers Ambassador und erfahrene Tech-Speakerin.
Fragen, die dieser Talk beantwortet
Warum ist Plattformsicherheit für KI-Workloads weiterhin wichtig?
Wie verwaltet man einen privaten GKE-Cluster ohne Bastion Host?
Warum sollten Teams statische Service-Account-Schlüssel durch Workload Identity Federation ersetzen?
Wie stoppt Binary Authorization ein kompromittiertes Container-Image?
Können hochsensible Daten außerhalb der Cloud bleiben, während Cloud-Workloads sie trotzdem nutzen?
Mit KI aus dem Transkript des Talks erstellt. Redaktionelle Prüfung ausstehend.
Frameworks and ideas mentioned
Defense in depth
Secure by design
CIS Benchmarks
PCI DSS
Resources mentioned
Speaker's slide deck (shared via QR code, with Terraform examples for binary authorization and VPC Service Controls)
Gatekeeper (open source policy tool)
Terraform
Cite this talk
Natalie Godec. "Secure By Design: Architecting your cloud and AI workloads from the perspective of infosec." WomenTech Network, 2026. https://www.womentech.net/video/secure-design-architecting-your-cloud-and-ai-workloads-perspective-infosec