Autonomous AI compresses vulnerability discovery and exploitation to machine speed. This reference architecture shows how to build governed, agentic defense with Microsoft security and Azure.
Attackers do not need a new vulnerability to change the economics of cyber defense. They can use AI agents to compare patches, identify likely weaknesses, generate candidate exploits, test them, and repeat the loop at machine speed. A recent NDTV report highlighted Google Threat Intelligence Group’s (GTIG) November 2026 finding that threat actors were using large language model (LLM) frameworks to automate vulnerability discovery and exploitation without a human in the loop [1][2]. GTIG also identified an important limitation: many autonomous offensive frameworks currently trade stealth for velocity, producing forensic traffic and recognizable traces [1].
That combination changes the defender’s job. The patch window gets shorter, alert volume rises, and an incident can move from reconnaissance to impact before a manual queue catches up. But speed is not the same as invincibility. Noisy automation creates behavior that defenders can correlate, prioritize, and contain — if the defensive system is designed to reason and act safely at the same tempo.
This article proposes an Autonomous Cyber Defense Framework (ACDF): a conceptual, human-governed architecture that combines Microsoft Sentinel, Microsoft Defender XDR, Microsoft Security Copilot, Microsoft Entra, Azure-native automation, and optional custom agents built with Microsoft Foundry Agent Service. ACDF is not a Microsoft product or an official Microsoft framework. It is a reference pattern for deciding where autonomy helps, where deterministic policy must take control, and where a human must approve the next step.
Key takeaways
- Use agents to accelerate investigation and recommendation, not to grant open-ended production authority.
- Keep authorization and high-impact decisions outside the language model.
- Separate read, reason, decide, and act into independently governed stages.
- Start with simulated telemetry and measure both security value and unsafe-action risk.
Why autonomous attacks require a different control loop
Traditional security operations often follow a human-paced sequence: collect an alert, enrich it, assign it, investigate it, decide on containment, and execute a playbook. An autonomous attacker can run an Observe-Orient-Decide-Act loop continuously across many targets. It can branch, retry, and adapt based on tool output.
The underlying techniques are often familiar: stolen credentials, exposed services, unpatched software, weak authorization, and lateral movement. The change is operational compression. GTIG describes automated patch-differential analysis and n-day exploitation pipelines that reduce the time between disclosure and weaponization. It also cautions that AI-generated exploit claims can fail, creating extra verification work for defenders [1].
A useful defensive response is therefore not “let an AI fight an AI.” It is a faster, evidence-driven control loop:
- Observe: collect endpoint, identity, cloud, network, application, and threat-intelligence signals.
- Orient: correlate events into an incident and establish asset, identity, and business context.
- Decide: score risk through deterministic policy, supported by agent-generated analysis and evidence.
- Act: execute only an allowlisted, least-privileged response appropriate to the risk tier.
- Learn: record the decision, approval, action, outcome, and analyst feedback for evaluation.
The architecture must assume that telemetry, retrieved documents, emails, web content, and even messages from another agent can be hostile. A prompt injection hidden inside a log field should never become an instruction to isolate a device or disable an identity.
ACDF: a governed autonomous-defense architecture
Figure 1. Proposed ACDF reference architecture. AI can enrich and recommend, while a deterministic policy decision point and human approval gates control consequential actions.
1. Signal and context plane
The first layer collects normalized security signals. Microsoft Defender XDR can contribute cross-domain endpoint, identity, email, application, and cloud-app evidence. Microsoft Sentinel can add broader SIEM data, analytics, incidents, and threat hunting. Microsoft Defender for Cloud can contribute cloud workload posture and alerts; Microsoft Entra supplies identity and access context; Azure Monitor and application telemetry add service-level evidence.
Coverage matters more than model sophistication. Missing identity logs, stale asset ownership, or incomplete endpoint onboarding can cause a sophisticated agent to produce a precise answer to the wrong question. Before adding agents, validate data freshness, retention, entity mapping, and the ownership of critical assets.
2. Correlation and detection plane
Use native detections, behavioral analytics, advanced hunting, and incident correlation to reduce raw events into evidence-backed cases. Microsoft Sentinel data can be used with Security Copilot, and unified incidents in the Microsoft Defender portal can bring Sentinel and Defender XDR context together [3][10]. The Microsoft Sentinel and natural-language-to-KQL plugins described in the Security Copilot integration documentation are in preview, and not all Microsoft Sentinel tables are supported. Advanced hunting with Microsoft Sentinel data also has documented limitations, so generated queries and coverage must be validated before operational use [3][10].
This layer should retain deterministic detections for conditions that must be explainable and repeatable. Agents can propose hunts, summarize evidence, and identify gaps, but a model output is not itself a detection verdict.
3. Agentic analysis plane
Use the most managed capability that fits the task. Microsoft Security Copilot and its agents in Microsoft Defender support security workflows such as alert triage, threat intelligence, hunting, and risk analysis [4][5]. Check the current product documentation before deployment: the broader Security Alert Triage Agent coverage includes preview capabilities, and the Security Analyst Agent documentation contains a prerelease notice. For a custom scenario that is not covered by an existing security agent, Microsoft Foundry Agent Service can provide Microsoft Entra identity, managed tools and toolboxes, tracing, and evaluation capabilities [6].
A practical separation of duties is:
- Intelligence agent: summarizes public advisories and maps them to the organization’s technology inventory.
- Investigation agent: gathers read-only evidence for an incident and identifies competing hypotheses.
- Risk agent: proposes a score with citations to the evidence it used.
- Response planner: selects only from an allowlisted catalog of playbooks and explains prerequisites.
These agents should not share a single broad identity. Give each agent the minimum data scope and tools it needs. Treat every inter-agent message as untrusted input and preserve provenance.
4. Policy decision point
The policy decision point is deliberately outside the LLM. It combines stable facts — incident severity, asset criticality, identity privilege, confidence, blast radius, action reversibility, change window, and regulatory constraints — into an action tier.
A simple policy can be expressed as four levels:
| Tier | Example outcome | Execution rule |
|---|---|---|
| 0 - Observe | Add context, open an incident, notify an analyst | May run automatically |
| 1 - Low-impact | Increase logging, collect a diagnostic package, add a temporary tag | Automatic only when allowlisted and reversible |
| 2 - Contain | Isolate one endpoint, revoke one session, block one indicator temporarily | Named analyst approval; consider two-person approval for privileged assets |
| 3 - High-impact | Disable a privileged identity, remove production access, modify a firewall broadly, delete data | No autonomous execution; follow incident command and change-control procedures |
Risk thresholds must be versioned configuration, not prompt text. The policy engine should fail closed when evidence is missing, conflicting, stale, or outside the evaluated operating range.
5. Controlled action plane
Microsoft Sentinel automation rules and playbooks based on Azure Logic Apps can provide a governed response mechanism [7]. Each playbook should have a narrow purpose, a managed identity or other approved authentication method, an explicit resource scope, a timeout, an idempotency key, a rollback path, and structured audit output.
The agent does not receive a generic “run command” tool. It can request collect_diagnostics, temporarily_block_indicator, or isolate_single_device, each with a typed schema and preconditions. The policy service reauthorizes every action at execution time. This helps reduce confused-deputy risk and prevents an old approval from being reused against a different resource.
6. Evidence, observability, and learning plane
Store a tamper-evident decision record containing the incident ID, evidence references, model and prompt version, policy version, tool request, approver, action result, rollback state, and analyst feedback. Foundry Agent Service supports tracing and evaluation for custom agents [6]; native Microsoft security experiences provide their own evidence and activity views.
Do not train directly on every analyst click. A rushed approval, a false positive, or attacker-poisoned telemetry can become a persistent failure pattern. Curate feedback, separate evaluation data from production memory, and require review before changing prompts, policies, or action permissions.
Guardrails that matter more than the model
The most important controls are architectural:
- Separate read from write. Investigation agents should be read-only. A distinct action service performs mutations after policy evaluation.
- Authorize every action. Recheck user, agent, resource, purpose, and policy at execution time — not only when a session starts.
- Use least privilege and just-in-time access. Use Microsoft Entra role-based access controls and Privileged Identity Management where applicable. Avoid standing administrative credentials.
- Allowlist tools and parameters. Block arbitrary shell, browser, query, or code execution in the response path unless it is isolated and explicitly required.
- Require approval for consequence. Human approval is mandatory for high-impact, irreversible, externally visible, privacy-sensitive, or legally significant actions.
- Limit blast radius. Set maximum affected identities, devices, subscriptions, duration, calls, tokens, and cost per run.
- Treat context as data, not instructions. Sanitize untrusted fields, isolate system instructions, and do not let retrieved content redefine the agent’s policy.
- Design for rollback. Temporary blocks should expire; device isolation should have a tested release path; repeated requests should be idempotent.
- Log enough to reconstruct the decision. Capture evidence and rationale without copying unnecessary secrets or personal data into prompts or long-lived memory.
- Provide a kill switch. Security operations must be able to suspend an agent, revoke its identity, and disable playbooks independently.
These controls align with Microsoft’s AI agent shared responsibility guidance: customers remain accountable for data, identity, authorization, human oversight, and governance, even when using a managed agent platform [8]. OWASP guidance similarly emphasizes least privilege, human approval for high-impact actions, input validation, memory protection, logging, and emergency shutdown [14].
Safe proof of concept: score simulated telemetry and request approval
The following Python example is intentionally benign. It does not scan systems, generate exploits, or invoke a live security API. It scores synthetic observations, selects a recommendation from an allowlist, and emits an approval request. Use it to test the control boundary before connecting any production data.
from __future__ import annotations
from dataclasses import asdict, dataclass
from typing import Literal
import json
import re
import uuid
Action = Literal[
"no_action",
"observe",
"collect_diagnostics",
"isolate_single_device",
]
Status = Literal["evaluated", "rejected"]
POLICY_VERSION = "acdf-lab-v1"
@dataclass(frozen=True)
class SyntheticObservation:
incident_id: str
device_id: str
failed_signins_10m: int
privileged_identity: bool
unusual_process: bool
outbound_spike: bool
asset_criticality: int # 1=low, 2=medium, 3=high
@dataclass(frozen=True)
class Decision:
decision_id: str
policy_version: str
status: Status
score: int | None
recommendation: Action
requires_action_approval: bool
requires_human_review: bool
evidence: tuple[str, ...]
validation_errors: tuple[str, ...]
def validate(obs: SyntheticObservation) -> tuple[str, ...]:
"""Reject malformed or out-of-scope inputs before scoring."""
errors: list[str] = []
if not re.fullmatch(r"SIM-[0-9]{4,8}", obs.incident_id):
errors.append("incident_id must be a synthetic SIM identifier")
if not re.fullmatch(r"LAB-DEVICE-[0-9]{2,4}", obs.device_id):
errors.append("device_id must identify an approved lab device")
if type(obs.failed_signins_10m) is not int or not 0 <= obs.failed_signins_10m <= 10_000:
errors.append("failed_signins_10m must be an integer from 0 to 10000")
if type(obs.privileged_identity) is not bool:
errors.append("privileged_identity must be boolean")
if type(obs.unusual_process) is not bool:
errors.append("unusual_process must be boolean")
if type(obs.outbound_spike) is not bool:
errors.append("outbound_spike must be boolean")
if type(obs.asset_criticality) is not int or obs.asset_criticality not in {1, 2, 3}:
errors.append("asset_criticality must be 1, 2, or 3")
return tuple(errors)
def evaluate(obs: SyntheticObservation) -> Decision:
errors = validate(obs)
if errors:
# Fail closed: reject the record and propose no action.
return Decision(
decision_id=str(uuid.uuid4()),
policy_version=POLICY_VERSION,
status="rejected",
score=None,
recommendation="no_action",
requires_action_approval=False,
requires_human_review=True,
evidence=(),
validation_errors=errors,
)
score = 0
evidence: list[str] = []
if obs.failed_signins_10m >= 20:
score += 20
evidence.append("failed_signins_10m>=20")
if obs.privileged_identity:
score += 25
evidence.append("privileged_identity")
if obs.unusual_process:
score += 25
evidence.append("unusual_process")
if obs.outbound_spike:
score += 20
evidence.append("outbound_spike")
score += {1: 0, 2: 5, 3: 10}[obs.asset_criticality]
if score >= 70:
action: Action = "isolate_single_device"
elif score >= 35:
action = "collect_diagnostics"
else:
action = "observe"
consequential = action == "isolate_single_device"
return Decision(
decision_id=str(uuid.uuid4()),
policy_version=POLICY_VERSION,
status="evaluated",
score=score,
recommendation=action,
requires_action_approval=consequential,
requires_human_review=consequential,
evidence=tuple(evidence),
validation_errors=(),
)
sample = SyntheticObservation(
incident_id="SIM-0042",
device_id="LAB-DEVICE-07",
failed_signins_10m=24,
privileged_identity=False,
unusual_process=True,
outbound_spike=True,
asset_criticality=2,
)
invalid_sample = SyntheticObservation(
incident_id="PROD-0042", # Rejected: outside this synthetic lab scope.
device_id="SERVER-01",
failed_signins_10m=-1,
privileged_identity=False,
unusual_process=False,
outbound_spike=False,
asset_criticality=9,
)
valid_decision = evaluate(sample)
rejected_decision = evaluate(invalid_sample)
assert valid_decision.recommendation == "isolate_single_device"
assert valid_decision.requires_action_approval is True
assert rejected_decision.status == "rejected"
assert rejected_decision.recommendation == "no_action"
print(json.dumps(asdict(valid_decision), indent=2))
print(json.dumps(asdict(rejected_decision), indent=2))
The key design choice is not the score. It is the boundary: the program creates a recommendation and evidence record, but it has no credential and no function that can isolate a device. Malformed or out-of-scope input is rejected with no_action and routed for review. A separate approval and action service would validate the request again, re-check current policy and authorization, bind the approval to the exact action and lab resource, enforce an expiry, and then invoke a narrowly scoped playbook.
To extend the lab safely:
- Replace the single sample with version-controlled synthetic JSON Lines files.
- Add unit tests for thresholds, missing fields, duplicate requests, expired approvals, and rollback.
- Mock the playbook endpoint; return deterministic success, failure, timeout, and partial-completion responses.
- Add a read-only agent that explains the deterministic decision, then test whether hostile text inside a telemetry field can alter the proposed action.
- Never use real customer data, production credentials, malware, exploit code, or internet scanning in the experiment.
Evaluate the system without inventing success
Do not claim that an agent “reduces response time” or “improves accuracy” until the system has been evaluated against a documented baseline. A reproducible evaluation can compare three modes on the same labeled, synthetic scenario set:
- Rules only: deterministic scoring and static playbook selection.
- Agent assisted: an agent enriches and explains; policy still decides.
- Agent plus governed action: low-risk actions can run; consequential actions require approval.
Record the dataset version, scenario families, label owner, product configuration, model version, prompts, policy version, run count, and randomization settings. Measure:
| Metric | Definition |
|---|---|
| Detection precision and recall | Correct suspicious classifications relative to the labeled set |
| Alert-to-decision latency | Time from final synthetic event to a complete recommendation |
| Unsafe-action proposal rate | Proposals that violate the action policy divided by all proposals |
| Approval override rate | Approved recommendations that analysts change or reject |
| Evidence completeness | Required evidence fields present and traceable to source records |
| Idempotency pass rate | Repeated requests produce no duplicate side effect |
| Rollback success rate | Reversible actions restored within the test objective |
| Cost per evaluated incident | Model, compute, and automation cost for each completed case |
Define gates before running the test. For example, any Tier 3 autonomous action, cross-tenant data exposure, policy bypass, or unlogged tool call should fail the release. Report confidence intervals or raw counts, not only percentages, and publish negative cases. An agent that is faster but proposes unsafe containment is not an improvement.
Operational rollout: earn autonomy in stages
A production journey should expand authority only after evidence supports it:
- Shadow: the agent reads copied or synthetic data and produces recommendations that no one acts on.
- Assist: analysts can inspect evidence and manually launch existing playbooks.
- Approve: the system creates a typed action request; an authorized analyst approves it.
- Bounded autonomy: only reversible Tier 0 or Tier 1 actions run automatically within strict scope and volume limits.
- Continuous assurance: red-team prompt injection, poisoned telemetry, permission drift, model changes, tool failures, and rollback every release cycle.
Keep emergency response outside the experimental agent path. If the agent is unavailable or produces conflicting evidence, analysts must retain access to the native Microsoft Defender and Microsoft Sentinel workflows.
Limitations and design boundaries
ACDF does not eliminate cyber risk, replace patch management, or guarantee containment. Its effectiveness depends on telemetry quality, identity hygiene, asset context, well-tested playbooks, supported product capabilities, licensing, region, and operational maturity. Some Microsoft security agent capabilities and Security Copilot integrations are in preview and can change. Not all Microsoft Sentinel tables are supported in every Copilot or advanced-hunting path. Verify current documentation, permissions, query behavior, licensing, regional availability, and support boundaries before production use [3][4][5][10].
Language models can hallucinate, overgeneralize, follow malicious instructions embedded in context, or vary between runs. Deterministic policy reduces these risks but cannot compensate for incorrect labels, missing logs, compromised administrators, or an overly permissive action catalog. Legal, privacy, employee-monitoring, customer-contract, and regulatory obligations may also restrict what data an agent can process and which actions it may recommend or execute.
Finally, autonomous defense should not become a reason to normalize autonomous disruption. The objective is controlled speed: faster evidence gathering, better prioritization, and narrowly governed response with clear accountability.
Start with one bounded control loop
Choose one high-volume, low-consequence security workflow. Build a synthetic scenario set, define an allowlisted action catalog, and separate the agent from the policy and action services. Connect read-only evidence first. Then run the evaluation until you can explain every decision, reproduce every result, and roll back every permitted action.
If you already use Microsoft Defender XDR and Microsoft Sentinel, start by exploring their unified incidents, advanced hunting, Security Copilot integration, and documented agents. Treat preview capabilities and generated queries as inputs for validation, not as automatic authority. Use Microsoft Foundry Agent Service only when a custom agent is justified, and keep the action boundary outside the model.
Autonomous attackers compress time. Defenders can respond by compressing analysis — without compressing governance.
References
- Google Threat Intelligence Group, GTIG AI Threat Tracker: Agentic Threat Activity Crosses a Significant Threshold, November 16, 2026.
- NDTV, Google Warns 'Era Of Autonomous AI Attacks Has Arrived', November 18, 2026.
- Microsoft Learn, Security Copilot with Microsoft Sentinel.
- Microsoft Learn, Deploy AI agents in Microsoft Defender.
- Microsoft Learn, Microsoft Security Copilot Security Analyst Agent overview.
- Microsoft Learn, Agents in Microsoft Foundry.
- Microsoft Learn, Azure Logic Apps for Microsoft Sentinel playbooks.
- Microsoft Learn, AI agent shared responsibility model.
- Microsoft Learn, What is Privileged Identity Management?.
- Microsoft Learn, Advanced hunting with Microsoft Sentinel data in Microsoft Defender.
- NIST, Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, NIST AI 600-1.
- NIST, The NIST Cybersecurity Framework (CSF) 2.0.
- MITRE, ATLAS: Adversarial Threat Landscape for Artificial-Intelligence Systems.
- OWASP Cheat Sheet Series, AI Agent Security Cheat Sheet.
Published Nov 18, 2026
Version 1.0PavanKalyanChilakalapalli
Microsoft
Joined July 01, 2026
Microsoft Foundry Blog
Follow this blog board to get notified when there's new activity