Which controls actually need an AI agent? A test for sizing the agent layer, applied to BSI Grundschutz++ and Azure Policy as code.
In a regulated Azure estate, most governance work is rules. When Azure Policy runs a rule, the check is cheap, instant and auditable. An AI agent running the same rule adds only cost and doubt. The bottleneck is everything rules alone cannot settle:
- deciding what an application needs
- weighing an exception
- writing the narrative an auditor reads
Teams wait weeks for that work.
This article makes three claims and analyzes them using one kit as a lens and testing ground.
|
# |
Claim |
What it gives you |
|---|---|---|
|
1 |
Every control requirement is enforce, detect, judge or decide. Only judge needs a model |
A way to size the agent layer before building it. In the kit's 26-control sample, 18 controls need no model at all. |
|
2 |
Catalog, baselines and the control-to-policy mapping live in NIST's machine-readable format (OSCAL), and Azure Policy is generated from them. |
One source that tools, auditors and agents read and CI can test, automatically. |
|
3 |
Every change, an agent's included, lands as a pull request to infrastructure as code. |
Drift fixed at the source does not come back; agents need no write access. |
The Agentic Governance Kit is the deterministic core behind claims 1 and 2: 26 BSI Grundschutz++ controls in OSCAL, five landing-zone baselines, a mapping to 33 Azure Policy built-ins for the services of one reference workload, and a template that assigns them to a management group in one click, report-only.
It is currently built for German federal requirements and illustrated with a fictional federal ministry. The method fits any estate with a machine-readable control catalog, irrespective of the underlying regulatory framework.
1. Policies are not the bottleneck; decisions are
In the worked example, a fictional federal ministry is moving legacy applications to sovereign Azure landing zones. Legacy hosting costs millions a year, so every month the last application stays is a missed saving. The platform team must make decisions and prove that every change is safe.
Writing policies is easy; knowing which ones to apply is not. A policy that denies public network access on storage takes a dozen lines. Deciding that a grant portal holding personal data needs the internet-facing Online archetype, a specific control set and a privacy impact assessment takes workshops. The hard cases, with high protection needs and thin documentation, sit on the critical path for the migration.
The rules are also bound to move faster. BSI now publishes Grundschutz++, the successor to the IT-Grundschutz compendium, as machine-readable OSCAL with rolling updates, and it is certifiable from 2027-01-01 [S1, S2]. C5:2026 applies from 2027-06-01 [S3], and federal bodies must obtain C5 evidence for external cloud services [S4]. Since the NIS2 implementation law, BSI standards bind the federal administration [S5]. Meanwhile a 2023 estimate puts the German public sector's shortfall at about 39,000 IT professionals [S6]. Hiring will not close that gap, nor is it a sustainable strategy in the medium to long term.
Mapping a continuously updated catalog by hand does not scale, and an agent for everything puts a model where a rule belongs.
2. Only judgment needs a model
A component is an agent only if a model adds judgment, language or synthesis. A deterministic workflow is a service, and it should be called so. Applied to control requirements, this rule-or-judgment test yields four classes.
|
Class |
Who acts |
Azure mechanism |
|---|---|---|
|
Enforce |
Platform, before deployment |
Policy deny, modify, deployIfNotExists [S7]; Conditional Access; pipeline gate |
|
Detect |
Platform, after deployment |
Policy audit, Defender for Cloud, Resource Graph |
|
Judge |
An agent drafts, a person reviews |
A model with tools and a schema-validated output |
|
Decide |
A named person |
An approval service with rule-based routing |
Three rules make the test usable.
- Classify requirements, not controls. One control often mixes a rule with a judgment. Split it: the rule goes to Policy, and only the judgment goes to an agent.
- Push down, never up. If a requirement can be enforced, do not merely detect it; if it can be detected, do not judge it. Blocking must be deterministic, instant and never creative.
- Judge feeds decide; it never replaces it. An agent can write the risk statement for an exception. It cannot accept the risk.
The test was run over the kit's 26 Grundschutz++ controls, classifying each part by the strongest effect its mapped mechanism allows:
|
Most demanding class |
Controls |
Share |
Example |
|---|---|---|---|
|
Enforce only |
7 |
27 % |
ARCH.2.2.1, restrict connections over external links: storage and Key Vault deny public network access |
|
Detect |
11 |
42 % |
DET.4.2, monitor for signs of attack: four Defender plans, audited |
|
Judge |
6 |
23 % |
KONF.11.8, encrypt sensitive data at rest: which data is sensitive is a judgment |
|
Decide |
2 |
8 % |
UMS.5.1, exceptions are authorized by a named role |
The result: 18 of the 26 controls do not require a model at all. If your agent layer is larger than your judge class, you are paying a model to run rules.
The six judge controls all have a part that Policy enforces or detects. KONF.11.8 (Konfiguration für Anwendungen KANN schützenswerte Daten bei der Speicherung (at-rest) verschlüsseln, application configuration MAY encrypt sensitive data at rest) shows the split well:
- Customer-managed keys and encryption at host are rules, which Policy denies or audits per resource.
- Which data counts as schützenswert is a judgment. An agent drafts the application's protection need from its profile, and a person reviews it.
- The reviewed result picks the archetype, and so the baseline. Policy then enforces that baseline, and the judgment itself never touches a resource.
Note: The sample was chosen to map onto Azure and to cover every class, so it over-represents enforce and detect. The class shares above illustrate the method and are not a census of Grundschutz++. The per-control table gives the reasoning for each control.
3. OSCAL as data contract
Agents need a control language they can read, auditors one they trust, and the pipeline one it can test. OSCAL, NIST's open format for catalogs, baselines, implementations and assessments, serves all three [S8].
Azure Policy has no built-in initiative for Grundschutz++ yet [S9]. Similarly, Defender for Cloud publishes no standard for C5 or IT-Grundschutz, and the sovereignty policy portfolios cover Germany only marginally, through an EU-wide NIS2 set in preview [S10, S11]. Purview Compliance Manager does have a C5 template [S12], useful as a cross-check.
The kit fills the gap with three kinds of OSCAL file and one generator.
|
Step |
OSCAL model |
What it holds |
|---|---|---|
|
Select |
Catalog |
26 controls in 8 groups, extracted from BSI's catalog at a pinned commit, BSI's text unchanged, with C5:2026 and ISO 27001 references |
|
Baseline |
Profile, one per Sovereign Landing Zone archetype the kit models (all landing-zone archetypes but Local) |
The 5 profiles have the following controls mapped:
|
|
Map |
Component definition |
41 components: 33 Azure Policy built-ins, 2 Sovereign Landing Zone initiatives, 4 services and 2 processes, each naming the controls it implements |
|
Generate |
None |
The initiative with one effect parameter per policy, the assignment parameters per archetype, and a readable mapping table |
|
Deploy |
None |
A Bicep template that assigns one archetype's baseline to a management group |
The mapping is a plain OSCAL component per built-in policy, with a few properties the generator reads. For example:
{
"type": "policy",
"title": "Storage accounts should disable public network access",
"props": [
{ "name": "policy-definition-id", "value": "/providers/Microsoft.Authorization/policyDefinitions/b2982f36-…" },
{ "name": "effects-allowed", "value": "Audit,Deny,Disabled" },
{ "name": "audit-effect", "value": "Audit" },
{ "name": "deny-archetype", "value": "corp" },
{ "name": "deny-archetype", "value": "confidential-corp" }
],
"control-implementations": [{ "implemented-requirements": [{
"control-id": "ARCH.2.2.1",
"description": "Storage accounts disable public network access; Deny where the archetype has no internet edge."
}]}]
}
What the contract enables
- Each archetype's baseline sets every policy's effect. For each archetype, the generator gives every policy one of three effects:
- Disabled, if the archetype's baseline contains none of the controls the policy implements;
- Deny, if the mapping lists the archetype under deny-archetype;
- otherwise its audit effect, Audit or AuditIfNotExists.
A baseline is therefore just a list of control IDs, and tightening a policy from audit to deny is a one-line pull request that a security officer can read. Today the initiative denies one thing: public network access on storage, in Corp and Confidential Corp, the archetypes without an internet edge. Everything else audits during a reporting period.
- Nothing that reaches Azure is written by hand. CI validates every file against NIST's OSCAL 1.1.3 schemas, then checks the cross-references: every profile control exists, every open parameter is set, every control is implemented somewhere. It also fails if a generated file is stale or if the one-click template no longer matches its Bicep source.
- The mapping says where Policy stops. Nine controls are met, wholly or in part, outside the initiative, and the component definition names how:
- data location by the Sovereign Landing Zone's global policies
- isolation and encryption at rest by its confidential policies
- multi-factor authentication by Conditional Access
- just-in-time privilege by Privileged Identity Management
- exceptions by an approval service and exemptions as code
- the tamper-proof log by an evidence sealer
- the provider contract by a process
An auditor sees each gap and its owner immediately, in the same file as the policies.
- It runs in one click and blocks nothing. The template creates one custom initiative and one assignment at the management group you pick, in DoNotEnforce mode, so the first deployment only reports. Azure Policy itself is free on Azure resources [S13]. The repository has a Deploy to Azure button [S14], and removal takes two CLI commands.
- The tools read OSCAL, whatever the framework. Another catalog needs a new selection, new profiles and a new mapping, but no new code. The kit has only been run on Grundschutz++, so this is a design claim.
4. Agents propose, people decide
The kit is the deterministic core. Around it, a reference architecture adds a thin layer of deterministic services and a few read-only agents. The kit does not ship this layer; this section describes its design.
The agents
The architecture defines five agents. Each drafts; a rule or a person decides.
|
Agent |
Drafts |
What it brings |
|---|---|---|
|
Profiler |
An application's protection need and archetype, from its CMDB record and questionnaire |
The hardest migration cases start from a reviewed draft instead of a blank workshop |
|
Catalog mapper |
A pull request that maps a new Grundschutz++ release to policies |
The mapping keeps pace with BSI's rolling updates |
|
Exception assessor |
The risk statement for an exception request; it may raise the rule-based rating, never lower it |
Approvers decide on a structured assessment |
|
Drift triage |
An explanation of the drift and the fix to the IaC code behind it |
Drift is fixed at the source, so it does not come back |
|
Evidence compiler |
The evidence pack an auditor reads, after checking the hash chain and flagging gaps |
Narrative built from sealed records |
Design rules
The architecture follows five design rules.
- Agents propose, people decide, code lands. No agent holds an Azure write permission. Every change, a drift fix or a policy exemption included, is a pull request to infrastructure code. Exemptions are code too, with a category and an expiry date [S15].
- A rule rates the risk; a person approves. The approval service rates each pull request from what it changes: paths, resource types, exemption category and duration. An agent may raise the rating, never lower it. An agent cannot approve, the requester cannot approve, high risk needs two different people, and an approval binds to the reviewed commit, so a new push resets it.
- Agents are workloads in audit scope. Each agent has its own Entra agent identity [S16], reader access, an allowlist of tools and a kill switch, and its fallback is today's manual process. Every decision writes a hash-chained record: inputs hash, model and prompt version, tools called, output and the human decision. Managed guardrails are a layer, not a boundary: they do not screen MCP tool responses [S17], so services pre-scan untrusted documents with Prompt Shields [S18] and every output must match a JSON schema.
- Fix the source, not the resource. Policy can remediate a resource in place [S19], but in an estate run from code the next deployment re-applies the template and the drift comes back. So Policy keeps remediating the resource, and the drift-triage agent drafts the fix to the IaC code behind it. Resource changes surface in minutes [S20] and Policy state events in up to twenty [S21], so the agent drafts on the fast path and merges only after Policy confirms.
- The governance layer is held to its own rules. Profiled like any other application, it lands in a confidential archetype, because a tampered decision log would give false assurance everywhere.
Testing the agents
Agents in audit scope are measured like any other control. Each has a golden set of fictional cases with known answers. Any change to its instructions, model or tools runs the set in CI, and the change merges only if the results stay within the agent's thresholds, with zero safety failures. Because Microsoft's AI Red Teaming Agent runs its agent scenarios single-turn and in English only [S23], the design adds a custom attack set: 24 injections, 16 in German, hidden in CMDB rows, questionnaires, exception justifications, resource tags and catalog entries. Live results are pending, so this article claims none.
5. Gaps, workarounds and when it does not pay
|
Gap |
Workaround |
|---|---|
|
Azure has no Grundschutz++ mapping [S9] |
A mapping in OSCAL, from which Azure Policy is generated |
|
Managed guardrails do not screen MCP tool responses [S17] |
Prompt Shields pre-scan; schema-validated outputs |
|
Agent red teaming is English-only [S23] |
A custom attack set, 16 of 24 injections in German |
|
Policy events are too slow to show a fix in one conversation [S21] |
Fast path from resource changes; merge only on Policy confirmation |
|
Situation |
Why it does not pay |
|---|---|
|
Few applications, rare exceptions |
The judge class is too small to repay an agent layer, its evaluation and its audit |
|
No machine-readable catalog |
Agents reason over prose and the mapping cannot be tested |
|
Classified data (in Germany, VS-NfD) |
Public cloud only as IaaS, after a case-by-case risk assessment [S24]: always a human decision |
|
No infrastructure-as-code discipline |
"Fix the source" needs a source; such estates get Policy remediation only |
|
Everything must be generally available |
Agent guardrails [S17] and the confidential sovereign initiative [S22] are in preview at the time of writing |
Under the EU AI Act, the risk class follows the use, not the technology. The high-risk uses it lists are decisions about people, such as hiring or access to public services, and safety components of products or critical infrastructure [S26]. Agents that draft assessments of cloud resources for a person to review are neither, so they are likely not high-risk. Where a use does qualify, the high-risk duties apply from 2027-12-02 [S25]. Either way, the design logs every decision and keeps a person in the loop.
Sources
Checked 2026-11-24 unless noted. Dates are page, post or commit dates.
|
# |
Fact |
Publisher, date |
URL |
|---|---|---|---|
|
S1 |
Grundschutz++ replaces the IT-Grundschutz compendium; certifiable from 2027-01-01 |
BSI, Oct 2026 |
https://www.bsi.bund.de/DE/Themen/Unternehmen-und-Organisationen/Standards-und-Zertifizierung/Grundschutz-in-der-Informationssicherheit/Grundschutz-Plus-Plus/grundschutz-plus-plus_node.html |
|
S2 |
Grundschutz++ as OSCAL, CC BY-SA 4.0, rolling updates; the kit pins commit dc44ea4f |
BSI (GitHub), repository created 2025-09-15; pinned commit 2026-11-23 | |
|
S3 |
C5:2026 applies from 2027-06-01 |
BSI, 2026-11-04 (v1.0.0: 2026-04-07) |
https://www.bsi.bund.de/SharedDocs/Downloads/EN/BSI/CloudComputing/ComplianceControlsCatalogue/2026/C5_2026.pdf |
|
S4 |
Federal bodies must obtain C5 evidence for external cloud services |
BSI, 2022-12-15 |
https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Mindeststandards/Mindeststandard_Nutzung_externer_Cloud-Dienste_Version_2_1.pdf |
|
S5 |
NIS2 implementation law in force; BSI standards binding on federal bodies |
BSI, 2025-12-05; § 44 BSIG |
https://www.bsi.bund.de/DE/Service-Navi/Presse/Pressemitteilungen/Presse2025/251205_NIS-2-Umsetzungsgesetz_in_Kraft.html; https://www.gesetze-im-internet.de/bsig_2025/__44.html |
|
S6 |
German public sector short of about 39,000 IT professionals |
McKinsey, 2023-01-25 |
https://www.mckinsey.com/de/news/presse/2023-01-25-it-talent-im-public-sector |
|
S7 |
Azure Policy effects: deny, modify, deployIfNotExists, audit |
Microsoft Learn, 2025-03-04 |
https://learn.microsoft.com/azure/governance/policy/concepts/effect-basics |
|
S8 |
OSCAL layers and models; the kit validates against v1.1.3 |
NIST, undated; v1.1.3 released 2024-11-26 |
https://pages.nist.gov/OSCAL/learn/concepts/layer/; https://github.com/usnistgov/OSCAL/releases/tag/v1.1.3 |
|
S9 |
No Grundschutz++, C5 or IT-Grundschutz built-in initiative in Azure Policy; the kit pins commit ef6a0f9a |
Microsoft (GitHub), 2026-11-23 | |
|
S10 |
No C5 standard in Defender for Cloud |
Microsoft Learn, 2026-06-17 |
https://learn.microsoft.com/azure/defender-for-cloud/concept-regulatory-compliance-standards |
|
S11 |
Sovereignty policy portfolios: national and framework sets, an EU-wide NIS2 set in preview, none for German frameworks |
Microsoft (GitHub), checked 2026-11-30 | |
|
S12 |
C5 template in Purview Compliance Manager |
Microsoft Learn, 2026-06-25 |
https://learn.microsoft.com/purview/compliance-manager-regulations-list |
|
S13 |
Azure Policy is free for Azure resources |
Microsoft, crawled 2026-11-23 |
https://azure.microsoft.com/pricing/details/azure-policy/ |
|
S14 |
Deploy to Azure button for remote templates |
Microsoft Learn, 2026-06-26 |
https://learn.microsoft.com/azure/azure-resource-manager/templates/deploy-to-azure-button |
|
S15 |
Policy exemptions: Waiver and Mitigated categories, expiry |
Microsoft Learn, 2026-08-04 |
https://learn.microsoft.com/azure/governance/policy/concepts/exemption-structure |
|
S16 |
Foundry hosted agents with Entra agent identity |
Microsoft Learn, undated |
https://learn.microsoft.com/azure/foundry/agents/concepts/hosted-agents |
|
S17 |
Agent guardrails in preview; tool-response screening for listed tools only, not MCP; no substitute for authorization or approval |
Microsoft Learn, undated |
https://learn.microsoft.com/azure/foundry/guardrails/guardrails-overview; https://learn.microsoft.com/azure/foundry/guardrails/intervention-points; https://learn.microsoft.com/azure/foundry/agents/concepts/hosted-agent-guardrails |
|
S18 |
Prompt Shields detect attacks in documents |
Microsoft Learn, 2026-09-08 |
https://learn.microsoft.com/azure/foundry/openai/concepts/content-filter-prompt-shields |
|
S19 |
Remediation tasks for modify and deployIfNotExists |
Microsoft Learn, 2025-03-04 |
https://learn.microsoft.com/azure/governance/policy/how-to/remediate-resources |
|
S20 |
Resource Graph change details in under five minutes |
Microsoft Learn, 2026-04-03 |
https://learn.microsoft.com/azure/governance/resource-graph/how-to/get-resource-changes |
|
S21 |
Policy state-change events, up to 20 minutes |
Microsoft Learn, 2025-12-01 |
https://learn.microsoft.com/azure/governance/policy/concepts/event-overview |
|
S22 |
Sovereign Landing Zone confidential initiative version is preview |
Microsoft, Azure Landing Zones Library, 2026-04-24 |
https://github.com/Azure/Azure-Landing-Zones-Library/blob/main/platform/slz/policy_assignments/Enforce-Sov-L3-Conf.alz_policy_assignment.json |
|
S23 |
AI Red Teaming Agent: agent scenarios are single-turn, English-only |
Microsoft Learn, 2026-08-19 |
https://learn.microsoft.com/azure/foundry/concepts/ai-red-teaming-agent |
|
S24 |
VS-NfD in public cloud only as IaaS, with release and risk assessment |
BSI, 2026-01-14 |
https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Geheimschutz/Leitfaden_Cloud-Loesungen_Bundesverwaltung.html |
|
S25 |
EU AI Act high-risk duties from 2027-12-02 |
EU, Regulation (EU) 2026/1744, 2026-07-24 |
https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=OJ:L_202601744 |
|
S26 |
EU AI Act Annex III: high-risk uses (biometrics, critical infrastructure, education, employment, essential services, law enforcement, migration, justice) |
EU, Regulation (EU) 2024/1689, 2024-07-12 |
https://eur-lex.europa.eu/eli/reg/2024/1689/oj |
About this article. The ministry is fictional, and no customer data is used. The kit redistributes BSI control texts under CC BY-SA 4.0 and cites C5:2026 by criterion ID only. It is not a compliance or auditing tool, nor an official BSI or Microsoft product, and using it is not an attestation of compliance. AI assistance was used in drafting. The claims, the classification and the evidence are the author's.
Updated Nov 30, 2026
Version 1.0abigi
Microsoft
Joined March 12, 2026
Azure Architecture Blog
Follow this blog board to get notified when there's new activity