# AEGIS: A Multi-Layered Security Framework for Autonomous AI Agents: v2.1 → v2.2

From v2.1 (20 Apr) to v2.2 (2 Jun): 25,777 words to 27,749 words, 2,060 words in new or rewritten paragraphs and 88 taken out, 95 paragraphs changed.

## Change note of v2.2

**Adds an audit of what the reference implementation enforces today**

One new section, about 1,800 words, reports what the author's own agent runtime actually enforces, control by control. The folder's notes from 30 May asked for this chapter, framed around the email-deletion incident.

- New section: hard blocks on sending and deleting mail, browser confinement, the learned safety gate still in observe-only mode, and the deterministic controls that do block.
- The safety-gate section now says the deterministic veto is what holds, not the learned model.
- Version labels such as "v2.1 adds" are removed from the body, so the text reads as one paper rather than a changelog.

## Changed paragraphs

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

### AEGIS v2.2: A Multi-Layered Security Framework for Autonomous AI Agents

# AEGIS [-v2.1:-] {+v2.2:+} A Multi-Layered Security Framework for Autonomous AI Agents

### AEGIS v2.2: A Multi-Layered Security Framework for Autonomous AI Agents

**Author:** Oscar Serra **Date:** [-April-] {+June+} 2026 **Version:** [-2.1-] {+2.2+} **Series:** J-Series AI Research Reports, Paper J9

### AEGIS v2.1: A Multi-Layered Security Framework for Autonomous AI Agents

[-----]

### AEGIS v2.2: A Multi-Layered Security Framework for Autonomous AI Agents

{+***+}

### Abstract

This paper presents **AEGIS [-v2.1**,-] {+v2.2**,+} a [-substantially revised-] security framework that addresses the most frequently raised concerns from IT professionals evaluating agent deployments. The central [-revision-] {+organizing idea+} is a **two-class threat taxonomy** that distinguishes between full agent takeover events and data leaks — a distinction that matters because the consequences, mitigations, and liability implications of these two classes differ fundamentally. [-v2.1 expands the v2-] {+The framework defines **eight security+} strategy [-taxonomy from six to **eight-] classes** [-(adding §4.7 split into audit and supply-chain trust, plus §4.8 self-modification prevention),-] {+partitioned by enforcement posture (deterministic vs. probabilistic),+} elevates the §7 NVIDIA NemoClaw analysis to a five-layer architectural gap analysis, and [-adds §11-] {+maps every threat to a specific+} J-Series component [-security surfaces.-] {+surface in §11. This version adds **§11.14, a reference-implementation chapter** that grounds the abstract framework in what one production agent runtime (TinkerClaw) actually enforces today — naming, file by file, which controls block deterministically and which remain advisory.+}

### Abstract

For data leaks, AEGIS [-v2.1-] introduces a **three-tier data classification** that separates public-domain material from contextually harmless disclosures from genuinely problematic exposures. The paper then maps each tier to a concrete **liability analysis**: who bears responsibility when data flows to an LLM provider, what the GDPR controller/processor distinction means in practice, and whether an organization could realistically recover damages from a multi-billion-dollar AI company.

### Abstract

On the enterprise defense side, this paper provides [-the first-] {+a+} comprehensive gap analysis of two major enterprise security forks: **NVIDIA NemoClaw** (5-layer architecture, as of [-April 2026-] {+mid-2026+} still in alpha) and **Cisco DefenseClaw** (released March 27, 2026, open source). We examine both the genuine security value these frameworks provide and the gaps their own documentation admits. We also analyze the business motivations behind each initiative — motivations that, we argue, actually validate OpenClaw's importance rather than challenging it.

### Abstract

[-----]

### Abstract

{+***+}

### Executive Summary

[-----]

### Executive Summary

{+***+}

### 1.5 Research Framing and Paper Structure

**Section 2** presents the two-class threat taxonomy. **Section 3** classifies data by sensitivity and analyzes liability implications. **Section 4** describes the eight security strategy classes. **Section 5** profiles four deployment personas. **Section 6** constructs risk matrices. **Sections 7 and 8** analyze NemoClaw and DefenseClaw respectively. **Section 9** analyzes business motivations. **Section 10** presents validation evidence. **Section 11** maps security threats to J-Series system [-components.-] {+components and closes (§11.14) with a worked reference-implementation chapter showing which controls a production agent runtime enforces deterministically versus advisorily.+} **Section 12** presents the AEGIS defense-in-depth architecture. **Section 13** gives per-persona recommendations. **Sections 14–16** address limitations, related work, and references.

### 1.5 Research Framing and Paper Structure

[-----]

### 1.5 Research Framing and Paper Structure

{+***+}

### 2.2 Class II — Data Leaks

[-----]

### 2.2 Class II — Data Leaks

{+***+}

### 3.7 Liability Summary Matrix

[-----] {+***+} ## 4. Security Strategy Taxonomy — Eight Classes

### 4.0 Mapping to Prior Frameworks

[-----]

### 4.0 Mapping to Prior Frameworks

{+***+}

### 4.7 Audit, Compliance, and Supply-Chain Trust

[-The v2 paper merged audit-] {+Audit+} and supply chain {+are sometimes merged+} into a single class. They are structurally different — *post-hoc observation* versus *pre-hoc trust* — with different vendors, standards, and failure modes. [-v2.1-] {+AEGIS+} splits them into 4.7a and 4.7b while preserving the single row in Table 1 for compatibility.

### 4.10 Emerging Classes Not Yet Formalized

The eight classes above cover the controls AEGIS recommends for current deployments. Seven additional strategy classes are active in 2025–2026 practice but not yet stable enough to promote to full §4.x treatment. [-v2.1-] {+AEGIS+} surfaces them explicitly so that deployers do not mistake the eight-class partition for an exhaustive map.

### 4.10 Emerging Classes Not Yet Formalized

Each of these classes has enough 2024–2026 evidence to merit its own {+full+} treatment in [-v3.-] {+a future revision.+} Their current omission is a [-v2.1-] scope decision, not an AEGIS position.

### 4.10 Emerging Classes Not Yet Formalized

[-----] {+***+} ## 5. Four Deployment Personas

### 5.4 Persona D — The Corporate Employee (Cameron)

[-----]

### 5.4 Persona D — The Corporate Employee (Cameron)

{+***+}

### 6.4 Risk Matrix — Persona D (The Corporate Employee)

[-----]

### 6.4 Risk Matrix — Persona D (The Corporate Employee)

{+***+}

### 7.1 Context and Caveats

[-----]

### 7.1 Context and Caveats

{+***+}

### 7.2 The 5-Layer Security Stack

[-----]

### 7.2 The 5-Layer Security Stack

{+***+}

### 7.2 The 5-Layer Security Stack

[-----]

### 7.2 The 5-Layer Security Stack

{+***+}

### 7.2 The 5-Layer Security Stack

[-----]

### 7.2 The 5-Layer Security Stack

{+***+}

### 7.2 The 5-Layer Security Stack

[-----]

### 7.2 The 5-Layer Security Stack

{+***+}

### 7.2 The 5-Layer Security Stack

[-----]

### 7.2 The 5-Layer Security Stack

{+***+}

### 7.2 The 5-Layer Security Stack

[-----]

### 7.2 The 5-Layer Security Stack

{+***+}

### 7.3 Layer 5: The Admitted Weakness

[-----]

### 7.3 Layer 5: The Admitted Weakness

{+***+}

### 7.4 Architectural Strengths of NemoClaw

[-----]

### 7.4 Architectural Strengths of NemoClaw

{+***+}

### 7.5 Documented Gaps in NemoClaw

[-----]

### 7.5 Documented Gaps in NemoClaw

{+***+}

### 7.6 NemoClaw Resource Requirements

[-----]

### 7.6 NemoClaw Resource Requirements

{+***+}

### 7.7 Transferable Lessons from NemoClaw

[-----] {+***+} ## 8. Cisco DefenseClaw — Full Analysis

### 8.5 Practical Adoption Guidance

[-----] {+***+} ## 9. Business Motivations — What the Vendor Investments Actually Tell Us

### 9.4 The Conclusion for IT Contractors

[-----]

### 9.4 The Conclusion for IT Contractors

{+***+}

### 10.1 The Matthew Berman Penetration Test

*Note for production: [-a `berman2026` bibkey is not yet present in refs.bib. The-] {+the+} §16 prose reference — "Berman, M. (2026). 'I had a hacker try to break into my AI agent — here's what happened.' YouTube / Berman AI channel, February 2026" — should be converted to a formal bib entry with URL and upload date [-before v2.1 ships.*-] {+when the LaTeX build is regenerated.*+}

### 10.4 Planned Empirical Validation

[-----]

### 10.4 Planned Empirical Validation

{+***+}

### 11.2 HIPPOCAMPUS — Retrieval Index

*Implementation note: Which of these controls are active in the current `tinkerclaw-memory-enhancements` deployment vs. aspirational AEGIS recommendations should be verified [-before v2.1 ships.*-] {+against the plugin source; the reference-implementation audit in §11.14 follows this discipline for the controls it claims.*+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

[-**Status: PHASE 1** (`tinkerclaw-learned-intuition` v2.1; Prudence ensemble in observe-only mode)-]

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+**Status: PHASE 1** (`tinkerclaw-learned-intuition`; learned ensemble observe-only, deterministic AEGIS veto active — see §11.14.4)+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

AMYGDALA operates two neural ensembles. The Prudence ensemble evaluates every tool call before execution and scores it for safety risk; when the ensemble crosses its threshold or disagreement between ensemble members exceeds a conservatism override, the conservative vote wins and the tool call is blocked. The Personality ensemble calibrates behavioral tone and writes nudges to a configuration file that subsequent sessions consume. [-Currently,-] {+The *learned*+} Prudence [-is in-] {+ensemble currently runs+} observe-only [-(Phase 1) mode:-] {+—+} it logs what it would block without [-actually blocking.-] {+aborting — but a *deterministic* AEGIS veto (the rule-based destructive-command gate plus an AEGIS pre/post-check) now hard-blocks unconditionally, independent of that observe-only ramp. The reference-implementation audit in §11.14.4 details the current state, including the caveat that the neural path still falls back to the rule-based gate because its native inference dependency is not yet installed.+}

### 11.13 MNEMOSYNE — Memory Enhancements

[---- ## 12. AEGIS: The Defense-in-Depth Architecture-]

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+### 11.14 The Reference Implementation — What TinkerClaw Enforces Today+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+The preceding subsections describe attack surfaces and the controls AEGIS *recommends* for each. This subsection does something different and, for a practitioner, more useful: it audits one production agent runtime — TinkerClaw, a privately maintained OpenClaw fork that hosts the J-Series cognitive plugins — and reports what it *actually enforces*, control by control, with the enforcement point named. The framework has been theory-forward by design; this chapter is the empirical counterweight. It doubles as a worked example of the immune-system analogy from §1.1: a **code layer** that behaves like innate immunity (fast, hard-coded, unconditional) and a **prompt layer** that behaves like adaptive immunity (learned, contextual, advisory).+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+The honest headline is the part most agent-security write-ups omit. The controls that block today are the deterministic ones: shell-wrapper CLIs, browser-relay confinement, a regex destructive-command gate, a pre-push secret scanner, and owner-scoped tools. The neural safety gate the framework's §4.10.2 anticipated — the learned ensemble that scores every tool call — runs but, until recently, only *observed*. The lesson generalizes beyond this one runtime: in any agent system, count the deterministic controls when an adversary is present, and treat the learned ones as signal, not boundary (§4.5).+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**11.14.1 Two layers for every control.** Each control in TinkerClaw exists in one or both of two places. The **code layer** is enforced by a process the model cannot reason its way past — a shell wrapper on the executable search path, a guard in a browser extension's command handler, a git hook. The **prompt layer** is advisory text in the system prompt and behavioral-rules files. This is the Swiss-cheese model of §12 made concrete: the prompt layer reduces the *rate* of boundary violations in non-adversarial operation; only the code layer holds when an input is actively hostile. Where a control exists only in the prompt layer, an injection that reaches the model can bypass it — which is why the AEGIS prescription (§4.5) is to promote prompt-only guards to code wherever the action is irreversible or outbound.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**11.14.2 Irreversible-action gates (the "Inbox Zero" lesson, in code).** §1.4 recounts the Inbox Zero incident — an agent that interpreted "clear out the old stuff" as authorization to permanently delete months of email. The structural fix is reversibility gating: a destructive request is silently downgraded to its reversible equivalent. TinkerClaw enforces this not in the prompt but in **shell-wrapper CLIs that shadow the real mail binaries on the executable search path**, so the model never reaches the irreversible operation:+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+- **Outlook send / reply / forward are hard-blocked.** The Outlook wrapper maintains an explicit blocklist of the Graph API paths that transmit mail (`/sendmail`, `/send`, `/reply`, `/replyAll`, `/forward`); a request to any of them throws before the network call is made. Compose paths are redirected to *draft* creation only — a reply is generated via the Graph `createReply` endpoint, which produces a threaded draft and never sends. - **Outlook delete is rewritten to archive.** A delete request is translated into a move-to-Archive-folder operation. A real Graph `DELETE` is never issued from the wrapper, so an accidental or injection-induced deletion is structurally impossible; the operator can still delete manually in the Outlook UI, and the archived message is fully recoverable. (This closed a provider asymmetry: an earlier revision of the wrapper blocked sends but still passed deletes through as real deletions. The fix makes the reversibility contract uniform — no mail-destructive operation reaches the provider from the agent.) - **Prompt-layer twin.** The behavioral-rules file carries the matching advisory rules ("reversibility gates action"; "I draft, the operator sends; no half-baked outbound to real people"). The advisory layer explains *why*; the wrapper is *what actually holds* if the model is persuaded otherwise.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+This is §4.3 (programmatic guardrails) and §4.8 (self-modification prevention's sibling, irreversibility prevention) realized as a fifty-line wrapper rather than a runtime. It is also the §11.1 ENGRAM "memory write gate" principle applied to the action plane instead of the storage plane.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**11.14.3 Browser-relay confinement.** When the agent drives a browser, it does so through a Chrome-extension relay that mediates every Chrome DevTools Protocol command. The governing contract is the operator's: *"this is the tab I shared, not any tab the agent decides to visit."* The relay's command handler enforces three deterministic rules:+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+- **No new tabs or windows.** The DevTools `Target.createTarget` command is rejected outright; the agent can only act within tabs the operator has explicitly shared. - **No cross-site navigation on shared tabs.** Before honoring a `Page.navigate`, the handler reads the tab's *current* URL live and rejects the navigation if the target is not same-site (subdomain-aware). The operator remains free to navigate their own tab anywhere; only an agent-initiated cross-site jump is blocked. The agent must follow links *within* the shared site. - **Close limited to attached tabs.** `Target.closeTarget` is honored only for tabs the relay is already attached to.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+The relay binds to loopback only (`127.0.0.1`, a fixed high port) with token authentication and attaches solely to operator-selected tabs. This is a clean instance of the §4.4 egress-control / least-privilege class: the confinement is enforced at a boundary (the extension's command handler) the agent's reasoning cannot reach, and it is precisely the kind of out-of-process enforcement §7.7's first transferable lesson recommends.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**11.14.4 The neural gate — from observe-only to active veto.** The AMYGDALA component (§11.10) registers a `before_tool_call` hook that evaluates every tool invocation, using an ONNX neural ensemble when the model weights are present and a deterministic rule-based gate otherwise. For most of this runtime's history the hook was *observe-only*: it logged "WOULD block" decisions without aborting anything, exactly the §4.10.2 emerging-class status — a detector deployed but not yet a boundary. An immune system still in training.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+That gate is now partly load-bearing. A deterministic **`AegisChecker`** is wired into the hook, and a `hard_block` verdict — raised by the rule-based destructive-command gate or by an AEGIS pre/post-check — now aborts the tool call **unconditionally, independent of the observe-only trust ramp**. The distinction is exactly the deterministic/probabilistic cut of §4: the *learned* half of the ensemble still ramps cautiously and can be left observe-only, but the *deterministic* veto fires regardless of phase. Two honest caveats remain, and a security paper that omitted them would be repeating the over-claiming this framework warns against:+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+1. The neural ensemble still **falls back to the rule-based gate** in the running deployment, because the native ONNX inference dependency is not installed. The neural model path is correct but latent — the absolute veto that holds today is the regex gate, not a learned classifier. This is precisely the §4.5 calibration: do not count the probabilistic layer as a boundary until it is demonstrably present and measured. 2. The veto is only as good as its rule set (see below). It is a deterministic floor, not a complete intent verifier — the same architectural limit §7.3 identifies in NemoClaw's Layer 5.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**11.14.5 The deterministic controls that block today.** Independent of the neural gate, several controls enforce hard boundaries:+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+- **Rule-based destructive-command gate.** A regex hard-block on destructive operations: recursive root deletion (`rm -rf /` and flag-order variants), filesystem formatting (`mkfs`), raw device writes (`dd of=/dev/…`, redirects to `/dev/sd*`), `chmod 777 /`, SQL `DROP` / `TRUNCATE` / unscoped `DELETE`, credential-file access (`.env`, `credentials.json`, `.aws/credentials`, `id_rsa`, `.ssh/`, `.gnupg/`), credential exfiltration over `curl`/`wget`, `git push --force` to main, and `git reset --hard HEAD~N` for large N. The policy is **allow-by-default**: anything not matching a destructive pattern proceeds. This is a §4.3 control that doubles as the AEGIS pre-check feeding the §11.14.4 veto. - **PII pre-push hook.** A git pre-push hook scans every commit about to reach the public fork for private tokens — first-name narrative use, family and location strings, host paths, business contacts, and credentials — and blocks the push on any match, while allowing the public author byline and handle. It scans two scopes (the push range *and* the accumulated drift against `origin/main`), a design that caught a real sixteen-hit leak that had accumulated across individually-clean earlier pushes. This is the §4.7b supply-chain-trust class applied to outbound code: a deterministic gate on what leaves the trust boundary. - **Owner-only tools.** The privileged core tools — scheduling (`cron`), gateway control, and node management — reject any caller that is not the owner. This is the §4.3 permission-tier model enforced at tool dispatch. - **Sandbox and filesystem confinement.** The runtime's published security policy constrains exec and filesystem operations to the workspace and requires sandboxing for spawned subagents. The trust model is explicitly *single trusted operator*: prompt-injection-alone, absent a demonstrated boundary bypass, is documented as out of scope. This is an honest scoping decision, not a gap — it tells an auditor exactly which threat class the runtime does and does not claim to defend, mirroring this paper's own §14.1 limitations discipline. - **Outcome and denial logging.** Every block and every human override is written to a training ledger — the §4.7a audit substrate, and the raw material from which the learned half of the AMYGDALA gate (§11.14.4) will eventually be trained.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**11.14.6 What this reference implementation teaches.** Three lessons transfer to any J-Series builder or agent operator, independent of this specific runtime:+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+1. **The blocking controls are deterministic; the learned ones are signal.** Every control that actually held under the audit was a code-layer mechanism the model could not influence. The neural gate's value, until its weights and the deterministic veto were both in place, was observability — knowing what it *would* block. This is §4.5's calibration stated as an engineering fact rather than a recommendation. 2. **A wrapper is a security boundary; a prompt is a preference.** The reversibility contract that prevents an Inbox Zero recurrence lives in a shell wrapper, not in the system prompt — because the prompt is bypassable by the very injection class (§4.5) the wrapper is there to survive. Where an action is irreversible or outbound, the AEGIS prescription is to push the guard down to code (§11.14.2). 3. **Disclose the observe-only gaps.** The most useful sentence in this chapter is the one admitting the neural ensemble falls back to rule-based because a dependency is missing. An agent-security posture that hides its latent controls behind their *intended* behavior is the over-claiming failure mode §4 was written to prevent. The framework's credibility rests on reporting the gate that is still in training as exactly that.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+**Open upgrade items** flowing from this audit, offered as the §14.2 future-work agenda made specific: install the native inference dependency so the learned AMYGDALA half becomes a measured control rather than a latent one; harden the personality-nudge file (§11.10) and add load-time hash verification before the gate exits observe-only; adopt pairing-code / scope-intersection authentication for subagent reconnect (the §2.1.1 GHSA-hf68 mitigation, re-validating the toolset intersection on every reconnect rather than trusting the initial pairing); and pair the §1.4 CVE-2026-25253 WebSocket-hijack case study with the loopback-bind-plus-token-auth pattern the browser relay (§11.14.3) already demonstrates.+}

### 11.14 The Reference Implementation — What TinkerClaw Enforces Today

{+*** ## 12. AEGIS: The Defense-in-Depth Architecture+}

### 12.4 Reference Configurations

[-----] {+***+} ## 13. Per-Persona Recommendations

### 13.4 Persona D — The Corporate Employee

[-----]

### 13.4 Persona D — The Corporate Employee

{+***+}

### 14.2 Future Work

[-----]

### 14.2 Future Work

{+***+}

### 15. Related Work

[-----]

### 15. Related Work

{+***+}

### 16. References

[-----]

### 16. References

{+***+}

### Enterprise Additional Controls

[-----]

### Enterprise Additional Controls

{+***+}

### Appendix B: Threat-to-Section Cross-Reference

| Concern | Section | |---------|---------| | "Can a hacker take over the agent?" | §2.1 — Class I threat taxonomy | | "What data is actually at risk?" | §3.1 — Three-tier data classification | | "Who's liable if Anthropic has a breach?" | §3.3–3.5 — GDPR liability analysis | | "Can we recover money from Anthropic?" | §3.5 — Recovery analysis | | "Does Anthropic train on our data?" | §3.4 — ToS and DPA analysis | | "Is NemoClaw actually better?" | §7 — Full NemoClaw analysis with gaps | | "What does DefenseClaw actually do?" | §8 — Full DefenseClaw analysis | | "If these tools are secure, why are NVIDIA and Cisco doing this?" | §9 — Business motivation analysis | | "Has anyone actually tried to hack a real setup?" | §10 — Berman penetration test | | {+"What does a real agent runtime actually enforce?" | §11.14 — TinkerClaw reference-implementation audit | | "Code controls or just prompt rules?" | §11.14.1, §11.14.5 — code layer vs. prompt layer | |+} "What's the minimum I need to do right now?" | Appendix A — Quick-reference checklist | | "What are the specifics for my deployment context?" | §13 — Per-persona recommendations |

### Appendix B: Threat-to-Section Cross-Reference

[-----]

### Appendix B: Threat-to-Section Cross-Reference

{+***+}

### Appendix B: Threat-to-Section Cross-Reference

*Paper J9 — AEGIS [-v2.1:-] {+v2.2:+} A Multi-Layered Security Framework for Autonomous AI Agents* *Author: Oscar Serra | Date: [-April-] {+June+} 2026 | Version: [-2.1*-] {+2.2*+} *Series: J-Series AI Research Reports | Classification: Internal — IT Contractor Review*
