Shift-Left Has a Ceiling: Where Preventative Cloud Controls Stop Working
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
Good afternoon everyone. I am Priyanchi and I'm a cloud security engineer in financial services and I have a very simple job to secure our cloud resources and services at scale. But a quick bit of framing before I start my talk. Everything I'm saying here is my professional view of preventative controls. What I've seen, what challenges they have run into.
So let's dial back to a simpler time 20 years ago. We own we had company owned data centers. We had private cloud and honestly the security worked not because we were smarter but be the system could not move fast. You could stand a server
within minutes. You had to purchase a whole do a purchase order a rack a few
weeks of lead time. The speed limit was the security control. Then the public cloud arrived, sold us on speed and agility, minutes, not months, and we had
self-s surface APIs that could provision infrastructure on demand, which is generally wonderful, but it quietly removed the one thing we had the time to secure everything. And now at speed, cloud providers added
us one more thing, which is the shared responsibility model. And the line is clean. Security of the cloud is the providers, the data centers, the hardware, the hypervisor and all the machinery you never see. And security in the cloud is yours, your data, your identity and your configurations. So this shared responsibility model hands the customer the configurations and the identity. And this has consequences. Gartner put a price on it
saying that in 2025 99% of the cloud
security failures trace back to customers own misisconfigurations.
But it doesn't mean the customers are careless. It just the model is working as expected. They have secured the infrastructure. We just need to secure the other half they have handed to us which is the identities and the configurations. And what we get is we get a suite of preventative set of controls. Leor covered it a bit that we have these controls baked in into our cloud control plane. You must have seen them as AWS
service control policies or resource control policies. In Azure you have the Azure policies and then in GCP you have the orc policies, custom contra and whatnot. And these preventative controls are pretty good. They are they give give us the big bang for our buck. They are very
cost effective if done properly and they do the foundational work very right like they can block the public buckets, they can force encryption on resources and they can also deny a whole risky service from day one. But if you want to make your whole governance strategy or the security strategy on this, that's where they start to lose out. And at scale, you can see the issues. And that's where I'm here to talk about. I'm here to talk about these three ceilings you have in the preventative controls which is built at the cloud control plane. So the three things I'm going to talk about in the talk is about the coverage ceiling which is where services and resource type doesn't even have anything to guard around the expressiveness ceiling which is where you cannot write the rules which you wanted to write and the operational ceiling where you have issues with limits. You have missing inventory. You don't know what what can talk to what what can reach to what.
So let's talk about the ceiling number one which is the coverage ceiling.
It is not a passing problem. It is a permanent problem. So hypers these hyperscalers are skipping shipping continuously. [snorts] Uh AWS is putting north of 3,000 service and resource updates a year. Um and GCP and Azure are
not far behind above thousand updates a year and when a new service is introduced or a new feature is introduced uh even in preview or gener availability it almost never supports the full security ecosystem from day one. The guarders has to catch up later. There's always like a frontier of services where your preventive controls can never touch. And on top of the this
this controls ships with a supported
services list. So only a subset of the services are supported by these controls. And anything which is not on
this list has no coverage and it fails silently. [snorts] But nobody's telling you that the guardrail doesn't apply here. How do you figure out? I want to take like through like a couple of examples. Um so let's take uh the RCPs or the like
GCP or policies a typical example where you will be implementing a type of controls only in my organization can access my resource. [snorts] Uh whenever you implement this it only covers a handful of services. So what you're trying to do is for the rest of the list you are trying to write per resource-based policies which are not centrally enforced and uh just leaving up to the owner to do the good deed. On top of it the cloud providers are telling us that you can write another workaround for it because there's no central enforcement. Uh you can just ban this feature entirely or sharing this feature entirely. But that's not what you wanted. What you wanted was that uh you can share or use this feature in my inside my or but like what you end up
writing is don't share at all. So this is a coverage gap wearing a control costume. Another [snorts] example I can come up with is the network parameter controls typically seen in RVPC endpoint policies
where you can write a type of control call only reachable from my own network.
Uh when for these controls the request
only applies when it passes through the
condition of a service it can support. If it doesn't support the service, the condition key will just evaluate to true and drop the modifier and you will have an explicit deny on the operation entirely. So all these silent issues are building up because you don't have enough coverage in your controls. The second one is the expressiveness ceiling. So the coverage is whether the service is on the list but the expressiveness is is the rules you can write at all uh
even when the service is covered. Right now there's no way to say that this particular resource is owned by the cloud provider and you have multiple cases where you are ramping up these managed services which are provided by the cloud. You have some buckets managed by the cloud provider and you have to go if you write the statement saying only resource inside my organization can do XY Z uh you're blocking those cloud provider resources and you break your own pipeline. Uh you are not able you're
not able to update the buckets or access the containers or anything.
So when you end up what you'd end up doing is you will come up with a manual list of these buckets let's just say
owned by the providers you'll name them region by region and even if you miss one you can screw up your registry pool or you can break your CI/CD jobs. There's another example uh where this expressiveness lacks. Uh the guardrail doesn't name who gets in the scope they scope them with a tag.
Uh we you can essentially have a tag right now saying that only resources tag prod can do this or we [clears throat] can exempt this bucket if it has an exemption tag. Let's not do this. But these tags themselves can't be forced to exist. Also, we can't
stop people from editing them. So, what we are essentially doing is if we change the tag, somebody in in your
organization can tag a bucket as exempt and it's just broken straight through a parameter. So, the boundary you wanted was that this tag is mandatory. No, and nobody can change it. We can't write it. Unfortunately, there's no case to support that. And the third ceiling which is the operational ceiling. So you have the control you can it exist
you can express it but you can't run it at scale without tipping over. And so there are two things I want to talk about here is the policy limits and uh the like lack of inventory and the
type of like approval flows uh a typical policy goes through. So all the piles of
exception I just mentioned let's just say these particular buckets were exempted because of because this belongs to a service provider or they are exempted for XY Z reason uh you have to like they have to live somewhere right so you write these policies but these policies have hard size limits and even attachment limits and your parameter doesn't fit in one so what you do is you split them and then start minifying your JSON merging statements you no no longer can read. Uh so the byte size is actually designing your whole architecture rather than uh your thread models or your risk.
Um another use case is uh there's lack of third no third party inventory in the cloud. So I cannot see who outside my resource can reach my resources basically. And this question is usually answered by throwing a bunch of tools like finding tools, log tools and
scanners which are not none of them are authoritative or in real time as well as we saw in some of the talks. And the final thing is there's no work governance workflow around these policy attachments. Once you attach a policy that's it. There's no approval layers. There's no expiry in most cases. Uh no audit trail. So your exemption you grant
is tracked as is uh unttracked forever.
So we talked about these three ceilings
but if you're paying attention there's a fourth one actually which I didn't mention which quietly caps all of this
[snorts] and it is the reason that you can have a control which is fully covered perfectly expressed and neatly within the limit and still you yet you can't ship it. It's the safety ceiling. So let's take that pause. What is safety? So what I'm trying to say here is if you have a detective control which goes wrong tomorrow you just get a noisy alert and you can fix it. You can come in and fix it. It's fine. It's annoying though. But at the same time nothing happened really right. But if it's a preventative control, even a deny which is just a little too broad, you put that star somewhere else where you shouldn't have, uh, it's not a failed test anymore. You have a self-inflicted outage.
And so just think of these controls that
the the bar bar is very high and the impact of these controls are much higher. So you have to really be really careful when you're rolling out such controls especially in a very complex environment and this bar has a high price in a super
complex environment where you have multiple organizations or even like organization with multiple OUS it can take literally months to roll out a policy from an idea to getting it truly
enforced. post in production. What you usually adopt is you do a log and dry
run. You deploy it in one single account. You then deploy in a business unit. Then you simply apply it in some higher environments. And once you understand the blast radius of your preventative controls, uh that's when you can kind of can go arcoid.
[snorts] So, so I did talk about all these limitation but how can we come across this? Uh the answer is very simple actually. You just accept prevention is one layer not the complete wall and you have to split the responsibility of these controls across different layers. So you can put the build in time
policies in the pipeline where the feedback is fast and you can catch it what the platform cannot do. Then you can leave the uh heavy like preventative admin uh
admin type controls to the preventative control layer and anything which doesn't support either of them you kind of go through the detective policies using your uh cloud posture management tools or some uh native access analyzer tools and you
also imple and small like some of these like high level controls or very high priority controls with auto remediation to close the gaps with detection is opening. [snorts] Uh, additionally I would like you to take this mind map whenever you are designing your controls. Like look at what is the blast radius of your control. What is the value you're delivering? Are you were you able to express it correctly even in the first place? If you ended up with a control which didn't do exactly what what you wanted to do, then the value of the control is not great. Are you able to test these controls?
Ask yourself these questions and then decide where the control lives. If it's something fast and there's no blast radius, put it in build time uh type of control in your IC and deploy time checks. Uh if it's very high value expressible safety test, then put it in preventative controls. And if there's nothing where prevention can't reach then add a detective or our imitative policy for it.
So uh my ask to the community is that we
need to uh really force these providers
to to give us support on this like give give us the condition where the resource
uh belongs to you type of condition. Can
you can we come up with a broader list of ser uh service coverage whenever a new service or feature is enabled or can and can we get like required and immutable tags. Uh so there are quite a few things but the most important one is can we get a safe space to do a dry run of these controls at scale and we can raise the
issues before it actually hurts anyone.
And yeah, my two takeaways for the audience is uh the taxonomy of whenever you are designing a control on any cloud
actually uh ask yourselves these four questions. Is this covered? Is this even on the list? Can you express this control and
write what you actually wanted to write? Are you able to run this at scale?
and can you test it safely without causing an outage? If any one of this is failing, it doesn't belong in prevention. Actually, name the four ceilings and design around it. And the second thing I want you guys to take o take away is drop the bias that preventative is enough and if we did
shift left and it's just over. The war is not over. prevention is is in the
wall. It's one of the layers. So, shift
left as far as the platform genuinely lets you then build the rest of the wall around it because shift left has a ceiling and the job is knowing when where it stops. Thank you.
[applause]
Thank you Panchi. We have five minutes for questions.
So as an organization administrator, how
do you communicate the the mix of these policies to your developers working in the cloud accounts so that they're not surprised or frustrated by them? It's a very long and windy process like we what we do usually
is we deploy it in a small set of like alpha environments first and then we test these controls but we also have an internal audit a process of sharing such design decisions within the cloud within we have a design authority and we have a way of engaging anybody any of these controls if we controls or any design decision we introduce interviews to the lines of businesses. So that's how it goes through. So it is very manual and like review intensive but it it takes long but eventually we get there and sometimes we still will have like gaps. >> Thank you.
>> I think everybody's sleepy. [laughter]
>> I have a question too. Um, so if you're
looking at a dry run mode or even today
if you're doing uh pre-checks to make sure that like I think these control is going to block this thing like are people using this API stuff like that is going to block something. Do you today have a good way to find out like what needs to change and who to talk to if you see that and like do you see problems there? like if you ever get a driver mode, which I think is a good thing to ask for. Um just getting like overwhelmed with like we now get like a bunch of things that are going to be denied and I can't see where it's like should I talk to someone to like update their thing or should this is this a thing that should be denied anyway like who do I talk to like do you have solutions for that?
>> Yeah, it is very challenging. The solutions we have explored so far is like analyzing our logs and looking at the impact. So you can take a look you can download a bunch of logs from like six months and you can see if any of these actions on these particular org or accounts has been taken place and if you enable this you are going to impact that. So that's one of the things we have come across. I think now some of the cloud providers have very detailed way of doing the access analyzes as well. Um but yeah no there's no easy
answer for this unfortunately. All right. Well, thank you very much. >> All right. [applause]





