March 25, 2026 AGPM Aegis Security

Policy as Prompt: Natural Language Security Governance

Policy as Prompt isn't a tagline — it's a concrete shift in how security teams express, deploy, and maintain governance. Here's how it works in practice.

Policy as Prompt: How Natural Language Is Rewriting Security Governance

“Policy as Prompt” is our shorthand for something fundamental: security teams should be able to express what they want to achieve, and AI agents should handle the rest.

That’s the idea. But ideas need to be concrete to be useful. This post walks through exactly how Policy as Prompt works in practice — from a CISO typing an intent to enforcement running across an entire infrastructure stack — and why the shift matters for organizations operating at cloud scale.


The Problem with Policy as Code

To understand why Policy as Prompt represents a genuine shift, it helps to understand what it replaces.

Policy-as-code tools — Open Policy Agent, Kyverno, HashiCorp Sentinel — gave security teams a way to automate enforcement. That was meaningful progress. But they introduced a new set of constraints that haven’t gotten enough attention.

The Translation Layer Problem

When a CISO says “no publicly accessible storage buckets,” that intent must pass through a translation process before it becomes enforced:

  1. Security analyst documents the requirement
  2. Policy engineer interprets the requirement and maps it to target systems
  3. Policy engineer writes enforcement logic in a domain-specific language (Rego, YAML, HCL)
  4. Another engineer reviews the code for correctness
  5. Test suite validates behavior
  6. Change goes through deployment pipeline
  7. Enforcement begins — days or weeks after the original intent

Every step in that chain is a place where intent can drift. The final enforcement rule reflects the engineer’s interpretation of the requirement, not the original intent directly. And when infrastructure changes, the whole process repeats.

The Expertise Concentration Problem

Writing policy-as-code well requires expertise that’s uncommon and difficult to scale. Rego, in particular, has a steep learning curve. Organizations typically have one or two engineers who own the entire policy codebase. When they leave, institutional knowledge goes with them.

This creates an organizational risk that rarely shows up in security assessments but is one of the most common causes of policy degradation over time.


What Policy as Prompt Looks Like in Practice

Policy as Prompt removes the translation layer. Intent becomes enforcement directly.

A Concrete Example: Encrypting Cloud Storage

The intent:

Ensure all storage buckets across AWS, Azure, and GCP are encrypted at rest and inaccessible to the public. Apply to all existing and future buckets.

That’s it. That’s the policy. A security leader, a compliance officer, or a DevOps engineer can write that. No Rego expertise required. No knowledge of bucket ACL APIs across three cloud providers.

What the Aegis platform does with it:

  1. Parses intent: Understands the requirement — encryption at rest, no public access — and its scope (all three cloud providers, retroactive and prospective)

  2. Generates enforcement logic: Creates provider-specific enforcement for AWS S3, Azure Blob Storage, and GCP Cloud Storage, accounting for each platform’s access model and encryption configuration options

  3. Validates existing resources: Scans current infrastructure for violations and surfaces them for review

  4. Deploys admission control: Configures enforcement at the infrastructure layer — new buckets that don’t meet the policy are blocked before creation, not flagged after

  5. Monitors continuously: Tracks drift as infrastructure changes over time, alerting when resources fall out of compliance

The security leader sees their intent reflected in live enforcement. No translation. No delay. No expert dependency.


Policy as Prompt Across the Stack

The power of this model compounds when you apply it across an entire infrastructure stack.

Cloud Infrastructure

Any IAM role with write access to production resources must require multi-factor authentication. Roles created by CI/CD pipelines are exempt if they're scoped to a single resource and expire within 24 hours.

This single intent generates enforcement across AWS IAM, Azure Active Directory, and GCP IAM simultaneously. The exception logic — pipeline roles, single-resource scope, expiry — is encoded in the intent and interpreted consistently by the agent across all three platforms.

Kubernetes

All workloads in the production namespace must run as non-root, use read-only root filesystems, and have resource limits defined. Database StatefulSets may run as root if they mount legacy volumes — this exception requires re-validation every 90 days.

The agent understands Kubernetes object types, namespace scoping, and StatefulSet patterns. The time-boxed exception is tracked automatically and surfaces for review when it expires.

CI/CD Pipelines

No container image may be deployed to production if it contains critical CVEs with a CVSS score above 8.0, unless the vulnerability has no known exploit and the image owner has acknowledged the risk in writing within the last 30 days.

The agent integrates with vulnerability scanners, understands CVSS scoring, and tracks acknowledgment records. An approval-based exception process — typically a manual workflow maintained in spreadsheets — becomes an automated, auditable policy.


Why This Matters for Security Leaders

The shift from Policy as Code to Policy as Prompt isn’t just an operational convenience. It changes the relationship between security leadership and security enforcement.

Intent Stays Connected to Enforcement

In traditional policy-as-code models, a CISO’s directive and the enforcement logic that implements it are maintained by different people in different systems. When the CISO’s priorities shift, the change has to travel down the translation chain again.

With Policy as Prompt, the intent is the policy. When priorities change, the intent changes, and enforcement updates automatically.

Security Becomes Auditable at the Intent Level

Compliance auditors traditionally review policy documents and then separately review enforcement configurations, checking whether the two align. With Policy as Prompt, what you said you’d do and what’s actually enforced are the same artifact. Audit becomes a matter of reviewing intent, not reconciling documents against code.

The Policy Codebase Goes Away

This one is underappreciated: Policy as Prompt organizations don’t maintain a policy codebase. There’s no Rego repository to review, no policy syntax to keep up with, no specialist dependency. Security governance scales with the security team’s ability to express intent — which scales with hiring security professionals, not policy engineers.


Getting Started with Policy as Prompt

Adopting Policy as Prompt doesn’t require replacing your entire security stack at once. Most organizations start with a single domain — cloud storage, Kubernetes admission control, or a specific compliance framework — and expand from there.

The starting point is straightforward: take a policy that currently lives in a document or a policy-as-code repository, express it as intent, and see what the agent generates. In most cases, the generated enforcement is more complete than what the document or code captured, because the agent understands the full scope of the intent rather than the specific examples the engineer happened to write rules for.

That’s the shift. From examples to intent. From code maintenance to governance design. From specialists to security leaders.


Experience Policy as Prompt with Aegis

Aegis is built on the Policy as Prompt model. Security teams using Aegis have moved from maintaining thousands of lines of policy code to maintaining a set of clear, auditable intent statements — and governing infrastructure that’s larger and more complex than before.

See how Aegis works | Why Agentic Governance Matters | Talk to us

Aegis Platform - Contact

Ready to Transform Your Security Policy Management?

Join forward-thinking security teams already using Aegis Platform to deploy policies in minutes, not weeks.