Itay Kirshenbaum
Opinion

The danger of trusting security rules you haven’t tested

"A policy can pass validation and still grant the access it was designed to deny," writes Itay Kirshenbaum, co-founder and CTO of Act Security. "Cloud security must be measured by what systems actually allow."

The most dangerous moment for a security rule is often the moment a team decides it is finished. The policy came from the cloud provider's own guidance, passed validation and deployed without error. The team has done what it was told to do. But has anyone tried the action the rule is supposed to make impossible?
A dashboard can confirm that a control was deployed and that automated validation found no issue. Those are useful results, but they measure the steps a team completed, not whether the control stops a user, application or service from reaching something it should not.
1 View gallery
Itay Kirshenbaum
Itay Kirshenbaum
Itay Kirshenbaum
(Netanel Tobias)
In the cloud, an identity's access depends on rules working together across resources and services. One restriction may look complete in isolation yet produce a different result when another policy interprets the same request. The boundary is defined by what the combined system permits, not by the wording of any single rule.
Our research team saw this in AWS-recommended guardrails. One rule blocked users from assigning themselves a protected tag using a case-sensitive comparison; another recognized the tag for access without distinguishing uppercase from lowercase. A block on a tag named “admin” could miss “Admin” while the access rule still honored it. In affected configurations, a user authorized to set tags could claim an exemption or privilege the guardrail was supposed to deny. We called the finding Capital Offense.
The team found the same pattern in AWS guidance and in more than 100 policy files across dozens of public GitHub repositories. AWS's IAM policy validation did not flag the particular problem. After our report, AWS updated relevant guidance, examples and a policy generator. The findings show how an officially recommended rule can spread and pass familiar checks without delivering its intended protection, even though the public files alone do not establish where it was deployed or exploited.
An engineer securing production under a deadline has good reasons to start with the provider's example and run its validation tools. Trouble begins when completing those steps is mistaken for evidence that an attacker or ordinary user cannot perform the prohibited action. Checking a rule and challenging the security claim behind it are different jobs.
Deployment is only one point in a cloud environment's life. It may begin with a clean architecture diagram. A few years later it contains temporary permissions, forgotten service accounts and roles nobody dares remove because nobody knows what will break. Each may have made perfect sense on a Tuesday afternoon when an engineer needed to fix production. It is not realistic to ask that engineer to remember and manually review every exception six months later.
Meanwhile, services add actions, teams create new identities and policies interact in ways nobody anticipated. The guardrails stay in place, but the architecture around them changes. Some controls lose their effectiveness over time; others never worked as intended. A team can maintain the same rule diligently while the protection it assumes is absent.
Start the review with the action that must never succeed. If an ordinary user must not be able to exempt themselves from a security restriction, test plausible routes to that exemption, including paths through other policies. If a service introduces new actions, check whether existing restrictions cover them. The relevant evidence is not that a deny statement exists. It is that the unwanted action fails under the permissions and conditions of the actual environment.
No team can exhaustively probe every possible combination in a large cloud environment. Instead, make verification repeatable: model effective access, simulate representative allowed and denied actions, and recheck important boundaries as the environment changes. Just as importantly, test the work that must still succeed. If tightening a rule breaks a critical service, the pressure to restore broad access will be immediate. Verification has to establish both protection and a safe path to enforcing it.
Infrastructure-as-code and AI-assisted tools now generate and distribute policies at scale. A mistaken assumption baked into a template can reach many environments before anyone challenges it. Automation magnifies the consequences of skipping that challenge. A rule produced in seconds still needs evidence that it enforces the right outcome.
Cloud providers' guidance and validation tools save engineering teams from rebuilding every control from scratch. The responsibility changes at the point of adoption: an organization must determine whether the borrowed rule delivers its intended outcome in its own environment. Otherwise, it has inherited someone else's confidence rather than established its own.
Before declaring a restriction complete, ask what an ordinary user could still do to get around it. In one set of recommended guardrails, a capital letter was enough. A security policy earns trust when the forbidden action actually fails, not when the policy passes inspection.
Itay Kirshenbaum is co-founder and CTO of Act Security.