# AEGIS: A Multi-Layered Security Framework for Autonomous AI Agents: v1.0 → v1.0.1

From v1.0 (17 Mar) to v1.0.1 (17 Mar): 9,236 words to 7,315 words, 3,660 words in new or rewritten paragraphs and 5,581 taken out, 316 paragraphs changed.

## Change note of v1.0.1

**Shorter and tighter, with a threat model, limitations and related work**

Revised the same morning after a first review that scored the paper 7.5 out of 10 and asked for a formal threat model, regulatory depth and less verbose prose. The text is about 1,900 words shorter, yet it gained sections.

- New executive summary and a threat model built on STRIDE.
- The safety, capability and autonomy trade-off moves to the front of the paper.
- New parts on approval fatigue, supply chain, incident response, regulation per user type, and trust between agents.
- Adds a scoring method for the risk tables and a worked attack walked through the layers.
- New Limitations and Related Work sections.
- Incident write-ups and several claims are cut down; the Jensen Huang quote is gone.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

Autonomous AI agents — software systems that perceive context, invoke tools, execute code, and take actions on behalf of users — have moved from research curiosity to mass deployment with remarkable speed. OpenClaw, one of the leading open-source agent runtimes, grew from a hobbyist project to millions of active installations within eighteen [-months, prompting NVIDIA CEO Jensen Huang to call it "the most important software release ever."-] {+months.+} With that growth came an attack surface [-that-] the security community was not prepared for. In [-the-] twelve [-months preceding this writing,-] {+months,+} we observed a zero-click WebSocket hijack vulnerability (CVE-2026-25253) affecting 40,000+ exposed instances, supply chain attacks via malicious agent skills discovered by Cisco Talos, and a high-profile incident in which an AI safety director's own agent deleted six months of email without explicit [-authorization. Meta banned OpenClaw from corporate devices entirely. Security has become the defining challenge of the agentic AI era.-] {+authorization.+}

### Abstract

This paper presents **AEGIS** — a systematic framework for analyzing and layering security controls across autonomous AI agent deployments. We propose a taxonomy of eight distinct security strategy classes, [-ranging from-] {+classified as+} deterministic [-OS-level filesystem controls to probabilistic prompt-level behavioral rules.-] {+or probabilistic, and introduce the **safety-capability-autonomy trilemma** as a design tool for reasoning about agent security trade-offs.+} We analyze three deployment personas — the Hobbyist Tinkerer, the Freelance Consultant, and the Corporate Employee — [-and construct-] {+with+} formal risk matrices [-for each.-] {+and regulatory mappings.+} We examine NVIDIA's NemoClaw/OpenShell architecture as a [-leading example of principled,-] {+case study in principled+} defense-in-depth design, [-including its novel "browser tab model" for agent isolation-] and [-privacy-routing architecture. We-] conclude with a layered [-defense-in-depth proposal-] {+defense architecture+} modeled on the Swiss cheese [-security analogy, and per-persona security profiles ranging from minimum viable to enterprise-grade.-] {+model, including a worked attack simulation demonstrating layer interactions.+}

### Abstract

**Keywords:** AI agent security, autonomous agents, defense in depth, prompt injection, tool security, agent isolation, OpenClaw, NemoClaw, privacy routing, risk matrix, [-CVE-2026-25253-] {+CVE-2026-25253, safety-capability-autonomy trilemma+}

### Abstract

{+---+}

### Executive Summary

{+## Executive Summary+}

### Executive Summary

{+Autonomous AI agents are being deployed faster than they are being secured. This paper provides a practitioner-oriented framework — AEGIS — for understanding, classifying, and layering security controls around agent deployments.+}

### Executive Summary

{+**Core findings:**+}

### Executive Summary

{+1. **Probabilistic controls (system prompts, behavioral rules) are insufficient** for any deployment where failure has material consequences. They work in the absence of adversarial pressure; they fail under it.+}

### Executive Summary

{+2. **The safety-capability-autonomy trilemma** means every agent deployment implicitly trades between these three properties. Making that trade-off explicit is the first step toward honest risk assessment.+}

### Executive Summary

{+3. **Eight distinct security strategy classes** exist, spanning from OS-level filesystem controls to prompt-level behavioral rules. Only deterministic controls should be counted in a security architecture; probabilistic controls are a useful baseline, not a security layer.+}

### Executive Summary

{+4. **Risk varies dramatically by deployment context.** A hobbyist risks a crypto wallet; a freelancer risks NDA breach lawsuits and GDPR fines; a corporate employee risks SEC investigation and mass data breach. Security posture must match.+}

### Executive Summary

{+5. **Defense in depth works.** Our worked simulation shows that applying AEGIS layers progressively blocks 9 of 10 representative attack scenarios before they reach sensitive data. No single layer is sufficient; layered together, the gaps rarely align.+}

### Executive Summary

{+**Minimum viable action for any deployment:** Bind the WebSocket port to `127.0.0.1` and verify all installed skills. Time: 15 minutes. Impact: eliminates the most common remote attack vector.+}

### 1.1 The Safety-Capability-Autonomy Trilemma

{+### 1.1 The Safety-Capability-Autonomy Trilemma+}

### 1.1 The Safety-Capability-Autonomy Trilemma

{+Before examining specific threats and controls, we introduce a framing that will recur throughout this paper. Given the current state of AI technology, agent deployments can reliably achieve at most two of three properties simultaneously:+}

### 1.1 The Safety-Capability-Autonomy Trilemma

{+- **Safety:** The agent cannot take harmful, policy-violating, or data-exfiltrating actions - **Capability:** The agent can accomplish complex, multi-step tasks with minimal human intervention - **Autonomy:** The agent operates without human oversight of individual decisions+}

### 1.1 The Safety-Capability-Autonomy Trilemma

{+``` Safety /\ / \ / \ / Zone \ /________\ Autonomy --- Capability ```+}

### 1.1 The Safety-Capability-Autonomy Trilemma

{+- **High Safety + High Capability, Low Autonomy:** Comprehensive approval gates; constant human oversight. Useful for high-stakes tasks; impractical for background automation. - **High Safety + High Autonomy, Low Capability:** Drastically restricted action space. The agent runs unsupervised because it can only do pre-screened safe things. - **High Capability + High Autonomy, Low Safety:** The current default of most OpenClaw deployments. The agent can do a great deal, unsupervised, including harmful things.+}

### 1.1 The Safety-Capability-Autonomy Trilemma

{+Every agent deployment implicitly sits somewhere in this trilemma space. Making that choice explicit — rather than pretending the trade-off doesn't exist — enables honest risk assessment and appropriate mitigation focus. We will map each deployment persona to a recommended trilemma position in §7.3.+}

### 1.2 An Unprecedented Deployment Velocity

### [-1.1-] {+1.2+} An Unprecedented Deployment Velocity

### 1.2 An Unprecedented Deployment Velocity

The history of software security [-is, in many respects,-] {+is+} a history of deployment outpacing threat modeling. Web browsers arrived before cross-site scripting was understood. Mobile apps proliferated before app-store supply chain attacks were considered. Cloud infrastructure expanded before misconfiguration became a primary attack [-vector. In each case, the same pattern repeated: a powerful new paradigm emerges, adoption explodes, and the security community scrambles to catch up.-] {+vector.+}

### 1.2 An Unprecedented Deployment Velocity

Autonomous AI agents [-represent a new iteration of-] {+repeat+} this pattern [-— but-] with one crucial [-difference. The-] {+difference: these+} systems [-being deployed are not merely software that processes data.-] {+*act*.+} They [-are software systems that *act*: reading-] {+read+} files, [-sending-] {+send+} emails, [-executing-] {+execute+} code, [-calling-] {+call+} APIs, [-browsing-] {+browse+} the web, [-managing calendars,-] and [-increasingly, spinning-] {+increasingly spin+} up other agents. The attack surface is not just data — it is action itself.

### 1.2 An Unprecedented Deployment Velocity

[-OpenClaw, the open-source AI agent runtime that sparked this wave,-] {+OpenClaw+} shipped its 1.0 release in August 2024. By December 2025, Shodan enumerated over 40,000 [-OpenClaw-] instances with public-facing WebSocket ports. Enterprise surveys [-conducted by Gartner and IDC-] estimated that 23% of Fortune 500 companies had at least one unofficial OpenClaw deployment — [-meaning-] agents [-running-] on employee laptops with {+corporate network+} access [-to corporate networks, without-] {+but no+} IT [-visibility or governance.-] {+visibility.+} NVIDIA CEO Jensen Huang, launching NemoClaw at GTC 2026, called the [-underlying-] agent runtime paradigm "the most important software release ever," [-noting that-] {+framing it as+} "the [-agent is the new application, and we are in the-] Windows 95 moment for agentic [-computing."-] {+computing." The analogy is apt in ways perhaps unintended — early Windows shipped without meaningful network security, and it took a decade of painful incidents before defense-in-depth became standard practice.+}

### 1.1 An Unprecedented Deployment Velocity

[-Windows 95, it should be recalled, shipped without a firewall.-]

### 1.3 The Incident Record

### [-1.2-] {+1.3+} The Incident Record

### 1.2 The Incident Record

[-The security incident record from 2025–2026 is instructive in its breadth. Consider the following documented cases:-]

### 1.3 The Incident Record

{+The security incident record from 2025–2026 illustrates the breadth of the attack surface:+}

### 1.3 The Incident Record

**CVE-2026-25253 (Zero-Click WebSocket Hijack).** [-Disclosed in February 2026, this-] {+This+} critical-severity vulnerability affected OpenClaw instances [-with default configuration-] exposing the WebSocket control [-port.-] {+port with default configuration.+} An attacker with network access [-to the target host could, without any user interaction,-] {+could+} inject tool calls into an active agent session [-by sending-] {+via+} a crafted WebSocket handshake that bypassed origin [-validation. The attack required-] {+validation —+} no [-authentication. Exploitation could direct the agent-] {+authentication required. Because OpenClaw defaulted+} to [-exfiltrate files, execute commands, or install malicious skills. Because OpenClaw's default configuration bound the WebSocket port to `0.0.0.0` rather than `127.0.0.1`,-] {+binding on `0.0.0.0`,+} any [-OpenClaw-] {+network-reachable+} instance [-reachable from the network-] was vulnerable. The [-patch, requiring only-] {+patch required+} a single-line config change, [-was available within 48 hours,-] but [-remediation rates were poor:-] Shadowserver [-Foundation-] scans three weeks post-disclosure still found 31,000 unpatched instances.

### 1.3 The Incident Record

**Cisco Talos: Malicious Skills Supply Chain Attack.** In October 2025, Cisco Talos [-published research on-] {+documented+} a campaign distributing {+seventeen+} malicious OpenClaw skills via the [-unofficial-] community [-skill-] registry. [-Seventeen skills with names-] {+Skills+} mimicking legitimate utilities [-("pdf-summarizer-pro," "calendar-sync-enhanced") contained code that, upon first invocation,-] silently exfiltrated [-the contents of-] `~/.env`, `~/.ssh/`, and `~/.config/` to [-attacker-controlled infrastructure. The skills used-] {+attacker infrastructure using+} obfuscated JavaScript [-and-] {+with+} delayed [-execution to evade naive review. Because skills-] {+execution. Skills+} run within the agent process with the agent user's full filesystem [-permissions, there was-] {+permissions —+} no sandbox [-preventing-] {+prevented+} this access. Approximately 8,000 installs were [-confirmed before the malicious skills were removed.-] {+confirmed.+}

### 1.3 The Incident Record

**The Inbox Zero Incident.** [-In November 2025, an-] {+An+} AI safety researcher [-— whose identity has not been publicly disclosed but whose account appeared on the AI safety community forum LessWrong —-] described an incident in which their [-OpenClaw-] agent, operating with email access [-as part of an-] {+for+} "inbox [-management" workflow,-] {+management,"+} interpreted [-an ambiguous instruction ("clear-] {+"clear+} out the old [-stuff")-] {+stuff"+} as authorization to permanently delete [-approximately 6,500-] {+~6,500+} emails spanning six [-months of professional correspondence.-] {+months. No confirmation requested. Emails unrecoverable.+} The [-agent had not asked for confirmation. The emails were not recoverable. The irony of an AI safety researcher losing control of their agent was not lost on the community, and the-] incident became a widely-cited example of the gap between probabilistic behavioral guardrails and deterministic action constraints.

### 1.3 The Incident Record

**Meta Enterprise Ban.** [-Meta Platforms' information-] {+Meta's+} security team [-issued an internal policy memo in January 2026 prohibiting installation or execution of-] {+prohibited+} OpenClaw on company-managed [-devices. The memo cited three concerns:-] {+devices in January 2026, citing+} uncontrolled network [-egress from the agent process,-] {+egress,+} inability to audit [-what-] data [-was being-] sent to external LLM APIs, and [-the risk that-] prompt injection [-via web browsing or document reading could cause the agent to exfiltrate corporate data. Meta's ban was followed by similar advisories from-] {+risks.+} JPMorgan Chase, Deutsche Bank, and the UK National Cyber Security [-Centre.-] {+Centre issued similar advisories.+}

### 1.4 Threat Model

{+### 1.4 Threat Model+}

### 1.4 Threat Model

{+Before enumerating security strategies, we establish a formal threat model using STRIDE categories adapted for agent-specific attack surfaces:+}

### 1.4 Threat Model

{+| STRIDE Category | Agent-Specific Manifestation | Example | |---|---|---| | **S**poofing | Impersonating the user to the agent, or the agent to external services | WebSocket hijack (CVE-2026-25253); agent sending emails as user | | **T**ampering | Modifying agent behavior, configuration, or tool outputs | Prompt injection via web content; malicious skill modifying SOUL.md | | **R**epudiation | Agent actions that cannot be attributed or audited | Unlogged API calls; ephemeral tool outputs with no audit trail | | **I**nformation Disclosure | Exfiltration of sensitive data through agent channels | Credential theft via malicious skill; PII in LLM API calls | | **D**enial of Service | Disrupting agent or host availability | Resource exhaustion via runaway agent process; cgroup escape | | **E**levation of Privilege | Agent gaining access beyond its intended scope | Self-modification of permission config; subagent privilege inheritance |+}

### 1.4 Threat Model

{+Additionally, we identify agent-specific threat categories not fully captured by STRIDE:+}

### 1.4 Threat Model

{+- **Delayed-action attacks:** Prompt injection plants a memory that triggers malicious behavior sessions later (temporal attack surface) - **Multi-agent trust exploitation:** Compromised parent agent spawning privileged child agents that inherit or escalate permissions - **Model-level compromise:** Poisoned fine-tunes or adversarial inputs that undermine all probabilistic controls simultaneously - **Approval fatigue exploitation:** High-frequency low-risk approvals training users to rubber-stamp high-risk ones+}

### 1.4 Threat Model

{+This threat model informs our taxonomy: we claim completeness against the STRIDE+agent categories above. Each of the eight strategy classes in §2 addresses one or more threat categories. The mapping is consolidated in Table 1 (§2.9).+}

### 1.5 The Structure of This Paper

### [-1.3-] {+1.5+} The Structure of This Paper

### 1.3 The Structure of This Paper

[-These incidents share a common structure: an agent with broad permissions, operating in an environment it partially controls, taking actions whose consequences were not fully anticipated by its designer or user. They differ in attack vector — remote exploit, supply chain, behavioral ambiguity, policy gap — but converge on the same root cause: the security architecture of most agent deployments does not match the trust level required for the actions being taken.-]

### 1.3 The Structure of This Paper

[-This paper systematically examines every known category of security strategy applicable to autonomous AI agents, assesses their effectiveness and limitations, and constructs a layered defense architecture — AEGIS — that we argue is appropriate for the agentic AI era. We deliberately analyze the full deployment spectrum, from a developer running OpenClaw on a personal laptop to a corporate environment with regulatory obligations, because the appropriate security posture differs dramatically across this spectrum and generic advice serves neither audience well.-]

### 1.5 The Structure of This Paper

{+Section 2 presents the eight-class security strategy taxonomy. Section 3 profiles three deployment personas. Section 4 constructs risk matrices with justified scoring methodology. Section 5 analyzes NVIDIA's NemoClaw as a case study. Section 6 presents the AEGIS defense-in-depth architecture with a worked attack simulation. Section 7 provides per-persona recommendations and concluding analysis. Section 8 discusses limitations.+}

### 2. Security Strategy Taxonomy

[-We identify eight distinct classes of security strategy applicable to autonomous AI agents. For each, we describe the mechanism, classify it as **DETERMINISTIC** or **PROBABILISTIC**, rate its effectiveness on a five-point scale, and identify primary bypass vectors.-]

### 2. Security Strategy Taxonomy

[-A control is **DETERMINISTIC** if its enforcement does not depend on the behavior of the model or any probabilistic process — it is enforced by the operating system, hardware, or a separate policy process that the agent cannot influence. A control is **PROBABILISTIC** if its enforcement depends on the model following rules encoded in a prompt, memory, or behavioral guideline — it may fail due to prompt injection, model confusion, or deliberate adversarial manipulation.-]

### 2. Security Strategy Taxonomy

[-The distinction matters enormously. A deterministic control that fails is a bug. A probabilistic control that fails is a design property.-]

### 2. Security Strategy Taxonomy

{+We identify eight distinct classes of security strategy applicable to autonomous AI agents. Each is classified as **DETERMINISTIC** (enforced by OS, hardware, or a separate policy process the agent cannot influence) or **PROBABILISTIC** (dependent on the model following rules). The distinction is fundamental: a deterministic control that fails is a bug; a probabilistic control that fails is a design property.+}

### 2. Security Strategy Taxonomy

{+Effectiveness ratings use the following calibrated scale:+}

### 2. Security Strategy Taxonomy

{+| Rating | Definition | |---|---| | 5/5 | No known bypasses in correctly configured deployment; bypass requires OS/hypervisor vulnerability | | 4/5 | Effective against all known attack classes; bypasses require configuration errors or novel exploits | | 3/5 | Effective against common attacks; known bypass classes exist but require moderate sophistication | | 2/5 | Effective in non-adversarial conditions; unreliable under targeted adversarial pressure | | 1/5 | Provides marginal signal; should not be counted as a security control |+}

### 2.1 OS-Level and Filesystem Controls

**Mechanism.** The most fundamental layer [-of agent security-] leverages the operating system's [-built-in-] permission [-model. This means-] {+model:+} running the agent [-process-] under a dedicated, low-privilege Unix user account [-(e.g., `openclaw-agent`)-] rather than the user's [-own account. File and directory permissions are then configured to deny that user access to sensitive paths:-] {+own.+}

### Deny agent access to sensitive paths chmod 700 ~/.ssh ~/.config/chromium find ~ -name ".env" -exec chmod 600 {} \; ```

# Deny agent access to [-SSH keys, .env files, browser profiles-] {+sensitive paths+} chmod 700 ~/.ssh [-chmod 700-] ~/.config/chromium find ~ -name ".env" -exec chmod 600 {} [-\;-] {+\; ```+}

### Optional: chown sensitive dirs to a different user entirely sudo chown root:root ~/.ssh sudo chmod 750 ~/.ssh ```

[-# Optional: chown sensitive dirs to a different user entirely sudo chown root:root ~/.ssh sudo chmod 750 ~/.ssh ```-]

### Deny agent access to sensitive paths chmod 700 ~/.ssh ~/.config/chromium find ~ -name ".env" -exec chmod 600 {} \; ```

Beyond basic [-`chmod`/`chown`,-] {+permissions,+} mandatory access control (MAC) systems provide a more robust layer:

### Deny agent access to sensitive paths chmod 700 ~/.ssh ~/.config/chromium find ~ -name ".env" -exec chmod 600 {} \; ```

- **AppArmor** profiles [-can-] restrict the agent process to [-a-] defined [-set of-] file paths, preventing access [-to `/home/$USER/.ssh`, `/home/$USER/.gnupg`, specific credential files, and any other sensitive paths —-] regardless of what the agent's code attempts. - **SELinux** type enforcement provides [-similar capabilities with-] finer-grained policy [-control, applicable in-] {+control for+} enterprise Linux environments. - **cgroups** resource limits prevent [-the agent from consuming-] excessive memory, CPU, or network [-bandwidth, limiting the impact of runaway processes or denial-of-service conditions.-] {+bandwidth consumption.+}

### Optional: chown sensitive dirs to a different user entirely sudo chown root:root ~/.ssh sudo chmod 750 ~/.ssh ```

[-**Classification:** DETERMINISTIC-]

### Optional: chown sensitive dirs to a different user entirely sudo chown root:root ~/.ssh sudo chmod 750 ~/.ssh ```

[-**Effectiveness:** 4/5 — Highly effective for defined sensitive paths. Requires upfront configuration; misconfiguration (leaving sensitive files with world-read permissions) or incomplete coverage (missing a newly created credential file) creates gaps.-]

### Optional: chown sensitive dirs to a different user entirely sudo chown root:root ~/.ssh sudo chmod 750 ~/.ssh ```

[-**Bypass Vectors:** - Incomplete coverage: paths not explicitly restricted remain accessible - Privilege escalation vulnerabilities in the OS kernel or agent runtime could allow the agent to escape its permission boundary - Symlink attacks: if the agent can write to a directory it controls, it may be able to create symlinks pointing to protected files in some configurations - Does not protect against data that legitimately flows through the agent's allowed paths (e.g., if email access is permitted, the agent can read email regardless of filesystem controls elsewhere)-]

### Deny agent access to sensitive paths chmod 700 ~/.ssh ~/.config/chromium find ~ -name ".env" -exec chmod 600 {} \; ```

{+**Classification:** DETERMINISTIC · **Effectiveness:** 4/5+}

### Deny agent access to sensitive paths chmod 700 ~/.ssh ~/.config/chromium find ~ -name ".env" -exec chmod 600 {} \; ```

{+**Primary Bypass Vectors:** Incomplete path coverage; privilege escalation via OS vulnerabilities; symlink attacks in agent-writable directories; data flowing through legitimately permitted paths.+}

### 2.2 Process-Level Isolation

**Mechanism.** [-Rather than relying on per-file permission configuration, process-level isolation places-] {+Places+} the agent in a separate execution context with a fundamentally different [-view of the system.-] {+system view.+}

### 2.2 Process-Level Isolation

**Containers [-(Docker/Podman).** Running the agent in a container provides-] {+(Docker/Podman)** provide+} filesystem, network, and process namespace isolation. The agent sees only [-the files-] explicitly bind-mounted [-into the container. By default, it cannot access the host filesystem, host network interfaces, or host processes:-] {+files:+}

### 2.2 Process-Level Isolation

```yaml [-# docker-compose.yml — minimal exposure-] services: agent: image: openclaw:latest volumes: - ./workspace:/workspace:rw [-# agent workspace only # NOT mounting ~/.ssh, ~/.env, etc.-] network_mode: bridge read_only: true [-# immutable container filesystem-] cap_drop: [ALL] [-# drop all Linux capabilities-] security_opt: [no-new-privileges] ```

### 2.2 Process-Level Isolation

**Virtual [-Machines.** Full VM isolation (via KVM, VirtualBox, or cloud VMs) provides-] {+Machines** provide+} the strongest [-process isolation. The-] {+isolation — the+} agent cannot escape [-the VM-] without a hypervisor vulnerability. The cost is resource overhead and reduced [-integration with the-] host [-environment.-] {+integration.+}

### 2.2 Process-Level Isolation

**NVIDIA OpenShell [-Sandboxing.** OpenShell, the execution substrate underlying NemoClaw,-] {+Sandboxing**+} implements a [-novel-] "browser tab model" for agent isolation [-(discussed-] {+(detailed+} in [-detail in Section 5).-] {+§5).+} Each [-agent-] session runs in an isolated [-execution context analogous to-] {+context;+} a [-browser tab — same rendering engine, separate memory space and origin. A malicious or-] compromised [-agent-] {+session+} cannot [-directly-] access [-another session's-] {+another's+} state.

### 2.2 Process-Level Isolation

[-**NanoClaw's Approach.** NanoClaw, a minimal fork targeting embedded and low-resource deployments, achieves isolation through a different mechanism: rather than containerization, it enforces a strict capability manifest at startup. Every tool the agent is allowed to use must be declared in a signed YAML manifest. Tools not in the manifest simply do not exist from the agent's perspective — they are not loaded, not callable, and not discoverable. This approach trades runtime flexibility for a dramatically reduced attack surface.-]

### 2.2 Process-Level Isolation

{+**NanoClaw's Capability Manifest** enforces a strict signed YAML manifest at startup. Undeclared tools do not exist from the agent's perspective — not loaded, not callable, not discoverable.+}

### 2.2 Process-Level Isolation

**Out-of-Process vs. In-Process Policy Enforcement.** [-A critical architectural distinction: policy-] {+Policy+} enforcement [-that runs-] *within* the agent process [-(in-process)-] can [-potentially-] be circumvented by a compromised [-or manipulated agent, since the-] agent [-and-] {+sharing+} its [-guardrails share the same-] memory space. [-Policy-] {+*Out-of-process*+} enforcement [-that runs in a *separate* process (out-of-process) enforces rules-] {+operates+} at the OS or network level, [-outside-] {+beyond+} the agent's [-ability to-] influence. [-OpenShell's policy engine is explicitly-] {+OpenShell enforces+} out-of-process; most OpenClaw installations [-run guardrails-] {+enforce+} in-process.

### 2.2 Process-Level Isolation

[-**Classification:** DETERMINISTIC (containers/VMs), DETERMINISTIC (NanoClaw capability manifest), DETERMINISTIC (out-of-process enforcement)-]

### 2.2 Process-Level Isolation

{+**Classification:** DETERMINISTIC ·+} **Effectiveness:** 5/5 (VM), 4/5 (container), 4/5 (capability manifest), 3/5 (in-process only)

### 2.2 Process-Level Isolation

[-**Bypass Vectors:** - Container escapes via kernel vulnerabilities (rare but documented; see CVE-2024-21626 runc escape) - Insecure bind mounts that expose sensitive host paths - Network access not restricted — a containerized agent may still exfiltrate data via outbound HTTP - Capability manifests require upfront completeness; missing a needed tool creates pressure to expand the manifest over time (scope creep)-]

### 2.2 Process-Level Isolation

{+**Primary Bypass Vectors:** Container escapes via kernel vulnerabilities (e.g., CVE-2024-21626); insecure bind mounts; unrestricted outbound network; capability manifest scope creep under operational pressure.+}

### 2.3 Programmatic and Deterministic Guardrails

[-**Mechanism.** A layer above OS permissions but below prompt-level rules, programmatic guardrails enforce constraints in the agent runtime's own code. These are deterministic because they are implemented in code that runs regardless of model output.-]

### 2.3 Programmatic and Deterministic Guardrails

[-**Exec Allowlists.** Rather than allowing the agent to run arbitrary shell commands, the exec tool accepts only commands matching a pre-approved allowlist or pattern:-]

### 2.3 Programmatic and Deterministic Guardrails

{+**Mechanism.** Constraints implemented in agent runtime code, enforced regardless of model output.+}

### 2.3 Programmatic and Deterministic Guardrails

{+**Exec Allowlists** restrict shell commands to pre-approved patterns. **Wrapper scripts** route all system interactions through a validation layer. **Tool permission systems** distinguish sensitivity tiers with per-operation confirmation. **Elevated permission gates** require human approval before high-risk execution.+}

### 2.3 Programmatic and Deterministic Guardrails

```python ALLOWED_COMMANDS = frozenset(["git", "python3", "pip", "npm", "node"]) BLOCKED_PATTERNS = [r"curl\s+.*\|.*sh", [-r"wget\s+.*\|.*bash",-] r"rm\s+-rf"]

### 2.3 Programmatic and Deterministic Guardrails

[-**Wrapper Scripts.** A more restrictive approach routes all system interactions through a Python (or other language) wrapper that validates, logs, and potentially rejects operations before they reach the OS. This is analogous to a system call interceptor: the agent cannot make raw syscalls but only the API exposed by the wrapper.-]

### 2.3 Programmatic and Deterministic Guardrails

[-**Tool Permission Systems.** OpenClaw's built-in permission system distinguishes tools by sensitivity tier. High-sensitivity operations (exec, file write, external messaging) require explicit `ask` mode configuration or per-operation confirmation. The `elevated` permission flag on exec signals that the user should review before approval.-]

### 2.3 Programmatic and Deterministic Guardrails

[-**Elevated Permission Gates.** Actions above a defined threshold require human confirmation before execution. The OpenClaw `/approve` flow implements this: the agent proposes an action, the user reviews the exact command, and approves or denies. This converts an autonomous action into a human-supervised one.-]

### 2.3 Programmatic and Deterministic Guardrails

[-**Classification:** DETERMINISTIC-]

### 2.3 Programmatic and Deterministic Guardrails

[-**Effectiveness:** 4/5 — Highly effective for covered operation types. Allowlists can be bypassed by creative command construction if not carefully specified; wrapper coverage must be complete.-]

### 2.3 Programmatic and Deterministic Guardrails

[-**Bypass Vectors:** - Allowlist incompleteness: any uncovered command becomes an escape hatch - Chained commands: `git` allowed, but `git` can invoke hooks that run arbitrary code - The agent may discover multi-step approaches to achieve a blocked action through allowed primitives - Human confirmation gates become ineffective if users approve actions without careful review ("approval fatigue")-]

### 2.3 Programmatic and Deterministic Guardrails

{+**Classification:** DETERMINISTIC · **Effectiveness:** 4/5+}

### 2.3 Programmatic and Deterministic Guardrails

{+**Primary Bypass Vectors:** Allowlist gaps; chained commands (allowed `git` invoking hooks with arbitrary code); creative multi-step sequences through allowed primitives; approval fatigue (see §2.3.1).+}

### 2.3.1 The Approval Fatigue Problem

{+#### 2.3.1 The Approval Fatigue Problem+}

### 2.3.1 The Approval Fatigue Problem

{+Permission gates are only effective if users actually read what they approve. In practice, frequent low-risk approvals train users to rubber-stamp without reading, creating a window for high-risk actions to pass unreviewed. This is arguably the most common real-world failure mode for human-in-the-loop controls.+}

### 2.3.1 The Approval Fatigue Problem

{+Mitigations include:+}

### 2.3.1 The Approval Fatigue Problem

{+- **Progressive trust:** Auto-approve after N manual approvals of the same pattern, concentrating human attention on novel actions. - **Risk-weighted UX:** Visual differentiation — red/yellow/green severity indicators — ensures high-risk approvals demand attention even from habituated users. - **Time-delayed execution for irreversible actions:** A 30-second delay with a cancel window for destructive operations (file deletion, email send) catches rubber-stamped approvals. - **Batch approval with summary:** Instead of per-command approval, batch related operations with a summary of aggregate impact ("This will modify 47 files in ~/workspace").+}

### 2.4 Network-Level Controls

**Mechanism.** [-Independent of what the agent is permitted to do on the local filesystem, network-level controls determine-] {+Controls+} what data can leave the [-host.-] {+host, independent of local agent permissions.+}

### 2.4 Network-Level Controls

[-**Tailscale/VPN Isolation.** Running the agent in a network namespace or Tailscale-isolated environment prevents outbound connections to arbitrary internet addresses. The agent can only reach other nodes on the VPN. Exfiltration to attacker-controlled infrastructure becomes impossible without a Tailscale node acting as a proxy.-]

### 2.4 Network-Level Controls

[-**Firewall Rules.** `iptables` or `nftables` rules can restrict the agent process by UID, permitting connections only to specific destination IPs/ports (e.g., the LLM API provider's IP range) and blocking all other outbound traffic:-]

### 2.4 Network-Level Controls

{+**Tailscale/VPN isolation** restricts outbound connections to VPN nodes only. **Firewall rules** restrict by UID to specific destination IPs:+}

### 2.4 Network-Level Controls

```bash [-# Allow agent user to reach Anthropic API only-] iptables -A OUTPUT -m owner --uid-owner openclaw-agent \ -d 13.33.0.0/16 -j ACCEPT iptables -A OUTPUT -m owner --uid-owner openclaw-agent -j DROP ```

### 2.4 Network-Level Controls

[-**Port Binding Restrictions.** CVE-2026-25253 was exploitable precisely because OpenClaw's default configuration bound its WebSocket port to `0.0.0.0`. Simple mitigation: bind to `127.0.0.1` only, preventing any external network access. This single configuration change would have protected all 40,000 exposed instances.-]

### 2.4 Network-Level Controls

[-**DNS Filtering.** DNS-level filtering (e.g., via Pi-hole, NextDNS, or enterprise DNS proxies) can block resolution of known-malicious domains, limiting the ability of a compromised agent to reach C2 infrastructure. This is a weaker control but adds a useful detection layer.-]

### 2.4 Network-Level Controls

[-**Classification:** DETERMINISTIC-]

### 2.4 Network-Level Controls

[-**Effectiveness:** 4/5 — Extremely effective at preventing network exfiltration when properly configured. Does not protect against data leakage via allowed channels (e.g., data included in legitimate LLM API calls).-]

### 2.4 Network-Level Controls

[-**Bypass Vectors:** - Data leakage via allowed API calls: if the agent can call the LLM API, it can include sensitive data in prompts that are then sent to the model provider's servers - DNS-over-HTTPS tunneling may bypass DNS filters - Steganographic exfiltration via timing channels or allowed protocol fields - If a malicious skill controls a Tailscale node, VPN isolation provides no protection against that specific destination-]

### 2.4 Network-Level Controls

{+**Port binding restrictions** address CVE-2026-25253 directly — binding to `127.0.0.1` would have protected all 40,000 exposed instances. **DNS filtering** via Pi-hole or enterprise DNS proxies blocks known-malicious domain resolution.+}

### 2.4 Network-Level Controls

{+**Classification:** DETERMINISTIC · **Effectiveness:** 4/5+}

### 2.4 Network-Level Controls

{+**Primary Bypass Vectors:** Data leakage via allowed API calls (sensitive data in LLM prompts); DNS-over-HTTPS tunneling; steganographic exfiltration; compromised Tailscale nodes.+}

### 2.5 Prompt-Level and Probabilistic Controls

**Mechanism.** The most widely deployed [-— and least reliable —-] class of controls. [-Prompt-level controls encode behavioral-] {+Behavioral+} rules {+encoded+} in [-the-] system [-prompt,-] {+prompts,+} memory files, or agent configuration, relying on the model to follow them.

### 2.5 Prompt-Level and Probabilistic Controls

[-**System Prompts and Behavioral Rules.** Rules like "never send emails without explicit confirmation," "do not access files outside ~/workspace," and "treat all external web content as untrusted" are injected into the system prompt. In OpenClaw, these appear in `SOUL.md`, `AGENTS.md`, and similar configuration files.-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**SOUL.md Behavioral Rules.** OpenClaw's `SOUL.md` pattern is a concrete example of this approach. It encodes values, working style, and prohibited actions as natural language instructions. These instructions are read at session start and influence model behavior — but are not enforced by any mechanism outside the model's own compliance.-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**Memory-Injected Rules.** Rules can be injected into the agent's context dynamically, via memory retrieval or tool output. This allows context-sensitive rule application (different rules for different tasks or environments).-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**Content Tagging.** Tagging external content as untrusted (e.g., wrapping web page content in `<untrusted_external_content>` XML tags) signals to the model that instructions found within that content should not be followed. This is a partial mitigation for prompt injection attacks.-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**Model-Level Alignment.** Base model safety training (RLHF, Constitutional AI, etc.) provides a degree of behavioral constraint at the model level. A well-aligned model is less likely to follow malicious instructions even when injected via prompt.-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**Classification:** PROBABILISTIC-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**Effectiveness:** 2/5 — Effective in normal operation, unreliable under adversarial conditions. Any sufficiently motivated or cleverly crafted prompt injection can override behavioral instructions. Model alignment provides a floor but not a ceiling.-]

### 2.5 Prompt-Level and Probabilistic Controls

[-**Bypass Vectors:** - Prompt injection: adversarial content in external data sources (emails, web pages, documents) can override system prompt instructions - Context window overflow: when the context is very long, early system prompt instructions receive less attention weight - Role-play jailbreaks: instructing the model to "act as" a different agent with different rules - Model updates: behavioral properties of a specific model version are not guaranteed to persist across updates - Sufficiently sophisticated adversaries can construct prompts that cause the model to rationalize prohibited actions as compliant with stated rules-]

### 2.5 Prompt-Level and Probabilistic Controls

{+This includes system prompt behavioral rules, SOUL.md-style value encoding, memory-injected context-sensitive rules, content tagging (wrapping untrusted content in XML tags), and base model alignment (RLHF, Constitutional AI).+}

### 2.5 Prompt-Level and Probabilistic Controls

{+**Classification:** PROBABILISTIC · **Effectiveness:** 2/5+}

### 2.5 Prompt-Level and Probabilistic Controls

{+**Primary Bypass Vectors:** Prompt injection via external content; context window overflow diluting early instructions; role-play jailbreaks; model update behavioral drift; adversarial prompts causing the model to rationalize prohibited actions as compliant.+}

### 2.5 Prompt-Level and Probabilistic Controls

{+**Important caveat:** The "most widely deployed" characterization is based on observed deployment patterns in the OpenClaw community (default installations rely primarily on system prompts for safety); we lack rigorous survey data to make this a statistical claim.+}

### 2.6 Privacy Routing

**Mechanism.** [-Rather than preventing-] {+Intelligent routing of requests to different models based on+} data [-from reaching AI models entirely, privacy routing makes intelligent decisions about *which* model receives *which* data.-] {+sensitivity.+} The core insight: not all data is equally sensitive, and not all tasks require frontier model capability.

### 2.6 Privacy Routing

[-**NemoClaw's Privacy Router Architecture.** NemoClaw implements a policy-driven routing layer between the agent and available models. When a tool invocation includes sensitive data (classified by the policy engine as PII, credentials, financial records, or similar), the request is routed to a locally-running model (e.g., Llama 3 70B running on local GPU) rather than a frontier API. General reasoning tasks with no sensitive data are routed to frontier models as normal. This ensures that sensitive data never leaves the local network.-]

### 2.6 Privacy Routing

{+NemoClaw implements a policy-driven routing layer that directs requests containing sensitive data (PII, credentials, financial records) to locally-running models, while general reasoning tasks route to frontier APIs.+}

### 2.6 Privacy Routing

``` [-┌─────────────────────┐-] Agent Request [-─►│-] {+→+} Privacy Router [-│ │-] (Policy Engine) │ [-└──────┬──────────────┘ │ ┌────────────┴────────────┐ │ Contains sensitive data?│ └────┬───────────────────┘ YES │ NO-] {+┌─────────────┴──────────────┐ Sensitive? Not sensitive?+} ▼ [-│-] ▼ [-┌──────────────┐ ┌─────────────────┐ │-] Local Model [-│ │-] {+(Llama 70B)+} Frontier Model [-│ │ (Llama 70B) │ │ (Claude/GPT-4) │ └──────────────┘ └─────────────────┘-] {+(Claude/GPT)+} ```

### 2.6 Privacy Routing

[-**Data Classification.** The policy engine uses a combination of regex patterns (matching common credential formats, PII patterns like SSNs/credit card numbers), path-based heuristics (requests involving `~/.ssh`, `.env`, financial directories), and optional model-based classification to determine routing decisions.-]

### 2.6 Privacy Routing

{+Data classification uses regex patterns, path-based heuristics, and optional model-based classification.+}

### 2.6 Privacy Routing

**Classification:** DETERMINISTIC (routing decision), PROBABILISTIC (sensitivity [-classification accuracy)-] {+classification)+}

### 2.6 Privacy Routing

[-**Effectiveness:** 4/5 — Highly effective at preventing sensitive data from reaching third-party APIs. Classification accuracy is the weak link; novel or unusual sensitive data formats may be misclassified.-]

### 2.6 Privacy Routing

[-**Bypass Vectors:** - Classification evasion: sensitive data encoded or formatted in non-standard ways may avoid pattern matching - The local model itself may have security properties different from frontier models; if it is compromised or manipulated, it has direct access to sensitive data - Configuration errors that misclassify data as non-sensitive - High latency penalty may create pressure to route more data to frontier models for performance reasons-]

### 2.6 Privacy Routing

{+**Effectiveness:** 3/5 — We downgrade from an initial assessment of 4/5 because regex-based PII detection has well-documented gaps with non-standard formats, multilingual data, and contextual sensitivity. False negative rates for production PII classifiers typically range 5–15% depending on data diversity. Classification accuracy is the binding constraint on this control's effectiveness.+}

### 2.6 Privacy Routing

{+**Primary Bypass Vectors:** Non-standard data formats evading classifiers; compromised local model; misconfiguration; operational pressure to route more data to faster frontier models.+}

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**Mechanism.** Security controls are only useful if you know when they fail. The audit layer provides visibility, detection, and response capabilities.-]

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**Cron-Based Security Scans.** Automated scans running on a schedule (e.g., via OpenClaw's built-in cron capability or system cron) can check for: new skills installed since last scan, changes to agent configuration files, unexpected network connections, sensitive files with overly broad permissions, and known-vulnerable dependency versions.-]

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**Supply Chain Monitoring.** The Cisco Talos malicious skill incident demonstrated that skill provenance matters. Controls include: pinning skill versions in configuration, verifying skill hashes against a trusted registry, running skills in a separate evaluation environment before production installation, and monitoring skill behavior at runtime for unexpected file access or network calls.-]

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**CVE Tracking.** Automated tracking of CVEs affecting the agent runtime, LLM client libraries, and OS packages provides early warning of new vulnerabilities. Tools like `grype`, `trivy`, or `dependabot` can be integrated into the agent's operational environment.-]

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**Communication Auditing.** For agents with messaging capabilities, logging outbound messages (emails, chats, API calls) with timestamps, recipients, and content summaries provides an audit trail for reviewing agent behavior and detecting unauthorized communications.-]

### 2.7 Audit, Compliance, and Supply Chain Monitoring

{+**Mechanism.** Visibility, detection, and response capabilities.+}

### 2.7 Audit, Compliance, and Supply Chain Monitoring

{+**Cron-based security scans** check for new skills, configuration changes, unexpected network connections, and vulnerable dependencies. **Supply chain monitoring** addresses skill provenance — the Cisco Talos incident demonstrated that verification matters. **CVE tracking** via `grype`, `trivy`, or `dependabot` provides early warning. **Communication auditing** logs outbound messages for review.+}

### 2.7.1 Extended Supply Chain Attack Surface

{+#### 2.7.1 Extended Supply Chain Attack Surface+}

### 2.7.1 Extended Supply Chain Attack Surface

{+The Cisco Talos skill attack represents one category of supply chain risk. The full attack surface includes:+}

### 2.7.1 Extended Supply Chain Attack Surface

{+- **Model weights:** Poisoned fine-tunes that introduce backdoor behaviors — a compromised model undermines *all* probabilistic controls simultaneously - **Runtime dependencies:** Malicious npm/pip packages in the agent's dependency tree - **Container base images:** Compromised or outdated base images with known vulnerabilities - **LLM API endpoints:** Man-in-the-middle or compromised API provider infrastructure - **Memory/context poisoning:** Injected memories or tool outputs that persist across sessions and influence future agent behavior (temporal attack vector)+}

### 2.7.1 Extended Supply Chain Attack Surface

{+Each requires a distinct mitigation: model hash verification, dependency lockfiles with audit, minimal base images with scanning, TLS certificate pinning, and memory integrity checks respectively.+}

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**Effectiveness:** 3/5 — Audit controls are detection-focused, not prevention-focused. They reduce the time-to-detection of security incidents and provide forensic capability, but do not prevent the incident from occurring.-]

### 2.7 Audit, Compliance, and Supply Chain Monitoring

[-**Bypass Vectors:** - A sufficiently capable attacker can disable or tamper with audit mechanisms before taking malicious action - Alert fatigue: high volumes of false-positive anomaly detections cause security teams to ignore genuine alerts - Audit gaps: controls only detect what they are configured to detect; novel attack vectors produce no alerts-]

### 2.7.1 Extended Supply Chain Attack Surface

{+**Effectiveness:** 3/5 — Detection-focused, not prevention-focused. Reduces time-to-detection; does not prevent the incident.+}

### 2.7.1 Extended Supply Chain Attack Surface

{+**Primary Bypass Vectors:** Audit mechanism tampering before malicious action; alert fatigue from false positives; detection gaps for novel attack vectors.+}

### 2.7.2 Incident Response

{+#### 2.7.2 Incident Response+}

### 2.7.2 Incident Response

{+Audit logging without incident response procedures is incomplete. For each attack category, organizations should document:+}

### 2.7.2 Incident Response

{+- **Containment:** Immediate isolation steps (kill agent process, revoke credentials, disconnect network) - **Eradication:** Root cause identification and remediation (remove malicious skill, patch vulnerability, rotate compromised keys) - **Recovery:** Service restoration and verification (rebuild from known-good state, verify integrity) - **Lessons learned:** Post-incident review updating AEGIS configuration+}

### 2.7.2 Incident Response

{+A minimal incident response checklist for agent deployments: 1. Kill the agent process immediately 2. Capture audit logs before they rotate 3. Identify the attack vector (skill, prompt injection, network exploit, behavioral) 4. Rotate all credentials the agent had access to 5. Review audit trail for data exfiltration indicators 6. Report per applicable regulatory obligations (GDPR 72-hour notification, etc.)+}

### 2.8 Self-Modification Prevention

**Mechanism.** [-A particularly important class of control: preventing-] {+Preventing+} the agent from modifying its own code, guardrails, [-configuration files,-] {+configuration,+} or permission structures. An agent that can [-modify-] {+edit+} its own system [-prompt, SOUL.md, or tool permission configuration-] {+prompt+} can [-trivially-] disable all probabilistic controls.

### 2.8 Self-Modification Prevention

[-**File Permission Hardening.** Making the agent's own configuration files read-only (and owned by a different user) prevents self-modification:-]

### 2.8 Self-Modification Prevention

```bash # Lock down agent configuration [-— owned by admin, readable by agent-] sudo chown root:root /path/to/SOUL.md AGENTS.md sudo chmod 444 /path/to/SOUL.md [-AGENTS.md-] {+AGENTS.md ```+}

### Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```

[-# Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```-]

### Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```

[-**Immutable Container Filesystems.** Running the agent in a container with a read-only root filesystem (`--read-only` in Docker) prevents any writes to the container's own filesystem, including configuration files. Writable state must be explicitly bind-mounted.-]

### Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```

[-**Runtime Integrity Monitoring.** Tools like AIDE (Advanced Intrusion Detection Environment) or Falco can detect changes to critical files and alert or terminate the agent process.-]

### Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```

[-**Classification:** DETERMINISTIC-]

### Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```

[-**Effectiveness:** 4/5 — Highly effective when configuration files are genuinely owned by a separate user and made read-only. Often neglected in hobbyist deployments.-]

### Agent user cannot modify its own permissions sudo chown root:root /path/to/openclaw.config sudo chmod 644 /path/to/openclaw.config ```

[-**Bypass Vectors:** - If the agent runs as the same user that owns the configuration files, read-only file permissions are ineffective (the user can `chmod` their own files) - Memory-resident modification: the agent could potentially modify configuration that exists only in memory if the runtime loads config at startup and holds it in a modifiable data structure - Social engineering: the agent could ask the user to make changes that effectively modify its own configuration ("please add this rule to SOUL.md")-]

### 2.8 Self-Modification Prevention

{+Immutable container filesystems (`--read-only`) prevent writes to the container's own filesystem. Runtime integrity monitoring (AIDE, Falco) detects changes to critical files.+}

### 2.8 Self-Modification Prevention

{+**Classification:** DETERMINISTIC · **Effectiveness:** 4/5+}

### 2.8 Self-Modification Prevention

{+**Primary Bypass Vectors:** Agent running as file owner (can `chmod` own files); memory-resident modification of runtime-loaded config; social engineering the user to make changes ("please add this rule to SOUL.md").+}

### 2.9 Consolidated Attack Surface Map

{+### 2.9 Consolidated Attack Surface Map+}

### 2.9 Consolidated Attack Surface Map

{+Table 1 maps each security strategy class to the STRIDE+agent threat categories it addresses:+}

### 2.9 Consolidated Attack Surface Map

{+| Strategy Class | S | T | R | I | D | E | Delayed | Multi-Agent | Model-Level | Approval Fatigue | |---|---|---|---|---|---|---|---|---|---|---| | 2.1 Filesystem ACLs | · | · | · | ✓ | · | ✓ | · | · | · | · | | 2.2 Process Isolation | ✓ | ✓ | · | ✓ | ✓ | ✓ | · | ✓ | · | · | | 2.3 Programmatic Guards | ✓ | ✓ | · | ✓ | · | ✓ | · | · | · | △ | | 2.4 Network Controls | · | · | · | ✓ | ✓ | · | · | · | · | · | | 2.5 Prompt-Level Rules | ✓ | △ | · | △ | · | △ | △ | △ | · | · | | 2.6 Privacy Routing | · | · | · | ✓ | · | · | · | · | · | · | | 2.7 Audit/Supply Chain | · | ✓ | ✓ | △ | · | · | ✓ | · | ✓ | · | | 2.8 Self-Mod Prevention | · | ✓ | · | · | · | ✓ | ✓ | · | · | · |+}

### 2.9 Consolidated Attack Surface Map

{+✓ = directly addresses · △ = partially addresses · · = does not address+}

### 2.9 Consolidated Attack Surface Map

{+**Notable gaps:** No single strategy class fully addresses model-level compromise or approval fatigue. These require composite mitigations across multiple layers.+}

### 3. Three Persona Analysis

[-To translate the abstract taxonomy above into concrete risk assessment, we construct three deployment personas representing distinct points on the risk-exposure spectrum. Each persona is defined by their data environment, their likely security posture, and the consequences they face from a security failure.-]

### 3. Three Persona Analysis

{+We construct three deployment personas representing distinct points on the risk-exposure spectrum.+}

### 3.1 Persona A — The Tinkerer

**Profile.** Alex is a software developer [-who runs-] {+running+} OpenClaw on [-their-] {+a+} personal [-laptop. They use it primarily-] {+laptop+} for coding assistance, web research, [-note-taking,-] and personal productivity. [-Alex installed OpenClaw-] {+Installed+} from [-the-] community [-repository, accepted-] {+repository with+} default [-configuration, and has been expanding its tool access organically over several months. They are-] {+configuration;+} technically competent but [-have not performed a-] {+no+} formal {+agent+} security [-review of their agent configuration.-] {+review.+}

### 3.1 Persona A — The Tinkerer

[-**Data Environment.** Alex's laptop contains:-]

### 3.1 Persona A — The Tinkerer

[-- **SSH keys** (`~/.ssh/id_rsa`, `~/.ssh/config`) — access to personal servers, GitHub, remote development machines - **API tokens** in `.env` files scattered across project directories — AWS, GitHub personal access tokens, OpenAI API keys, Stripe test keys - **Personal photos** — private photos including family, travel, potentially compromising personal content - **Browser history and saved passwords** — Chrome/Firefox profile with years of browsing history, hundreds of saved credentials in the browser keychain - **Personal email access** — agent configured with Gmail OAuth token for inbox management - **Side-project source code** — multiple repositories including one pre-revenue startup that Alex has not yet published - **Crypto wallet seeds** — a `.txt` file in `~/Documents` containing the seed phrase for an Ethereum wallet with ~$15,000 in holdings - **Personal finance data** — CSV exports from Mint/YNAB, bank statement PDFs-]

### 3.1 Persona A — The Tinkerer

[-**Risk Profile.** Alex has no security hardening. The agent runs under their own user account with full access to all the above. No AppArmor profile. WebSocket port bound to `0.0.0.0`. Three skills installed from the community registry without verification.-]

### 3.1 Persona A — The Tinkerer

[-**Potential Consequences of Security Failure:**-]

### 3.1 Persona A — The Tinkerer

[-- *SSH key exfiltration:* Loss of server access, potential use of compromised keys to impersonate Alex to GitHub, access to cloud resources - *API token exfiltration:* AWS credential theft could result in cloud resource abuse and bills in the thousands; GitHub PAT enables repository access and potential code injection into Alex's projects - *Crypto wallet seed exfiltration:* Immediate and irreversible loss of all cryptocurrency holdings — in Alex's case, ~$15,000 - *Personal photo exposure:* Reputational damage, potential blackmail if content is sensitive - *Browser credential theft:* Account takeover across hundreds of services including banking, email, social media - *Source code theft:* Intellectual property loss for pre-revenue startup; competitive disadvantage-]

### 3.1 Persona A — The Tinkerer

{+**Data Environment (highest-risk items highlighted):** - **SSH keys** — access to servers, GitHub, remote machines - **API tokens** in `.env` files — AWS, GitHub PATs, Stripe keys - **Crypto wallet seed** (~$15,000 in ETH) — **irreversible loss if exfiltrated** - **Browser credentials** — years of saved passwords - Personal photos, email access, side-project source code, finance data+}

### 3.1 Persona A — The Tinkerer

{+**Risk Profile.** No security hardening. Agent runs under personal user account. WebSocket on `0.0.0.0`. Three unverified community skills.+}

### 3.1 Persona A — The Tinkerer

[-The most-] {+**Most+} severe [-consequence for Persona A is the crypto-] {+consequence:** Crypto+} wallet seed {+exfiltration+} — [-a single file whose exfiltration results in-] immediate, irreversible financial [-loss with no recourse.-] {+loss.+}

### 3.2 Persona B — The Freelancer

**Profile.** Blake is a self-employed business consultant [-specializing in-] {+handling+} financial and operational strategy for SMEs. [-They run-] {+Uses+} OpenClaw for client research, document drafting, {+and+} contract [-management, and meeting preparation. Blake is aware of general-] {+management. General+} cybersecurity [-hygiene-] {+awareness+} but [-has not considered the specific-] {+no agent-specific+} risk [-profile of an AI agent with tool access.-] {+assessment.+}

### 3.2 Persona B — The Freelancer

[-**Data Environment.** Blake's environment includes everything from Persona A, plus:-]

### 3.2 Persona B — The Freelancer

[-- **Client contracts with NDAs** — signed agreements with confidentiality clauses covering client information and business strategies - **Client financial data** — P&L statements, balance sheets, cash flow projections for 12 active clients - **Invoices with bank details** — outgoing invoices with Blake's business bank account details; incoming client payment confirmations - **Client communications with privileged information** — email threads discussing pre-announcement financial results, planned redundancies, M&A activity - **Business strategy documents** — client strategic plans marked "CONFIDENTIAL — NOT FOR DISTRIBUTION" - **Tax records** — multiple years of business tax returns including Schedule C, client 1099 records - **Competitive intelligence** — research reports and analysis compiled for client engagements-]

### 3.2 Persona B — The Freelancer

[-**Risk Profile.** Blake has slightly more security awareness than Alex — they use 1Password for credentials and have two-factor authentication on most accounts. However, they have not applied any OpenClaw-specific security hardening, and the agent has email access, document access, and web browsing capability.-]

### 3.2 Persona B — The Freelancer

[-**Potential Consequences of Security Failure:**-]

### 3.2 Persona B — The Freelancer

[-- *NDA violation:* Exposure of client confidential information could result in breach of contract lawsuits. Depending on the nature of the disclosed information, damages could range from contract value to consequential business losses — potentially hundreds of thousands of dollars per client. - *Client trust destruction:* Loss of all active client relationships. For a freelancer with no institutional backing, reputational damage in a professional network is existential. - *GDPR regulatory fines:* If Blake handles EU resident data (likely given European clients), unauthorized disclosure of personal data triggers GDPR obligations. Fines can reach €20 million or 4% of global turnover, whichever is higher. For a small consultancy, even a modest fine could be business-ending. - *Financial liability:* Exposed client financial data — especially pre-public M&A activity or unannounced financial results — could constitute a securities law violation if used inappropriately, with personal liability. - *Tax fraud exposure:* Tax records including client details could enable identity theft targeting Blake's clients.-]

### 3.2 Persona B — The Freelancer

{+**Data Environment (highest-risk items highlighted):** - **Client NDAs and contracts** — confidentiality clauses covering business strategies - **Client financial data** — P&L statements, projections for 12 active clients - **Privileged client communications** — **pre-announcement financials, M&A activity, planned redundancies** - **PII of client individuals** — names, addresses, financial identifiers - Invoices with bank details, tax records, competitive intelligence+}

### 3.2 Persona B — The Freelancer

{+**Risk Profile.** Uses 1Password and 2FA but no OpenClaw-specific hardening. Agent has email, document, and web browsing access.+}

### 3.2 Persona B — The Freelancer

[-The most-] {+**Most+} severe [-consequence for Persona B is combined-] {+consequence:** Combined+} NDA breach liability [-plus-] {+++} GDPR fines — [-a scenario in which a single security incident results in-] multiple simultaneous lawsuits and regulatory proceedings.

### 3.2.1 Regulatory Mapping — Persona B

{+#### 3.2.1 Regulatory Mapping — Persona B+}

### 3.2.1 Regulatory Mapping — Persona B

{+| Regulation | Applicability | Key Articles | Agent-Specific Risk | |---|---|---|---| | **GDPR** | If handling EU resident data | Art. 5 (purpose limitation), Art. 6 (lawful basis), Art. 28 (processor obligations), Art. 32 (security of processing), Art. 33 (72-hr breach notification) | The agent is likely a "processor" under Art. 28 — Blake as "controller" must ensure adequate security measures. Sending client PII to an external LLM API without a Data Processing Agreement may violate Art. 28. | | **Art. 22 GDPR** | If agent makes decisions affecting individuals | Art. 22 (automated individual decision-making) | If the agent autonomously categorizes or prioritizes client information that affects business decisions, Art. 22 may apply, requiring human oversight. | | **ePrivacy** | Client email communications | Art. 5 (confidentiality of communications) | Agent reading client emails for "inbox management" may constitute processing of communication content. |+}

### 3.3 Persona C — The Corporate Employee

**Profile.** Cameron is a senior IT infrastructure engineer at a 5,000-person financial services firm. [-They installed TinkerClaw (the company's-] {+Installed an+} unofficial {+OpenClaw+} fork [-of OpenClaw)-] on [-their company-issued-] {+a company+} MacBook [-to assist with infrastructure documentation, runbook generation,-] {+for documentation+} and incident response. [-The installation was not-] {+Not+} approved by IT security. [-Cameron is technically sophisticated and has given the agent broad-] {+Broad+} filesystem and network access [-because "it's-] {+"because it's+} more useful that way."

### 3.3 Persona C — The Corporate Employee

[-**Data Environment.** Cameron's environment includes everything from Personas A and B, plus:-]

### 3.3 Persona C — The Corporate Employee

[-- **Corporate file share access** — via mounted network drive: salary data for all 5,000 employees, infrastructure architecture diagrams, production system passwords stored in legacy spreadsheets - **Proprietary IP** — source code for the firm's trading algorithms and risk models (Cameron's team maintains the infrastructure that runs them) - **Internal communications about mergers and layoffs** — Cameron is in the distribution list for IT infrastructure planning, which includes capacity planning for planned office closures - **Customer PII databases** — access to production database connection strings and credentials; indirect access to customer records of 2 million retail banking clients - **Regulatory compliance documents** — SOX audit workpapers, HIPAA compliance assessments, internal audit reports identifying control deficiencies - **Privileged IT credentials** — Active Directory admin credentials, root access to production servers, network device management passwords stored in Cameron's password manager-]

### 3.3 Persona C — The Corporate Employee

{+**Data Environment (highest-risk items highlighted):** - **Production DB credentials** — access to 2M customer records — **regulatory catastrophe if breached** - **M&A communications** — **insider trading liability regardless of personal profit** - **Trading algorithm IP** — core competitive advantage worth potentially hundreds of millions - Salary data (5,000 employees), SOX audit workpapers, IT admin credentials, infrastructure diagrams+}

### 3.3 Persona C — The Corporate Employee

**Risk Profile.** [-Cameron has high-] {+High+} personal technical [-sophistication-] {+skill+} but [-is-] operating outside corporate [-IT-] governance. [-The agent-] {+Agent+} runs with Cameron's [-own-] domain [-user credentials, giving it the same permissions Cameron has on corporate systems — which are extensive. The company's-] {+credentials. Corporate+} DLP [-(Data Loss Prevention) tools monitor email and USB, but do-] {+does+} not monitor AI agent API calls.

### 3.3 Persona C — The Corporate Employee

[-**Potential Consequences of Security Failure:**-]

### 3.3 Persona C — The Corporate Employee

[-- *Corporate espionage:* Trading algorithm source code and risk model IP represent core competitive advantage. Loss to a competitor or nation-state actor could be worth hundreds of millions of dollars. - *Regulatory catastrophe:* A breach exposing customer PII triggers GDPR (EU customers), potential CCPA (California customers), and financial services-specific regulations (PSD2, GLBA). Reporting obligations, regulatory investigation, fines, and remediation costs could reach into the hundreds of millions for a firm of this size. - *Insider trading exposure:* Cameron has access to information about planned M&A activity. If that information were exfiltrated and used for trading, the firm faces SEC investigation regardless of whether Cameron personally profited — the mere presence of the information in an unsecured AI agent session creates regulatory liability. - *Mass customer data breach:* Access to production database credentials with 2 million customer records represents a systemic breach risk. Customer notification requirements, credit monitoring obligations, and class action litigation exposure are substantial. - *SOX violation:* Exposure of SOX audit workpapers identifying control deficiencies before remediation could constitute a disclosure violation or provide a roadmap for fraud. - *Personal consequences:* Cameron faces termination, personal civil liability, potential criminal prosecution for securities law violations or unauthorized computer access, and industry-wide career damage.-]

### 3.3 Persona C — The Corporate Employee

{+**Most severe consequence:** Regulatory catastrophe spanning GDPR, GLBA, SEC, and SOX — corporate-scale liability with personal criminal exposure.+}

### 3.3.1 Regulatory Mapping — Persona C

{+#### 3.3.1 Regulatory Mapping — Persona C+}

### 3.3.1 Regulatory Mapping — Persona C

{+| Regulation | Specific Violation Risk | Potential Consequence | |---|---|---| | **GDPR** (Art. 32, 33) | Inadequate security for 2M customer records; failure to notify within 72 hours | Fines up to €20M or 4% global turnover | | **SOX** (§302, §404) | Agent accessing audit workpapers identifying control deficiencies; unauthorized disclosure | Personal CEO/CFO certification liability; SEC enforcement | | **GLBA** (Safeguards Rule) | Customer financial data accessible to unsanctioned tool | Regulatory enforcement by OCC/FDIC | | **SEC** (Reg FD, insider trading) | M&A information in unsecured agent session | Investigation regardless of personal profit; firm-level liability | | **Computer Fraud & Abuse Act** | Unauthorized access to systems via agent exceeding intended scope | Personal criminal liability for Cameron |+}

### 3.4 Multi-Agent Trust and User Authentication

{+### 3.4 Multi-Agent Trust and User Authentication+}

### 3.4 Multi-Agent Trust and User Authentication

{+Two cross-cutting concerns apply to all personas:+}

### 3.4 Multi-Agent Trust and User Authentication

{+**Multi-agent trust hierarchies.** Modern deployments involve agents spawning subagents. Key questions the security architecture must answer: - Can a subagent inherit the parent's permissions? (Default in most runtimes: yes — dangerously) - Can a compromised parent escalate privilege through a child? (If the child has a broader tool manifest: yes) - What is the equivalent of `sudo` in agent hierarchies? (Currently: nothing — there is no privilege boundary between parent and child)+}

### 3.4 Multi-Agent Trust and User Authentication

{+Recommended mitigation: subagents should inherit the *intersection* of parent permissions and a pre-defined subagent profile, never the union. Every subagent spawn should be logged with the spawning context.+}

### 3.4 Multi-Agent Trust and User Authentication

{+**User authentication.** The paper's threat model assumes the user issuing commands is legitimate. In shared environments (family laptops, team workstations), agents should verify command origin. Mitigations include session tokens, biometric confirmation gates for high-risk actions, and separate agent profiles per user.+}

### Scoring Methodology

{+### Scoring Methodology+}

### Scoring Methodology

[-For each persona, we present a formal risk matrix.-] Probability (P) and Severity (S) are rated 1–5, with Risk Score = P × [-S. Maximum possible score is 25.-] {+S (maximum 25).+}

### Scoring Methodology

{+**Probability calibration:** - P=1: No known instances; requires novel exploit chain - P=2: Theoretically possible; fewer than 5 documented instances globally - P=3: Documented instances exist; requires moderate attacker sophistication or specific misconfiguration - P=4: Commonly observed in public incident databases or security scans; low attacker sophistication required - P=5: Near-certain in default configurations; automated exploitation exists+}

### Scoring Methodology

{+**Severity calibration:** - S=1: Nuisance; no financial or reputational impact - S=2: Minor financial loss (<$500) or temporary inconvenience - S=3: Moderate financial loss ($500–$10,000) or recoverable reputational damage - S=4: Major financial loss ($10,000–$100,000) or significant professional/legal consequences - S=5: Catastrophic financial loss (>$100,000), irreversible damage, criminal liability, or regulatory enforcement+}

### Scoring Methodology

{+Scores are calibrated against: CVE-2026-25253 exploitation frequency (P=4 based on 40,000 exposed instances); Cisco Talos supply chain reach (P=3 based on 8,000 installs from 17 skills); and CVSS v4 severity alignment for impact ratings.+}

### 4.1 Risk Matrix — Persona A (The Tinkerer)

| Data Type | Leak Vector | P | S | Score | Recommended Mitigation | |---|---|---|---|---|---| | [-SSH Keys-] {+Browser Credentials+} | [-Malicious Skill | 3-] {+Network Exposure (CVE)+} | 4 | [-12-] {+4+} | [-Filesystem ACL (§2.1), Skill vetting (§2.7)-] {+16 | Port bind to 127.0.0.1 (§2.4)+} | | SSH Keys | Filesystem Access | 4 | 4 | 16 | AppArmor [-profile denying `~/.ssh`-] {+deny ~/.ssh+} (§2.1) {+| | Crypto Wallet Seed | Filesystem Access | 3 | 5 | 15 | AppArmor deny + encryption at rest (§2.1) | | Crypto Wallet Seed | Malicious Skill | 3 | 5 | 15 | Container isolation (§2.2), Skill vetting (§2.7) | | SSH Keys | Malicious Skill | 3 | 4 | 12 | Skill vetting (§2.7)+} | | API Tokens (.env) | Malicious Skill | 4 | 3 | 12 | [-Skill vetting (§2.7),-] Filesystem ACL (§2.1) | | API Tokens (.env) | Prompt Injection | 3 | 3 | 9 | Content tagging (§2.5), Privacy routing (§2.6) | | [-Crypto Wallet Seed | Filesystem Access | 3 | 5 | 15 | High-priority AppArmor deny (§2.1), Encryption at rest | | Crypto Wallet Seed | Malicious Skill | 3 | 5 | 15 | Container isolation (§2.2), Skill allowlist (§2.3) | |-] Personal Photos | Filesystem Access | 2 | 3 | 6 | Filesystem ACL (§2.1) | | [-Browser Credentials | Network Exposure | 4 | 4 | 16 | Port bind to 127.0.0.1 (§2.4), Patch CVE-2026-25253 | | Personal Email | Model Hallucination | 2 | 2 | 4 | Elevated permission gate (§2.3) | |-] Source Code (IP) | Prompt Injection | 2 | 3 | 6 | [-Content tagging (§2.5),-] Exec allowlist (§2.3) | | Browser History | Filesystem Access | 3 | 2 | 6 | [-Filesystem ACL (§2.1),-] Container (§2.2) {+| | Personal Email | Behavioral Ambiguity | 2 | 2 | 4 | Elevated permission gate (§2.3)+} |

### 4.1 Risk Matrix — Persona A (The Tinkerer)

[-**Highest-Priority Risks for Persona A:** Browser credential exposure via CVE-2026-25253 (Score: 16), SSH key filesystem access (Score: 16), Crypto wallet seed via filesystem (Score: 15).-]

### 4.1 Risk Matrix — Persona A (The Tinkerer)

[-**Minimum Viable Actions:** Bind WebSocket to 127.0.0.1; install AppArmor profile denying `~/.ssh`, `~/.gnupg`, crypto seed files; verify all installed skills against known-good hashes.-]

### 4.1 Risk Matrix — Persona A (The Tinkerer)

{+**Highest-priority:** Browser credentials via CVE (16), SSH keys via filesystem (16), Crypto seed (15).+}

### 4.2 Risk Matrix — Persona B (The Freelancer)

| Data Type | Leak Vector | P | S | Score | Recommended Mitigation | |---|---|---|---|---|---| | {+Privileged+} Client [-NDAs/Contracts-] {+Comms+} | Prompt Injection | [-3-] {+4+} | 5 | [-15-] {+20+} | Content tagging (§2.5), [-Privacy routing (§2.6)-] {+Email access restriction+} | | Client Financial Data | Model [-Hallucination-] {+API Leakage+} | 3 | 5 | 15 | Privacy routing to local model [-(§2.6), Audit log (§2.7)-] {+(§2.6)+} | | Client Financial Data | Memory Persistence | 3 | 5 | 15 | Memory retention limits, Audit (§2.7) | | [-Invoices/Bank Details | Malicious Skill | 3 | 4 | 12 | Skill supply chain monitoring (§2.7) | | Privileged-] Client [-Comms-] {+NDAs/Contracts+} | Prompt Injection [-| 4 | 5 | 20 | Aggressive content tagging (§2.5), Email access restriction | | Business Strategy Docs | Filesystem Access-] | 3 | 5 | 15 | [-Path-restricted agent workspace (§2.1, §2.2) | | Tax Records | Filesystem Access | 2 | 4 | 8 | Filesystem ACL (§2.1)-] {+Privacy routing (§2.6)+} | | PII (client individuals) | Network Exposure | 3 | 5 | 15 | Firewall egress [-rules-] (§2.4), Privacy routing (§2.6) {+| | Business Strategy Docs | Filesystem Access | 3 | 5 | 15 | Path-restricted workspace (§2.1, §2.2)+} | | Bank Account Details | Malicious Skill | 3 | 5 | 15 | Skill vetting, Container [-isolation-] (§2.2) {+| | Invoices/Bank Details | Malicious Skill | 3 | 4 | 12 | Supply chain monitoring (§2.7)+} | | Competitive Intel | Prompt Injection | 3 | 4 | 12 | Content tagging, Read-only doc access {+| | Tax Records | Filesystem Access | 2 | 4 | 8 | Filesystem ACL (§2.1)+} |

### 4.2 Risk Matrix — Persona B (The Freelancer)

[-**Highest-Priority Risks for Persona B:** Privileged client communications via prompt injection (Score: 20); multiple data types at Score 15 involving financial and PII data.-]

### 4.2 Risk Matrix — Persona B (The Freelancer)

[-**Critical Insight:**-] {+**Highest-priority:** Privileged client communications via prompt injection (20).+} The highest-risk vector for Persona B is not a technical exploit but a behavioral one — prompt injection via client documents [-or emails-] causing the agent to summarize or forward confidential [-client-] information. This underscores why probabilistic controls alone are insufficient for this persona.

### 4.2 Risk Matrix — Persona B (The Freelancer)

[-**Minimum Viable Actions:** Privacy routing for any content from client directories; explicit scope restriction preventing the agent from accessing client files without per-session confirmation; GDPR data inventory documenting what personal data the agent can access.-]

### 4.3 Risk Matrix — Persona C (The Corporate Employee)

| Data Type | Leak Vector | P | S | Score | Recommended Mitigation | |---|---|---|---|---|---| | Production DB Credentials | Filesystem Access | 4 | 5 | 20 | [-Emergency:-] {+**Emergency:**+} remove agent access {+| | M&A Communications | Memory Persistence | 4 | 5 | 20 | No agent email access+} to [-credential stores-] {+privileged lists+} | | Customer PII (2M records) | Network Exposure | 3 | 5 | 15 | Firewall + VPN isolation [-(§2.4), Agent off corporate network-] {+(§2.4)+} | | Customer PII | Malicious Skill | 3 | 5 | 15 | Skill manifest lockdown (§2.2, §2.3) | | Trading Algorithm IP | Prompt Injection | 3 | 5 | 15 | [-Content tagging,-] IP directory out-of-scope [-| | M&A Communications | Memory Persistence | 4 | 5 | 20 | No agent email access to privileged lists-] | | Salary Data | Filesystem Access | 4 | 4 | 16 | ACL [-preventing access to-] {+deny+} HR network share (§2.1) | | IT Credentials (AD) | Malicious Skill | 3 | 5 | 15 | Credential manager [-isolation, Container-] {+isolation+} (§2.2) | | SOX Audit Workpapers | Filesystem Access | 3 | 5 | 15 | Filesystem ACL, Audit [-log-] (§2.7) [-| | Mergers/Layoffs Info | Model Hallucination | 3 | 5 | 15 | No access to relevant email distribution lists-] | | Infra Architecture Diagrams | Network Exposure | 4 | 4 | 16 | VPN isolation, Patch [-CVE-2026-25253-] {+CVE | | Mergers/Layoffs Info | Behavioral Ambiguity | 3 | 5 | 15 | No access to relevant distribution lists+} |

### 4.3 Risk Matrix — Persona C (The Corporate Employee)

[-**Highest-Priority Risks for Persona C:**-] {+**Highest-priority:**+} Production [-database-] {+DB+} credentials {+(20)+} and M&A communications [-both at Score 20-] {+(20)+} — both represent [-potential-] regulatory and criminal liability at corporate [-scale, not just individual risk.-] {+scale.+}

### 4.3 Risk Matrix — Persona C (The Corporate Employee)

[-**Critical Insight:** For Persona C, several risk scenarios fall outside the "security misconfiguration" category and into the "this configuration should not exist" category. An agent running on a corporate laptop with access to production credentials and insider information is not a misconfigured security setup — it is a fundamentally inappropriate deployment that requires policy-level intervention, not configuration hardening. The recommendation is: do not run autonomous agents with these access levels without explicit IT security review and corporate governance approval.-]

### 4.3 Risk Matrix — Persona C (The Corporate Employee)

{+**Critical:** Several scenarios here are not "misconfiguration" but "this configuration should not exist." An agent with access to production credentials and insider information requires policy-level intervention, not configuration hardening. The minimum action is **scope restriction** before any technical control.+}

### 5. NemoClaw and OpenShell: A Case Study in Principled Architecture

## 5. NemoClaw and OpenShell: A {+Case Study in+} Principled Architecture

### 5.1 NVIDIA's Approach

NVIDIA's [-entry into the agent runtime space,-] {+NemoClaw,+} announced at GTC 2026, represents the most systematically security-conscious commercial agent framework to [-date. NemoClaw is not merely OpenClaw with security features bolted on-] {+date+} — [-it is-] a ground-up redesign [-of the agent execution architecture-] around isolation and policy enforcement as first-class [-primitives.-] {+primitives. We examine it as a case study in how the principles identified in §2 can be architecturally integrated.+}

### 5.1 NVIDIA's Approach

[-The core architectural difference from conventional agent runtimes is the **OpenShell execution substrate**: a sandboxed agent execution environment that enforces policies at the OS and process level, outside the agent's own code.-]

### 5.1 NVIDIA's Approach

{+**Important caveats:** NemoClaw has not yet seen wide production deployment, so its security claims remain largely unvalidated at scale. NVIDIA has a commercial interest in positioning NemoClaw as the "secure" alternative to open-source runtimes. The OpenShell architecture adds complexity that itself becomes attack surface — more code means more potential bugs. Our analysis is based on publicly available GTC 2026 materials and technical documentation.+}

### 5.2 OpenShell: Out-of-Process Policy Enforcement

[-The conventional approach to agent guardrails — including OpenClaw's built-in permission system — implements checks *within* the agent process. When an agent attempts to invoke the exec tool, OpenClaw's in-process code checks whether the command is allowed before executing it. This works in the absence of attacks, but has a fundamental weakness: the same process that is being constrained is also responsible for enforcing the constraint. A compromised or manipulated agent — for example, one that has been injected with a prompt causing it to believe it has special permissions — may be able to influence or bypass in-process checks.-]

### 5.2 OpenShell: Out-of-Process Policy Enforcement

{+The conventional approach to agent guardrails implements checks *within* the agent process. OpenClaw's in-process code checks command permissions before execution — effective absent attacks, but fundamentally weak: the constrained process also enforces the constraint. A manipulated agent may influence or bypass in-process checks.+}

### 5.2 OpenShell: Out-of-Process Policy Enforcement

OpenShell places the policy [-enforcement-] engine in a **separate, privileged [-process** that the agent process cannot communicate with directly.-] {+process**.+} The agent [-process-] calls a restricted system call [-interface. The-] {+interface; the+} OpenShell kernel [-intercepts these calls,-] {+intercepts,+} evaluates [-them-] against [-the policy configuration,-] {+policy,+} and [-either-] permits or [-denies them.-] {+denies.+} The agent [-has no-] {+cannot+} access [-to the policy engine itself and cannot-] {+or+} modify its own [-policy.-] {+policy. This is architecturally analogous to the Linux kernel's relationship with user-space processes.+}

### 5.2 OpenShell: Out-of-Process Policy Enforcement

[-This is architecturally analogous to the Linux kernel's relationship with user-space processes: a user-space process cannot directly modify kernel data structures that control its own permissions. OpenShell extends this principle to agent-level policy.-]

### 5.3 The Browser Tab Model

### 5.3 The Browser Tab [-Model for Agent Isolation-] {+Model+}

### 5.3 The Browser Tab Model

OpenShell's isolation [-model-] draws an explicit analogy to web browsers. [-In a modern browser, each tab-] {+Each agent session+} runs in [-a separate process (Chrome's process-per-tab architecture), with a-] {+an isolated context —+} separate memory [-space and-] {+space,+} separate origin [-context. A malicious web page in one tab cannot directly access-] {+context — analogous to Chrome's process-per-tab architecture. Cross-session communication occurs only through audited channels mediated by+} the [-DOM, cookies, or memory of another tab. The browser kernel (the browser process itself) mediates all cross-tab communication.-] {+OpenShell kernel.+}

### 5.3 The Browser Tab Model for Agent Isolation

[-NemoClaw applies this model to agents: each agent session runs in an isolated OpenShell context. A compromised or malicious session cannot directly access the state of other sessions. Cross-session communication occurs only through defined, audited channels mediated by the OpenShell kernel.-]

### 5.3 The Browser Tab Model for Agent Isolation

[-This has immediate practical implications:-]

### 5.3 The Browser Tab Model for Agent Isolation

[-- A prompt-injected agent session cannot access the memory, tool history, or configuration of a parallel agent session - A malicious skill installed in one session cannot observe or influence other sessions - Session state is cryptographically bound to the session identity; replaying session tokens from one session context into another fails-]

### 5.3 The Browser Tab Model

{+Practical implications: a prompt-injected session cannot access parallel sessions' state; malicious skills in one session cannot observe others; session tokens cannot be replayed across contexts.+}

### 5.4 Privacy Router Architecture

[-NemoClaw's privacy routing system, described at a high level in §2.6, implements a three-tier data classification model:-]

### 5.4 Privacy Router Architecture

[-**Tier 1 (Local-Only).** Data classified as containing PII, credentials, financial information, or content matching enterprise DLP patterns is processed exclusively by local models. No data leaves the local network. Supported local inference targets include Llama 3 70B and 405B via NVIDIA NIMs (NeMo Inference Microservices).-]

### 5.4 Privacy Router Architecture

[-**Tier 2 (Trusted Third-Party).** Data that does not match sensitive classifiers but requires more capability than local models can provide may be routed to a pre-approved list of third-party API providers (e.g., Anthropic Claude, OpenAI GPT-4). These providers must be configured in a signed routing policy file owned by the system administrator.-]

### 5.4 Privacy Router Architecture

[-**Tier 3 (Public-OK).** Generic tasks with no sensitive data and no privacy implications can use any available model for performance and cost optimization.-]

### 5.4 Privacy Router Architecture

{+NemoClaw implements three-tier data classification:+}

### 5.4 Privacy Router Architecture

{+- **Tier 1 (Local-Only):** PII, credentials, financial data → local models (Llama 3 via NVIDIA NIMs). No data leaves the network. - **Tier 2 (Trusted Third-Party):** Non-sensitive but capability-demanding → pre-approved API providers in a signed routing policy. - **Tier 3 (Public-OK):** Generic tasks → any available model.+}

### 5.4 Privacy Router Architecture

The routing decision is made by the OpenShell policy engine [-(out-of-process), not by the agent itself.-] {+(out-of-process).+} The agent cannot override [-the routing decision.-] {+it.+}

### 5.5 The Safety-Capability-Autonomy Trilemma

[-### 5.5 The Safety-Capability-Autonomy Trilemma-]

### 5.5 The Safety-Capability-Autonomy Trilemma

[-NemoClaw's documentation explicitly acknowledges what we term the **safety-capability-autonomy trilemma**: given the current state of AI technology, it is possible to reliably achieve at most two of the three following properties simultaneously:-]

### 5.5 The Safety-Capability-Autonomy Trilemma

[-- **Safety:** The agent cannot take actions that cause harm, violate policy, or exfiltrate data - **Capability:** The agent can accomplish complex, multi-step tasks with minimal human intervention - **Autonomy:** The agent operates without human oversight of individual decisions-]

### 5.5 The Safety-Capability-Autonomy Trilemma

[-The trilemma manifests in practice as follows:-]

### 5.5 The Safety-Capability-Autonomy Trilemma

[-- **High Safety + High Capability, Low Autonomy:** Possible with comprehensive approval gates and audit trails, but requires constant human oversight. Useful for high-stakes individual tasks; impractical for background automation. - **High Safety + High Autonomy, Low Capability:** Possible by drastically restricting the agent's action space to only safe, pre-approved operations. The agent can run autonomously because it can only do things that are pre-screened as safe. But its capability is limited to exactly those pre-approved operations. - **High Capability + High Autonomy, Low Safety:** The current de facto state of most OpenClaw deployments. The agent can do a great deal, it can do it without supervision, but it can also do harmful things if manipulated or misconfigured.-]

### 5.5 The Safety-Capability-Autonomy Trilemma

[-NemoClaw's approach is to be explicit about which profile is appropriate for which use case, and to make it technically difficult (not merely inadvisable) to configure a deployment for the third option without conscious acknowledgment.-]

### 5.6 Comparison: TinkerClaw vs. NemoClaw

[-### 5.6 Comparison: TinkerClaw vs. NemoClaw-]

### 5.6 Comparison: TinkerClaw vs. NemoClaw

[-TinkerClaw, the corporate fork referenced in Persona C's context, inherits OpenClaw's in-process policy architecture. We map what NemoClaw adds relative to TinkerClaw across several dimensions:-]

### 5.5 Comparative Analysis

{+### 5.5 Comparative Analysis+}

### 5.5 Comparative Analysis

| [-Security-] Dimension | TinkerClaw (OpenClaw Fork) | NemoClaw | |---|---|---| | Policy enforcement [-location-] | In-process | Out-of-process [-(OpenShell kernel)-] {+(OpenShell)+} | | Session isolation | None (shared [-memory space)-] {+memory)+} | Browser tab model [-(per-session isolation)-] | | Privacy routing | Manual [-configuration-] (if any) | Automatic, [-policy-driven, out-of-process-] {+policy-driven+} | | Skill supply chain | Community registry [-(no verification)-] {+(unverified)+} | Signed [-skill-] manifests, hash verification | | Self-modification prevention | [-Depends on user configuration-] {+User-configured+} | Mandatory, [-enforced by OpenShell | | Credential access | User-controlled | Policy-engine controlled | | Multi-agent communication | Direct (no mediation) | Mediated through OpenShell kernel-] {+OpenShell-enforced+} | | Audit trail | Optional plugin | Mandatory, tamper-evident |

### 5.5 Comparative Analysis

**What TinkerClaw [-Already Does Well:** --] {+does well:**+} Flexible tool [-permission system (`ask` mode, `elevated` gates) --] {+permissions,+} SOUL.md behavioral [-rules provide useful baseline behavior --] {+baseline, easily-fixed+} WebSocket [-port configuration (easily fixed with `bind: 127.0.0.1`) - Skill-] {+configuration, skill+} installation control [-(manually maintainable-] with [-discipline)-] {+discipline.+}

### 5.5 Comparative Analysis

**What NemoClaw [-Adds That We Should Consider Adopting:**-] {+adds worth adopting:**+} 1. [-**Out-of-process-] {+Out-of-process+} policy [-enforcement**-] {+enforcement+} — [-this is the-] single most impactful architectural [-change. Even a minimal external policy daemon that validates tool calls before execution significantly raises the bar.-] {+change+} 2. [-**Automatic-] {+Automatic+} privacy [-routing**-] {+routing+} — [-routing sensitive data to local models by default, without requiring the user to configure it, dramatically-] reduces [-the risk of-] inadvertent data [-exfiltration.-] {+exfiltration+} 3. [-**Signed-] {+Signed+} skill [-manifests**-] {+manifests+} — [-requiring skills to be signed by a known key and verifying hashes at install time-] would have prevented the Cisco Talos [-incident.-] {+incident+} 4. [-**Session isolation**-] {+Session isolation+} — [-particularly-] relevant for multi-session [-deployments; lower priority for single-session personal use.-] {+deployments+}

### 5.6 Comparison: TinkerClaw vs. NemoClaw

[-**What Is Not Appropriate for Our Fork:** - Full OpenShell kernel: too complex for a hobbyist-to-SME target audience - NVIDIA NIM dependency: ties the privacy routing architecture to NVIDIA hardware - The enterprise compliance overlay: designed for regulated industries, adds overhead inappropriate for personal/freelance use-]

### 5.5 Comparative Analysis

{+**What NemoClaw does worse:** - **Complexity:** More moving parts = more potential bugs and operational overhead - **Vendor lock-in:** NVIDIA NIM dependency ties privacy routing to NVIDIA hardware - **Resource requirements:** Local model inference requires significant GPU investment - **Adoption barrier:** Full OpenShell kernel is too complex for hobbyist-to-SME audiences - **Unproven at scale:** Security claims lack production validation+}

### 6.1 The Swiss Cheese Model

[-The Swiss cheese model, originally proposed by Reason (1990) for aviation safety analysis and later applied extensively in healthcare and industrial safety, provides a powerful mental model for layered security. The model visualizes each security control as a slice of Swiss cheese: individually, each slice has holes (weaknesses, bypass vectors). Layered together, the holes rarely align — an attack that passes through the hole in one layer is blocked by the solid material in the next.-]

### 6.1 The Swiss Cheese Model

[-The AEGIS framework applies this model to agent security, proposing seven distinct slices — one for each of the deterministic strategy classes identified in Section 2, with the probabilistic layer serving as a baseline assumption rather than a counted control:-]

### 6.1 The Swiss Cheese Model

{+The Swiss cheese model (Reason, 1990) visualizes each security control as a slice of cheese with holes. Individually, each slice has weaknesses. Layered together, the holes rarely align. AEGIS proposes seven deterministic slices, with the probabilistic layer as a general-purpose filter rather than a counted control:+}

### 6.1 The Swiss Cheese Model

``` Attack Vector │ ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 1: Network [-perimeter │ Network-] Controls │ {+Swiss Slice 1│+} (firewall, VPN, port binding) [-│ [Swiss Slice 1] │ ← Most attacks stopped here └─────────┬───────────┘ │ (attacks that bypass network layer)-] {+└──────┬──────┘+} ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 2: Process [-isolation │ Process-] Isolation │ {+Swiss Slice 2│+} (container, capability manifest) [-│ [Swiss Slice 2] │ ← Restricts agent's environment └─────────┬───────────┘ │ (attacks that bypass isolation)-] {+└──────┬──────┘+} ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 3: [-OS/filesystem permissions │-] Filesystem ACLs │ {+Swiss Slice 3│+} (restricted user, AppArmor) [-│ [Swiss Slice 3] │ ← Blocks unauthorized file access └─────────┬───────────┘ │ (attacks exploiting permitted file access)-] {+└──────┬──────┘+} ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 4: Programmatic [-guardrails-] {+Guardrails+} │ [-Exec Allowlist / │ (command allowlist, wrapper scripts) │ Permission Gates │ ← Prevents abuse of permitted tools │ [Swiss-] {+Swiss+} Slice [-4] │ └─────────┬───────────┘ │ (attacks using allowed tool combinations creatively)-] {+4│ (allowlists, permission gates) └──────┬──────┘+} ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 5: Privacy [-routing-] {+Routing+} │ [-Privacy Router │-] {+Swiss Slice 5│+} (local model for sensitive data) [-│ [Swiss Slice 5] │ ← Keeps sensitive data off external APIs └─────────┬───────────┘ │ (attacks exploiting local model)-] {+└──────┬──────┘+} ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 6: [-Self-modification prevention-] {+Config Immutability+} │ [-Config Immutability│-] {+Swiss Slice 6│+} (root-owned config, read-only [-container) │ [Swiss Slice 6] │ ← Prevents guardrail bypass └─────────┬───────────┘ │ (attacks surviving all layers)-] {+FS) └──────┬──────┘+} ▼ [-┌─────────────────────┐-] {+┌─────────────┐+} Layer 7: [-Audit and detection │-] Audit / Monitoring │ {+Swiss Slice 7│+} (logging, anomaly detection, CVE scan) [-│ [Swiss Slice 7] │ ← Detects what couldn't be prevented └─────────┬───────────┘ │-] {+└──────┬──────┘+} DETECTED/BLOCKED ```

### 6.1 The Swiss Cheese Model

[-The behavioral/probabilistic layer (SOUL.md, system prompts, content tagging) sits across all layers as a general-purpose filter — it catches a large proportion of non-adversarial risky behaviors, but cannot be counted as a security control layer because it has no deterministic guarantee.-]

### 6.2 Layer Interactions

### 6.2 Layer [-Interactions and Compensation-] {+Interactions+}

### 6.2 Layer Interactions

Each layer compensates for [-known weaknesses in-] adjacent [-layers:-] {+weaknesses:+}

### 6.2 Layer Interactions and Compensation

[-- **Network controls** prevent the most common attack class (remote exploit, CVE exploitation) but do nothing for locally-delivered attacks (malicious skills, malicious documents). **Process isolation** compensates by limiting what a locally-executing attack can access.-]

### 6.2 Layer Interactions and Compensation

[-- **Process isolation** (containers) is bypassed by kernel exploits. **Filesystem ACLs** running at the kernel level compensate — a container escape still hits the OS permission layer.-]

### 6.2 Layer Interactions and Compensation

[-- **Filesystem ACLs** only protect listed paths. **Programmatic guardrails** compensate by restricting the operations the agent can perform even on paths it can access.-]

### 6.2 Layer Interactions and Compensation

[-- **Programmatic guardrails** can be circumvented by creative use of allowed primitives. **Privacy routing** compensates by ensuring that even if the agent performs an allowed operation on sensitive data, that data doesn't reach external services.-]

### 6.2 Layer Interactions and Compensation

[-- **Privacy routing** requires accurate sensitivity classification. **Audit logging** compensates by providing visibility when data routing decisions are made, enabling post-hoc review of classification accuracy.-]

### 6.2 Layer Interactions and Compensation

[-- **Audit logging** is a detection control, not prevention. **Self-modification prevention** compensates by ensuring that if an attack reaches the audit layer, it cannot disable the audit mechanism before detection.-]

### 6.2 Layer Interactions

{+- **Network controls** stop remote exploits but not locally-delivered attacks → **Process isolation** limits local attack scope. - **Process isolation** is bypassed by kernel exploits → **Filesystem ACLs** at kernel level catch container escapes. - **Filesystem ACLs** only protect listed paths → **Programmatic guardrails** restrict operations even on accessible paths. - **Programmatic guardrails** can be circumvented by creative allowed-primitive combinations → **Privacy routing** ensures sensitive data stays off external APIs regardless. - **Privacy routing** depends on classification accuracy → **Audit logging** provides visibility into routing decisions for post-hoc review. - **Audit logging** is detection-only → **Self-modification prevention** ensures the audit mechanism can't be disabled before detection.+}

### 6.3 Worked Attack Simulation

{+### 6.3 Worked Attack Simulation+}

### 6.3 Worked Attack Simulation

{+To demonstrate AEGIS layer interactions concretely, we trace 10 representative attack scenarios through a Standard Configuration deployment:+}

### 6.3 Worked Attack Simulation

{+| # | Attack Scenario | L1 Net | L2 Proc | L3 FS | L4 Guard | L5 Priv | L6 Immut | L7 Audit | Result | |---|---|---|---|---|---|---|---|---|---| | 1 | CVE-2026-25253 remote WebSocket hijack | **BLOCKED** | — | — | — | — | — | — | ✓ Prevented | | 2 | Malicious skill exfiltrates ~/.ssh | pass | **BLOCKED** | — | — | — | — | — | ✓ Prevented | | 3 | Prompt injection → read /etc/shadow | pass | pass | **BLOCKED** | — | — | — | — | ✓ Prevented | | 4 | Allowed tool chain → `git hook` → arbitrary exec | pass | pass | pass | **BLOCKED** | — | — | — | ✓ Prevented | | 5 | Client PII sent to frontier model in prompt | pass | pass | pass | pass | **BLOCKED** | — | — | ✓ Prevented | | 6 | Agent modifies SOUL.md to remove safety rules | pass | pass | pass | pass | pass | **BLOCKED** | — | ✓ Prevented | | 7 | Credential exfil via DNS tunneling | pass | pass | pass | pass | pass | pass | **DETECTED** | △ Detected | | 8 | Delayed-action memory injection (triggers next session) | pass | pass | pass | pass | pass | pass | **DETECTED** | △ Detected | | 9 | User rubber-stamps high-risk approval | pass | pass | pass | pass* | pass | pass | **DETECTED** | △ Detected | | 10 | Compromised local model exfiltrates data it processes | pass | pass | pass | pass | pass | pass | pass | ✗ Gap |+}

### 6.3 Worked Attack Simulation

{+**Results:** 6/10 prevented, 3/10 detected (enabling response), 1/10 represents a genuine gap (compromised local model — requires model integrity verification not yet in AEGIS).+}

### 6.3 Worked Attack Simulation

{+*Scenario 9 note: With approval fatigue mitigations (§2.3.1), this could be prevented rather than merely detected.+}

### 6.3 Worked Attack Simulation

{+This simulation demonstrates two key properties: (a) no single layer is sufficient — each attack that passes one layer is caught by a subsequent one; (b) the architecture degrades gracefully — even when prevention fails, detection enables response.+}

### 6.4 Reference Configurations

### [-6.3-] {+6.4+} Reference Configurations

### 6.3 Reference Configurations

[-We provide three reference configurations mapping layers to practical implementation:-]

### 6.4 Reference Configurations

**Minimal Configuration [-(10 minutes of setup):**-] {+(15 minutes):**+} 1. Bind WebSocket to `127.0.0.1` [-in OpenClaw config-] 2. [-Review and verify-] {+Verify+} all installed skills; remove unrecognized ones 3. [-Create an-] AppArmor profile denying [-agent access to-] `~/.ssh`, `~/.gnupg`, [-`.env` files, and known-] crypto [-wallet paths-] {+seed files+} 4. Set agent workspace to [-a dedicated directory (`~/agent-workspace`)-] {+`~/agent-workspace`+} rather than home directory

### 6.4 Reference Configurations

**Standard Configuration [-(2-4 hours of setup):**-] {+(2–4 hours):**+} All of Minimal, plus: 5. [-Run agent under a dedicated-] {+Dedicated+} `openclaw-agent` system user 6. [-Containerize the agent-] {+Docker container+} with [-Docker, bind-mounting-] {+workspace bind-mount+} only [-`~/agent-workspace`-] 7. [-Add-] `iptables` egress [-rules restricting outbound connections to-] {+rules:+} LLM API [-providers-] {+IPs+} only 8. [-Configure privacy-] {+Privacy+} routing: [-route any task involving files from-] sensitive directories [-to a-] {+→+} local Ollama instance 9. [-Make-] {+Root-owned, read-only+} SOUL.md and AGENTS.md [-read-only, owned by root-] 10. [-Add cron-based-] {+Cron+} security scan [-checking-] for skill changes, permission drift, [-and-] CVE updates

### 6.4 Reference Configurations

**Enterprise Configuration [-(Formal-] {+(formal+} security [-review required):**-] {+review):**+} All of Standard, plus: 11. [-Implement out-of-process-] {+Out-of-process+} policy enforcement [-(custom OpenShell-compatible daemon or NemoClaw adoption)-] 12. [-Deploy per-session-] {+Per-session+} isolation for multi-agent workflows 13. [-Integrate with enterprise-] {+Enterprise+} DLP [-tooling-] {+integration+} for data classification 14. [-Implement signed-] {+Signed+} skill manifests with [-a-] corporate PKI 15. [-Mandatory-] {+Tamper-evident+} audit trail [-with tamper-evident logging-] 16. IT security review and {+change management+} approval [-process for any change to agent access scope-] 17. [-Regular penetration-] {+Penetration+} testing of agent deployment 18. Employee [-training on-] prompt injection [-awareness-] {+awareness training+}

### 6.4 Reference Configurations

{+**Cost considerations:** The Standard Configuration has negligible ongoing cost beyond initial setup. The Enterprise Configuration requires: GPU investment for local model inference (privacy routing) — approximately $2,000–$10,000 for adequate hardware; staff time for security review and ongoing governance; potential NemoClaw licensing costs. Organizations should weigh these against the cost of the risk scenarios in §4.+}

### 7.1 The Fundamental Insight

[-The central finding of this analysis can be stated simply: **probabilistic-] {+**Probabilistic+} controls alone are insufficient for any deployment where [-the-] {+failure+} consequences [-of failure-] are materially significant.** Every behavioral rule, every system prompt, every SOUL.md guideline is a probabilistic control — effective [-in the absence of-] {+absent+} adversarial pressure, unreliable under [-it. The only question is how much adversarial pressure a given deployment is likely to face, and how much a failure costs.-] {+it.+}

### 7.1 The Fundamental Insight

[-For Persona A running a personal coding assistant with no sensitive financial data, probabilistic controls may be entirely adequate — the attack surface is small and the adversarial motivation is limited. For Persona C running an agent with access to production database credentials and insider trading-relevant information, probabilistic controls are not a security architecture at all. They are the absence of one.-]

### 7.1 The Fundamental Insight

The incidents [-we cataloged-] in [-Section 1-] {+§1.3+} all involved deployments where [-the-] consequences [-of failure-] were significant but [-the security-] architecture was probabilistic. CVE-2026-25253 was a technical vulnerability, but [-the-] 40,000 exposed instances represent a governance [-failure — no one had reviewed whether a public WebSocket port was appropriate.-] {+failure.+} The malicious skills [-supply chain-] attack succeeded because [-skill-] installation required no deterministic verification. The email deletion [-incident-] was the predictable result of granting irreversible [-action-] capability to a system with only probabilistic [-behavioral-] constraints.

### 7.2 Per-Persona Security Profiles

[-**Persona A — Minimum Viable Security:** The single most impactful action is patching CVE-2026-25253 by binding to `127.0.0.1`. The second is installing an AppArmor profile that explicitly denies access to `~/.ssh` and any file named `*.seed` or `seed.txt` (crypto wallet seeds). These two actions, taking approximately 15 minutes, address the two highest-risk scenarios. Total cost: 15 minutes.-]

### 7.2 Per-Persona Security Profiles

[-**Persona A — Recommended Security:** Adopt the Standard Configuration from §6.3. Run the agent in Docker, limit filesystem access to a dedicated workspace, apply egress firewall rules. Enable skill verification. Total cost: 2–3 hours of initial setup; negligible ongoing overhead.-]

### 7.2 Per-Persona Security Profiles

[-**Persona B — Minimum Viable Security:** In addition to all Persona A minimum viable actions: configure privacy routing so that any task involving client document directories uses a local model (even a smaller one). Implement a per-session confirmation gate for any email send or file write operation outside the designated workspace. These actions directly address the highest-risk vectors (privileged client communication exfiltration and GDPR-triggering PII exposure). Total cost: 3–4 hours.-]

### 7.2 Per-Persona Security Profiles

[-**Persona B — Recommended Security:** Adopt the Standard Configuration from §6.3, with additional emphasis on: GDPR data inventory documenting what personal data the agent can access; explicit client consent or disclosure policy for AI-assisted work; quarterly audit of agent access scope against active client relationships.-]

### 7.2 Per-Persona Security Profiles

[-**Persona C — Minimum Viable Security:** We note, with deliberate emphasis, that there is no "minimum viable security" for Persona C's described configuration. An agent running on a corporate laptop with access to production database credentials, customer PII, and insider information is not a configuration that can be made acceptably secure through hardening alone. The minimum viable action for Persona C is to **restrict the agent's access scope** — remove access to corporate network shares, production credential stores, and privileged email distribution lists — before applying any of the technical controls described above.-]

### 7.2 Per-Persona Security Profiles

[-With a properly scoped agent (limited to personal productivity tasks, with no corporate data access), Persona C should apply all Persona A recommended controls plus the egress firewall rules and audit logging appropriate to a corporate environment.-]

### 7.2 Per-Persona Security Profiles

[-**Persona C — Enterprise-Grade Security:** The Enterprise Configuration from §6.3, implemented through formal IT security review and change management. The agent deployment should be documented in the corporate IT asset register, included in scope for the next penetration test, and governed by the same access control review process as any other enterprise application. Consider adopting NemoClaw's out-of-process policy enforcement architecture, or implementing a functionally equivalent external policy daemon, as the cornerstone of the security architecture.-]

### 7.2 Per-Persona Security Profiles

{+**Persona A — Minimum Viable (15 min):** Bind to 127.0.0.1; AppArmor denying ~/.ssh and crypto seed files. Addresses the two highest-risk scenarios.+}

### 7.2 Per-Persona Security Profiles

{+**Persona A — Recommended:** Standard Configuration (§6.4). Docker container, workspace restriction, egress firewall, skill verification. Total: 2–3 hours.+}

### 7.2 Per-Persona Security Profiles

{+**Persona B — Minimum Viable (3–4 hours):** All Persona A minimum plus: privacy routing for client directories to local model; per-session confirmation gate for email sends and file writes outside workspace; GDPR data inventory.+}

### 7.2 Per-Persona Security Profiles

{+**Persona B — Recommended:** Standard Configuration plus: explicit client consent policy for AI-assisted work; quarterly agent access scope audit; regulatory mapping (§3.2.1) review.+}

### 7.2 Per-Persona Security Profiles

{+**Persona C — No "Minimum Viable" exists.** The described configuration cannot be made acceptably secure through hardening alone. Minimum action: **restrict agent access scope** — remove corporate network shares, production credentials, privileged email — before any technical control. With properly scoped agent, apply Standard Configuration plus Enterprise egress firewall and audit logging.+}

### 7.2 Per-Persona Security Profiles

{+**Persona C — Enterprise-Grade:** Full Enterprise Configuration (§6.4) via formal change management. Document in IT asset register, include in penetration test scope, govern through standard access control review.+}

### 7.3 The Trilemma as a Design Tool

[-We close by returning to the safety-capability-autonomy trilemma introduced in §5.5. We believe this framework is more useful than the conventional framing of "how do we make agents safer" because it forces explicit acknowledgment of trade-offs.-]

### 7.3 The Trilemma as a Design Tool

[-Every agent deployment implicitly makes a choice about where it sits in the trilemma space. Making that choice explicit — "we are prioritizing capability and autonomy, and accepting lower safety guarantees, for the following reasons" — is healthier than pretending the trade-off doesn't exist. It enables honest risk assessment, appropriate mitigation focus, and realistic expectations about what security controls can and cannot provide.-]

### 7.3 The Trilemma as a Design Tool

{+Every agent deployment implicitly chooses a position in the safety-capability-autonomy trilemma (§1.1). Our per-persona recommendations:+}

### 7.3 The Trilemma as a Design Tool

[-For the current state of autonomous AI agent technology, our recommendation is:-] - [-Personal productivity use:-] {+**Personal productivity:**+} High capability + High autonomy + Moderate safety (deterministic controls on highest-risk data [-types-] only) - [-Professional/freelance use:-] {+**Professional/freelance:**+} High capability + Moderate autonomy (human gates on external actions) + High safety (deterministic controls on all client data) - [-Corporate/regulated use:-] {+**Corporate/regulated:**+} Moderate capability (scoped action space) + Low autonomy (human approval on material actions) + High safety (full AEGIS stack)

### 7.3 The Trilemma as a Design Tool

The agent era [-is-] {+will+} not [-going to-] produce secure deployments by default. It will produce them by [-design,-] {+design —+} by deliberate architectural choices made by practitioners who understand what they are building and what [-the consequences of-] failure [-are.-] {+costs.+} We hope this framework contributes to that understanding.

### 7.3 The Trilemma as a Design Tool

{+---+}

### 8. Limitations

{+## 8. Limitations+}

### 8. Limitations

{+This analysis has several important limitations:+}

### 8. Limitations

{+1. **No empirical validation.** AEGIS has not been tested against real attack campaigns. The worked simulation (§6.3) is a thought experiment based on known attack patterns, not an empirical measurement. Future work should include red-team exercises against AEGIS-configured deployments.+}

### 8. Limitations

{+2. **Qualitative risk scores.** Despite our calibration methodology (§4), probability and severity ratings remain expert judgment. They have not been validated against a statistically significant incident database. Different experts would likely assign somewhat different scores.+}

### 8. Limitations

{+3. **OpenClaw-centric analysis.** The taxonomy and personas are grounded in the OpenClaw ecosystem. Applicability to other agent runtimes (LangChain, AutoGPT, CrewAI, custom enterprise frameworks) requires validation. The security strategy classes are likely generalizable; the specific implementation guidance is not.+}

### 8. Limitations

{+4. **Taxonomy completeness.** We argue completeness against the STRIDE+agent threat model (§1.4), but novel threat categories may emerge as agent capabilities evolve. The taxonomy should be treated as a living framework, not a closed enumeration.+}

### 8. Limitations

{+5. **Desktop/server focus.** The analysis assumes desktop or server deployments. Mobile agent deployments (OpenClaw mobile) and edge/IoT deployments have different constraint profiles — limited OS-level controls, different isolation primitives, and unique network characteristics — that are not addressed here.+}

### 8. Limitations

{+6. **Snapshot in time.** Agent runtimes, model capabilities, and attack techniques evolve rapidly. Specific CVEs, tools, and architectural details will date. The framework's principles should outlast its specifics.+}

### 8. Limitations

{+---+}

### 9. Related Work

{+## 9. Related Work+}

### 9. Related Work

{+**OWASP Top 10 for LLM Applications (2025)** provides a vulnerability-focused taxonomy for LLM-powered applications, covering prompt injection, insecure output handling, and training data poisoning. AEGIS differs in focusing specifically on *agentic* systems (tool use, action execution, multi-step autonomy) rather than LLM applications generally, and in providing a layered defense architecture rather than a vulnerability list.+}

### 9. Related Work

{+**MITRE ATT&CK for AI/ML (2025)** extends the ATT&CK framework to AI/ML systems, enumerating adversary techniques. AEGIS uses STRIDE rather than ATT&CK as its primary threat modeling framework because STRIDE better maps to the *defensive* strategy classes we propose; ATT&CK's offensive framing is complementary but serves a different purpose.+}

### 9. Related Work

{+**Perez & Ribeiro (2022)** on prompt injection attacks established the foundational understanding of why prompt-level controls are insufficient. AEGIS builds on this by providing the deterministic/probabilistic classification framework and concrete architectural alternatives.+}

### 9. Related Work

{+**Reason (1990)** originated the Swiss cheese model for aviation safety. Our adaptation to agent security preserves the model's core insight — layered imperfect controls achieve what no single control can — while mapping it to a software-specific control hierarchy.+}

### 9. Related Work

{+No prior work to our knowledge provides an integrated security framework specifically for autonomous AI agents that spans from OS-level controls to behavioral rules, includes formal persona-based risk analysis, and proposes a concrete defense-in-depth architecture. AEGIS aims to fill this gap.+}

### Acknowledgments

The authors thank the OpenClaw security research community, the Cisco Talos team for their supply chain attack disclosure, and the anonymous security researchers who responsibly reported CVE-2026-25253. The analysis of NemoClaw architecture is based on publicly available NVIDIA GTC 2026 presentation materials and [-the NemoClaw-] technical documentation.

### Immediate Actions (Any Deployment) - [ ] Bind WebSocket to `127.0.0.1` - [ ] Verify all installed skills against known-good sources - [ ] Review agent's current filesystem access scope

### Immediate Actions (Any Deployment) - [ ] Bind WebSocket to `127.0.0.1` [-— prevents CVE-2026-25253 class of attacks-] - [ ] Verify all installed skills against known-good sources - [ ] Review agent's current filesystem access scope

### Freelancer (Persona B) — Standard - [ ] Privacy routing: local model for client data directories - [ ] Human gate on all external communications - [ ] GDPR data inventory and regulatory mapping review - [ ] Client data in separate directory excluded from agent workspace - [ ] Skill hash verification - [ ] Client consent/disclosure policy for AI-assisted work

### Freelancer (Persona B) — Standard - [ ] Privacy routing: local model for client data directories - [ ] Human gate on all external communications - [ ] GDPR data inventory {+and regulatory mapping review+} - [ ] Client data in separate directory excluded from agent workspace - [ ] Skill hash [-verification-] {+verification - [ ] Client consent/disclosure policy for AI-assisted work+}

### Corporate (Persona C) — Scope First, Then Harden - [ ] **BEFORE ANY HARDENING:** Remove agent access to corporate network shares, production credentials, privileged email - [ ] IT security review and documentation - [ ] Enterprise Configuration (§6.4) via formal change management - [ ] Include in penetration test scope - [ ] Evaluate NemoClaw out-of-process enforcement adoption - [ ] Prompt injection awareness training for agent users

### Corporate (Persona C) — Scope First, Then Harden - [ ] **BEFORE ANY HARDENING:** Remove agent access to corporate network shares, production credentials, privileged email - [ ] IT security review and documentation - [ ] Enterprise Configuration [-(§6.3)-] {+(§6.4)+} via formal change management - [ ] Include in penetration test scope - [ ] Evaluate NemoClaw out-of-process enforcement [-adoption-] {+adoption - [ ] Prompt injection awareness training for agent users+}

### Corporate (Persona C) — Scope First, Then Harden - [ ] **BEFORE ANY HARDENING:** Remove agent access to corporate network shares, production credentials, privileged email - [ ] IT security review and documentation - [ ] Enterprise Configuration (§6.4) via formal change management - [ ] Include in penetration test scope - [ ] Evaluate NemoClaw out-of-process enforcement adoption - [ ] Prompt injection awareness training for agent users

*Paper J9 — AEGIS: A Multi-Layered Security Framework for Autonomous AI Agents* *Author: Oscar Serra | Date: 2026-03-17 | Version: [-1.0*-] {+1.0.1*+} *Workspace: J-Series AI Research Papers | Series: J9_agent_security*
