Rule of Two.
The Rule of Two, established by the
Chromium security team, states that a component
must never combine more than two of three dangerous
properties: untrustworthy input,
unsafe implementation language, and
high privilege. If all three are present,
a single exploit can cascade into full system
compromise. Security-critical systems are designed
so that at least one property is always absent.
Agent side — the classic formulation.
The original Rule of Two addresses code execution:
can crafted input exploit a memory-unsafe language
to hijack a privileged process?
Mitigated
Untrustworthy input.
Commands arrive from the server over a
network connection. Input is filtered
through the deterministic safety pipeline
and server identity is verified via HMAC
challenge-response before any commands are
accepted.
Absent
Unsafe implementation language.
The agent runs on a managed, memory-safe
runtime (.NET CLR for PowerShell, or
equivalent on other platforms). No C/C++
in the execution path. Memory corruption
exploits do not apply.
Present
High privilege.
The agent runs as SYSTEM (Windows), root
(Linux/macOS), or equivalent. Required for
IT management operations.
Two of three. The absent property — unsafe
language — means that even if an attacker
could deliver malicious input, the managed runtime
prevents memory corruption from escalating into
arbitrary code execution.
Server side — adapted for AI orchestration.
The classic Rule of Two addresses memory safety. AI
orchestration introduces a different class of risk:
non-deterministic processing. An AI model
interpreting untrusted data can be manipulated in
ways that are difficult to predict —
analogous to how memory-unsafe code can be
exploited by crafted input. For AI orchestration,
the three properties become:
Property 1
Untrustworthy input.
Agent-reported data — job results,
diagnostics, status reports —
originates from endpoints that could be
compromised.
Property 2
Non-deterministic processing.
An AI model reasons about the input,
interprets meaning, and makes decisions.
Unlike deterministic code, its behavior
under adversarial input is not fully
predictable.
Property 3
High privilege.
Write access to the knowledge base,
credential dispatch, and job execution
across the managed infrastructure.
If all three combine in a single component, a
compromised endpoint can feed crafted data to the
AI, manipulate its reasoning, and use its
privileged access to poison knowledge, harvest
credentials, or influence actions on other
endpoints. This is the AI orchestration equivalent
of a buffer overflow leading to privilege
escalation.
Aorka's architecture prevents this by ensuring
deterministic gates stand between the AI
and every privileged infrastructure action.
Every write operation passes through multiple
independent filters: deterministic command
classification, AI risk scoring, human approval,
and EDR policy enforcement on the endpoint itself.
Knowledge mutations are logged with full provenance
and are reversible. Credential dispatch and command
execution are gated by deterministic validation
the AI cannot bypass.