(Co-Authored with Ariel Septon of Native) Security invariants are a critical component of your cloud and IT governance strategy. However, how can we apply this same thinking to the non-deterministic world of Generative AI?
A security invariant is a system property that relates to the system’s ability to prevent security issues from happening. Security invariants are statements that will always hold true for your business and applications. This definition of Security Invariant will focus on the properties of AI systems, that can be enforced by the system, and drafted in a way that they can always be true. While a traditional cloud security invariant might state “Only the networking team may create and manage a VPC”, AI invariants can exist at different levels of the stack.
Traditional governance assumes deterministic execution and stable control points. AI introduces three challenges:
Below is a starter set of AI security invariants. Some are fully enforceable today on major inference platforms; others are only partially enforceable, or require compensating controls outside the inference service.
Traditional Cloud Provider Invariants use the existing APIs to enforce business objectives. They’re really an extension of Security Invariants with a focus on AI services.
Finally, some invariants have to be implemented by the development teams building the AI tools. These invariants require a deep focus on authentication and authorization to enforce data governance and to ensure that AI cannot act in a harmful manner.
These “application” level invariants cannot be centrally enforced like cloud invariants. They must be implemented in each AI system that’s built or deployed by the organization.
Model enforced invariants are part of the prompts and guard rails of the LLM itself. They’re intended to ensure that the model behaves in a way the organization wants. Some examples:
Due to the non-deterministic nature of LLMs, the aspect “will always hold true” also becomes probabilistic. A Service Control Policy can be formally verified via automated reasoning technology. The presence of GuardRails can be enforced in a similar manner. However the final objective of controlling the model’s behavior is not 100% guaranteed.
Defining your security invariants is the first step toward moving Generative AI out of the experimental sandbox and into production with confidence. By defining these non-negotiable properties, your organization can maintain a consistent security posture even when dealing with the unpredictable, non-deterministic nature of large language models.
Now that we’ve defined what we want to protect, we need to look at how to implement it in a fragmented cloud landscape. In our next post, we will move from theory to implementation by exploring how to enforce these invariants across the major cloud providers. We’ll dive deep into specific tools, including:
We’ll explore which cloud features offer rock-solid protection and where platform limitations might still leave your organization exposed. Stay tuned to see how to map your high-level policy intent to real-world cloud configurations.