Hunting Java4Shell (CVE-2026-114938) in Microsoft Defender and Sentinel

Threat hunting briefing — Microsoft Defender and Sentinel

Hunting Java4Shell (CVE-2026-114938) in Microsoft Defender and Sentinel

The exploit leaves no process, file or thread event. Here is what you can still see, and how to hunt it.

Hunting flow: inventory, filter, rank, detect, mitigate
01

TL;DR

Java4Shell (CVE-2026-114938) is a reported memory-corruption flaw in the JDK's hardware-accelerated Base64 decoder, and the exploit itself leaves no process, file or thread event for your EDR to see. You can still scope your exposure and catch the indirect traces with Defender for Endpoint telemetry in Microsoft Sentinel. Public reporting is thin: as of 18 November 2026 the CVE record is reserved, no exploitation or public proof of concept is reported, and vendors have not confirmed the details.

The approach in five steps:

  1. Find every Java runtime by path and version from 30 days of process events.
  2. Keep the versions in the reported range: 17.0.6 and later, 21, 25 and 27. Java 8 and 11 appear in no report.
  3. Rank hosts by exposure, but never exclude internal ones, because an attacker who has landed elsewhere can reach any internal listener.
  4. Detect what is visible: a burst of inbound connections followed by a JVM crash, new shells spawned by Java, and new outbound destinations.
  5. Apply the vendor update, or the interim JVM flag, and verify it took effect.
02

What is known, and what is not

Treat everything below as reported, not confirmed, until the OpenJDK project and the researchers publish their full write-ups.

TopicWhat is reportedConfidence
BugA heap out-of-bounds write in the x86-64 AVX-512 Base64 decoding intrinsic. Malformed padding makes the computed output length wrong, and the decoder writes 64 bytes where 2 are expected, 62 bytes past the end of the array.Researcher analysis, not vendor confirmed
What the attacker controlsTiming and location of the write. The overwritten bytes are a fixed pattern.Researcher analysis
TriggerBase64 decoded before validation: HTTP Basic credentials, JWT headers and payloads, and similar fields. The decoder must be JIT-compiled first, about 10,000 decodes in one reported test.Researcher analysis
CPU conditionx86-64 with AVX-512 VBMI (Intel Ice Lake and later, AMD Zen 4 and later). ARM and older Intel run a different path.Researcher analysis
VersionsJava 17.0.6 and later, 21, 25 and 27. Java 8 and 11 appear in no report. Reports on 21 and later vary in confidence.The 17.0.6 boundary matches the OpenJDK tracker, where the AVX-512 decoder was backported to 17 in 17.0.6
Code executionNot proven. It would need precise heap shaping.Unproven
ExploitationNone reported, no public proof of concept, not in CISA KEV as of 18 November 2026.Reported
FixesOracle shipped new builds on 17 November (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1, 11.0.33.1, 8u513) but has not said which of its fixes covers this CVE. Other distributions had not published fixed builds at time of writing.Check your vendor's advisory

The practical read: a reliable crash is plausible, remote code execution is unproven, and the exposure is wide because the flaw is in the runtime, not a library. Dependency scanners that read application packages will not see it. Look for the runtime itself.

03

What endpoint telemetry can and cannot see

The overwrite happens inside the JVM's own memory, as part of a normal in-process operation. The operating system sees no new process, no file write and no network connection tied to the corruption itself, so there is nothing for Defender to record at that step.

Two things people often ask:

  • Will the command line show the request? No. A process command line is fixed when the process starts. A header that arrives later over the network is handled in memory and never written back into it. Command lines help in two other places: a child process the JVM spawns, and proof that a mitigation flag is set.
  • Can I find the 62 bytes? No. That figure is how far the overwrite runs past the buffer inside the heap. It is not the size of the request, and the attacker does not control its content. The request itself is a short malformed Base64 token in an HTTP header, visible only in proxy, WAF or application logs.

So the hunt targets the indirect traces: who accepts inbound connections, connection bursts, JVM crashes and restarts, and what the JVM does afterwards.

What Defender records around the exploit versus the exploit itself

Figure 1. Defender records the stages around the exploit, not the exploit itself.

04

Steps 1 to 3: find, filter and rank the exposure

The sample results below come from a mid-sized Windows-heavy environment. Hostnames, domains, usernames and application names that could identify it are removed, and roles are generalized.

Step 1: inventory every Java runtime

Start with process events, not the vulnerability-management inventory. Inventory tools miss runtimes bundled inside applications, while a running binary always shows its own path. Use 30 days, because a long-running service logs a process start only when it launches.

DeviceProcessEvents
| where Timestamp > ago(30d) and FileName in~ ('java.exe','javaw.exe')
| summarize runs=count(), LastSeen=max(Timestamp)
    by DeviceName, FolderPath, ProcessVersionInfoCompanyName, ProcessVersionInfoProductVersion
| sort by ProcessVersionInfoProductVersion desc

ProcessVersionInfoProductVersion reads the version from the binary's own metadata, so you get the exact runtime without trusting a folder name. Remember that java.exe is the launcher name for every OpenJDK vendor (Temurin, Corretto, Zulu, Oracle and others), so the filename tells you nothing about vendor or version. Applications that wrap their own runtime may run under another name. Find those by the module they load:

DeviceImageLoadEvents
| where Timestamp > ago(1d) and FileName =~ 'jvm.dll'
| summarize by DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FolderPath

Step 2: keep only the reported range

DeviceProcessEvents
| where Timestamp > ago(30d) and FileName in~ ('java.exe','javaw.exe')
| extend maj = toint(split(ProcessVersionInfoProductVersion,'.')[0]),
         upd = toint(split(ProcessVersionInfoProductVersion,'.')[2])
| where maj in (21,25,27) or (maj == 17 and upd >= 6)
| summarize runs=count() by DeviceName, FolderPath, ProcessVersionInfoCompanyName, ProcessVersionInfoProductVersion

One trap: Corretto uses four-part versions such as 21.0.12.1, where the last digit is its own build number. Do not read it as a patched build.

Redacted Java inventory from the sample environment

Figure 2. Redacted inventory from the sample environment. Six of ten host groups are in the reported range.

In this sample, the in-range hosts were a single-sign-on server, four bundled runtimes inside an IT service management integration agent, and a handful of test, CI and developer-tool installs. Java 8, 11 and a legacy Java 6 install were out of range.

Step 3: rank by exposure, but exclude nobody

Ask which in-range JVMs accept inbound connections, since the reported trigger arrives over the network.

let inRange = DeviceProcessEvents
    | where Timestamp > ago(30d)
    | where FileName in~ ('java.exe','javaw.exe')
    | extend maj = toint(split(ProcessVersionInfoProductVersion,'.')[0]),
             upd = toint(split(ProcessVersionInfoProductVersion,'.')[2])
    | where maj in (21,25,27) or (maj == 17 and upd >= 6)
    | distinct DeviceName, ProcessVersionInfoProductVersion, InitiatingProcessFolderPath = tolower(FolderPath);
DeviceNetworkEvents
| where Timestamp > ago(30d)
| where ActionType in ('ListeningConnectionCreated','InboundConnectionAccepted')
| where InitiatingProcessFileName in~ ('java.exe','javaw.exe')
| extend InitiatingProcessFolderPath = tolower(InitiatingProcessFolderPath)
| join kind=inner inRange on DeviceName, InitiatingProcessFolderPath
| summarize conns=count(), ports=make_set(LocalPort,10), remotes=dcount(RemoteIP)
    by DeviceName, ProcessVersionInfoProductVersion, InitiatingProcessFolderPath

In the sample, only the single-sign-on server appeared, with one service port and three distinct client addresses. That is the host to patch first, because identity services decode Basic credentials and tokens before they trust a request.

Two cautions. Absence from this result means "not observed", not "not listening", because Defender does not capture every listener. And internal hosts are not safe by default: an attacker who has already landed on one machine can reach any internal listener. Use exposure to order the work, never to exclude a host.

To see which in-range services accept connections from public addresses, patch these first:

DeviceNetworkEvents
| where Timestamp > ago(14d)
| where ActionType == 'InboundConnectionAccepted'
| where InitiatingProcessFileName in~ ('java','java.exe','javaw.exe')
| where RemoteIPType == 'Public'
| summarize Connections=count(), Sources=dcount(RemoteIP), Ports=make_set(LocalPort, 20), LastSeen=max(Timestamp)
    by DeviceName, InitiatingProcessFolderPath
| order by Sources desc
05

Step 4: three detections you can run today

These are starting points. Run each in the Logs blade first, baseline your own environment, then promote the useful ones to scheduled analytics rules.

Detection 1: connection burst followed by a JVM crash

The reported flaw only triggers after the decoder has been JIT-compiled, which took roughly 10,000 decodes in one test. An attacker probing a service would therefore likely send a high-volume burst from one source, then the JVM would crash. This rule looks for that sequence on in-range hosts.

Burst-then-crash correlation logic

Figure 3. The correlation: a burst from one source, then a crash signal on the same host within 30 minutes.

let lookback = 1h;
let burstThreshold = 500;   // placeholder: tune against your baseline
let inRange = DeviceProcessEvents
    | where Timestamp > ago(30d)
    | where FileName in~ ('java.exe','javaw.exe')
    | extend maj = toint(split(ProcessVersionInfoProductVersion,'.')[0]),
             upd = toint(split(ProcessVersionInfoProductVersion,'.')[2])
    | where maj in (21,25,27) or (maj == 17 and upd >= 6)
    | summarize JavaVersion = take_any(ProcessVersionInfoProductVersion)
        by DeviceId, InitiatingProcessFolderPath = tolower(FolderPath);
let bursts = DeviceNetworkEvents
    | where Timestamp > ago(lookback)
    | where ActionType == 'InboundConnectionAccepted'
    | where InitiatingProcessFileName in~ ('java.exe','javaw.exe')
    | extend InitiatingProcessFolderPath = tolower(InitiatingProcessFolderPath)
    | summarize Conns = count(), BurstStart = min(Timestamp), BurstEnd = max(Timestamp)
        by DeviceId, DeviceName, LocalPort, RemoteIP, InitiatingProcessFolderPath, bin(Timestamp, 5m)
    | where Conns >= burstThreshold;
let crashFiles = DeviceFileEvents
    | where Timestamp > ago(lookback + 30m)
    | where ActionType == 'FileCreated' and FileName startswith 'hs_err_pid' and FileName endswith '.log'
    | project DeviceId, CrashTime = Timestamp, CrashSignal = 'hs_err file', CrashDetail = FolderPath;
let restarts = DeviceProcessEvents
    | where Timestamp > ago(lookback + 30m)
    | where FileName in~ ('java.exe','javaw.exe')
    | where not(ProcessCommandLine has_any ('-version','-fullversion'))
    | summarize Starts = count(), CrashTime = max(Timestamp) by DeviceId, ProcessCommandLine, bin(Timestamp, 10m)
    | where Starts >= 3
    | project DeviceId, CrashTime, CrashSignal = 'restart burst', CrashDetail = ProcessCommandLine;
let crashes = union crashFiles, restarts;
bursts
| join kind=inner inRange on DeviceId, InitiatingProcessFolderPath
| join kind=inner crashes on DeviceId
| where CrashTime between (BurstStart .. (BurstEnd + 30m))
| project TimeGenerated = CrashTime, DeviceName, DeviceId, SourceIP = RemoteIP, TargetPort = LocalPort,
          Conns, JavaVersion, JavaPath = InitiatingProcessFolderPath, CrashSignal, CrashDetail

Three lessons from running it:

  • The 500 threshold is a placeholder. HTTP keep-alive reuses connections, so a real burst can show as far fewer connection events than requests. Baseline each service first.
  • Some agents run java -version hundreds of times a day as health probes. Without the -version exclusion, the restart signal floods.
  • Map the source address as an IP entity in the analytics rule, so an alert points you at the machine the traffic came from, not only the victim.

Detection 2: shell-spawn drift

A Java process that suddenly starts a shell is worth a look, but build tools, schedulers and integration agents do this legitimately all day. Hardcoding exclusions for each product is brittle and blinds you on exactly the hosts that matter. Instead, learn what each Java process normally spawns on each host, and alert on anything new.

The query normalizes command lines (GUIDs and numbers become placeholders, so cloneScript6397.ps1 and cloneScript1504.ps1 are the same pattern), builds a baseline from patterns seen on at least three different days, and flags last-hour activity that is not in it.

let lookback = 1h;
let minDays = 3;
let shells = dynamic(['cmd.exe','powershell.exe','pwsh.exe','sh','bash','curl.exe','certutil.exe','bitsadmin.exe','wmic.exe']);
let inRange = DeviceProcessEvents
    | where Timestamp > ago(30d)
    | where FileName in~ ('java.exe','javaw.exe')
    | extend maj = toint(split(ProcessVersionInfoProductVersion,'.')[0]),
             upd = toint(split(ProcessVersionInfoProductVersion,'.')[2])
    | where maj in (21,25,27) or (maj == 17 and upd >= 6)
    | summarize JavaVersion = take_any(ProcessVersionInfoProductVersion)
        by DeviceId, ParentPath = tolower(FolderPath);
let javaChildren = materialize(
    DeviceProcessEvents
    | where Timestamp > ago(30d)
    | where InitiatingProcessFileName in~ ('java.exe','javaw.exe')
    | where FileName in~ (shells)
    | extend ParentPath = tolower(InitiatingProcessFolderPath),
             Child = tolower(FileName),
             NormCmd = replace_regex(
                 replace_regex(tolower(ProcessCommandLine),
                     '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}', '<guid>'),
                 '[0-9]+', '<n>')
);
let baseline = javaChildren
    | where Timestamp < ago(lookback)
    | summarize DaysSeen = dcount(bin(Timestamp, 1d)), BaselineCount = count()
        by DeviceId, ParentPath, Child, NormCmd
    | where DaysSeen >= minDays;
let hostBaseline = baseline | summarize HostBaselineRows = sum(BaselineCount) by DeviceId;
javaChildren
| where Timestamp >= ago(lookback)
| join kind=inner inRange on DeviceId, ParentPath
| join kind=leftanti baseline on DeviceId, ParentPath, Child, NormCmd
| join kind=leftouter hostBaseline on DeviceId
| extend DriftType = iff(isnull(HostBaselineRows), 'NoBaselineForHost', 'NewParentChildPattern')
| project TimeGenerated = Timestamp, DeviceName, DriftType, JavaVersion, ParentPath,
          InitiatingProcessCommandLine, FileName, ProcessCommandLine

Caveats worth knowing before you rely on it:

  • Sentinel scheduled rules cap how far back they can read (14 days when I last checked), so a 30-day baseline may be truncated. Use a 14-day baseline, or store the baseline in a summary rule or watchlist.
  • An attacker who repeats the same command on three or more days becomes normal. Review the baseline periodically.
  • Some agents feed PowerShell commands over stdin, so the command line shows only the interpreter, not the commands. Treat those hosts as lower confidence for this rule.

Detection 3: new outbound destinations

A compromised JVM may call out somewhere new. This flags public destinations contacted this week but not in the previous 30 days. Expect noise from services that call cloud APIs, so scope it to the in-range hosts once you have the list.

let Baseline = DeviceNetworkEvents
    | where Timestamp between (ago(37d) .. ago(7d))
    | where InitiatingProcessFileName in~ ('java','java.exe','javaw.exe')
    | where ActionType == 'ConnectionSuccess' and RemoteIPType == 'Public'
    | distinct DeviceName, RemoteIP;
DeviceNetworkEvents
| where Timestamp > ago(7d)
| where InitiatingProcessFileName in~ ('java','java.exe','javaw.exe')
| where ActionType == 'ConnectionSuccess' and RemoteIPType == 'Public'
| join kind=leftanti Baseline on DeviceName, RemoteIP
| summarize Connections=count(), FirstSeen=min(Timestamp), Ports=make_set(RemotePort, 10)
    by DeviceName, RemoteIP, RemoteUrl, InitiatingProcessFolderPath
| order by FirstSeen desc
06

Triage: when a detection fires

  1. Note the source IP, target host, port and time window from the alert.
  2. Find the source machine. A connection source is often an internal host, and that is where the investigation should widen.
    DeviceNetworkInfo
    | where Timestamp > ago(7d) and IPAddresses has '<source ip>'
    | summarize arg_max(Timestamp, *) by DeviceName
  3. Look at what the source host was doing around the burst: scanning tools, new accounts, remote logons, unusual child processes of its own.
    DeviceProcessEvents
    | where DeviceName =~ '<source host>'
    | where Timestamp between (datetime('<burst start>') - 1h .. datetime('<burst end>') + 1h)
    | project Timestamp, FileName, ProcessCommandLine, InitiatingProcessFileName, AccountName
    | sort by Timestamp asc
  4. On the target, open the hs_err_pid log. A crash in a Base64 or StubRoutines frame matches the reported flaw and should be treated as a possible exploitation attempt. A crash elsewhere is more likely unrelated. Also check for Java restarts, shells spawned after the burst, and new outbound connections.
  5. A burst from an unfamiliar source followed by a crash is a probable attempt. A crash with no preceding burst is more likely a bug or a resource problem.
  6. If you cannot rule out success, preserve the hs_err log and a memory image before restarting anything, isolate the host, and rotate the secrets the JVM could read: database passwords, API keys, signing keys, and client secrets. Rebuild the host or container if code execution is confirmed or cannot be ruled out.
07

Mitigate, verify and close the gaps

Mitigate

  • Install your Java vendor's update as soon as it names this CVE, restart every JVM, and rebuild container images. A running process keeps the old runtime in memory until it restarts. Do not assume a build is fixed until the vendor's advisory says so.
  • Where you cannot update yet, the interim option is -XX:-UseBASE64Intrinsics, which makes Java use its plain Base64 decoder. It costs a little decoding speed, and it only helps if the public reports about the Base64 decoder are right, which vendors have not confirmed. Test it, restart the service, and treat it as a stopgap.
  • Do not use -XX:DisableIntrinsic=_base64_decodeBlock on its own. Without -XX:+UnlockDiagnosticVMOptions, the JVM refuses to start.

Verify

The mitigation only takes effect after a restart, and the flag shows in the new process's command line:

DeviceProcessEvents
| where Timestamp > ago(1d) and FileName in~ ('java.exe','javaw.exe')
| extend Mitigated = ProcessCommandLine has 'UseBASE64Intrinsics'
| summarize by DeviceName, FolderPath, Mitigated

To confirm a host actually meets the reported conditions, check the JVM's own flags. The host matches if UseAVX is 3 and UseBASE64Intrinsics is true:

Windows:  java -XX:+PrintFlagsFinal -version | findstr /i "UseAVX UseBASE64Intrinsics"
Linux:    java -XX:+PrintFlagsFinal -version 2>/dev/null | grep -E ' (UseAVX|UseBASE64Intrinsics) '
Running JVM: jcmd <pid> VM.flags

Use the exact java.exe path from your inventory, since the Java on the PATH is often not the one a service loaded.

Gaps worth closing

  • No HTTP-level visibility. Defender cannot see request headers. If a reverse proxy, WAF or application log sits in front of a service, log the shape of the Authorization header (length and last character, never the credential) so you can match the reported pattern: a Base64-alphabet token of 32 or more characters, ending in =, with a length that is not a multiple of 4.
  • Bundled runtimes and containers. Inventory tools miss runtimes shipped inside applications, and a running container keeps its old runtime until it is rebuilt. Ask product vendors for updated runtimes.
  • Baselines age. Review the drift baseline now and then, and revisit the burst threshold after a few weeks of data.
  • Details will change. Treat the version range and workaround as provisional until vendors and researchers publish. Re-run the in-range query when they do.

The exploit leaves nothing to see, so hunt the traces around it: know where Java runs, watch who can reach it, and patch the hosts that matter first.

Beyond Behavioural Trust: The Shift to Architectural Certainty in Agentic AI

Research briefing — Agentic AI security and enterprise architecture

Beyond Behavioural Trust: The Shift to Architectural Certainty in Agentic AI

The AI security enforcement gap
01

The "Vibe Coding" Hangover and the Autonomous Reality

The enterprise is currently emerging from the "Vibe Coding" era, a period characterised by the use of LLMs as stochastic parrots for low-stakes, probabilistic content generation. In this experimental phase, security was largely a matter of monitoring chat logs. However, we have transitioned into the "Autonomous Reality," where agents are no longer passive advisors but active participants in the enterprise stack. These agents possess the capability to read, write, and execute across production directories, databases, and APIs.

The strategic importance of this shift cannot be overstated: it represents a leap in productivity, but it fundamentally shatters current security perimeters. As agents move from reading data to executing multi-step tool chains, the trust model must shift. Relying on "model alignment" to prevent unauthorised actions is a category error. As agents gain agency, our current security mental models, rooted in human-centric sessions, are no longer just outdated; they are an invitation to systemic compromise.

02

The Authorisation Gap: Why Traditional IAM Fails the Agent

The central failure in contemporary agent deployment is the "Authorisation Gap." Traditional Identity and Access Management (IAM) and Privileged Access Management (PAM) are designed for deterministic software paths. Proving an identity (Authentication) is insufficient when the entity's execution logic is non-deterministic and calculated on the fly.

To formalise this, we must view the agent's state as a Partially Observable Markov Decision Process (POMDP). The internal context of an agent at step is defined as:

ci,t​=(pi​,di,t​,k,hi,t​,Pi​)

where is the prompt, represents untrusted external observations (files/tool outputs), is system knowledge, is history, and is the active execution plan. In an adversarial plan injection, an attacker introduces a perturbation into the context substrate (via poisoned data), yielding a corrupted context:

c∗=(pi​,di,t​,k,hi,t​,Pi​⊕δP​)

Because the model maximises action probability conditioned on this corrupted state, it executes the malicious plan δP as a legitimate directive.

Traditional software authorisationAutonomous agent logic
Deterministic: Paths are predefined in code during provisioning.Calculated on the fly: Actions generated at runtime based on context.
Stable handshake: Authentication translates to a predictable profile.Dynamic chaining: Multi-step operations over extended horizons.
Static entitlements: Permissions remain constant per session.Non-deterministic: Logic changes based on ingested untrusted data.

When an agent inherits a human's full permission set, model hallucinations or prompt injections lead to "catastrophic, unreviewed side effects." This includes unauthorised database writes, exfiltration of GITHUB_TOKEN via CI/CD runners, or the destruction of production infrastructure. This gap exists because the control plane and data plane have collapsed into a single, vulnerable context window.

03

The Framework Illusion: NIST, MITRE, and the Empty Promise of Compliance

Organisations frequently fall for the "Framework Illusion," believing that alignment with a single standard constitutes security. In reality, picking one framework creates predictable gaps.

The AI security framework matrix

FrameworkPrimary axisLevelEnforcement layerThe "runtime gap"
NIST AI RMFGovernance & risk processOrganisationalProcess / policySatisfied entirely through documentation; lacks any runtime enforcement.
MITRE ATLASAdversary TTPsThreat intelDetection / defenseDescribes attacker behaviour but omits defender architecture.
OWASP (LLM/Agentic/MCP)Vulnerability taxonomyProtocol / layerApplication / systemNames vulnerabilities but does not prescribe implementation.

A "NIST-only" strategy is a governance failure. An organisation can be fully NIST-aligned while their agents make ungoverned tool calls to production databases with sero audit trail. These frameworks are maps, not shields. The missing layer is the deterministic runtime infrastructure.

04

Anatomy of a Sero-Click Kill Chain: Deconstructing the MCP and RCE

The Model Context Protocol (MCP) has introduced severe architectural vulnerabilities. Specifically, the protocol allows bidirectional sampling where an external MCP server can request model completions via the sampling/createMessage method. Without origin authentication, a malicious server can use the "user" role to inject prompts directly into the host LLM.

The sero-click RCE kill chain

  1. Malicious instruction delivery: An attacker embeds an indirect prompt injection in a file (e.g., README.md or a source code comment).
  2. Binary planting: The agent, manipulated by the injection, uses a file-write tool to plant a malicious executable (e.g., a payload-carrying npx.exe) in the project root.
  3. Unsafe execution trigger: On the next routine command, the system resolves the binary. On Windows, the "Relative Binary Resolution" flaw prioritises the Current Working Directory (CWD) over C:\Windows\System32, executing the malicious code with the user's full OS privileges.

This is exemplified by CVE-2026-10591 (CVSS: 8.8 High), where workspace configuration poisoning allowed agents to write to .vscode/tasks.json, triggering arbitrary command execution upon opening a folder. Furthermore, the "GitInject" vector proves that malicious configuration files like CLAUDE.md or AGENTS.md are parsed before code evaluation in CI/CD pipelines, allowing for the silent exfiltration of environment secrets.

05

The "No-Read" Principle: Implementing Execute-Only Agents (XOA)

To move from probabilistic trust to architectural certainty, we must adopt the Execute-Only Agent (XOA) paradigm. This is a move from trying to build "safer" models to building a system that is safe even when the AI is successfully manipulated.

XOA is built on two core principles

  1. The No-Read Principle: The LLM never observes untrusted data directly.
  2. Data-Independent Code Generation: The LLM generates scripts based solely on tool schemas and user requests.

The architecture: The LLM operates in a "Trusted Dev Playground" to generate scripts. These are then executed in an "Isolated Sandbox" (e.g., gVisor) that returns sero data to the LLM, only a final result to the user. Analysis of the AgentDojo benchmark confirms that 79% of tasks are scriptable without the LLM ever observing untrusted data.

The utility trade-off: XOA achieves a 0.0% effective Attack Success Rate (ASR). However, a strategic advisor must acknowledge the utility cost: XOA currently exhibits a 16-27 percentage point utility drop compared to standard ReAct architectures. This is the price of deterministic certainty.

06

The Blueprint for Enterprise AI Governance: The Agent Gateway

Security must move out of the non-deterministic context window and into a deterministic Agent Gateway. This gateway treats the agent as an untrusted requester, mediating every interaction between the agent and infrastructure.

The five phases of a least-privilege agent gateway

  1. Discovery: Agents find tools via a schema-restricted interface, limited by role.
  2. Request: The agent submits a structured JSON-RPC tool invocation.
  3. Validation: The gateway validates the request against a static schema and computes a plan hash.
  4. Authorisation: A Policy Engine (e.g., Open Policy Agent / OPA) evaluates the request against declarative "Policy-as-Code."
  5. Ephemeral execution: Approved actions run in short-lived, gVisor-based sandboxes, destroyed immediately after use.

This architecture is bolstered by "Semantic Firewalls." Unlike simple filters, these are independent, lightweight auxiliary models performing real-time intent classification to flag directive intent within passive context data before it ever reaches the core LLM.

07

Strategic Implication: From Probabilistic Trust to Architectural Certainty

The core thesis for 2026 is that AI security is not a model-tuning problem; it is a document-architecture and system-design problem. We must stop trying to "align" models and start governing the infrastructure they inhabit.

Leadership checklist for 2026

  • Close the Authorisation Gap: Deploy dynamic Agent Gateways to move beyond session-level IAM.
  • Enforce the No-Read Principle: Transition high-risk data processing to XOA architectures to eliminate injection vectors.
  • Implement Signed Plan Catalogs: Ensure every execution chain is cryptographically bound to a verified artifact.
  • Adopt Continuous Runtime Authorisation: Use OPA to validate every individual tool call against Policy-as-Code.

The goal is not to build a "safer" AI, but a system that remains secure even when the AI is successfully compromised. Building a hardened gateway is no longer an option; it is a strategic necessity for the autonomous age.

Operation Amethyst: Anatomy of an Invisible Phishing Attack

Introduction: The Deceptively Simple Click

The attack begins with a moment of unsettling familiarity. You click a link in an email, and your browser opens to what appears to be the standard Microsoft login page. 

The logo is correct, the layout is pixel-perfect, and the URL- portal.microsoftonline.com.orgid.com -looks plausible at a glance. You feel the muscle memory kick in, ready to type your credentials.

This is the "Russian Doll" trick. By burying the malicious domain (orgid.com) behind a string of legitimate-looking subdomains, the attacker exploits how the human eye processes information. But behind this ordinary interface, a sophisticated Adversary-in-the-Middle (AiTM) attack known as Operation Amethyst (a variant of the Tycoon 2FA campaign) is silently manipulating your session.

The goal isn't merely to steal a password; it is to hijack your entire authenticated session. By sitting between you and the real Microsoft service, the attacker clones the "Digital VIP Pass" - the session token - generated after you have successfully completed the login process. This makes even the most robust two-factor authentication (2FA) completely irrelevant.

Your Learning Roadmap

To understand how this "ghost in the machine" operates, we will explore the three distinct stages of the attack:

  • Stage 1: Smart Reconnaissance – How the attacker validates you as a high-value target and weaponizes Microsoft's infrastructure to find your location.

  • Stage 2: The Invisible Hijack – How a malicious "spy" is planted directly inside your web browser using a Service Worker.

  • Stage 3: The Unblockable Escape Route – How stolen data is smuggled out through Microsoft's own trusted Application Insights telemetry.

While you are busy reviewing the pixel-perfect login box, the attack is already performing a series of silent checks to ensure you are the right person to target.



Stage 1: The Intelligent Welcome Mat (Smart Reconnaissance)

Before the attack ever prompts for a password, it executes a two-part reconnaissance phase. This ensures the attacker doesn't waste resources on bots or personal accounts and prepares a path that bypasses modern security alerts.

The First Test: Validating the Target

The moment you enter your email (e.g., ddasgupta@attackdefenselab.xyz), the attack performs a Tenant Lookup. It queries Azure AD to identify your Tenant GUID and specific Azure AD Instance (such as Azure AD Global).

This maneuver separates this precision strike from a spray and pray campaign; if the email doesn't belong to a high-value corporate tenant, the attack may simply terminate, weeding out security researchers and bots.

The Geographic Pinpoint: Evading "Impossible Travel"

Once validated, the attack queries Microsoft’s Tenant Partitioning service to find your regional data center (e.g., Oceania). By identifying exactly where you are located, the attacker can route the subsequent attack traffic through servers in your own region.

Additionally, the attack employs a layer of restraint: it checks the browser type and specifically disables itself if it detects Microsoft Edge ("isEdgeAllowed": false). This is a deliberate tactic to avoid the reputation-based blocking of Microsoft Defender SmartScreen.

Why Reconnaissance Matters

Attacker Action Security Bypass
Tenant Lookup Confirms a legitimate corporate target; avoids detection by security bots.
Geographic Pinpointing Matches the victim's region (e.g., Oceania) to defeat "Impossible Travel" alerts.
Edge Exclusion Aborts the attack if Edge is detected to avoid SmartScreen reputation checks.


Once the attacker has confirmed who you are and where you are, they move to plant an invisible "spy" directly within your browser's architecture.



Stage 2: The Invisible Spy in the Machine (The Hijack)

With the groundwork laid, the phishing page loads a specialized file: service_worker_Mz8XO2ny1Pg5.js. This is the core engine of the hijack.

The "Man-in-the-Browser" Tactic

The attack weaponizes a Service Worker, a legitimate feature of modern browsers designed for background tasks and offline access. You can think of this Service Worker as an invisible traffic cop sitting between your browser and the internet.

Because it operates within the browser's own process, it is remarkably difficult to detect.

Warning for Analysts:

Network logs often label this malicious traffic as "Initiated by Service Worker." This can easily confuse junior analysts who may dismiss the entry as a routine, legitimate background task rather than a Man-in-the-Browser hijack.

Dual-Stream Processing

Once active, the Service Worker creates two parallel paths for every piece of data you enter:

  1. The Legitimate Face: It forwards your real password and 2FA codes to Microsoft's actual servers. The login proceeds normally, ensuring you never suspect an intrusion.
  2. The Malicious Face: In real-time, it secretly clones your password, session cookies, and the all-important authentication tokens.

The stolen data, now cloned and ready, must be smuggled out through a path that your company's firewall is trained to trust implicitly.



Stage 3: The Unblockable Escape Route (Exfiltration)

The final stage of Operation Amethyst is a masterclass in evasion: it uses Telemetry Tunneling via Microsoft’s Application Insights and the OneCollector service (browser.events.data.microsoft.com).

Hiding in Plain Sight

Standard phishing attacks often fail when they attempt to send data to a suspicious, unknown server. Operation Amethyst avoids this by disguising your stolen credentials as diagnostic data.

Because blocking Microsoft's telemetry endpoints would break core Microsoft 365 functionality, corporate firewalls almost always allow-list this traffic.

The attacker even includes specific campaign tags - such a Amethyst=Sachiel1&Chamuel=Azrael2 -within the requests. This allows the adversary to sort and organize stolen data from different victims and campaigns automatically.

Mailing the Stolen Goods

To ensure the data reaches them, the attacker uses an Instrumentation Key (iKey), such as: o:69adc3c768bd4dc08c19416121249fcc

  • The Analogy: Think of the iKey as a mailbox address. The attacker packages your stolen session token into a standard diagnostic packet and applies their iKey.
  • Microsoft’s own telemetry infrastructure then mails that packet directly to the attacker’s private Azure workspace.

The 2FA Bypass Insight

Traditional 2FA fails here because this is a Post-Authentication theft. The attacker isn't trying to guess your code; they are waiting for you to provide it to Microsoft. Once Microsoft validates you and generates a session token - the digital wristband given to you after you clear security - the attacker clones it.

This token is a "Digital VIP Pass" that the attacker can replay from their own machine, bypassing the 2FA requirement entirely.



Conclusion: The Attacker’s Playbook & Key Takeaways

Operation Amethyst: Strategic Tactics

Phase Technique Learner's Key Insight
Reconnaissance Tenant Partitioning Attacks use location-matching and Edge-avoidance to blend into local traffic.
Hijacking Malicious Service Worker The "spy" lives inside the browser, making malicious requests look like routine tasks.
Exfiltration Telemetry Tunneling Data is hidden in plain sight within legitimate Microsoft Application Insights traffic.


Final Synthesis: The Core Concepts

1. Living off the Land

The brilliance of Operation Amethyst lies in its restraint. It uses almost no traditional malware. Instead, it exclusively uses trusted, legitimate Microsoft infrastructure - from identity services to telemetry channels - to blend in perfectly with the daily noise of a corporate network.

2. Weaponizing the Audit Trail

The telemetry system is a defensive tool meant to provide visibility and diagnostic health. This attack masterfully inverts that purpose, turning a tool meant for defenders into a private, encrypted, and unblockable smuggling channel for stolen credentials.

By understanding these "invisible" patterns, you can look past the pixel-perfect login page and recognize the complex machinery of modern cyber warfare. Understanding these tactics is the first step toward becoming a more effective security advocate.