Cloud security has long run on a reactive loop: a CSPM tool finds a misconfiguration, the owner fixes it, and the next deployment often brings it back. That model was built for a world where attackers and the cloud both moved at human speed. In the AI era, that's no longer the case because:
AI is changing infrastructure faster: Developers, pipelines, and now agents create and modify resources faster than any team can review them.
AI is exploiting infrastructure faster: Misconfigurations rank #2 on the OWASP Top 10, and attackers can now discover and exploit an exposed asset in hours, not months.
Cloud Native Application Protection Platforms (CNAPP) gave organizations deep visibility and centralized risk reduction, but a gap remains between knowing what should be secure and making sure it stays that way.
Independent firm Software Analyst Cyber Research (SACR) calls the answer Cloud Security Intent Enforcement (CSIE): turning security intent into preventive controls that stop the same unsafe conditions from coming back. Getting there takes two things most programs still lack: fixing misconfigurations at their root in code, and preventing them from resurfacing.
Today, we’re bridging that gap with two major additions to Wiz:
Wiz Cloud Guardrails let security teams enforce their security intent across the cloud, blocking unsafe configurations before they are ever created.
A Code-to-Cloud Agent that automatically learns an organization's specific IaC deployment pipelines to reliably map cloud resources to code.
Together with Wiz CNAPP's core agentless visibility and risk prioritization, they end the cycle of recurring misconfigurations, moving teams from a model of reactive security towards a self-healing cloud.
Cloud Guardrails: Prevention at the Cloud Control Plane
Until now, prevention mostly meant shifting left: scanning IaC to block risky configurations before they merge. Shift left controls are critical, but they only cover the paths you know about. Console changes, unscanned scripts, and ad hoc CLI commands can still go unchecked.
Wiz Cloud Guardrails flip the model. Instead of chasing owners to fix risky configurations one by one after deployment, security teams deploy native preventive controls to stop entire classes of misconfigurations before they happen. Each guardrail blocks the source action through cloud-native policies, including AWS SCPs and RCPs, Azure Policy, and GCP organization policy.
Wiz makes it easy to see where prevention is missing by surfacing Guardrail Opportunities and mapping each one to its impact in your environment, such as how many findings it relates to and how many accounts or subscriptions it covers.
To address the common concern of "what if it breaks production?", Wiz simulates each guardrail before anything is enforced. You see exactly which resources it would affect, which principals it would block, which exceptions you'd need, and which past events it would have prevented. Once the impact is clear, teams deploy using ready-to-use CLI, Terraform, or CloudFormation templates, through the pipelines they already use.
Trace Every Fix Back to the Source with our Code-to-Cloud Agent
Cloud Guardrails prevent new risks from entering production, but fixing existing misconfigurations requires tracing live cloud resources back to the code that created them.
Without that link, security teams cannot address the root cause of issues.
Connecting code to infrastructure has always been a core philosophy at Wiz. For years, we have invested heavily in mapping cloud resources back to code using cloud-native metadata, resource tagging, and static analysis of fully defined Infrastructure-as-Code (IaC). However, real-world infrastructure deployments are complex, frequently using dynamic per-environment configurations like Terraform partial backends. Because these values are only supplied at runtime, traditional static scanners lose the trail. Once that connection breaks, code-to-cloud coverage plummets and automated remediation stalls.
Our new Code-to-Cloud Agent solves this by evolving from static file inspection to dynamic, pipeline-aware tracing. With full context across your codebase and deployment pipelines, Wiz understands how your specific IaC modules translate to runtime infrastructure. Under the hood, it ingests repository metadata, evaluates CI/CD pipeline configurations, and autonomously resolves partial backends across AWS, Azure, and GCP.
The result: significantly more cloud resources Wiz can help you remediate in your source code.
Here are a few examples we’ve seen across our customer base:
A Fortune 500 insurance company saw mapped resources surge from 700 to over 75,000 (a 10,300% increase).
A global sports streaming platform expanded code coverage from 2,400 to nearly 90,000 resources (a 3,600% increase).
A multinational pharmaceutical leader mapped an additional 67,000 resources, boosting coverage by 245%.
That coverage is what unlocks faster remediation. With the code trail established, the Code-to-Cloud Agent passes that context to the Wiz Green Agent—Wiz’s automated remediation agent—which builds a remediation plan and opens pull requests to address the root cause directly in source code.
Building a Path to a Self-Healing Cloud Security Loop
Here's what a self-healing cloud looks like for a single misconfiguration, with the new capabilities working alongside Wiz Cloud and Wiz Code:
Detect & Prioritize: Wiz flags a public S3 bucket in production. The Wiz Security Graph correlates this with PII and internet exposure, surfacing it as a critical Wiz Issue prioritized by its true blast radius.
Recommend: Code-to-Cloud tracing resolves the live bucket directly to modules/storage/main.tf:47, automatically identifying the owning team even though the backend was injected via CI/CD. Armed with this context, the Wiz Green Agent analyzes the issue and recommends two paths: a code fix via pull request, and a Cloud Guardrails deployment opportunity, complete with an impact analysis showing exactly what the guardrail will affect.
Execute: The owning development team reviews and merges the Green Agent’s pull request to fix the root cause in code. The security team implements Green Agent’s mitigating controls with a Cloud Guardrail to block public S3 access at the cloud control plane.
Verify: Wiz automatically rescans the environment, confirming the configuration drift is resolved, the bucket is securely locked down, and the guardrail is actively enforced.
Measure: The security team uses Wiz Boards to track the burn-down of this specific misconfiguration class across their estate and monitor their expanding coverage of infrastructure that can be traced back to code.
Prevent: Earlier in the development lifecycle, Wiz Code enforces the same policy directly in the IDE and pull requests to educate developers before code is even merged. On the cloud plane, the Cloud Guardrail will block the action moving forward.
The next time someone tries to make a bucket public, it's flagged in the pull request if it comes through IaC, and denied at the control plane if it comes from anywhere else. That's the loop closed, from detection to prevention.
Get started with Cloud Guardrails (now in Public Preview) and the Code-to-Cloud Agent, or book a live demo with our team.