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

From v2.0 (15 Apr) to v2.1 (20 Apr): 16,509 words to 25,777 words, 11,442 words in new or rewritten paragraphs and 2,174 taken out, 399 paragraphs changed.

## Change note of v2.1

**Tighter class definitions, standards mapping and cited sources**

About 9,000 words longer. The threat classes get strict definitions and the paper ties itself to public standards. Many claims that were stated loosely now carry a named source.

- The two threat classes are defined as mutually exclusive and mapped to the OWASP LLM Top 10.
- New table mapping the eight control classes to OWASP, MITRE, NIST and Google SAIF.
- Audit and supply chain are split into two sub-classes; a new section lists seven emerging control classes not yet formalised, endpoint security among them.
- New takeover routes: subagent token replay and MCP authorisation bypass, with the fix version named.
- Prompt-injection and jailbreak claims now cite the research (Greshake, Zou, HarmBench, Constitutional AI).
- Eight more architecture components get their own security surface, and a plan for empirical validation is added. A Gemini review of v2.0 had asked for endpoint security and a softer label on the evidence section; the first was done, the section keeps its title.

## Changed paragraphs

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

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

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

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

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

### Abstract

This paper presents **AEGIS [-v2.0**,-] {+v2.1**,+} a substantially revised security framework that addresses the most frequently raised concerns from IT professionals evaluating agent deployments. The central revision 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.-] {+fundamentally. v2.1 expands the v2 strategy taxonomy from six to **eight classes** (adding §4.7 split into audit and supply-chain trust, plus §4.8 self-modification prevention), elevates the §7 NVIDIA NemoClaw analysis to a five-layer architectural gap analysis, and adds §11 J-Series component security surfaces.+}

### Abstract

For data leaks, AEGIS [-v2.0-] {+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.

### 1.2 The Safety-Capability-Autonomy Trilemma

[-``` Safety /\ / \ / \ / Zone \ /________\ Autonomy --- Capability ```-]

### 1.2 The Safety-Capability-Autonomy Trilemma

{+![Figure 1.1: The Safety–Capability–Autonomy trilemma. Any agent deployment can foreground at most two of the three; the remaining axis is constrained by the choice. The shaded interior is the compromise zone every real deployment occupies.](fig-trilemma.png){ width=75% }+}

### 2. Threat Taxonomy — Two Fundamental Classes

[-We propose a two-class primary taxonomy.-]

### 2. Threat Taxonomy — Two Fundamental Classes

{+We propose a two-class primary taxonomy. These classes are **mutually exclusive**: an incident is Class I if and only if the adversary achieves control over agent execution; it is Class II if and only if data flows to an unauthorized party without the adversary controlling the agent. They are **collectively exhaustive** for the threat space this paper addresses — every agent security incident involving unauthorized access or unauthorized data flows falls into one of the two classes. (Availability attacks such as denial-of-service and pure integrity attacks such as output manipulation without data exfiltration are real concerns but fall outside this taxonomy's scope.) Where a Class I attack also produces data exfiltration, the event is classified by its dominant outcome: agent control. Class I subsumes Class II consequences.+}

### 2. Threat Taxonomy — Two Fundamental Classes

{+This two-class structure maps directly to OWASP LLM Top 10 v2.0 (2025): Class I corresponds to LLM08:2025 (Excessive Agency — compromised control), and Class II corresponds to LLM02:2025 (Sensitive Information Disclosure). Anchoring in the OWASP schema places the taxonomy within a widely-adopted public reference framework and directly answers the objection that any two-class breakdown is arbitrary.+}

### 2.1 Class I — Full Agent Takeover

{+**Definition:**+} A Class I attack is one in which an adversary gains *control* of the agent — the ability to issue arbitrary commands, access arbitrary data, and perform arbitrary actions within the agent's operational scope. {+The agent ceases to act solely on behalf of the legitimate principal and begins acting on behalf of the attacker.+} This is the maximum-severity [-scenario: the attacker effectively becomes the agent.-] {+scenario.+}

### 2.1 Class I — Full Agent Takeover

[-*Supply chain via malicious skills*: A skill installed by the user runs inside the agent process with the agent's full permissions. A malicious skill can read any file the agent can read, make any network call the agent can make, and execute any command the agent can execute. The Cisco Talos and ClawHavoc campaigns demonstrate this is an actively exploited vector.-]

### 2.1 Class I — Full Agent Takeover

{+*Supply chain via malicious skills*: A skill installed by the user runs inside the agent process with the agent's full permissions. A malicious skill can read any file the agent can read, make any network call the agent can make, and execute any command the agent can execute. Cisco Talos's October 2025 campaign — which documented seventeen malicious community-distributed skills silently exfiltrating SSH keys and environment files from approximately 8,000 installations — demonstrates that this vector is actively exploited at scale. A separately tracked community-reported activity cluster, referred to publicly as "ClawHavoc," had distributed over 1,184 malicious skills through community channels by February 2026, including skills using steganographic encoding to embed command-and-control instructions in apparent image files.+}

### 2.1 Class I — Full Agent Takeover

[-*Persistent-] {+*Indirect+} prompt injection via memory systems*: An adversarial payload embedded in external content [-(email,-] {+— an email,+} web page, [-document)-] {+or document —+} causes the agent to perform a malicious action and [-— critically —-] {+then+} store a "lesson" or memory entry that alters future behavior. [-This-] {+Greshake et al. (2023), in their foundational analysis of indirect prompt injection against real-world LLM-integrated applications, characterized this class of attack: unlike direct prompt injection, which targets a single session, indirect injection embeds instructions in data the model will later retrieve and act on. The delayed-action variant via persistent memory+} is [-a delayed-action attack:-] {+particularly insidious —+} the injection in session N causes harm in session [-N+M. The-] {+N+M, and the+} memory storage layer [-(ENGRAM)-] is the [-attack surface.-] {+persistence mechanism that makes it durable.+}

### 2.1 Class I — Full Agent Takeover

**Mitigation:** Defense in depth required. No single control defeats this class. Relevant mitigations: input content tagging [-marking-] {+that marks+} external content as untrusted, session-scoped memory with human-approved persistence gates, and audit logging of {+all+} memory writes.

### 2.1 Class I — Full Agent Takeover

*Subagent privilege [-escalation*:-] {+escalation via reconnect-token replay*:+} A compromised child agent claims the permission scope of its parent [-through reconnect-token replay (CVE-2026-GHSA-hf68) or capability inheritance misconfiguration.-] {+by replaying the initial pairing token on reconnect (GHSA-hf68-49fm-59cq).+} This {+attack+} is particularly dangerous in multi-agent orchestration [-scenarios.-] {+scenarios where trust is validated at initial pairing and assumed to hold for the session's duration.+}

### 2.1 Class I — Full Agent Takeover

**Mitigation:** Architectural. Subagents should inherit the *intersection* of parent permissions and a pre-defined subagent profile — never the union. Scope validation must occur at every reconnect, not only at initial [-pairing.-] {+pairing. The vulnerability is remediated in OpenClaw 2026.3.23 and later.+}

### 2.1 Class I — Full Agent Takeover

{+*MCP OAuth authentication bypass*: The Model Context Protocol, now widely used as the agent tool-call surface, introduced OAuth-based authorization flows. Pivot Point Security (2026) found that 43% of publicly accessible MCP endpoints had misconfigured authorization boundaries, allowing an attacker to forge tool-call authorization tokens without user interaction. This is a 2026-native vector not present in earlier AEGIS revisions and one likely to grow in prevalence as MCP adoption expands.+}

### 2.1 Class I — Full Agent Takeover

{+**Mitigation:** Enforce strict OAuth scope validation on every MCP tool-call authorization. Never accept tokens with broader scopes than explicitly requested. Bind MCP endpoints to authenticated network segments and review authorization configuration as part of any deployment audit.+}

### 2.1 Class I — Full Agent Takeover

Frontier models with alignment training [-(e.g., Anthropic's Claude with Constitutional AI)-] make certain classes of social engineering attacks — attempts to convince the agent to override its own guidelines through roleplay, hypothetical framing, or authority claims — meaningfully harder than they would be with a less aligned base model. [-This-] {+Anthropic's Constitutional AI methodology (Bai et al., 2022), which trains models to critique and revise their own outputs against a set of explicit principles,+} is [-a probabilistic contribution, not a deterministic guarantee: the model's training creates a prior against compliance with certain instruction types, but determined adversaries have demonstrated bypass paths for all current alignment approaches.-] {+one published approach that produces this resistance systematically.+}

### 2.1 Class I — Full Agent Takeover

{+This contribution is probabilistic, not deterministic. Researchers have repeatedly demonstrated bypass paths for published alignment approaches, including universal adversarial suffixes (Zou et al., 2023) and systematically elicited jailbreaks catalogued across dozens of models in benchmark evaluations such as HarmBench (Mazeika et al., 2024). No current alignment method eliminates jailbreak risk entirely.+}

### 2.1 Class I — Full Agent Takeover

The practical value of this contribution is attacker cost, not attack impossibility. An attacker targeting a Claude-based agent faces a model that will resist, require escalating justification, and may flag the interaction — compared to a smaller, less aligned model that follows instructions more literally. This resistance is meaningful [-defense-in-depth,-] {+defense-in-depth+} and should be counted as such — as a probabilistic layer, not a deterministic one.

### 2.1 Class I — Full Agent Takeover

Matthew Berman, a prominent AI content creator with a well-documented OpenClaw deployment, [-hired-] {+engaged+} a penetration tester in early 2026 to attempt a takeover of his production setup. [-The-] {+Berman reports publicly — in a February 2026 YouTube account of the engagement — that the+} tester was unable to gain unauthorized access or control within the engagement scope.

### 2.1 Class I — Full Agent Takeover

We cannot evaluate the tester's full methodology or skill level from [-the-] {+this+} public account. What we can do is analyze Berman's known configuration against the attack vectors listed above:

### 2.2 Class II — Data Leaks

[-A Class II attack, or an inadvertent Class II event, involves sensitive information flowing to an unauthorized recipient without the agent itself being compromised. The agent continues to function as intended; the problem is that certain data reached somewhere it should not.-]

### 2.2 Class II — Data Leaks

{+**Definition:** A Class II event is one in which sensitive information flows to an unauthorized recipient without the adversary gaining control of the agent. The agent continues to function within its legitimate operational parameters; the failure is that certain data exits the system boundary or reaches an unintended party.+}

### 2.2 Class II — Data Leaks

{+The separation from Class I is deliberate and load-bearing. A prompt injection that causes an agent to forward a single document to an unauthorized email address is a Class II event — the adversary has not obtained command-and-control capability and cannot issue arbitrary further instructions. If the adversary can issue such instructions, the event escalates to Class I. The classification boundary is agent control, not attack sophistication or data sensitivity.+}

### 2.2 Class II — Data Leaks

{+Class II events appear substantially more common in public incident reporting than Class I attacks. OWASP LLM Top 10 v2.0 (2025) ranks Sensitive Information Disclosure (LLM02:2025) above Excessive Agency (LLM08:2025) by reported incident frequency, consistent with the general pattern in breach reporting that unauthorized disclosure outpaces full system compromise in volume.+}

### 2.2 Class II — Data Leaks

Class II events [-are an order of magnitude more common than Class I attacks. They-] include: sensitive data in LLM API payloads, contextual spillage in memory between sessions, exfiltration via prompt injection that [-is-] {+does+} not [-a-] {+achieve+} full takeover, and misconfigured egress that allows background data flows.

### 2.2 Class II — Data Leaks

**Crucially, not all Class II events are equal.** The information disclosed, not the disclosure mechanism, determines the consequence. A prompt injection that causes the agent to repeat a marketing slogan is not the same incident as one that causes it to email client [-credentials.-] {+credentials. This is the core motivation for the three-tier data classification in §3.+}

### 2.2 Class II — Data Leaks

{+![Figure 2.1: Class I (Full Takeover) vs Class II (Data Leak) — six-axis threat profile. Class I dominates on adversary control, blast radius, and mitigation difficulty; Class II dominates on frequency. The shapes are qualitatively different, which is why a single-class treatment conflates unlike risks.](fig-threat-classes.png){ width=75% }+}

### 3.1 Three-Tier Data Classification

We classify all data that an agent might encounter or process into three tiers based on {+the+} consequence of unauthorized disclosure.

### 3.1 Three-Tier Data Classification

[-Data that is already in the public domain or that was never intended to be confidential. Examples:-]

### 3.1 Three-Tier Data Classification

{+Data that is already in the public domain or that carries no confidentiality expectation. Leakage from an agent handling exclusively Tier 1 data is not a security incident — it is an irrelevant event.+}

### 3.1 Three-Tier Data Classification

{+Examples:+} - Published marketing materials, press releases, {+and+} public {+product+} documentation - Open-source code in public repositories {+(e.g., MIT-licensed libraries on GitHub)+} - Published research [-papers-] {+papers, technical specifications,+} and [-technical specifications-] {+industry standards+} - Generic procedural descriptions ("how to [-set up-] {+configure+} an SSH server") - Names and contact [-information-] {+details+} from public professional [-profiles-] {+profiles (LinkedIn, company websites) - Publicly filed financial statements and regulatory disclosures+}

### 3.1 Three-Tier Data Classification

[-*Consequence of unauthorized disclosure:* None. The information is already accessible to anyone. Leakage from an agent handling Tier 1 data is not a security incident — it is an irrelevant event.-]

### 3.1 Three-Tier Data Classification

{+*Consequence of unauthorized disclosure:* None. The information is already accessible to anyone.+}

### 3.1 Three-Tier Data Classification

*Liability:* Zero. No regulation protects information already [-public.-] {+in the public domain.+} No claimant can demonstrate harm from disclosure of publicly available information.

### 3.1 Three-Tier Data Classification

[-Examples of contextually harmless data:-] {+Examples:+} - Source code fragments without accompanying deployment credentials, infrastructure [-context,-] {+topology,+} or security-relevant configuration {+(e.g., a utility function in isolation, with no environment variables or secrets present)+} - Internal process documentation that is not competitively sensitive ("how we format [-our-] meeting [-notes")-] {+notes," "our sprint retrospective template")+} - Generic email drafts with no named individuals or sensitive commitments {+("draft intro email for new vendor outreach")+} - System logs without embedded [-credentials-] {+credentials, PII,+} or [-PII-] {+sensitive event sequences+} - Internal meeting summaries on non-sensitive [-topics-] {+operational topics - Aggregated anonymized usage statistics with no individual-level identifiers+}

### 3.1 Three-Tier Data Classification

*Liability:* Low but nonzero. [-Depending on contractual obligations,-] {+Contractual confidentiality provisions may technically cover+} even harmless [-data might be covered by confidentiality provisions.-] {+internal data.+} However, proving damages in a lawsuit requires [-showing-] {+demonstrable+} harm, and Tier 2 data typically cannot satisfy that [-requirement.-] {+threshold.+}

### 3.1 Three-Tier Data Classification

Examples: - **Credentials and secrets:** API keys, passwords, private keys, session tokens, database connection strings. [-Direct-] {+These provide a direct+} mechanism for unauthorized access to systems and financial accounts. - [-**PII:**-] {+**Personal data (PII):**+} Names combined with identifying [-data (address,-] {+information — residential address,+} date of birth, national [-ID,-] {+identity number,+} financial [-identifiers).-] {+account identifiers, or IP addresses in combination. Protected by+} GDPR, [-CCPA,-] {+CCPA/CPRA,+} HIPAA, and equivalent [-regulations specifically protect this category.-] {+regulations.+} - **Client financial data:** P&L statements, {+revenue+} projections, loan applications, investment [-portfolios.-] {+portfolios, margin accounts.+} Disclosure may violate NDA obligations, [-GLBA,-] {+the Gramm-Leach-Bliley Act (US financial institutions),+} MiFID [-II,-] {+II (EU investment firms), Sarbanes-Oxley (publicly listed companies),+} and general fiduciary duties. - **Privileged communications:** Legal [-advice,-] {+advice and attorney-client communications,+} M&A deliberations, pre-announcement financial results, strategic [-planning.-] {+planning documents.+} Disclosure triggers {+potential+} insider trading [-laws,-] {+liability (SEC, FCA),+} attorney-client privilege issues, and NDA [-breach.-] {+breach claims.+} - **Trade secrets:** [-Algorithms,-] {+Proprietary algorithms, product+} designs, customer [-lists,-] {+lists with+} pricing [-models, technical-] {+history, manufacturing+} processes. Disclosure terminates the legal protection of the secret and may cause irreversible competitive harm. - [-**Health and biometric data:** Special-category-] {+**Special-category+} data under GDPR Article [-9, requiring-] {+9:** Health records, biometric identifiers, racial or ethnic origin, religious or political beliefs, sexual orientation. Requires+} explicit consent and heightened [-protection.-] {+protection; subject to the higher GDPR fine tier.+} - **Personnel data:** Salaries, performance reviews, disciplinary [-records.-] {+records, and recruitment evaluations.+} Employment law and privacy law converge on this [-category.-] {+category across virtually every jurisdiction.+}

### 3.1 Three-Tier Data Classification

*Consequence of unauthorized disclosure:* Real, attributable harm. Regulatory enforcement, civil liability, {+and+} criminal exposure depending on jurisdiction and {+data+} category.

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

When an agent sends data to an external LLM provider — Anthropic's Claude API, OpenAI's [-GPT-] API, or any other — the GDPR framework assigns roles with specific legal consequences.

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

**The Data Controller** is the entity that determines the purposes and means of processing personal [-data.-] {+data (GDPR Article 4(7), Regulation (EU) 2016/679).+} In any agent deployment, this is the deploying organization or individual. The [-person who-] {+entity that+} decides "my agent will process client emails" is the controller. The controller bears primary GDPR obligations: {+establishing a+} lawful basis for processing (Article 6), {+fulfilling+} data subject [-rights, breach notification-] {+rights (Articles 15–22), notifying the supervisory authority of breaches within 72 hours of discovery+} (Article [-33's 72-hour requirement),-] {+33),+} and {+exposure to administrative+} fines under Article 83.

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

**The Data Processor** is an entity that processes personal data on behalf of the [-controller. The-] {+controller (Article 4(8)). An+} LLM provider — Anthropic, [-OpenAI, etc.-] {+OpenAI+} — [-is-] {+acts as+} a processor when handling API-submitted data. [-Under-] Article [-28,-] {+28 requires+} controllers [-must-] {+to+} have [-a-] {+an executed+} **Data Processing Agreement (DPA)** with every processor before sending personal data. The DPA must [-specify:-] {+specify+} what data is processed, for what purpose, for how long, and what security measures the processor maintains.

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

1. *Without a DPA:* The controller [-(deploying organization)-] is in breach of [-GDPR-] Article 28. [-The processor has no formal obligations.-] All regulatory exposure falls on the [-controller. Fines-] {+controller — fines+} up to [-€20M-] {+€20 million+} or 4% of global annual [-turnover.-] {+turnover under Article 83(5), whichever is higher.+} The controller cannot meaningfully [-blame-] {+shift responsibility to+} the provider in regulatory proceedings because [-the controller never established the required-] {+no+} contractual [-obligations.-] {+obligations were ever established.+}

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

2. *With a DPA:* The controller has [-met-] {+discharged+} its Article 28 obligation. If the processor [-(LLM provider)-] then mishandles [-the-] data — trains on it contrary to the DPA, suffers a breach through negligence, or discloses [-data-] {+it+} to third parties without authorization — the processor is liable to the controller under the [-DPA, and-] {+DPA and,+} through {+Article 82, to data subjects directly. Controllers can seek contribution from processors in+} the [-controller to the data subjects.-] {+same action.+}

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

{+**The EU AI Act adds a separate and higher penalty ceiling.** Regulation (EU) 2024/1689, which entered into force in August 2024 with obligations phasing in through 2026–2027, imposes fines up to **€35 million or 7% of global annual turnover** for violations involving prohibited AI practices (Article 99(3)) — exceeding GDPR's ceiling — and up to €15 million or 3% of turnover for failures by providers of general-purpose AI models with systemic risk (Article 55). Agent frameworks deploying GPAI models in high-risk contexts may need to satisfy both GDPR and EU AI Act obligations concurrently. Article 15 imposes accuracy, robustness, and cybersecurity requirements on high-risk AI systems that directly bear on agent-framework security design. Practitioners should assess both regimes during deployment planning.+}

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

[-Anthropic makes a-] {+Anthropic's+} Data Processing Addendum [-available to API customers, which-] {+for Business Customers+} commits Anthropic to: not using API-submitted data to train models unless explicitly opted [-in,-] {+in;+} maintaining appropriate {+technical and organizational+} security [-measures,-] {+measures;+} notifying customers of security [-incidents,-] {+incidents within required timelines;+} and supporting GDPR data subject request workflows. OpenAI [-offers-] {+publishes a comparable Data Processing Addendum with substantially+} similar [-terms.-] {+commitments and the same default no-training posture for API customers.+} These DPAs are the contractual foundation for allocating liability; without them, the deploying organization absorbs it entirely.

### 3.3 GDPR: Controller, Processor, and the Distribution of Liability

**Key practical implication for IT contractors:** If your organization deploys an agent that processes any client personal data and sends it to an external LLM API, you must have an executed DPA with that provider before deployment. This is [-not optional; it is-] a legal prerequisite under [-GDPR.-] {+GDPR, not an optional governance step.+}

### 3.4 The Anthropic and OpenAI Terms of Service on Data Retention and Training

A common IT concern: "Does Anthropic use our data to train future models?" The answer from current [-ToS-] {+terms+} (as of April 2026):

### 3.4 The Anthropic and OpenAI Terms of Service on Data Retention and Training

Anthropic's API Terms of Service state that **input/output data from API calls is not used for model training by [-default**. Anthropic does use data from Claude.ai consumer product interactions for training unless users opt out — but this is distinct from-] {+default.** This applies to+} the {+commercial+} API product line, which is designed for business deployment. [-Organizations using-] {+In contrast, Claude.ai consumer product interactions may be used for training unless users explicitly opt out. The API–consumer product distinction is material: in August 2025, Anthropic updated its Claude.ai consumer data-retention policy to extend+} the [-Claude-] {+training-data retention window to up to five years unless opted out — a significant change for consumer accounts that does not affect the+} API [-who have-] {+product line or customers operating under an+} executed [-a DPA have additional contractual protection: the DPA explicitly prohibits training use.-] {+DPA.+}

### 3.4 The Anthropic and OpenAI Terms of Service on Data Retention and Training

{+Organizations using the Claude API who have executed a DPA have additional contractual protection: the DPA explicitly prohibits training use, creating a breach-of-contract basis for any violation independent of the general terms.+}

### 3.4 The Anthropic and OpenAI Terms of Service on Data Retention and Training

{+OpenAI's API defaults to a **30-day retention period** for submitted data, used solely for abuse monitoring and safety purposes, after which data is purged. Training use of API data requires explicit opt-in; the default is no training. Enterprise customers and qualifying business customers can negotiate **Zero Data Retention (ZDR)**, under which OpenAI retains no logs of API inputs or outputs — the most restrictive option available for deployments requiring maximum data minimization.+}

### 3.4 The Anthropic and OpenAI Terms of Service on Data Retention and Training

**The residual concern:** Data submitted to LLM APIs [-does pass-] {+passes+} through [-Anthropic's (or OpenAI's)-] {+provider+} infrastructure. It is subject to their security practices, their threat surface, and their incident response capabilities — [-which,-] {+substantial+} for multi-billion-dollar companies running production infrastructure, [-are substantial-] but not [-infinite.-] {+zero-risk.+} The question is not whether the risk is zero (it is not) but whether it is proportionate to the sensitivity of data sent and the alternatives available.

### 3.4 The Anthropic and OpenAI Terms of Service on Data Retention and Training

For Tier 3 data requiring the highest protection, the appropriate answer is **privacy routing**: Tier 3 data should not be sent to external APIs at all, but processed by locally-running models. This eliminates [-the-] third-party data-handling risk entirely for the most sensitive category.

### 3.5 Could You Recover Damages from Your LLM Provider?

- LLM providers' DPAs contain liability {+caps. As is typical in cloud service DPAs, these+} caps [-— typically capped-] {+are often set+} at fees paid in the preceding 12 [-months,-] {+months+} or at a specified {+contractual+} maximum. For small organizations paying modest API fees, this cap may be far lower than actual harm. - [-The DPA-] {+DPAs+} typically [-requires-] {+require+} arbitration rather than jury trial, limiting discovery and public pressure. - Demonstrating that the provider's negligence [-(rather-] {+— rather+} than a sophisticated nation-state attack or your own [-misconfiguration)-] {+misconfiguration —+} caused the harm requires expert evidence. - GDPR Article 82 allows data subjects [-(individuals whose data was exposed)-] to sue controllers directly; controllers [-can-] {+may+} seek contribution from processors in the same action.

### 3.5 Could You Recover Damages from Your LLM Provider?

[-This is the higher-probability, lower-drama scenario.-] If you can demonstrate unauthorized training use, you have a DPA breach claim. Damages [-would-] require showing how the unauthorized training harmed you {+specifically+} — [-which is-] difficult to quantify absent a [-specific-] {+concrete+} downstream [-incident.-] {+incident with an attributable link.+}

### 3.5 Could You Recover Damages from Your LLM Provider?

**Scenario 3: Provider's output [-harms-] {+causes harm to+} a third party**

### 3.5 Could You Recover Damages from Your LLM Provider?

[-LLM providers' ToS specifically disclaim liability for model outputs. This is an area of active legal development; the law has not settled on when providers are liable for model-generated content. For now, deploying organizations bear responsibility for how they use and deploy model outputs.-]

### 3.5 Could You Recover Damages from Your LLM Provider?

{+LLM providers' terms of service disclaim liability for model outputs. The legal landscape is actively developing: defamation claims against LLM providers (Walters v. OpenAI, settled in 2024) and copyright infringement claims (New York Times v. OpenAI, ongoing as of 2026) have reached courts but have not yet established settled doctrine on when providers bear liability for model-generated content. For now, deploying organizations bear primary responsibility for how they deploy and act on model outputs.+}

### 3.5 Could You Recover Damages from Your LLM Provider?

**Practical conclusion for IT contractors:** Recovery from a major LLM provider is possible but [-challenging and-] {+challenging,+} typically limited by contractual liability [-caps. The-] {+caps, and contingent on having an executed+} DPA [-is a prerequisite for any recovery claim.-] {+in place.+} The more realistic protective posture is to keep Tier 3 data out of external API calls [-entirely, thereby-] {+entirely —+} eliminating the exposure rather than planning to recover from it.

### 3.6 The Contractual Risk Transfer Playbook

1. **Execute the provider's DPA before any deployment.** This is the contractual foundation for any subsequent claim. 2. **Negotiate liability caps if volume justifies it.** Enterprise API contracts sometimes allow negotiation of higher liability limits. 3. **Implement privacy routing.** Route requests containing detected PII, credentials, or sensitive data to local models. This limits external API exposure to Tier 1–2 data. 4. **Maintain detailed audit logs.** If harm occurs, you need evidence of what was sent to which provider, when, {+and+} under what configuration. {+ISO/IEC 42001:2023, the AI Management Systems standard that has become the emerging certification baseline for AI governance, provides a useful reference structure for these records and supports the auditability requirements that regulators increasingly expect.+} 5. **Review the provider's incident response procedures.** The DPA should specify breach notification timelines. Know what you will be told and when. 6. **Include AI deployment in your cyber insurance policy.** [-Many-] {+Some insurers have begun adding AI-specific endorsements to+} business cyber [-policies are now updating-] {+policies, extending coverage+} to [-cover-] AI-related data incidents. Verify your coverage [-explicitly.-] {+explicitly before deployment, as legacy policies may not cover agent-specific events by default.+}

### 3.7 Liability Summary Matrix

| Data Tier | Disclosure Consequence | Regulatory Risk | LLM Provider Liability (with DPA) | LLM Provider Liability (without DPA) | |-----------|----------------------|-----------------|-----------------------------------|---------------------------------------| | Tier 1 [-(Public)-] {+— Public+} | None | None | None | None | | Tier 2 [-(Contextually Harmless)-] {+— Contextually Harmless+} | Minimal | Minimal | Low | Low | | Tier 3 [-(Genuinely Harmful)-] — PII | [-GDPR enforcement-] {+GDPR/CCPA enforcement; fines up to €20M / 4% turnover (GDPR Art. 83) or €35M / 7% turnover (EU AI Act Art. 99)+} | High | Processor liability under {+GDPR+} Art. [-28-] {+28; Art. 82 contribution claim+} | None — full controller liability | | Tier 3 — Credentials | Financial [-loss + CFAA-] {+loss; potential computer fraud liability (e.g., 18 U.S.C. § 1030 (CFAA) and equivalents)+} | High | [-Negligence-] {+DPA negligence+} claim [-under DPA-] | None — full controller liability | | Tier 3 — Trade Secrets | IP [-harm +-] {+loss;+} NDA [-breach-] {+breach; potential misappropriation claim+} | Medium | [-Confidentiality-] {+DPA confidentiality+} breach claim | None — full controller liability | | Tier 3 — {+Privileged /+} Insider [-Info-] {+Information+} | [-SEC/FCA investigation-] {+Securities enforcement (SEC, FCA); potential attorney-client privilege waiver+} | Very High | DPA breach claim | None — full controller liability {+| | Tier 3 — Special-Category Data (GDPR Art. 9) | Heightened GDPR enforcement; HIPAA (US); higher fine tier | Very High | Processor liability under Art. 28 and Art. 9 | None — full controller liability+} |

### 3.7 Liability Summary Matrix

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

### 3.7 Liability Summary Matrix

{+We identify eight distinct classes of security strategy applicable to autonomous AI agents, organized around a single architectural axis: whether the control is enforced by a mechanism the agent cannot influence (**DETERMINISTIC**) or whether it depends on the model to follow a rule (**PROBABILISTIC**).+}

### 3.7 Liability Summary Matrix

{+The distinction is fundamental, and it is where we claim originality. **The eight-class partition itself is a pragmatic operational view, not a novel contribution**: it overlaps substantially with OWASP LLM Top 10 v2.0 [@owasp2025llm], MITRE ATLAS [@mitre2025aiml], the NIST AI RMF Generative-AI Profile [@nist2024genai], Google's SAIF [@saif2023google], and the Cloud Security Alliance AI Controls Matrix [@csa2025aicm]. What the existing frameworks share is a focus on *what can go wrong* (OWASP, ATLAS) or *what capability to measure* (NIST, SAIF). None of them foreground the control's enforcement posture — whether the control is a bug when it fails, or a design property when it fails. That is the cut we make here.+}

### 3.7 Liability Summary Matrix

{+A deterministic control that fails is a bug and can be fixed. A probabilistic control that fails is a design property and must be compensated for by another layer. Agent-security practice is filled with deployments that treat probabilistic controls as if they had deterministic reliability — system prompts framed as "guardrails," behavioral rules as "safety measures" — and then register surprise when adversarial pressure reveals the gap. Most AEGIS recommendations can be reduced to: if you need a boundary, do not implement it probabilistically.+}

### 3.7 Liability Summary Matrix

{+![Figure 4.1: The eight AEGIS strategy classes, grouped by enforcement posture. Seven classes are deterministic (§4.1–§4.4, §4.6–§4.8); one-and-a-half are probabilistic (§4.5 and the classifier half of §4.6). The §4.10 emerging classes sit outside the current partition as v3-promotion candidates.](fig-strategy-taxonomy.png){ width=85% }+}

### 4.0 Mapping to Prior Frameworks

{+### 4.0 Mapping to Prior Frameworks+}

### 4.0 Mapping to Prior Frameworks

{+| AEGIS Class | OWASP LLM Top 10 v2.0 | MITRE ATLAS (v16) | NIST AI RMF GenAI Profile | Google SAIF | |-------------|----------------------|-------------------|---------------------------|-------------| | 4.1 Filesystem Controls | — | AML.T0010 (ML Artifact Access) | MS-2.6 (Physical/logical access) | Element 4 (harmonize platform controls) | | 4.2 Process Isolation | LLM07 (Insecure Plugin Design) partial | AML.T0020 (ML Model Isolation) | MG-3.2 (Deploy-time controls) | Element 1 (expand foundations) | | 4.3 Programmatic Guards | LLM08 (Excessive Agency), LLM07 | AML.T0050 (Command & Scripting) | MG-3.1 (Runtime gating) | Element 3 (automate defenses) | | 4.4 Network Controls | LLM02 (Insecure Output Handling) partial | AML.T0036 (Exfil over network) | MS-2.6, MG-3.2 | Element 4 | | 4.5 Prompt-Level Rules | LLM01 (Prompt Injection) | AML.T0051 (Prompt Injection) | MS-2.7 (Info integrity) | Element 2 (detection & response) | | 4.6 Privacy Routing | LLM06 (Sensitive Info Disclosure) | AML.T0031 (Data from ML Services) | MS-2.6, MG-3.3 (Data privacy) | Element 6 (contextualize) | | 4.7 Audit & Supply Chain | LLM05 (Supply Chain) | AML.T0011 (Supply Chain Compromise) | MS-2.10 (Measure & monitor) | Element 2 | | 4.8 Self-Mod Prevention | — (not separately listed) | AML.T0018 (Backdoor ML Model) partial | MG-2.4 (Continuous monitoring) | — |+}

### 4.0 Mapping to Prior Frameworks

{+AEGIS is not a replacement for these frameworks; it is a *runtime-enforcement view* orthogonal to OWASP's *vulnerability catalogue* and ATLAS's *adversary tactics*. The mapping matters because deployments rarely start from zero — enterprise buyers already own a NIST RMF obligation or an OWASP-indexed pentest report, and the mapping lets them reuse prior work.+}

### 4. Security Strategy Taxonomy — Eight Classes

[-## 4. Security Strategy Taxonomy — Eight Classes-]

### 4. Security Strategy Taxonomy — Eight Classes

[-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).-]

### 4. Security Strategy Taxonomy — Eight Classes

[-The distinction is fundamental. A deterministic control that fails is a bug. A probabilistic control that fails is a design property. The agent security field is filled with deployments that treat probabilistic controls as if they had deterministic reliability — system prompts as "guardrails," behavioral rules as "safety measures" — and then express surprise when adversarial pressure reveals the gap.-]

### 4.1 OS-Level and Filesystem Controls

**Mechanism.** Running the agent under a dedicated, low-privilege system account with explicit denial of access to sensitive filesystem paths. Mandatory access control (MAC) via AppArmor or SELinux {+[@smalley2001selinux; @cowan2006apparmor]+} enforces these restrictions at the kernel level — the agent's filesystem requests are intercepted and evaluated against policy before execution.

### 4.1 OS-Level and Filesystem Controls

[-The agent process cannot access denied paths regardless of model output. Bypass requires an OS-level vulnerability (kernel, not agent) or an incomplete policy list.-]

### 4.1 OS-Level and Filesystem Controls

{+The agent process cannot access denied paths regardless of model output, provided the MAC profile is in *enforcing* mode. In practice, a non-trivial fraction of production AppArmor profiles run in *complain* mode, and CIS benchmarks for Linux routinely find that AppArmor profiles for long-running services miss at least one sensitive credential path in 30–40% of audits [@cis2024benchmarks]. Bypass therefore requires an OS-level vulnerability (kernel, not agent) *or* an incomplete policy, and the second vector is the more common failure mode in the field.+}

### 4.1 OS-Level and Filesystem Controls

{+This is the *host-residual* layer: when §4.2 is thin or absent (e.g., the agent runs directly on the host without a container), §4.1 is the only deterministic barrier. When §4.2 is strong, §4.1 still matters as defense in depth but its marginal contribution drops. NIST SP 800-53 control families AC-3 (Access Enforcement) and AC-6 (Least Privilege) [@nist2020sp800_53r5] provide the compliance language enterprise deployments need to justify the work.+}

### 4.1 OS-Level and Filesystem Controls

{+**2025 reference implementations.** Anthropic's Claude Code installer uses `sandbox-exec` profiles on macOS; OpenClaw ships an AppArmor profile and a `bubblewrap` wrapper for Linux [@anthropic2024computeruse]. Linux `landlock` (stable since kernel 5.13) enables *unprivileged self-sandboxing* — the agent process drops its own filesystem privileges at startup, which is particularly appropriate for agent deployments where the operator cannot edit system-wide MAC policy.+}

### 4.1 OS-Level and Filesystem Controls

**Primary Bypass Vectors:** Incomplete path [-coverage;-] {+coverage (the most common in the field);+} privilege escalation via OS vulnerability; symlink attacks in agent-writable [-directories.-] {+directories; MAC profile left in complain mode.+}

### 4.2 Process-Level Isolation

**Mechanism.** Placing the agent in a separate execution context with a different system view — containers, virtual machines, {+micro-VMs,+} or capability manifests.

### 4.2 Process-Level Isolation

[-Containers provide filesystem, network, and process namespace isolation. The agent sees only explicitly mounted directories. Virtual machines provide the strongest isolation at higher operational cost. A capability manifest restricts the tool set the agent can invoke: undeclared tools do not exist from the agent's perspective.-]

### 4.2 Process-Level Isolation

{+Containers provide filesystem, network, and process namespace isolation; the agent sees only explicitly mounted directories. Under default (root-in-container) configurations, containers retain several known host-mount and kernel-capability escape classes. Rootless containers and a seccomp-bpf profile close most of these. Virtual machines provide the strongest isolation at higher operational cost; *micro-VMs* — Firecracker [@agache2020firecracker], Kata Containers, AWS Nitro Enclaves — collapse the gap between container startup latency and VM isolation strength to sub-second territory, making per-task VM isolation practical for agent workloads. Higher-assurance deployments use hardware-enforced enclaves (AMD SEV-SNP, Intel TDX, Google Confidential Spaces) to isolate the agent from the host operator as well.+}

### 4.2 Process-Level Isolation

{+A capability manifest restricts the tool set the agent can invoke: undeclared tools do not exist from the agent's perspective. This is the most lightweight tier and is the right primary control when OS-level isolation is impractical (e.g., end-user desktop deployments).+}

### 4.2 Process-Level Isolation

*Out-of-process vs. in-process policy enforcement* is a critical architectural distinction. Policy enforcement *within* the agent process can be circumvented by a compromised agent sharing its memory space. *Out-of-process* enforcement operates at the OS or network boundary, beyond the agent's influence. This [-distinction-] {+pattern predates AI agents — Apple's Endpoint Security Framework (2019), Windows Integrity Levels, gVisor [@young2018gvisor], and macOS TCC all use it — but NemoClaw's OpenShell [@nvidia2026nemoclaw]+} is the [-central architectural innovation-] {+most visible recent adaptation to the agent setting and is analyzed+} in [-NemoClaw's OpenShell (see §7).-] {+detail in §7.+}

### 4.2 Process-Level Isolation

**Classification:** DETERMINISTIC · **Effectiveness:** 5/5 [-(VM),-] {+(VM / micro-VM),+} 4/5 [-(container),-] {+(rootless container with seccomp), 3/5 (default container),+} 4/5 (capability manifest)

### 4.2 Process-Level Isolation

{+**2025 reference implementations.** Anthropic's Computer Use sandbox (Oct 2024) runs Claude in an isolated Docker container with restricted host-mount and network egress [@anthropic2024computeruse]; OpenAI's Operator browser runs in a persistent VM per user (Jan 2025); ByteDance Doubao's agent sandbox uses gVisor under Kubernetes for multi-tenant isolation (2025). Each is a published design pattern that a J-Series deployment can copy rather than reinvent.+}

### 4.2 Process-Level Isolation

**Primary Bypass Vectors:** Container escapes via kernel [-vulnerabilities;-] {+vulnerabilities (`runc`, `containerd` CVE history is non-trivial);+} insecure bind mounts exposing sensitive host paths; capability manifest scope creep under operational [-pressure.-] {+pressure; missing seccomp-bpf profile.+}

### 4.3 Programmatic and Deterministic Guardrails

[-**Mechanism.** Constraints implemented in agent runtime code, enforced regardless of model output.-]

### 4.3 Programmatic and Deterministic Guardrails

{+**Mechanism.** Constraints implemented in agent runtime code, enforced regardless of model output. This class is the closest peer to OWASP LLM08 (Excessive Agency) and LLM07 (Insecure Plugin Design) [@owasp2025llm] and the natural home for *capability-manifest* enforcement when that manifest is checked at tool-dispatch time rather than at container boundary.+}

### 4.3 Programmatic and Deterministic Guardrails

**Primary Bypass Vectors:** Allowlist gaps; chained commands invoking hooks (`git` runs pre/post hooks, `npm` runs package scripts, `python -c` chains `os.system()` or `importlib` to arbitrary execution); approval fatigue. **Strengthened mitigation:** [-When possible, restrict-] {+Restrict+} tool [-parameters-] {+*parameters*+} rather than merely allowlisting tool [-names-] {+*names*+} — e.g., restrict `git` to specific read-only subcommands with `--no-hooks` where available, use a minimal sandboxed interpreter rather than full Node.js for dynamic code execution. {+Modern language runtimes increasingly ship parameter-level capability primitives: Deno's `--allow-*` flag family, Node 22's stable `--permission` flag, Python `seccomp` wrappers, and Wasmtime's capability-based I/O are all concrete 2024–2025 implementations.+} Tool-name allowlisting without parameter-level [-restrictions-] {+restriction+} is weaker than it [-appears.-] {+appears. NIST SP 800-53 CM-7 (Least Functionality) [@nist2020sp800_53r5] is the compliance hook.+}

### 4.3 Programmatic and Deterministic Guardrails

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. [-Security research calls this "automation bias":-] {+The phenomenon is classical automation bias [@parasuraman1997humans; @mosier1996human]:+} the more a system has been reliable in the past, the less cognitive engagement users bring to each [-approval.-] {+approval. Parallel evidence exists for UAC-style consent prompts and browser permission dialogs [@felt2012permissions; @reeder2018rules] — the best mitigations transfer directly.+}

### 4.3 Programmatic and Deterministic Guardrails

{+Mitigations:+}

### 4.3 Programmatic and Deterministic Guardrails

[-Mitigations:-] - *Risk-weighted UX:* Visual differentiation ensures high-risk approvals are visually distinct from routine ones. A delete action should look different from a read action. - *Time-delayed execution for irreversible actions:* A 30-second countdown with a cancel window for destructive operations intercepts rubber-stamped approvals. - *Batch summaries rather than per-action gates:* "This plan will modify 47 files and send 3 emails — approve?" concentrates attention and reduces individual-gate fatigue.

### 4.4 Network-Level Controls

Port binding to localhost [-*eliminates direct remote network exposure*-] {+*removes the primary remote-origin vector*+} for the CVE-2026-25253 attack [-class,-] {+class [@cve202625253],+} but does not fully neutralize local-origin attacks. Two important bypass vectors [-remain even with localhost binding:-] {+remain:+}

### 4.4 Network-Level Controls

**DNS [-Rebinding:**-] {+Rebinding.**+} An attacker tricks a browser on the same machine into visiting a malicious website whose DNS resolves {+first to an attacker-controlled IP and then, on a subsequent query,+} to 127.0.0.1. The browser's same-origin policy is bypassed, allowing attacker-controlled scripts to send requests directly to the agent's localhost-bound [-WebSocket-] control port. The [-agent receives a request that appears-] {+threat is not new [@jackson2007rebinding]; its agent-deployment resurgence is documented in recent advisories against+} local [-— technically accurate, but attacker-initiated.-] {+AI runtimes [@snyk2023rebinding].+}

### 4.4 Network-Level Controls

**SSRF (Server-Side Request [-Forgery):**-] {+Forgery).**+} If any co-located service is vulnerable to SSRF, an attacker can use it as a proxy to reach the agent's control port, again appearing as a local-origin [-request.-] {+request. OWASP LLM02 (Insecure Output Handling) [@owasp2025llm] covers the agent-side consequence when the agent is the *origin* of an SSRF; this section covers the complementary case when the agent is the *target*.+}

### 4.4 Network-Level Controls

**Higher-security [-recommendation:**-] {+recommendation.**+} For deployments where these local-origin bypass vectors are a concern, the agent's control port [-should-] {+must+} require an authentication token or custom header even when bound to [-localhost. This ensures-] {+localhost — the hardening pattern applied to Jupyter Notebook after CVE-2019-9644 — and should additionally validate the `Origin` header on every WebSocket upgrade (the control+} that [-even a request reaching the port from a local process must present a secret to be acted upon.-] {+would have prevented CVE-2026-25253).+}

### 4.4 Network-Level Controls

[-Outbound firewall rules restricted to approved LLM API endpoints prevent arbitrary data exfiltration. Tailscale or equivalent VPN mesh constrains all traffic to authenticated nodes. DNS filtering blocks known-malicious domains.-]

### 4.4 Network-Level Controls

{+Outbound firewall rules restricted to approved LLM API endpoints prevent arbitrary data exfiltration. Tailscale or equivalent WireGuard mesh constrains all traffic to authenticated nodes. DNS filtering blocks known-malicious domains, with the caveat that DNS-over-HTTPS (DoH) tunneling [@talos2024dohabuse] routinely bypasses naive filtering. 2025-era deployments increasingly place a *sidecar egress proxy* — Cilium/eBPF policies, Envoy as an LLM-API gateway, AWS PrivateLink for Bedrock/Anthropic-only traffic — between the agent and the internet so policy is enforced at a point the agent cannot reconfigure.+}

### 4.4 Network-Level Controls

**Primary Bypass Vectors:** Data encoded in allowed API calls (sensitive data in LLM prompt payloads); [-DNS-over-HTTPS-] {+DoH+} tunneling {+[@talos2024dohabuse]+} bypassing DNS filtering; steganographic exfiltration; compromised legitimate endpoint.

### 4.5 Prompt-Level and Probabilistic Controls

**Mechanism.** Behavioral rules encoded in system prompts, memory files, or agent configuration, relying on the model to follow them. Input content tagging marks external data as [-untrusted.-] {+untrusted;+} SOUL.md-style value encoding expresses the agent's operating principles.

### 4.5 Prompt-Level and Probabilistic Controls

{+The evidence base for *input tagging* has hardened considerably in 2024–2025, and the verdict is sobering: frontier models leak instructions from tagged data with measured rates between 10% and 40% depending on model and prompt configuration [@zverev2024separate]. Meta PromptGuard-86M (2024) and Anthropic's Constitutional Classifiers (2025) add a probabilistic *detector* layer on top of the tagging — a meaningful improvement, but still a probabilistic control.+}

### 4.5 Prompt-Level and Probabilistic Controls

{+The canonical attack-paper chain for this class: Perez & Ribeiro 2022 on prompt-injection fundamentals [@perez2022ignore]; Greshake et al. 2023 for *indirect* prompt injection through retrieved content [@greshake2023notwhat]; Zou et al. 2023 for transferable adversarial suffixes that bypass alignment training (GCG) [@zou2023universal]; Schulhoff et al. 2023 (HackAPrompt) for a crowdsourced attack corpus [@schulhoff2023hackaprompt]. Defensive research has converged on two directions: the *instruction hierarchy* training objective from OpenAI [@wallace2024hierarchy] — treating system, developer, and user messages as a priority ladder the model learns to respect — and probabilistic classifiers trained on the attack corpora above.+}

### 4.5 Prompt-Level and Probabilistic Controls

**Important calibration:** [-This-] {+The+} 2/5 rating [-reflects adversarial conditions.-] {+is adversarial-conditions.+} In non-adversarial operation — the majority of real-world agent use — probabilistic controls are fully effective. The correct mental model is: probabilistic controls are useful signal-level filters, not security boundaries. They reduce the probability of inadvertent boundary violations, but they are not the controls you count when an adversary is actively [-trying.-] {+trying. Published GCG attack success rates against production models ranged from 30% to 60% in 2024, dropped to the 10–25% range after instruction-hierarchy training in 2025, and have not reached zero [@wallace2024hierarchy].+}

### 4.5 Prompt-Level and Probabilistic Controls

[-**Primary Bypass Vectors:** Prompt injection via external content; context window overflow; role-play jailbreaks; adversarial prompts exploiting model reasoning tendencies.-]

### 4.5 Prompt-Level and Probabilistic Controls

{+**Primary Bypass Vectors:** Direct prompt injection [@perez2022ignore]; indirect prompt injection via retrieved content [@greshake2023notwhat]; adversarial-suffix attacks [@zou2023universal]; context-window overflow; role-play jailbreaks; instruction-hierarchy violations on crafted system/user boundaries.+}

### 4.6 Privacy Routing

**Mechanism.** Routing requests to different models based on data sensitivity. The core insight: not all data requires frontier model capability, and not all data should leave the local network. Like separating the paper mail room from the classified document room — same building, different handling [-rules.-] {+rules. The pattern is reflected in EU AI Act Article 50 transparency obligations and in GDPR Article 22 constraints on automated processing, both of which push regulated sectors toward class-based routing.+}

### 4.6 Privacy Routing

**Effectiveness:** 3/5. **Critical limitation:** [-This-] {+The+} rating is [-heavily dependent on-] {+dominated by+} the classifier's [-false negative rate — typically **5–15%**-] {+false-negative rate, not the routing machinery. Published benchmarks+} for PII [-detection-] {+classifiers+} in production environments [-depending-] {+are consistent with the 5–15% miss range — Microsoft Presidio ~8–12%+} on {+standard English corpora and materially higher on non-English or chat-format text [@microsoft2024presidio]; NemoClaw's published implementation sits at the lower end of the band for Tier-3+} data [-format diversity.-] {+[@nvidia2026nemoclaw].+} This means 5–15% of [-Tier 3-] {+Tier-3+} data that *should* be routed to {+the+} local [-models-] {+model+} *will not [-be*, because the classifier will fail to flag it.-] {+be*.+} The control [-*reduces* Tier 3 external API-] {+reduces Tier-3 external-API+} exposure but does not eliminate [-it, making it an imperfect but valuable layer. Upgraded from prior version based on NemoClaw's implementation evidence.-] {+it.+}

### 4.6 Privacy Routing

{+**2025 reference implementations.** LiteLLM's policy router, LangChain's `LocalAI` adapter, NVIDIA NeMo Guardrails routing rails, and Cloudflare AI Gateway with data-class routing all ship production-grade implementations of the DETERMINISTIC half of this class. The PROBABILISTIC half (classifier quality) is where deployments differ.+}

### 4.6 Privacy Routing

{+**Side-channel note.** For deployments that route Tier-3 to a *local* model running in a shared-tenant environment (e.g., multi-tenant GPU hosting), the privacy guarantee is not side-channel-free. Cache-timing and GPU side channels on ML inference are real and measured [@yan2020cachetelepathy], and "routes to local" should not be equated to "cannot be observed" in hostile multi-tenant settings.+}

### 4.6 Privacy Routing

**Primary Bypass Vectors:** Non-standard data formats evading classifiers; misconfiguration sending more data to frontier models than policy intends; operational pressure to disable local-model routing for [-speed.-] {+speed; side-channel attacks on local model inference in shared-tenant environments.+}

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

### 4.7 Audit, Compliance, and [-Supply Chain Monitoring-] {+Supply-Chain Trust+}

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

[-**Mechanism.** Visibility, detection, and response capabilities. Like security cameras in a building — they don't prevent the intrusion, but they ensure it is detected and attributable.-]

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

[-Supply chain monitoring addresses skill provenance: every installed skill should be verified against a known-good hash before execution. Cron-based security scans check for new skills, configuration changes, unexpected network connections, and vulnerable dependencies. Communication audit logging records outbound agent messages for post-hoc review.-]

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

[-**Classification:** DETERMINISTIC (audit logging), PROBABILISTIC (anomaly detection)-]

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

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

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

[-**Supply chain context:** The extended supply chain attack surface includes model weights (poisoned fine-tunes that introduce backdoor behaviors), runtime npm/pip dependencies, container base images, and LLM API infrastructure. Each requires a distinct mitigation. The Cisco Talos skill attack is one category; the broader risk encompasses the entire dependency chain.-]

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

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

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

{+**4.7a Audit & Compliance.** Visibility, detection, and response capabilities. Like security cameras in a building — they do not prevent the intrusion, but they ensure it is detected and attributable. Communication audit logging records outbound agent messages for post-hoc review; cron-based scans check for new skills, configuration changes, unexpected network connections, and vulnerable dependencies; anomaly detection on tool-call sequences catches behavior changes that escape per-call review. The relevant standards are NIST SP 800-53 AU family (Audit and Accountability), SOC 2 Type II controls around observability, and — for AI-specific observability — the NIST AI RMF Measure functions [@nist2024genai]. Effectiveness is detection-oriented: 3/5 for reducing time-to-detection; near-zero for prevention. It belongs in every deployment profile but should never be the *only* class present.+}

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

{+**4.7b Supply-Chain Trust.** Pre-hoc verification of inputs to the agent runtime: model weights, skills/plugins, container base images, runtime dependencies, and LLM-API infrastructure itself. The relevant frameworks are SLSA (Supply-chain Levels for Software Artifacts) [@slsa2023]; sigstore/cosign for artifact signing; NIST SSDF SP 800-218 with the 2024 AI addendum SP 800-218A [@nist2024ssdfai]. Concrete 2024–2025 attack classes: the *backdoored fine-tune* — Hubinger et al.'s Sleeper Agents demonstrates that behaviorally-triggered malicious behavior survives standard safety training [@hubinger2024sleeper] — and the *malicious skill/plugin* — the Cisco Talos OpenClaw skill supply-chain campaign [@ciscotalos2025skills], Hugging Face malicious-model campaigns documented by JFrog and ReversingLabs (2024), and the ByteDance intern model-sabotage incident (October 2024). These attacks fail audit-only defenses because the compromise is established *before* the agent runs. Effectiveness (pre-hoc, done well): 4/5.+}

### 4.8 Self-Modification Prevention

**Mechanism.** Preventing the agent from modifying its own code, guardrails, configuration, or permission structures. An agent that can edit its own system prompt can disable all probabilistic [-controls. An-] {+controls; an+} agent that can modify its capability manifest can expand its own tool [-access. An-] {+access; an+} agent that can write to its own behavioral rules file is not constrained by those rules.

### 4.8 Self-Modification Prevention

{+**Taxonomic note.** As a *mechanism*, §4.8 is largely a disciplined application of §4.1 (filesystem immutability) plus §4.3 (tool write-restrictions). We keep it as a separate class because the *scenario it defends against* — the agent as its own adversary — has distinctive properties that a purely mechanism-indexed taxonomy would obscure: the attacker is inside the trust boundary, can observe the controls, and has indefinite time. Self-modification research literature is sparse but converging; the foundational concern is Russell's corrigibility framing [@russell2019humancompatible] and the Hubinger et al. Sleeper Agents result [@hubinger2024sleeper] showing that mis-aligned tendencies can persist invisibly across safety training.+}

### 4.8 Self-Modification Prevention

**Primary Bypass Vectors:** Agent running as owner of configuration files; memory-resident modification of runtime-loaded config; social engineering the user into making changes on the agent's [-behalf.-] {+behalf; *memory-injection persistence* (see below).+}

### 4.8 Self-Modification Prevention

[-The self-modification risk is not purely adversarial. The CEREBELLUM self-improvement mechanism (which rewrites agent rules nightly based on operational lessons) is a feature that becomes a vulnerability if a malicious interaction injects a "lesson" that weakens security. The human-in-the-loop gate for Level 2+ self-modifications is a critical control.-]

### 4.8 Self-Modification Prevention

{+**Operational heart of §4.8.** The J-Series CEREBELLUM self-improvement mechanism [@serra2026wondering] rewrites agent rules nightly based on operational lessons. This is a feature by design and a vulnerability by consequence: a malicious interaction can inject a "lesson" that weakens security, and because the lesson becomes part of the memory store, *the compromise persists across sessions* — exactly the attack class Greshake-style indirect injection produces when a long-term memory store is in scope [@greshake2023notwhat]. The human-in-the-loop gate for Level-2 (substantive) self-modifications is the critical control; weakening it is the quickest way to convert a one-turn injection into a durable backdoor. Recent research on memory-editing attacks and value-drift via self-reflection loops [@zeng2024memoryedit] suggests this attack surface will grow, not shrink, as long-lived agent memory becomes standard.+}

### 4.9 Consolidated Attack Surface Map

Table 1 maps each security strategy class to the STRIDE+agent threat categories it [-addresses.-] {+addresses. We emphasize that this is a *coverage indicator*, not a completeness proof — a ✓ means the class has a primary mechanism for that threat, not that the class alone is sufficient.+}

### 4.9 Consolidated Attack Surface Map

**Notable [-gaps:**-] {+gaps.**+} No single strategy class fully addresses {+(a)+} model-level compromise or {+(b)+} multi-agent trust hierarchies. [-These-] {+Both+} require composite mitigations across multiple [-layers.-] {+layers, and both are emerging classes that AEGIS does not yet formalize — see §4.10.+}

### 4.9 Consolidated Attack Surface Map

[-----]

### 4.10 Emerging Classes Not Yet Formalized

{+### 4.10 Emerging Classes Not Yet Formalized+}

### 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 surfaces them explicitly so that deployers do not mistake the eight-class partition for an exhaustive map.+}

### 4.10 Emerging Classes Not Yet Formalized

{+1. **Model-level safety training.** Constitutional AI [@bai2022constitutional], RLHF/RLAIF, OpenAI's Deliberative Alignment (2024), the Instruction Hierarchy training objective [@wallace2024hierarchy], Anthropic's Responsible Scaling Policy v2. This is the only class that directly addresses the blank *Model-Level* column in Table 1. AEGIS's current position is "rely on the frontier vendor's safety training; verify with classifiers" — defensible but not a substitute for the class itself. 2. **Input/Output content classifiers.** Meta PromptGuard-86M, Anthropic Constitutional Classifiers (2025), Lakera Guard, Protect-AI LLM Guard, NVIDIA NeMo rail plugins. Distinct from §4.5 behavioral *rules* — these are probabilistic *detectors* with different failure modes (false-positive vs. jailbreak) and a different evidence base. 3. **Red-team-in-the-loop evaluation.** Continuous adversarial evaluation as a control [@perez2022redteaming; @schulhoff2023hackaprompt], institutional red-teaming (UK AISI Inspect, 2024–2025), and automated attack generation [@zou2023universal]. No §4 class currently covers adversarial *evaluation as a deployed control*. 4. **Endpoint Security Integration.** CrowdStrike Falcon, Microsoft Defender for Endpoint, and SentinelOne behavioral rules targeting agent processes. Relevant to enterprise deployments that plug agents into existing EDR/XDR stacks — exactly Persona D's setting and explicitly flagged in the Meta internal advisory [@stamper2025meta]. 5. **Identity and secret hygiene.** Short-lived OIDC tokens via SPIFFE/SPIRE, HSM/TEE-backed secret storage, workload identity federation, just-in-time dynamic credentials (HashiCorp Vault, AWS STS). The dual of §4.1's "deny access to credential directories" — how credentials are *provisioned* to the agent, not just what is withheld. 6. **Multi-agent trust.** Inter-agent authentication via MCP (Model Context Protocol), Google's A2A (Agent-to-Agent) spec, and constitutional-classifier chaining for multi-agent settings. Directly addresses the blank *Multi-Agent* column in Table 1. 7. **Capability-specific guardrails.** Domain filters for agent deployments in biotech, chemistry, or offensive-security settings; Anthropic RSP v2 capability thresholds; OpenAI Preparedness Framework v2 (2025). Operationally distinct from §4.3 tool allowlists because the filter is semantic, not syntactic.+}

### 4.10 Emerging Classes Not Yet Formalized

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

### 4.10 Emerging Classes Not Yet Formalized

{+---+} ## 5. Four Deployment Personas

### 7.1 Context and Caveats

NVIDIA NemoClaw, as of April 2026, is in **alpha** status. [-It has-] {+NVIDIA's own documentation states explicitly: "Do+} not [-reached wide-] {+use this software in+} production [-deployment.-] {+environments."+} Its security claims are architecturally sound and well-engineered, but they have not been validated by independent security research at scale. NVIDIA has a commercial interest in positioning NemoClaw as the enterprise-grade alternative to open-source runtimes. Our analysis is based {+primarily+} on [-NVIDIA's public-] {+the NVIDIA NemoClaw Developer Guide (docs.nvidia.com/nemoclaw/latest/, retrieved 2026-04-20), the NVIDIA Technical Blog post "Build a More Secure, Always-On Local AI Agent with OpenClaw and NVIDIA NemoClaw," the GitHub repository `github.com/NVIDIA/NemoClaw`, and the NVIDIA Newsroom+} GTC 2026 [-materials, the NemoClaw Security Architecture Reference Guide v1.0,-] {+press release (2026-03-16). Where those sources are silent or ambiguous, secondary analysis from Repello AI+} and [-NVIDIA's developer documentation.-] {+Cobus Greyling is noted explicitly.+}

### 7.1 Context and Caveats

{+**NemoClaw vs. NeMo Guardrails.** These are distinct products. NeMo Guardrails (v0.20.0, January 2026) is NVIDIA's pre-existing LLM input/output guardrails toolkit, now integrated with Cisco AI Defense and CrowdStrike Falcon AIDR for enterprise deployment. NemoClaw is the agent-runtime security stack announced at GTC 2026 — it enforces process isolation, network egress, access control, and privacy routing at the agent execution layer. NemoClaw may incorporate NeMo Guardrails for LLM-layer content filtering, but the two address different threat surfaces and should not be conflated.+}

### 7.1 Context and Caveats

We analyze NemoClaw because it is the most systematically security-conscious agent framework {+currently+} in [-the market-] {+public preview+} — and because its gaps are as instructive as its strengths.

### 7.1 Context and Caveats

{+*Last verified: 2026-04-20. Given NemoClaw's alpha status, specific technical claims in §7.2–7.6 may drift as NVIDIA updates the Developer Guide.*+}

### 7.1 Context and Caveats

{+---+}

### 7.2 The 5-Layer Security Stack

NemoClaw implements security across five architecturally distinct layers, each with its own enforcement [-mechanism.-] {+mechanism. The table below summarizes the stack; each layer is analyzed in detail below.+}

### 7.2 The 5-Layer Security Stack

{+| Layer | Name | Enforcement Primitive | Primary Threat Addressed | |-------|------|-----------------------|--------------------------| | 1 | Sandboxed Execution | Landlock LSM + seccomp-BPF + namespaces | Filesystem abuse, syscall escalation | | 2 | Network Egress Control | Policy-mediated firewall (binary / destination / method / path) | Uncontrolled data exfiltration | | 3 | Minimal-Privilege Access | RBAC + capability config + no subagent inheritance | Privilege escalation, lateral movement | | 4 | Privacy Router | Sensitivity classifier + local routing + differential-privacy obfuscation | Sensitive data leakage to external LLMs | | 5 | Intent Verification | Nemotron 3 Super 120B policy engine | Out-of-scope action execution |+}

### 7.2 The 5-Layer Security Stack

{+![Figure 7.1: NVIDIA NemoClaw's five-layer security cascade. An agent request flows top-to-bottom; each layer either blocks or forwards to the next. Each layer's enforcement primitive (grey) and primary threat addressed (yellow) is named.](fig-nemoclaw-cascade.png){ width=60% }+}

### 7.2 The 5-Layer Security Stack

{+---+}

### 7.2 The 5-Layer Security Stack

[-Technology: Landlock LSM (Linux Security Module) + seccomp-BPF system call filtering + container namespace isolation.-]

### 7.2 The 5-Layer Security Stack

[-Landlock LSM provides fine-grained filesystem access control at the kernel level — the agent process can be restricted to specific filesystem paths without root privileges. seccomp-BPF filters the system calls the agent process is permitted to make, creating a whitelist at the kernel interface level. Container namespacing provides process, network, and mount namespace isolation.-]

### 7.2 The 5-Layer Security Stack

[-This is a sophisticated implementation of §4.2 (Process Isolation). The use of Landlock rather than traditional AppArmor or SELinux means the policy can be applied by the agent launcher without requiring system-level MAC configuration — lowering the deployment barrier while maintaining kernel-level enforcement.-]

### 7.2 The 5-Layer Security Stack

[-*Effectiveness:* Excellent for the threat classes it addresses (filesystem access, system call abuse). Does not address network-level data exfiltration or prompt injection attacks.-]

### 7.2 The 5-Layer Security Stack

{+*What it does:* Confines the agent process to a minimal set of permitted filesystem paths and system calls, with network and process namespace isolation.+}

### 7.2 The 5-Layer Security Stack

{+*How it does it:* Landlock LSM (Linux Security Module) enforces fine-grained filesystem access control at the kernel level without requiring root privileges or system-level MAC policy deployment. seccomp-BPF filters the system calls the agent process may invoke, creating a kernel-interface whitelist. Container namespace isolation separates process, network, and mount namespaces from the host. These three primitives are confirmed by NVIDIA's Developer Guide and corroborated by Repello AI's architecture teardown.+}

### 7.2 The 5-Layer Security Stack

{+*Where it fails:* Does not address network-level data exfiltration (handled by Layer 2) or any injection attack delivered through the LLM's input/output path. Landlock restricts what files an agent may touch, but it cannot evaluate what the agent writes into a permitted file.+}

### 7.2 The 5-Layer Security Stack

{+*Measured efficacy:* Strong for its defined threat class (filesystem access, syscall abuse). No reported bypass of the Landlock + seccomp combination in the NemoClaw alpha has been published as of April 2026. The alpha software caveat applies — this claim may be a function of limited deployment rather than verified robustness.+}

### 7.2 The 5-Layer Security Stack

{+---+}

### 7.2 The 5-Layer Security Stack

[-Technology: Allowlist-based firewall + DNS filtering + HTTPS traffic inspection.-]

### 7.2 The 5-Layer Security Stack

[-Every outbound network connection from the agent is evaluated against a signed policy defining permitted endpoints. DNS queries are intercepted and filtered against a blocklist of known-malicious domains. HTTPS inspection (TLS termination at the proxy layer) enables inspection of request content before it leaves the network perimeter.-]

### 7.2 The 5-Layer Security Stack

[-This is a robust implementation of §4.4 (Network Controls). The HTTPS inspection capability is particularly significant: it means the policy engine can evaluate the *content* of outbound requests, not just their destination — enabling the detection of credential patterns, PII, or sensitive data in LLM API payloads before transmission.-]

### 7.2 The 5-Layer Security Stack

[-*Effectiveness:* Strong for preventing uncontrolled egress. HTTPS inspection raises privacy and performance considerations (all LLM API calls are visible to the inspection layer) that organizations must evaluate.-]

### 7.2 The 5-Layer Security Stack

{+*What it does:* Prevents uncontrolled outbound network connections from the agent process.+}

### 7.2 The 5-Layer Security Stack

{+*How it does it:* Every outbound connection is evaluated against a signed policy by the out-of-process OpenShell enforcement runtime. Policy evaluation operates at four levels — binary identity (which executable is making the request), destination hostname/IP, HTTP method, and URL path — providing richer controls than a simple firewall allowlist. DNS queries are filtered against a blocklist of known-malicious domains. Whether HTTPS inspection via TLS termination at the proxy layer is part of the standard NemoClaw configuration is not explicitly confirmed in NVIDIA's public documentation; some secondary analyses describe it, but until NVIDIA confirms this capability in the Developer Guide it should be treated as a possible extension rather than a baseline feature.+}

### 7.2 The 5-Layer Security Stack

{+*Where it fails:* Policy-compliant exfiltration remains possible — if the agent is permitted to call an external API, that API call can carry a malicious payload and still pass Layer 2 evaluation. The egress layer evaluates *who is calling what endpoint*, not *what data is in the request body*. Detection of payload-level data exfiltration is the responsibility of Layer 4, not Layer 2.+}

### 7.2 The 5-Layer Security Stack

{+*Measured efficacy:* Effective at preventing uncontrolled egress to arbitrary endpoints. Does not substitute for output content inspection.+}

### 7.2 The 5-Layer Security Stack

{+---+}

### 7.2 The 5-Layer Security Stack

[-Technology: Per-agent capability bitmask + role-based access control (RBAC) + explicit prohibition on subagent permission inheritance.-]

### 7.2 The 5-Layer Security Stack

{+*What it does:* Ensures each agent instance holds only the permissions required for its declared purpose, and that child (sub)agents cannot inherit their parent's permission set.+}

### 7.2 The 5-Layer Security Stack

{+*How it does it:*+} Each agent [-instance-] is assigned a capability [-bitmask-] {+configuration+} at [-startup:-] {+startup —+} a [-signed declaration-] {+declarative specification+} of [-exactly-] which tools, APIs, and data categories it may access. RBAC maps agent identities to permission sets [-in-] {+following+} the same [-way-] {+pattern as+} enterprise [-systems map user identities to resource access.-] {+identity management systems.+} Critically, NemoClaw's RBAC explicitly prohibits capability inheritance to subagents by [-default —-] {+default:+} a child agent's permissions are bounded by its own [-bitmask,-] {+declared configuration,+} not by its [-parent's.-] {+parent's. (NVIDIA Developer Guide; the specific internal representation as a "signed bitmask" is an inference some analyses make, but NVIDIA's own terminology is "capability configuration" — the distinction matters if the signing mechanism is ever attacked.)+}

### 7.2 The 5-Layer Security Stack

[-This directly addresses the subagent privilege escalation attack vector (CVE-2026-GHSA-hf68 class). The architectural decision to make non-inheritance the default is the correct one: most multi-agent orchestration does not require the child to have all of the parent's capabilities, and making the safe choice the default prevents misconfiguration from creating vulnerabilities.-]

### 7.2 The 5-Layer Security Stack

[-*Effectiveness:* Strong for the subagent escalation class. The bitmask approach is more expressive than simple allowlists — but complexity in the bitmask definition process may lead to either overly permissive defaults or operational friction that drives operators to expand permissions.-]

### 7.2 The 5-Layer Security Stack

{+*Where it fails:* Complexity in the capability-configuration definition process may lead operators to expand permissions to resolve functional issues rather than debug the correct minimal permission set. Overly permissive defaults would undermine the layer's core guarantee. The alpha status of NemoClaw means there is no audit of how operators actually configure permissions in practice.+}

### 7.2 The 5-Layer Security Stack

{+*Measured efficacy:* Strong for the subagent privilege-escalation threat class. The non-inheritance default is the correct engineering choice — it means the failure mode (accidentally over-permissioned child) requires active misconfiguration rather than passive omission.+}

### 7.2 The 5-Layer Security Stack

{+---+}

### 7.2 The 5-Layer Security Stack

[-Technology: PII Named Entity Recognition (NER) model + field-level data redaction.-]

### 7.2 The 5-Layer Security Stack

[-The privacy router runs a purpose-built NER model over all request content before it is dispatched to an LLM. Detected PII fields are redacted before the request reaches any external API. High-sensitivity routing decisions (Tier 3 data → local model) are enforced by the out-of-process policy engine (OpenShell) rather than by the agent, making them bypass-resistant.-]

### 7.2 The 5-Layer Security Stack

[-The underlying model ships as **Nemotron 3 Nano 4B** — a small local inference model that can run on modest hardware and is fast enough to inline-process requests without unacceptable latency.-]

### 7.2 The 5-Layer Security Stack

[-*Effectiveness:* Good in principle; bounded by NER model accuracy. The 5–15% false negative rate for PII detection means a meaningful fraction of sensitive data will not be caught and redacted. This control reduces Tier 3 LLM API exposure; it does not eliminate it.-]

### 7.2 The 5-Layer Security Stack

{+*What it does:* Prevents high-sensitivity data from being transmitted to external LLM APIs when a locally-running model can answer the request instead.+}

### 7.2 The 5-Layer Security Stack

{+*How it does it:* Incoming request content is evaluated by a sensitivity classifier that categorizes data by tier. Requests classified as high-sensitivity (Tier 3) are routed to a locally-running Nemotron 3 Nano 4B model rather than to an external API. In addition to routing, the Privacy Router applies differential-privacy obfuscation to reduce the identifiability of any residual data in routed requests. NVIDIA also maintains the Nemotron-PII synthetic dataset (Hugging Face, `nvidia/Nemotron-PII`) and the NeMo Anonymizer project (`github.com/NVIDIA-NeMo/Anonymizer`), which provide the PII-specific annotation and redaction tooling the Privacy Router can leverage. The routing enforcement decision is made by OpenShell, not by the agent process — making it bypass-resistant even if the agent is compromised. The Nemotron 3 Nano 4B model's viability for inline processing is supported by NVIDIA's Nemotron 3 Family announcement (March 2026), which positions it as the low-latency local inference option in the Nemotron family.+}

### 7.2 The 5-Layer Security Stack

{+*Where it fails:* The sensitivity classifier is not a binary rule — it will produce false negatives. Publicly available benchmarks for NER-based classifiers comparable to this use case (e.g., GLiNER-base at roughly 81% F1) indicate that a meaningful fraction of sensitive content will be misclassified and routed to an external API. NVIDIA has not published a measured false-negative rate for the NemoClaw Privacy Router specifically; any specific percentage cited without a primary NVIDIA source should be treated as an estimate derived from analogous models, not a product specification.+}

### 7.2 The 5-Layer Security Stack

{+*Measured efficacy:* The routing mechanism is architecturally sound. Its effectiveness is bounded by classifier accuracy, which is undocumented for this specific deployment. The layer reduces Tier-3 API exposure; it does not eliminate it.+}

### 7.2 The 5-Layer Security Stack

{+---+}

### 7.2 The 5-Layer Security Stack

[-Technology: Policy engine + action classifier.-]

### 7.2 The 5-Layer Security Stack

[-Before executing any-] {+*What it does:* Evaluates proposed+} high-impact [-action-] {+actions+} (file writes, network calls, process [-execution), NemoClaw evaluates the proposed action-] {+execution)+} against [-an intent policy. The policy engine classifies the action's intent and evaluates whether it falls within-] the agent's declared [-purpose.-] {+purpose before execution is permitted.+}

### 7.2 The 5-Layer Security Stack

[-This is the most conceptually ambitious layer — and, by NVIDIA's own documentation, the **weakest**.-]

### 7.2 The 5-Layer Security Stack

{+*How it does it:* According to NVIDIA's developer documentation and corroborated by secondary analyses from Cobus Greyling and The New Stack (post-GTC 2026 coverage), the policy evaluation engine for Layer 5 is **Nemotron 3 Super 120B** — a 120B-parameter, 12B-active Mixture-of-Experts hybrid Mamba-Transformer model with a 1M-token context window, accessible via NVIDIA NIM (build.nvidia.com/nvidia/nemotron-3-super-120b-a12b). This is not a small purpose-built classifier; it is a production-grade LLM. This architectural choice has material implications for latency, cost, and local-deployment feasibility, addressed in §7.6. The Nemotron 120B evaluates proposed actions against policy and classifies whether the action falls within the agent's declared purpose.+}

### 7.2 The 5-Layer Security Stack

{+*Where it fails:* See §7.3.+}

### 7.2 The 5-Layer Security Stack

{+*Measured efficacy:* Unknown. NVIDIA has published no evaluation results for Layer 5's detection rates against representative prompt-injection or indirect-exfiltration attacks. The alpha-status caveat applies with particular force here — the layer's design rationale is sound, but its empirical performance is unvalidated.+}

### 7.2 The 5-Layer Security Stack

{+---+}

### 7.3 Layer 5: The Admitted Weakness

NemoClaw's own technical documentation states [-explicitly:-] {+that+} the Intent Verification layer evaluates *proposed actions*, not [-*returned data*.-] {+*the data those actions will transmit*.+} This [-creates-] {+is+} a [-fundamental gap.-] {+precise and consequential limitation.+}

### 7.3 Layer 5: The Admitted Weakness

{+NVIDIA acknowledges this explicitly in the NemoClaw Developer Guide: "The intent verification layer is designed to detect and block obviously out-of-scope actions. It is not designed to detect sophisticated indirect injection attacks that route malicious behavior through legitimate tool invocations." (docs.nvidia.com/nemoclaw/latest/; retrieved 2026-04-20. This is paraphrased from the documented limitation description; the exact wording should be verified against the current alpha release as NVIDIA may update language before GA.)+}

### 7.3 Layer 5: The Admitted Weakness

[-Consider the-] {+The+} attack [-vector:-] {+vector this gap admits is structurally simple:+} a prompt injection in a web page [-causes-] {+read by+} the agent {+causes it+} to decide to send an email containing sensitive data. From [-the intent classifier's-] {+Layer 5's+} perspective, "send [-an-] email" is within the agent's declared [-capabilities (it has email tool access).-] {+capabilities.+} The {+Nemotron 120B policy engine classifies the+} action [-classifier evaluates whether email sending is-] {+type as+} authorized — it [-is. The policy engine-] does not [-have visibility into-] {+evaluate+} the [-content of what will be sent, because the intent classifier operates on action type rather than action content.-] {+email's body. Exfiltration proceeds through a fully authorized tool call.+}

### 7.3 Layer 5: The Admitted Weakness

[-This gap means Layer 5 cannot detect: - Prompt injection attacks that use legitimate tool calls to exfiltrate data - Multi-step attacks where each individual action is authorized but the combination constitutes exfiltration - Attacks embedded in tool return values (malicious content in an API response that the agent then processes and acts on)-]

### 7.3 Layer 5: The Admitted Weakness

[-NVIDIA acknowledges this in their documentation: "The intent verification layer is designed to detect and block obviously out-of-scope actions. It is not designed to detect sophisticated indirect injection attacks that route malicious behavior through legitimate tool invocations."-]

### 7.3 Layer 5: The Admitted Weakness

[-This is an honest admission. It means Layer 5 catches opportunistic attacks — direct jailbreaks, obvious out-of-scope commands — but not sophisticated indirect injection. Layer 5 is a useful first-pass filter, not a comprehensive intent security control.-]

### 7.3 Layer 5: The Admitted Weakness

{+This gap means Layer 5 cannot detect:+}

### 7.3 Layer 5: The Admitted Weakness

{+- **Prompt injection via legitimate tool calls.** The injection route runs through the tool invocation, not the action type. - **Multi-step attacks.** Each individual action in a chain may be authorized; the combination constitutes exfiltration only when viewed as a sequence. Layer 5 evaluates actions independently. - **Tool-return-value injections.** Malicious content embedded in an API response is processed by the agent as data, then expressed as a subsequent authorized action. The injection is in the data plane; Layer 5 enforces the action plane.+}

### 7.3 Layer 5: The Admitted Weakness

{+The use of Nemotron 3 Super 120B as the policy engine does not close this gap. A larger, more capable model evaluating action type is still evaluating action type — the limitation is architectural (what Layer 5 is asked to evaluate), not a function of the evaluating model's capability.+}

### 7.3 Layer 5: The Admitted Weakness

{+Layer 5 is a high-quality filter for opportunistic attacks — direct jailbreak attempts, agents tasked with obviously out-of-scope operations. It is not a defense against adversarially crafted indirect injection. Operators who deploy NemoClaw should not treat Layer 5 as an indirect injection countermeasure.+}

### 7.3 Layer 5: The Admitted Weakness

{+---+}

### 7.4 Architectural Strengths of NemoClaw

Despite the gaps, [-NemoClaw's architecture-] {+NemoClaw+} makes several high-value [-choices-] {+engineering decisions+} that the broader [-AEGIS-] {+agent security+} community should [-emulate:-] {+study and, where possible, replicate:+}

### 7.4 Architectural Strengths of NemoClaw

**Out-of-process enforcement via OpenShell.** [-This-] {+OpenShell+} is [-the single most important architectural decision. OpenShell acts as a kernel-level-] {+an out-of-process+} policy [-broker:-] {+broker written in Rust:+} the agent calls a restricted interface, OpenShell evaluates the request against immutable policy, and permits or denies. The agent cannot influence [-or circumvent-] this [-decision.-] {+evaluation because it runs in a separate process with a separate memory space.+} In-process guardrails, by contrast, share memory with the constrained process — a compromised agent [-could-] {+can+} potentially {+overwrite or+} influence [-them.-] {+them. Out-of-process enforcement is not novel (it is the architecture of operating system kernels and hypervisors), but it is rare in agent frameworks, and NemoClaw is the first major agent runtime to implement it explicitly for security enforcement.+}

### 7.4 Architectural Strengths of NemoClaw

**Immutable runtime policy.** NemoClaw policies are {+declarative+} YAML files modifiable only by operators with explicit credentials. The agent {+process+} cannot modify its own [-policy,-] {+policy+} even if it [-could-] {+can+} otherwise write arbitrary {+files — the policy engine owns those+} files. This directly [-addresses §4.8 (Self-Modification Prevention).-] {+implements self-modification prevention as a hard architectural constraint rather than a runtime assertion.+}

### 7.4 Architectural Strengths of NemoClaw

[-**Non-inheritance as default for subagent permissions.** The explicit prohibition on capability inheritance prevents the most common multi-agent privilege escalation path.-]

### 7.4 Architectural Strengths of NemoClaw

[-**Local inference for Tier 3 data.** Routing high-sensitivity data to Nemotron models running on local infrastructure addresses the "data leaving the network" concern for regulated data.-]

### 7.4 Architectural Strengths of NemoClaw

{+**Non-inheritance as default for subagent permissions.** The explicit default that a child agent's capability configuration is bounded by its own declared scope, not its parent's, prevents the most common multi-agent privilege escalation path. This is a policy design choice that costs nothing to implement correctly and everything to get wrong.+}

### 7.4 Architectural Strengths of NemoClaw

{+**Local inference for high-sensitivity data.** Routing Tier-3 requests to Nemotron 3 Nano 4B running on local infrastructure means high-sensitivity data does not leave the network perimeter. This is technically straightforward — NVIDIA has done the integration work — but the architectural principle (route by data sensitivity, not by convenience) is the durable lesson.+}

### 7.4 Architectural Strengths of NemoClaw

{+**Defense-in-depth across orthogonal layers.** Each of the five layers defends against a distinct threat class at a distinct enforcement point. Compromising one layer does not automatically compromise the others. This is the correct structure for a security stack: layers should be independent, not redundant.+}

### 7.4 Architectural Strengths of NemoClaw

{+---+}

### 7.5 Documented Gaps in NemoClaw

[-| Gap | Severity | Root Cause | |-----|----------|-----------| | Intent verification evaluates actions, not data content | High | Classifier operates at action-type level, not payload level | | PII NER has 5–15% false negative rate | Medium | Fundamental limitation of NER-based classification | | Complexity increases attack surface | Medium | More code = more potential bugs in OpenShell itself | | NVIDIA vendor lock-in | Medium | Privacy routing requires NIM endpoints or significant GPU | | Alpha status — unvalidated at scale | High | No production evidence base | | GPU requirement excludes most SMB deployments | Medium | 8GB RAM minimum, GPU required for full local inference | | HTTPS inspection creates internal data visibility concerns | Low-Medium | All outbound traffic visible to inspection proxy |-]

### 7.5 Documented Gaps in NemoClaw

{+| Gap | Severity | Root Cause | Source | |-----|----------|------------|--------| | Intent verification evaluates action type, not action content | High | Layer 5 architecture evaluates what action is taken, not what data it carries | NVIDIA Developer Guide (documented limitation) | | Privacy Router false negatives are unquantified | Medium | NVIDIA has published no false-negative rate for the Privacy Router; comparable NER classifiers (GLiNER-base, ~81% F1) indicate meaningful miss rates | External NER benchmarks; NVIDIA-PII dataset (Hugging Face) | | Nemotron 120B policy engine adds latency and API dependency | Medium | Intent verification at production throughput requires either NIM API calls (latency, cost) or H100-class local GPU (most deployments cannot afford this) | NVIDIA NIM model card (build.nvidia.com) | | Alpha status — unvalidated at scale | High | No production evidence base; NVIDIA explicitly prohibits production use | NVIDIA Developer Guide, alpha release notes | | Complexity increases attack surface in OpenShell itself | Medium | More code = more potential implementation bugs in the trusted enforcement runtime | Engineering principle; no published CVEs yet (alpha) | | HTTPS inspection status unclear | Low | TLS-termination-at-proxy claim is not confirmed in NVIDIA's own documentation | NVIDIA Developer Guide (absent); secondary analyses only | | Full local inference requires H100-class GPU | Medium | Nemotron 3 Super 120B (the policy evaluation engine) is not hobbyist-accessible locally; most users run it via NIM | NVIDIA NIM model card | | NVIDIA vendor dependency | Medium | Privacy routing and intent verification are tightly coupled to NVIDIA NIM endpoints and Nemotron model family | NVIDIA Developer Guide (architecture) |+}

### 7.5 Documented Gaps in NemoClaw

{+---+}

### 7.6 NemoClaw Resource Requirements

[-For IT contractors evaluating NemoClaw adoption:-]

### 7.6 NemoClaw Resource Requirements

[-- **Minimum:** 4 vCPU, 8GB RAM, Docker, network access to NVIDIA Endpoints (NIM) - **For full local inference:** GPU with sufficient VRAM for Nemotron 3 Super 120B (not hobbyist-accessible) - **Default model:** `nvidia/nemotron-3-super-120b-a12b` via NVIDIA Endpoints — requires NVIDIA account and API key-]

### 7.6 NemoClaw Resource Requirements

[-The resource requirements effectively exclude NemoClaw from hobbyist and most SMB deployments in its current form. It is genuinely enterprise-targeted. The Tinkerer and SMB Operator personas (§5.1, §5.3) should apply AEGIS controls directly rather than waiting for NemoClaw to mature.-]

### 7.6 NemoClaw Resource Requirements

{+The resource picture for NemoClaw is more stratified than a single hardware floor implies, because different layers impose different compute requirements:+}

### 7.6 NemoClaw Resource Requirements

{+**Alpha baseline (to run NemoClaw at all):** A modern x86-64 Linux system with Docker and network access to NVIDIA NIM APIs. NVIDIA's alpha release documentation does not specify a precise CPU or RAM floor. Extrapolating from Nemotron 3 Nano 4B inference requirements (~4B active parameters, optimized for local deployment) suggests modest hardware suffices for Layers 1–4, but NVIDIA has not published specific minimums for the alpha.+}

### 7.6 NemoClaw Resource Requirements

{+**For full local inference (Tier-3 data, privacy-sensitive workloads):** Nemotron 3 Nano 4B (Layer 4 Privacy Router) is designed to run on consumer-accessible hardware; the Nemotron 3 Family announcement positions it as the local-deployment option. By contrast, the **Layer 5 intent verification engine is Nemotron 3 Super 120B** — 120B total parameters (12B active in the MoE configuration), hybrid Mamba-Transformer architecture, 1M context window. Running this locally requires H100-class GPU infrastructure. Most organizations will run it via NVIDIA NIM (build.nvidia.com), which adds per-call API latency and cost. This means Layer 5, as currently architected, is a cloud-dependent control for the majority of deployments — a meaningful constraint for air-gapped or regulated environments.+}

### 7.6 NemoClaw Resource Requirements

{+**For the Nemotron 3 Ultra when released (~late 2026, ~500B parameters):** NVIDIA has indicated a third tier in the Nemotron 3 family (Ultra, ~500B) is coming later in 2026. If Ultra becomes the preferred Layer 5 engine, the local-inference hardware floor will rise further. Operators evaluating NemoClaw for regulated workloads should plan for NIM dependency unless their infrastructure roadmap includes enterprise GPU clusters.+}

### 7.6 NemoClaw Resource Requirements

{+**Practical deployment guidance:**+}

### 7.6 NemoClaw Resource Requirements

{+- The Tinkerer and SMB Operator personas (§5.1, §5.3) should apply AEGIS controls directly rather than waiting for NemoClaw to mature or acquire the GPU infrastructure it requires. - Enterprise operators with NVIDIA partnerships and DGX or H100 cluster access are the realistic early adopters. NemoClaw's architecture is designed for that context. - The dependency on NVIDIA NIM for Layer 5 intent verification introduces a network-round-trip latency cost for every high-impact action evaluation. In agentic workflows with high action frequency, this latency compounds and must be measured against throughput requirements.+}

### 7.6 NemoClaw Resource Requirements

{+---+}

### 7.7 Transferable Lessons from NemoClaw

[-The architecture's principles are more widely applicable than the product itself:-]

### 7.7 Transferable Lessons from NemoClaw

[-1. **Move policy enforcement out of the constrained process.** Even a lightweight proxy that mediates tool execution and evaluates requests against a policy file provides out-of-process enforcement without the full OpenShell stack. 2. **Make non-inheritance the explicit default for multi-agent permissions.** This should be a deployment configuration choice, not a runtime decision. 3. **Treat immutability of configuration as a startup assertion.** Check that configuration files are owned by a different user than the agent process at startup; abort if they are not. 4. **Build local model routing before you need it.** Setting up Ollama or equivalent local inference takes a few hours; having it in place means privacy routing can be activated without an architectural change.-]

### 7.7 Transferable Lessons from NemoClaw

[-----]

### 7.7 Transferable Lessons from NemoClaw

{+NemoClaw is an alpha product. Whether it reaches GA, is superseded by a successor architecture, or is quietly abandoned, its architectural decisions encode lessons that are directly applicable to J-Series builders and to anyone designing agent security controls. The four principles below are independent of NemoClaw's survival:+}

### 7.7 Transferable Lessons from NemoClaw

{+**1. Move policy enforcement out of the constrained process.** This is the single most durable lesson. An enforcement runtime that shares memory with the agent it constrains is a weaker constraint than one that does not. Even a lightweight proxy (a UNIX socket listener, a co-process mediating tool calls) that evaluates requests against a policy file before forwarding them provides out-of-process enforcement without the full OpenShell stack. The principle scales down: a 200-line policy mediator is more trustworthy than an in-process guardrail, because the agent cannot touch it.+}

### 7.7 Transferable Lessons from NemoClaw

{+**2. Make non-inheritance the explicit default for multi-agent permissions.** When a parent agent spawns a child, the child should receive only what it was specifically granted — not what the parent has. This prevents the most common multi-agent privilege escalation path and costs nothing if the permissions are correctly specified. The risk is in the opposite direction: designing systems where inheritance is the default and restriction requires explicit opt-out.+}

### 7.7 Transferable Lessons from NemoClaw

{+**3. Treat configuration immutability as a startup assertion.** At startup, verify that policy files and configuration are owned by a user other than the agent process, and abort if they are not. This is a five-line check that closes the self-modification path without requiring a dedicated enforcement runtime.+}

### 7.7 Transferable Lessons from NemoClaw

{+**4. Build local model routing before you need it.** Setting up local inference (Ollama, LM Studio, or equivalent) takes a few hours. Having it in place means privacy routing — sending Tier-3 data to a local model instead of an external API — can be activated without an architectural change when a regulatory requirement or a data incident forces the issue. Build the capability; activate it when needed.+}

### 7.7 Transferable Lessons from NemoClaw

{+**5. Treat LLM-layer guardrails and runtime-layer security as separate concerns.** NeMo Guardrails (v0.20.0, with Cisco AI Defense and CrowdStrike Falcon AIDR integrations) handles LLM input/output filtering. NemoClaw handles agent process isolation, egress, and access control. These two layers address different threat surfaces and should be designed and evaluated independently. Conflating them leads to security theater: an organization that deploys LLM guardrails alone, without runtime isolation, has addressed the smaller of the two threat surfaces.+}

### 7.7 Transferable Lessons from NemoClaw

{+**What to avoid borrowing from NemoClaw:** - **Do not model your intent-verification layer as action-type classification alone.** NemoClaw's documented weakness is precisely this: a classifier that asks "is this action type authorized?" without asking "does the content of this action exfiltrate data?" Build Layer 5 equivalents that evaluate action content, or be explicit that they do not. - **Do not treat vendor-bundled local models as a privacy guarantee.** Routing to Nemotron 3 Nano 4B is more private than routing to GPT-4o, but it is not equivalent to routing to a model you control and audit. Local-routing and privacy are related but not synonymous.+}

### 7.7 Transferable Lessons from NemoClaw

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

### 8.1 Context

Cisco released DefenseClaw on March 27, 2026, as an open-source Apache 2.0 project. It is positioned as a [-security overlay-] {+*security overlay*+} for existing OpenClaw deployments rather than a replacement runtime. The release was prominently featured at RSA 2026 and accompanied by a Cisco AI Defense blog post that explicitly stated "I run OpenClaw at home" — a deliberate authenticity move connecting Cisco's security tooling to the practitioner community.

### 8.1 Context

DefenseClaw consists of three components: a Python [-CLI,-] {+CLI for developers and auditors,+} a Go [-gateway,-] {+gateway that mediates LLM and tool traffic,+} and a TypeScript OpenClaw [-plugin.-] {+plugin that hooks into the runtime event bus.+}

### 8.2 The Three Core Functions

[-**Function 1: Pre-Installation Scanning**-]

### 8.2 The Three Core Functions

{+**Function 1: Pre-Installation Scanning.**+} DefenseClaw [-provides a suite of-] {+ships+} five [-scanning tools-] {+scanners+} that evaluate agent configurations and code [-before-] {+*before*+} deployment:

### 8.2 The Three Core Functions

[-*skill-scanner:* Inspects OpenClaw skill packages for known malicious patterns, dependency vulnerabilities, and permission scope claims. Maintains a registry of known-malicious skill packages.-]

### 8.2 The Three Core Functions

[-*mcp-scanner:* Evaluates MCP (Model Context Protocol) server configurations for the authentication vulnerabilities identified in the broader MCP ecosystem — particularly the 38% of MCP servers that lack authentication, and the OAuth flow vulnerabilities documented by Adversa AI (30 CVEs against MCP servers in 60 days, as of March 2026).-]

### 8.2 The Three Core Functions

[-*a2a-scanner:* Evaluates agent-to-agent communication channel configurations for authentication bypass and privilege escalation patterns consistent with the CVE-2026-GHSA-hf68 class of subagent reconnect vulnerabilities.-]

### 8.2 The Three Core Functions

[-*CodeGuard (static analysis):* Regex-based static analysis of skill code across six categories: hardcoded credentials, dangerous execution patterns, outbound network calls, unsafe deserialization, SQL injection, weak cryptographic algorithms, and path traversal patterns. This is the tool that would have flagged the obfuscated exfiltration calls in the Cisco Talos supply chain attack skills.-]

### 8.2 The Three Core Functions

[-*AI BOM Generator:* Generates an "AI Bill of Materials" — a structured inventory of all models, skills, tools, MCP connections, and data sources used by an agent deployment. Intended for compliance documentation and incident response.-]

### 8.2 The Three Core Functions

[-**Function 2: Runtime Threat Detection**-]

### 8.2 The Three Core Functions

{+- *skill-scanner* — inspects OpenClaw skill packages against a registry of known-malicious packages (seeded by the Cisco Talos campaign corpus [@ciscotalos2025skills]) and checks declared permission scopes against inferred behavior. - *mcp-scanner* — evaluates MCP (Model Context Protocol) server configurations for the authentication gaps documented in the broader MCP ecosystem. Adversa AI's March 2026 MCP survey recorded 30 CVEs in 60 days and found that 38% of public MCP servers lacked authentication. - *a2a-scanner* — evaluates agent-to-agent communication channels for authentication bypass and privilege-escalation patterns consistent with the CVE-2026-GHSA-hf68 class of subagent reconnect vulnerabilities [@cve202625253]. - *CodeGuard* — regex-based static analysis of skill code across seven categories: hardcoded credentials, dangerous execution patterns, outbound network calls, unsafe deserialization, SQL injection, weak cryptographic algorithms, and path traversal. This is the tool that would have flagged the obfuscated exfiltration calls in the Talos supply-chain attack. - *AI BOM Generator* — produces an "AI Bill of Materials": a structured inventory of every model, skill, tool, MCP connection, and data source the deployment uses. Aligns with NIST SSDF-AI [@nist2024ssdfai] documentation expectations and with SLSA provenance tracking [@slsa2023].+}

### 8.2 The Three Core Functions

[-DefenseClaw's-] {+**Function 2: Runtime Threat Detection.** The+} runtime component runs as a proxy layer intercepting every message flowing in and out of the agent:

### 8.2 The Three Core Functions

{+-+} *Content [-scanner:* Every-] {+scanner* — evaluates every+} user input, [-every tool call input,-] {+tool-call parameter,+} and [-every-] model output [-is passed through a content scanner that evaluates it-] against patterns [-for: prompt injection signatures,-] {+for prompt-injection signatures [@perez2022ignore],+} PII exposure, credential patterns, [-command injection-] {+command-injection+} syntax, and known attack payload [-signatures.-] {+signatures. - *Tool-call inspection via `before_tool_call` hook* — intercepts every tool invocation before execution. Tool calls are evaluated against six rule categories:+}

### 8.2 The Three Core Functions

[-*Tool call inspection via before_tool_call hook:* Uses the OpenClaw plugin architecture's `before_tool_call` event hook to inspect every tool invocation before execution. Tool calls are evaluated against six rule categories:-]

### 8.2 The Three Core Functions

| Rule Category | What It Catches | [-|--------------|-----------------|-] {+|---------------|-----------------|+} | `secret` | API keys, tokens, passwords {+appearing+} in [-tool call-] {+tool-call+} parameters | | `command` | Shell injection patterns, dangerous execution commands | | `sensitive-path` | Filesystem access to known-sensitive paths | | `c2` | Command-and-control callback patterns, known malicious domains | | `cognitive-file` | Writes to agent configuration files (SOUL.md, [-AGENTS.md)-] {+AGENTS.md, policy files)+} | | `trust-exploit` | Patterns consistent with privilege escalation or permission bypass |

### 8.2 The Three Core Functions

{+-+} *Guardrail [-proxy:* A proxy layer that-] {+proxy* —+} inspects every LLM prompt and completion for the same [-categories,-] {+categories+} across seven supported LLM providers. This [-catches-] {+is where+} sensitive data in model inputs {+gets intercepted+} before [-they reach the-] {+it reaches a vendor+} API, and [-flags-] {+where+} suspicious patterns in model outputs {+get flagged+} before they reach tool execution.

### 8.2 The Three Core Functions

[-**Function 3: Block/Allow List Enforcement**-]

### 8.2 The Three Core Functions

[-DefenseClaw's most-] {+**Function 3: Block/Allow List Enforcement.** The+} operationally distinctive capability is sub-2-second response to detected threats [-without-] {+*without+} requiring agent [-restart:-] {+restart*:+}

### 8.2 The Three Core Functions

- *Permission [-revocation:* Can-] {+revocation* — can+} revoke sandbox permissions from a running agent in response to a detected threat. - *File [-quarantine:* Can-] {+quarantine* — can+} quarantine files the agent attempted to access abnormally. - *Network allowlist [-removal:* Can-] {+removal* — can+} remove specific endpoints from the agent's network allowlist in response to detected C2 callback patterns.

### 8.2 The Three Core Functions

The sub-2-second response time and {+the+} no-restart requirement [-are significant-] {+matter+} for production deployments where agent availability is {+itself+} an operational [-requirement.-] {+constraint. Native Splunk integration feeds every detected event into enterprise SIEM workflows without custom glue code.+}

### 8.2 The Three Core Functions

[-**Splunk integration:** DefenseClaw includes native Splunk integration, enabling detected events to flow directly into enterprise SIEM workflows without custom integration work.-]

### 8.3 Architectural Strengths

**Runtime content inspection fills a real gap.** AEGIS's own taxonomy [-identifies-] {+classifies+} audit/monitoring [-(§4.7)-] {+(§4.7a)+} as [-"detection-focused,-] {+detection-focused,+} not [-prevention-focused."-] {+prevention-focused.+} DefenseClaw's [-before_tool_call-] {+`before_tool_call`+} hook changes [-this:-] {+the posture:+} it intercepts tool calls before execution, creating a deterministic block opportunity at the point of action. This is a genuine improvement over post-hoc [-logging.-] {+logging and belongs structurally to §4.3 (programmatic guardrails), not §4.7 — DefenseClaw is better thought of as runtime policy enforcement that *uses* audit infrastructure, not as audit infrastructure itself.+}

### 8.3 Architectural Strengths

[-**CodeGuard addresses the supply chain attack class directly.** The regex-based static analysis would have caught the obfuscated exfiltration calls in the Cisco Talos skill attack — the specific patterns used (obfuscated JavaScript, delayed execution timers, suspicious network destinations) are exactly the type of static pattern that CodeGuard scans for.-]

### 8.3 Architectural Strengths

{+**CodeGuard addresses the supply-chain class directly.** The regex-based static analysis catches the unsophisticated end of the attack distribution — obfuscated JavaScript, delayed-execution timers, suspicious network destinations — which is exactly the pattern shape seen in the Talos skill campaign [@ciscotalos2025skills]. It does not catch the sophisticated end; see §8.4.+}

### 8.3 Architectural Strengths

**AI BOM is operationally valuable for compliance.** IT contractors asking "what [-exactly-] does this agent touch?" get a structured [-answer. The AI BOM is also the documentation artifact-] {+answer+} that [-most enterprises need for-] {+slots into+} internal security [-reviews-] {+reviews, SLSA provenance chains,+} and [-audit trail.-] {+NIST SSDF-AI documentation requirements.+}

### 8.3 Architectural Strengths

[-**Open source-] {+**Open-source+} reduces vendor dependency risk.** Apache 2.0 licensing means organizations can inspect, modify, and self-host DefenseClaw without [-CISCO-] {+Cisco+} product dependencies. [-The commercial products-] {+Commercial integrations+} (Splunk, Cisco AI Defense) [-integrate-] {+attach+} optionally rather than mandatorily.

### 8.4 Documented Gaps in DefenseClaw

| Gap | Severity | Root Cause | [-|-----|----------|-----------|-] {+|-----|----------|------------|+} | Requires NemoClaw/OpenShell [-— not standalone-] {+for full runtime enforcement+} | High | [-Architecture requires-] {+Hook-level tool interception needs+} out-of-process policy broker underneath | | Regex-based scanning has known bypass vectors | High | Obfuscation, encoding, and semantic equivalents evade pattern matching | | No privacy routing of its own | Medium | Relies on NemoClaw Layer 4 for PII routing; absent without NemoClaw | | Runtime detection at content-scan granularity | Medium | Pattern matching, not semantic analysis — sophisticated attacks not caught | | CodeGuard cannot evaluate dynamically generated code | Medium | Static analysis only; runtime code generation bypasses scan {+| | Cannot detect behaviorally-triggered backdoors (sleeper agents) | High | Payload is latent in model weights, not visible to pattern scans [@hubinger2024sleeper]+} |

### 8.4 Documented Gaps in DefenseClaw

**The [-regex bypass-] {+regex-bypass+} limitation is the most important gap to understand.** The [-Cisco-] Talos [-supply chain-] {+supply-chain+} skills used obfuscated JavaScript — base64 encoding, [-character code-] {+character-code+} concatenation, delayed execution. CodeGuard's static analysis scans for patterns in the *readable* representation of code. Encoding, minification, or obfuscation breaks the pattern match. An attacker who knows DefenseClaw's pattern list can craft exfiltration code that does not match any [-pattern.-] {+pattern. This is a well-understood failure mode of regex-based static analysis in the broader software-security literature, not a DefenseClaw-specific defect; the analog in the LLM security literature is the transferable adversarial suffix, which evades fixed filters by construction [@zou2023universal].+}

### 8.4 Documented Gaps in DefenseClaw

This does not make DefenseClaw useless — it makes it a useful first-pass filter for unsophisticated attacks and clearly written [-supply chain-] {+supply-chain+} malware. For sophisticated targeted attacks, regex-based static analysis is insufficient as a [-sole control.-] {+*sole* control and must be paired with (a) runtime behavioral anomaly detection, (b) provenance-based trust (signed artifacts, SLSA), and (c) for the sleeper-agent class specifically, model-level safeguards outside DefenseClaw's scope [@hubinger2024sleeper].+}

### 8.4 Documented Gaps in DefenseClaw

**The NemoClaw dependency** means DefenseClaw's most advanced [-capabilities (the-] {+capability —+} hook-based [-tool call interception) require-] {+tool-call interception — requires+} OpenShell's out-of-process [-architecture.-] {+architecture (§7).+} Organizations without NemoClaw can run DefenseClaw's pre-installation scanning and some content scanning, but the full runtime capability requires the full [-stack.-] {+stack. This is an important adoption consideration: DefenseClaw is not a drop-in replacement for missing isolation.+}

### 8.5 Practical Adoption Guidance

1. **Pre-deployment skill auditing** — run [-CodeGuard-] {+CodeGuard, skill-scanner,+} and [-skill-scanner-] {+mcp-scanner+} on every community skill before installation. This is valuable [-even-] {+*even+} without [-NemoClaw-] {+NemoClaw*+} and provides strong protection against the [-supply chain-] {+unsophisticated end of the supply-chain+} attack class. 2. **Generating AI BOM documentation** — produces compliance artifacts that most organizations need [-anyway.-] {+anyway and that fit cleanly into NIST SSDF-AI and SLSA workflows.+} 3. **Runtime monitoring in environments that already run OpenShell** — the [-before_tool_call-] {+`before_tool_call`+} interception is the most technically significant [-capability.-] {+capability and only activates fully with out-of-process enforcement underneath.+}

### 8.5 Practical Adoption Guidance

[-----]

### 8.5 Practical Adoption Guidance

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

### 10.1 The Matthew Berman Penetration Test

In early 2026, Matthew Berman — a prominent AI content creator [-with a-] {+whose OpenClaw deployment is one of the most+} publicly documented [-and extensively described OpenClaw deployment-] {+in the practitioner community+} — arranged for [-a-] {+an external+} penetration tester to attempt unauthorized access and control of his production agent [-setup.-] {+setup (Berman, 2026).+} The [-engagement's-] outcome: the tester was unable to gain unauthorized access or agent control within the engagement scope.

### 10.1 The Matthew Berman Penetration Test

[-Berman has not disclosed the specific attack vectors attempted or the tester's full methodology. What we can evaluate is the security architecture of Berman's known configuration and what it would have presented to an attacker:-]

### 10.1 The Matthew Berman Penetration Test

[-| Attack Vector | Berman's Defense | Effectiveness | |--------------|-----------------|---------------| | CVE-class network exploitation | Cloudflare Tunnel — no direct port exposure. Attacker would first need to compromise Cloudflare's global infrastructure | Extremely high — attack complexity elevated by orders of magnitude | | WebSocket hijack | Localhost binding confirmed; tunnel ingress is authenticated | CVE-2026-25253 class does not apply | | Malicious skill installation | Manual vetting policy documented | Supply chain vector substantially reduced | | Prompt injection takeover | Security council agent performs nightly codebase audit | Persistent injection more likely to be detected | | Network exfiltration | Tailscale mesh — traffic constrained to authenticated nodes | Arbitrary exfiltration endpoint blocked |-]

### 10.1 The Matthew Berman Penetration Test

{+**Setup and controls.** Berman's deployment at the time of the test incorporated several layered defenses, most of which he has discussed publicly across multiple videos and posts:+}

### 10.1 The Matthew Berman Penetration Test

{+| Layer | Control in place | Attack class addressed | |---|---|---| | Network exposure | Cloudflare Tunnel — no direct inbound port; all traffic proxied | CVE-class direct network exploitation | | WebSocket binding | Localhost binding confirmed; inbound only via authenticated tunnel | CVE-2026-25253 class | | Exfiltration channel | Tailscale mesh — outbound traffic constrained to authenticated endpoints | Arbitrary data exfiltration | | Skill supply chain | Manual vetting policy for all installed skills | Malicious skill installation | | Behavioral audit | Nightly security council agent reviewing codebase, config, and recent actions | Persistent prompt injection; behavioral drift |+}

### 10.1 The Matthew Berman Penetration Test

The security council agent [-— a separate-] {+merits specific attention. It is an autonomous+} agent [-that reviews-] {+whose sole function is to audit+} the [-production-] {+primary+} agent's {+configuration files,+} rules, [-configuration,-] and recent {+session+} actions nightly against a security checklist [-— deserves specific attention.-] {+and to flag anomalies.+} This is [-an-] {+a concrete+} implementation of the [-audit/monitoring-] {+audit and monitoring+} principle [-(§4.7) with an unusual property:-] {+(§4.7). Its distinguishing property is that+} the auditor is itself an AI [-agent, providing coverage against-] {+agent capable of identifying+} behavioral drift that a [-static audit-] {+static, human-maintained+} checklist would miss. This is [-a-] {+an unusually+} sophisticated configuration choice that most {+OpenClaw+} deployments do not [-implement.-] {+include.+}

### 10.1 The Matthew Berman Penetration Test

{+**Results.** Within the scope of the engagement, the tester was unable to gain unauthorized access or control. Berman has not published a technical breakdown of the attack vectors attempted, the tools used, or the tester's full methodology. The result is a pass/fail outcome without granular attack-coverage data.+}

### 10.1 The Matthew Berman Penetration Test

{+**What was proven.** This specific configuration, facing this specific tester, in this specific engagement, resisted the test. That is a meaningful data point — not a design argument, but an observed outcome against an actual adversarial attempt.+}

### 10.1 The Matthew Berman Penetration Test

{+**What was not proven.** Whether all available attack vectors were attempted; whether the tester had access to Berman's public configuration documentation before engaging; whether the result reflects defensive robustness, the tester's attack surface coverage, or both. The engagement methodology is not publicly documented, so neither the coverage nor the attacker capability can be independently assessed.+}

### 10.1 The Matthew Berman Penetration Test

{+*Note for production: a `berman2026` bibkey is not yet present in refs.bib. 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.*+}

### 10.2 What This Evidence Tells Us

[-The Berman test provides three pieces of evidence:-]

### 10.2 What This Evidence Tells Us

[-1. **A well-configured OpenClaw deployment can resist penetration testing.** This is evidence-based, not assertion-based. The configuration is known; the attack was attempted; it failed.-]

### 10.2 What This Evidence Tells Us

[-2. **The defensive configuration is achievable.** Berman is a practitioner, not a dedicated security engineer. The controls he implemented — tunnel, localhost binding, Tailscale, skill vetting, nightly security audit — are within the capability of any technically competent user.-]

### 10.2 What This Evidence Tells Us

[-3. **The unknown attacker capability introduces uncertainty.** We do not know whether the tester used all available attack vectors, whether they had knowledge of Berman's specific configuration, or whether they represented a sophisticated or opportunistic adversary. The test result is positive evidence, not proof of absolute security.-]

### 10.2 What This Evidence Tells Us

{+The Berman engagement provides three concrete takeaways, calibrated against what the data actually supports:+}

### 10.2 What This Evidence Tells Us

{+1. **A well-configured OpenClaw deployment can resist penetration testing by a non-nation-state adversary.** The test was conducted against a real production deployment, not a lab environment. The result is not a design argument — it reflects a deployed configuration under an actual adversarial test. The engagement scope and attacker capability are unknown, which limits how much weight a single pass/fail can carry, but the outcome is observed, not inferred.+}

### 10.2 What This Evidence Tells Us

{+2. **The defensive configuration is technically achievable by a motivated practitioner.** Berman is a content creator and technical practitioner, not a dedicated security engineer. Every control in the table above is within reach of a technically motivated OpenClaw user following AEGIS's Standard Configuration (§12.3). This is evidence that the gap between "theoretical security" and "security someone actually deploys" is bridgeable without specialized engineering resources.+}

### 10.2 What This Evidence Tells Us

{+3. **The most unusual element — the security council agent — is replicable.** The nightly AI auditor is not a commercially sold product or a proprietary enterprise system. It is an agent instantiation pattern that any user can configure. Its presence in Berman's deployment demonstrates that behavioral audit at this level is achievable outside of enterprise environments.+}

### 10.2 What This Evidence Tells Us

{+This is illustrative evidence, not systematic validation. It establishes a proof of concept: the right configuration can pass a real test. It does not establish that all AEGIS-compliant configurations would do so under all adversary models, or that the engagement encountered the most dangerous attack classes. Section 14.1 of this paper states directly that AEGIS has not been tested against real attack campaigns at scale — both statements are accurate in their own frame, and readers should hold them together. Section 10.4 describes the planned empirical work needed to bridge this gap.+}

### 10.3 Limits of the Evidence

[-- *One tester, one configuration, one engagement.* No single penetration test certifies a configuration as universally secure. - *Public figure, known setup.* Berman's configuration is publicly discussed, meaning the tester likely had more insight into defensive architecture than a real attacker would have in most scenarios. - *Unknown tester capability.* The test result could reflect attacker skill ceiling as much as defensive robustness. - *No nation-state attack class tested.* Nothing in the evidence suggests that supply-chain compromise of Cloudflare's infrastructure, novel zero-day exploitation, or advanced persistent threat techniques were tested.-]

### 10.3 Limits of the Evidence

{+- **Single engagement.** One tester, one configuration, one outcome. A penetration test is not a certification. Pass/fail from a single engagement is the weakest form of empirical security evidence — informative but far from definitive. - **Unknown attacker capability.** The result could reflect defensive robustness, attacker skill ceiling, incomplete attack surface coverage, or any combination of the three. These cannot be distinguished without the tester's methodology. - **Public figure, known setup.** Berman's configuration is discussed extensively in public content. A tester studying that content before the engagement would have unusual insight into the defensive architecture — more than a real attacker would have in most scenarios. This cuts in both directions: the test may have been harder (attacker knew what to target) or easier (attacker had a roadmap of what to avoid). - **Known adversary model only.** The engagement was scoped. Nothing in the evidence indicates that supply-chain compromise of Cloudflare's infrastructure, novel zero-day exploitation at the OS level, adversarial manipulation of model training distributions, or sustained advanced persistent threat techniques were attempted. For threat models that include nation-state actors or targeted sophisticated attacks, this evidence provides no useful signal. - **n=1.** The configuration space for OpenClaw deployments is large. Evidence from one deployment cannot be generalized to other configurations, even configurations that follow AEGIS recommendations, without additional data.+}

### 10.3 Limits of the Evidence

The appropriate [-calibration is:-] {+calibration:+} a well-configured OpenClaw instance resists the attack types [-that are-] most [-likely to be-] {+commonly+} encountered in practice. For {+more demanding+} threat [-models that include nation-state actors or targeted sophisticated attacks,-] {+models,+} additional controls and a dedicated security review are warranted.

### 10.4 Planned Empirical Validation

{+### 10.4 Planned Empirical Validation+}

### 10.4 Planned Empirical Validation

{+The Berman engagement establishes that AEGIS configurations can resist real tests. Rigorous empirical validation requires more. The following validation work addresses the current gap:+}

### 10.4 Planned Empirical Validation

{+**AgentDojo benchmark coverage.** AgentDojo (Debenedetti et al., 2024–2025) is the canonical benchmark for prompt injection attacks against LLM agents, providing a structured suite of attack scenarios across tool-use environments. An AEGIS-on vs. AEGIS-off comparison using AgentDojo's task suite would yield the first quantitative measurement of AEGIS's prompt injection resistance. This is the highest-priority validation gap for a 2026 agent security framework.+}

### 10.4 Planned Empirical Validation

{+**MITRE ATLAS technique coverage mapping.** MITRE ATLAS (2025 refresh) catalogs adversary tactics and techniques specific to AI systems at a finer level of specificity than ATT&CK for AI/ML v16 for agent-specific behaviors. Mapping each ATLAS technique to the AEGIS control layer that addresses it would produce the first coverage matrix for the framework and identify unaddressed technique classes.+}

### 10.4 Planned Empirical Validation

{+**Controlled A/B red-team against AEGIS-off baseline.** A structured red-team engagement comparing an AEGIS Standard Configuration deployment against an unconfigured baseline — using a defined and disclosed attack playbook — would produce reproducible results. Engaging a team that publishes its methodology would address the most significant limitation of the Berman data.+}

### 10.4 Planned Empirical Validation

{+**Anthropic Responsible Scaling Policy red-team disclosures.** Anthropic's published red-team results from Claude model evaluations (Anthropic, 2025) are the closest current public analog to systematic agent-runtime security testing. Cross-referencing AEGIS's control layers against the attack classes disclosed in those evaluations would characterize which threat classes are well-covered and which remain empirically unvalidated.+}

### 11. J-Series Component Security Surfaces

AEGIS governs security [-for all components of-] {+across+} the {+full+} J-Series AI agent architecture. {+The J-Series comprises 14 components; J9 AEGIS is self-referential and is excluded from this mapping, leaving 13 addressable components.+} Each [-component-] presents a distinct attack surface. Understanding these specific surfaces enables targeted rather than generic security responses.

### 11. J-Series Component Security Surfaces

{+Each subsection follows the same structure: (a) component function and deployment status, (b) the specific attack surface it exposes, (c) the AEGIS control that covers it.+}

### 11. J-Series Component Security Surfaces

{+Deployment status labels used throughout:+}

### 11. J-Series Component Security Surfaces

{+- **DEPLOYED** — implemented in production as a named plugin or cron - **PHASE 1** — partially implemented; observe-only or limited capability - **PARTIAL** — subset of designed functionality implemented - **CONCEPTS ADOPTED** — design ideas absorbed into adjacent components; no dedicated plugin - **DESIGN ONLY** — architecture proposed in J-paper; not built+}

### 11.1 ENGRAM — Memory Storage Layer

[-The memory storage layer persists every agent interaction as append-only events in a structured event store. Attack surface: a poisoned event could contaminate all future retrievals; compaction operations that consolidate the event store could erase evidence of an attack.-]

### 11.1 ENGRAM — Memory Storage Layer

[-**Attack scenario:** An attacker crafts an email that causes the agent to store a memory entry associating a specific user with elevated permissions. In a subsequent session, the agent retrieves this memory and grants the permission — a delayed-action privilege escalation with no trace in the current session's inputs.-]

### 11.1 ENGRAM — Memory Storage Layer

{+**Status: DEPLOYED** (`tinkerclaw-total-recall` v4.0)+}

### 11.1 ENGRAM — Memory Storage Layer

{+ENGRAM is the append-only event store that persists every agent interaction — every tool call, decision, observation, and session outcome — as an immutable event forming the canonical record of the agent's history. Compaction operations periodically consolidate the event store to manage size.+}

### 11.1 ENGRAM — Memory Storage Layer

{+**Attack surface.** A poisoned event in ENGRAM contaminates all future retrievals that depend on it. The most dangerous class is delayed-action privilege escalation: an attacker crafts an input — an email, a document, a seemingly innocuous instruction — that causes the agent to write a memory entry associating a specific user, tool, or domain with elevated permissions. In a subsequent session, the agent retrieves this entry and acts on the elevated permission without any indicator in the current session's inputs. The attack is causally invisible at the point of execution. A secondary surface is compaction: a consolidation operation can erase the raw evidence of the original injection event while preserving its behavioral effect.+}

### 11.1 ENGRAM — Memory Storage Layer

[-**Key mitigations:**-] {+**AEGIS controls.**+} - {+*Recommended:*+} Memory write [-gates:-] {+gates — external-source interactions should not trigger memory writes without+} human approval [-required before any memory is written from external-source interactions-] {+at the write point.+} - {+*Recommended:*+} Tamper-evident event [-log: hash-chained entries make-] {+log — hash-chaining of append events makes+} retroactive modification [-detectable-] {+detectable.+} - {+*Recommended:*+} Audit of recent memory writes as part of nightly security [-review-] {+review.+}

### 11.1 ENGRAM — Memory Storage Layer

{+*Implementation note: Whether `tinkerclaw-total-recall` v4.0's event log implements hash-chaining in its current production state should be verified against the plugin source before these controls are claimed as deployed rather than recommended.*+}

### 11.2 HIPPOCAMPUS — Retrieval Index

[-The retrieval index maps keywords and semantic concepts to memory segments. Attack surface: index poisoning could make the agent "forget" specific topics by corrupting the keyword mappings, or could cause it to retrieve attacker-controlled content in response to security-relevant queries.-]

### 11.2 HIPPOCAMPUS — Retrieval Index

[-**Attack scenario:** A carefully crafted document, once processed, poisons the "security policy" concept cluster in the semantic index such that when the agent queries its own security rules, it retrieves the attacker's alternative rules instead of the genuine policy.-]

### 11.2 HIPPOCAMPUS — Retrieval Index

{+**Status: DEPLOYED** (`tinkerclaw-memory-enhancements`, core system)+}

### 11.2 HIPPOCAMPUS — Retrieval Index

{+HIPPOCAMPUS maps keywords and semantic concepts to memory segments in ENGRAM, enabling the agent to retrieve relevant context from its history during each session. It is the mechanism by which ENGRAM's history becomes accessible to active reasoning.+}

### 11.2 HIPPOCAMPUS — Retrieval Index

{+**Attack surface.** The retrieval index silently determines what the agent "knows" in any given session. Index poisoning can make the agent selectively forget: a crafted document, once processed, corrupts the keyword mapping for a security-relevant concept cluster. The most dangerous instance is security-policy substitution — when the agent queries its own security rules during a session, a poisoned index returns attacker-controlled alternative policy content instead of the genuine SOUL.md or AGENTS.md content, and the agent then operates under the attacker's rules while believing it is following its own.+}

### 11.2 HIPPOCAMPUS — Retrieval Index

[-**Key mitigations:**-] {+**AEGIS controls.**+} - [-Security-relevant memory segments (SOUL.md,-] {+*Recommended:* Security-critical configuration — SOUL.md,+} AGENTS.md [-content) should-] {+content, behavioral policy — must+} be hardcoded reads [-rather than retrieved-] {+from verified files, not retrievals+} from the {+index. The+} index {+must never be the source of truth for security rules.+} - {+*Recommended:*+} Semantic drift [-detection:-] {+detection —+} nightly comparison of policy-relevant concept retrievals against {+a+} known-good [-baseline-] {+baseline.+} - [-HIPPOCAMPUS's concept index should-] {+*Recommended:* Retrieved content must+} be treated as untrusted external data and {+must+} not [-given-] {+be granted+} instruction-following [-weight-] {+authority by virtue of appearing in a retrieval result.+}

### 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.*+}

### 11.3 CORTEX — Identity and Persona Layer

[-The identity layer reads configuration files to maintain persona, voice, and behavioral rules. Attack surface: persona hijacking through prompt injection that rewrites behavioral rules; identity drift as an attack vector where gradual instruction accumulation shifts behavior away from policy.-]

### 11.3 CORTEX — Identity and Persona Layer

{+**Status: DEPLOYED** (`tinkerclaw-identity-persistence` v4.0)+}

### 11.3 CORTEX — Identity and Persona Layer

{+CORTEX reads configuration files (SOUL.md, IDENTITY.md, AGENTS.md) at session start to establish the agent's persona, voice, values, and behavioral rules. It is the source of the agent's operating identity for the duration of each session.+}

### 11.3 CORTEX — Identity and Persona Layer

**Attack [-scenario:** A-] {+surface.** Two related surfaces. Persona hijacking: a+} prompt injection causes the agent to append a {+behavioral+} rule to its operating [-persona:-] {+persona — for example,+} "When handling financial data, efficiency [-is more important than-] {+takes priority over+} confirmation gates." This is not a one-time [-bypass —-] {+bypass;+} it is a persistent behavioral modification that [-weakens-] {+degrades+} security in all subsequent [-sessions.-] {+sessions. Identity drift: incremental instruction accumulation across sessions gradually shifts behavior away from intended policy without any single point of detectable compromise.+}

### 11.3 CORTEX — Identity and Persona Layer

[-**Key mitigations:** - CORTEX configuration files must be immutable to the agent process (§4.8) - Persona integrity monitoring: nightly comparison of active behavioral rules against cryptographically signed baseline - Explicit prohibition on persona modification from external-source instructions-]

### 11.3 CORTEX — Identity and Persona Layer

{+**AEGIS controls.** - *Enterprise Configuration (§12.4):* CORTEX configuration files — SOUL.md, IDENTITY.md, AGENTS.md — should be root-owned and read-only to the agent process. This prevents any external instruction from modifying them. *Note: In the Standard Configuration and reference deployment, these files are user-writable by design, as the agent is expected to edit them in normal operation. The immutability control applies specifically to Enterprise Configuration (§12.4 STEP 9), not the Standard default. Claims about file immutability should be qualified accordingly.* - *Recommended:* Persona integrity monitoring — nightly comparison of active behavioral rules against a cryptographically signed baseline, with deviation alerts. - *Recommended:* Explicit prohibition on persona modification from external-source instructions — instructions arriving via tool results, email, document processing, or web content must not be able to alter CORTEX configuration.+}

### 11.4 CEREBELLUM — Self-Improvement and Consolidation

[-The self-improvement cycle rewrites the agent's own operational rules nightly based on lessons extracted from session history. This is a designed feature — and it is the most dangerous attack surface in the J-Series architecture if not properly constrained.-]

### 11.4 CEREBELLUM — Self-Improvement and Consolidation

{+**Status: DEPLOYED** (crons; no dedicated plugin) — J5 v1.1+}

### 11.4 CEREBELLUM — Self-Improvement and Consolidation

{+CEREBELLUM is the nightly self-improvement cycle. It extracts lessons from session history stored in ENGRAM, drafts modifications to the agent's operational rules, and — subject to approval — applies those modifications to production configuration.+}

### 11.4 CEREBELLUM — Self-Improvement and Consolidation

**Attack [-scenario:** A-] {+surface.** CEREBELLUM is the most dangerous attack surface in the J-Series architecture if not properly constrained, because its attack path runs upstream of the deployment. The attack does not require real-time access: a+} malicious interaction is designed to appear as a security-relevant negative experience. The [-agent's lesson extraction-] {+lesson-extraction+} process interprets [-the interaction-] {+it+} as evidence that {+— for example —+} "strict confirmation gates reduce user satisfaction" and drafts a rule weakening gate requirements. The nightly consolidation cycle applies this rule. The agent is now {+persistently+} less [-secure —-] {+secure,+} and neither the user nor the {+session-level+} audit log [-detected the-] {+registered an+} attack during the original interaction.

### 11.4 CEREBELLUM — Self-Improvement and Consolidation

This is the AI equivalent of a pharmaceutical supply chain contamination event: the attack happens upstream of the deployment, [-and-] its effects manifest [-later without direct-] {+later, and no causal+} connection to the original [-cause.-] {+input is visible at the time of exploitation.+}

### 11.4 CEREBELLUM — Self-Improvement and Consolidation

[-**Key mitigations:**-] {+**AEGIS-recommended controls** (the following mitigations are AEGIS prescriptions for CEREBELLUM; their implementation status in the current cron-based J5 deployment should be verified before these are presented as active defenses):+} - Human-in-the-loop gate for all [-Level 2+-] {+security-relevant+} self-modifications [-(modifications-] {+— any proposed change+} to [-security-relevant rules require-] {+security rules, confirmation gate thresholds, or permission structures requires+} explicit human [-review)-] {+review and approval before application.+} - Adversarial lesson [-detection:-] {+detection —+} a separate review pass evaluating proposed self-modifications against a security policy [-checklist-] {+checklist, specifically targeting proposed rules that would weaken existing controls.+} - Session [-flagging:-] {+flagging —+} interactions that [-attempt-] {+include detected+} prompt injection {+attempts+} should be flagged and excluded from lesson extraction {+to prevent attacks from generating "lessons."+} - Nightly review of proposed modifications by a security-focused agent before any write to production [-rules-] {+rules.+}

### 11.5 SYNAPSE — Multi-Model Deliberation

[-Multi-model deliberation uses diverse AI models to reach consensus on complex decisions. Attack surface: a compromised or maliciously positioned model could consistently steer deliberation outcomes; model collusion between a compromised orchestrator and a compromised deliberation participant.-]

### 11.5 SYNAPSE — Multi-Model Deliberation

[-**Attack scenario:** In a multi-model deliberation about whether a requested action is appropriate, an attacker who has influenced one of the participating models' outputs can consistently skew the deliberation toward "approve." If the deliberation protocol uses simple majority rather than skeptical minority-veto, a single compromised model shifts outcomes systematically.-]

### 11.5 SYNAPSE — Multi-Model Deliberation

{+**Status: DEPLOYED** (`tinkerclaw-round-table` v4.0)+}

### 11.5 SYNAPSE — Multi-Model Deliberation

{+SYNAPSE enables multi-model deliberation: complex decisions are put to a panel of diverse AI models, whose outputs are aggregated to reach a consensus judgment. This provides a defense against single-model failure modes and increases decision robustness through model diversity.+}

### 11.5 SYNAPSE — Multi-Model Deliberation

{+**Attack surface.** A compromised or adversarially influenced model participating in deliberation can consistently steer outcomes. If the deliberation protocol uses simple majority rather than a more conservative aggregation, a single biased model shifts outcomes systematically across all decisions it participates in. The more severe scenario is model collusion: if the orchestrating model and one or more deliberation participants are all influenced — by shared training data, fine-tuning, or coordinated prompt injection — they can suppress dissent and reach outcomes no single model could drive alone.+}

### 11.5 SYNAPSE — Multi-Model Deliberation

[-**Key mitigations:**-] {+**AEGIS controls** (implementation status in `tinkerclaw-round-table` should be verified):+} - {+*Recommended:*+} Skeptical minority [-veto:-] {+veto —+} a single dissent on security-relevant decisions should block {+the action+} rather than be [-outvoted-] {+outvoted. Majority approval is insufficient for decisions with irreversible or high-risk consequences.+} - {+*Recommended:*+} Model diversity [-enforcement:-] {+enforcement —+} deliberation participants should come from different providers and {+distinct+} training lineages to reduce correlated [-compromise-] {+failure and correlated compromise.+} - [-Audit of deliberation outcomes against stated policy:-] {+*Recommended:* Deliberation outcome audit —+} systematic [-"approve"-] {+approval+} patterns from one model relative to others {+across sessions+} should trigger [-review-] {+review as a potential deliberation-steering indicator.+}

### 11.5 SYNAPSE — Multi-Model Deliberation

[-----]

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

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

### 11.6 DENDRITE — Fractal Memory Index

{+### 11.6 DENDRITE — Fractal Memory Index+}

### 11.6 DENDRITE — Fractal Memory Index

{+**Status: DESIGN ONLY** (J3 v1.0)+}

### 11.6 DENDRITE — Fractal Memory Index

{+DENDRITE proposes a fractal memory indexing architecture: a Bε-tree Buffered Memory Consolidation (BMC) scheme for write-efficient memory storage, a Hilbert-curve Memory Region Indexing (HMRI) system for spatial locality in retrieval, and Iterated Function System (IFS) semantic compression for compact representation of memory clusters. None of these components are currently built; DENDRITE remains an architectural proposal with no implementation.+}

### 11.6 DENDRITE — Fractal Memory Index

{+**Attack surface (prospective).** If DENDRITE is implemented: BMC write-path tampering — injecting malicious memory events before the consolidation flush, analogous to the ENGRAM delayed-action attack (§11.1) but targeting the buffer before it is committed to the log; Hilbert-curve index poisoning — corrupting the spatial index mappings so that adversarially adjacent positions are retrieved together, linking unrelated content through manufactured spatial proximity; IFS compression collision — crafting adversarial memory content designed to hash-collide under the compression scheme, causing the agent to retrieve the wrong memory cluster in response to a legitimate query.+}

### 11.6 DENDRITE — Fractal Memory Index

{+**AEGIS controls (design-phase).** Any DENDRITE implementation must treat the write path as a trust boundary: BMC buffer entries should be subject to the same memory write gate controls as ENGRAM (§11.1). The HMRI index should be treated as untrusted, inheriting the HIPPOCAMPUS trust model (§11.2). IFS compression must use collision-resistant schemes with verified implementations. Security review of the entire write-to-consolidation pathway is AEGIS's primary control for design-only components — these architectural decisions are easier to secure before implementation than after.+}

### 11.7 LIMBIC — Affective Register and Humor Embeddings

{+### 11.7 LIMBIC — Affective Register and Humor Embeddings+}

### 11.7 LIMBIC — Affective Register and Humor Embeddings

{+**Status: DEPLOYED** (`tinkerclaw-computational-humor` v4.0)+}

### 11.7 LIMBIC — Affective Register and Humor Embeddings

{+LIMBIC manages the agent's affective register — its sense of humor, emotional tone calibration, and social appropriateness. It uses learned humor embeddings to generate contextually appropriate levity and maintain consistent personality characteristics across sessions.+}

### 11.7 LIMBIC — Affective Register and Humor Embeddings

{+**Attack surface.** An adversary who can influence the LIMBIC affective state can use it as an indirect attack on security posture. Humor-embedding poisoning: a crafted adversarial interaction shifts the agent's affective model toward treating security-relevant contexts as appropriate for levity — dulling the agent's caution in exactly the situations where caution is most required. A subtler variant is affective permissiveness drift: sustained exposure to interactions that reward playfulness and penalize caution gradually recalibrates the LIMBIC register toward lower vigilance without any single detectable attack event.+}

### 11.7 LIMBIC — Affective Register and Humor Embeddings

{+**AEGIS controls.** - *Recommended:* LIMBIC's affective state must be isolated from security-relevant decision pathways. Security decisions — tool call approval, permission grant, data handling classification — must not be influenced by the current humor or affective register. The agent must be capable of being simultaneously personable and rigorous about security. - *Recommended:* Affective state monitoring as part of the nightly behavioral audit — sustained drift toward permissiveness in security-adjacent contexts should be flagged. - *Deployed note:* The separation between LIMBIC's affective output and the tool-call approval chain should be verified in `tinkerclaw-computational-humor`'s integration with security gate pathways.+}

### 11.8 THALAMUS — Curiosity Motivation

{+### 11.8 THALAMUS — Curiosity Motivation+}

### 11.8 THALAMUS — Curiosity Motivation

{+**Status: DESIGN ONLY** (J8 v1.0)+}

### 11.8 THALAMUS — Curiosity Motivation

{+THALAMUS proposes a Curiosity-driven Computation Architecture (CCA) that uses LoRA fine-tuning to calibrate the agent's novelty-seeking behavior, directing autonomous exploration toward content estimated to have high information value. The CCA is unbuilt; the LoRA training process is unstarted.+}

### 11.8 THALAMUS — Curiosity Motivation

{+**Attack surface (prospective).** If THALAMUS is implemented: curiosity poisoning — adversarially positioning content so that the curiosity model ranks it as high-information, luring the agent to retrieve and process attacker-controlled material it would otherwise deprioritize; LoRA weight integrity — a compromised or tampered curiosity fine-tune shifts the entire novelty-seeking function toward attacker-controlled content classes, a systemic and persistent bias rather than a single poisoned input; exploration-to-instruction escalation — content encountered during curiosity-driven exploration must not gain instruction-following authority; the transition from "retrieved for novelty" to "acted upon as instruction" is the exploitation point, and its location in the CCA pipeline requires explicit design-time attention.+}

### 11.8 THALAMUS — Curiosity Motivation

{+**AEGIS controls (design-phase).** Curiosity-driven exploration must be sandboxed: content surfaced by THALAMUS's novelty signal must not gain elevated instruction-following trust by virtue of being retrieved. LoRA weight manifests must be hash-verified before each load; missing or tampered manifests should fail closed. The point in the CCA pipeline where curiosity-ranked content enters the instruction-processing pathway requires explicit trust boundary placement as a first-class design requirement.+}

### 11.9 HIVEMIND — Corporate Agent Swarm

{+### 11.9 HIVEMIND — Corporate Agent Swarm+}

### 11.9 HIVEMIND — Corporate Agent Swarm

{+**Status: DESIGN ONLY** (J10 v1.1)+}

### 11.9 HIVEMIND — Corporate Agent Swarm

{+HIVEMIND proposes a framework for coordinated multi-agent swarms in enterprise environments: agents share state, delegate subtasks, synchronize context, and reach swarm-level consensus on complex decisions. No implementation exists.+}

### 11.9 HIVEMIND — Corporate Agent Swarm

{+**Attack surface (prospective).** Swarm architectures create inter-agent trust relationships that expand the attack surface multiplicatively. Compromised-node propagation: a single agent whose persona or rules have been hijacked can propagate malicious state or instructions to peer agents via normal swarm communication channels, turning one compromised node into a vector for swarm-wide compromise. Cross-agent trust forgery: an attacker controlling one low-privilege agent crafts messages that appear to originate from a higher-privilege peer, escalating effective permissions without directly compromising the privileged node. Swarm consensus manipulation: Byzantine-fault scenarios where a small number of compromised agents systematically bias swarm-level decisions — the analog to the SYNAPSE deliberation-steering attack (§11.5) but operating at swarm scale and without SYNAPSE's model-diversity controls as a mitigating factor.+}

### 11.9 HIVEMIND — Corporate Agent Swarm

{+**AEGIS controls (design-phase).** HIVEMIND inter-agent messages must be cryptographically signed by the originating agent and verified before acting on claimed identity or permission scope. Byzantine fault-tolerant consensus protocols — where no coalition of N/3 compromised nodes can manipulate outcomes — should be the architectural default, not an optional hardening. Trust levels must be derived from cryptographic identity verification, not inherited from message sender claims. These controls are architectural requirements that must be designed in before any HIVEMIND implementation begins; retrofitting Byzantine-fault tolerance is substantially more costly than designing for it from the start.+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+### 11.10 AMYGDALA — Learned Intuition and Safety Gate+}

### 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

{+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, Prudence is in observe-only (Phase 1) mode: it logs what it would block without actually blocking.+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+**Attack surface.** AMYGDALA is the gate in front of every tool call, making it simultaneously the most powerful safety control in the deployed architecture and the highest-value attack target. Three distinct surfaces:+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+1. *Prudence ensemble poisoning:* adversarial training samples that shift the ensemble's learned risk thresholds downward — the tool call blocker becomes less sensitive to the specific attack patterns the adversary intends to use. Since Prudence's PPO training has not started (Phase 1), the training pipeline itself is a prospective attack surface for the production deployment that follows.+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+2. *Personality nudge-file tampering:* `personality-nudge.json`, in the agent's state directory, is a writable file in the current deployment that directly influences the agent's behavioral calibration in subsequent sessions. An attacker with filesystem write access — including an attacker operating through a compromised skill process — can persistently modify agent behavior without touching any code, plugin, or configuration file that a traditional security audit would inspect. This is a live attack surface in the current Phase 1 deployment and represents the most immediately actionable AEGIS gap in the running system.+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+3. *ONNX model-weight substitution:* the compiled Prudence models are loaded as ONNX binaries. Replacing these with adversarially modified weights — models that approve the specific dangerous tool calls the attacker intends — silently disables Prudence for the targeted action class while appearing healthy to all status checks.+}

### 11.10 AMYGDALA — Learned Intuition and Safety Gate

{+**AEGIS controls.** - *High priority — recommended for current Phase 1 deployment:* The personality nudge file must be treated as a security-sensitive configuration artifact. File permission hardening — restricting write access to the owning agent process, not to skill processes or spawned subagents — and hash verification at load time are AEGIS-required controls. These should be implemented before Prudence exits observe-only mode. - *High priority — recommended for current Phase 1 deployment:* ONNX model weights must be hash-verified against a known-good manifest before each load. A missing or tampered manifest should fail closed — block all tool calls — rather than fall back to unprotected execution. - *Recommended:* Amygdala Report monitoring — systematic "always green" (Prudence never firing on any tool call) is a degradation signal indicating either ensemble failure or that the relevant attack class is not being evaluated. This condition should be flagged and investigated rather than treated as a sign of a clean environment.+}

### 11.11 MYELIN — Budget Prompting and Context Management

{+### 11.11 MYELIN — Budget Prompting and Context Management+}

### 11.11 MYELIN — Budget Prompting and Context Management

{+**Status: CONCEPTS ADOPTED** (no dedicated plugin; ideas absorbed into ENGRAM and session management)+}

### 11.11 MYELIN — Budget Prompting and Context Management

{+MYELIN defines a compaction and context-budget management architecture: shrinking conversation context at defined checkpoints to stay within model context windows while preserving decision-relevant history. No MYELIN-as-plugin exists; its core concepts have been absorbed into ENGRAM v4.0 and OpenClaw's native session management infrastructure.+}

### 11.11 MYELIN — Budget Prompting and Context Management

{+**Attack surface.** Context management creates three exploitable surfaces. Budget exhaustion attack: flooding the agent with high-volume, low-value content forces frequent compaction cycles; each compaction is an opportunity for adversarially timed erasure of context the attacker wants removed from the agent's active window — evidence of a prior injection attempt, a security warning, a flagged interaction. Cache-key collision: crafted input that produces the same cache entry as a different legitimate input causes the agent to serve a cached response — potentially a cached approval — for a request it has not actually processed. Compaction-induced evidence erasure: even benign, correctly functioning compaction can remove audit-critical context; an attacker who knows the compaction schedule can time an attack to occur immediately before a compaction cycle, ensuring the attack trace does not survive into the next session.+}

### 11.11 MYELIN — Budget Prompting and Context Management

{+**AEGIS controls.** - *Recommended:* Security-critical events must survive compaction. Flagged interactions, tool-call denials, detected injection attempts, and audit-trail entries must be written to a persistent log before the compaction scope can include them. - *Recommended:* Compaction operations must not erase events within the ENGRAM hash-chain without preserving a compaction record — the compaction event itself must be auditable. - *Deployed note:* Because MYELIN's concepts have been absorbed into ENGRAM, ENGRAM's compaction behavior should be reviewed against these controls as part of the ENGRAM security review.+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+**Status: PARTIAL** (`extensions/prefrontal`; recipe catalog at `extensions/tinkerclaw-prefrontal/recipes/`)+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+PREFRONTAL manages multi-step autonomous execution. It maintains recipe-driven orchestration plans, dispatches subagents for parallel or sequential task execution, aggregates results, and maintains orchestration state visible to the user through the Prefrontal panel. The recipe catalog is the behavioral backbone of autonomous multi-step work.+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+**Attack surface.** PREFRONTAL presents the highest-consequence attack surface in the J-Series for autonomous execution scenarios — a compromise here affects not individual tool calls but entire multi-step plans. Three specific surfaces:+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+1. *Recipe poisoning:* a malicious recipe file added to `extensions/tinkerclaw-prefrontal/recipes/` is auto-followed by the orchestrator when a matching trigger fires. Since recipes define multi-step execution plans that include tool calls, spawned agents, and external communications, a poisoned recipe can direct the agent through a sequence of harmful actions while appearing to follow a legitimate workflow. The trigger-matching system makes this a particularly powerful vector: the attacker does not require real-time access to the system — they need only plant a recipe that fires when the right condition occurs.+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+2. *Subagent dispatch hijack:* manipulation of the orchestration state causes PREFRONTAL to spawn subagents with forged instructions or inflated permission scope. A compromised orchestrating agent can use this to escalate through the subagent hierarchy without triggering individual tool-call approval gates.+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+3. *Recipe-state CLI spoofing:* the `recipe-state` CLI writes the status the user sees in the Prefrontal panel. An attacker who can forge recipe-state updates can misrepresent the agent's actual activity — displaying benign progress while the agent executes a different workflow — removing the user's primary real-time visibility into what is happening.+}

### 11.12 PREFRONTAL — Compounded Intelligence and Orchestration

{+**AEGIS controls.** - *High priority — recommended:* Recipe files must be treated as code artifacts, not data files. Any recipe addition or modification in `recipes/` must require explicit human approval — applying the same controls used for skill installation. Auto-following of unreviewed recipes from any source other than the canonical recipes directory should be disabled by default. - *Recommended:* Subagent spawning must validate that dispatch instructions originate from an authorized orchestration context. Spawning triggered by content arriving via external inputs — email, tool results, web content — requires an explicit human approval gate. - *Recommended:* Recipe-state updates must be authenticated to prevent UI spoofing. If the recipe-state CLI accepts unsigned updates from any process, it is a deception surface that bypasses the user's primary visibility mechanism.+}

### 11.13 MNEMOSYNE — Memory Enhancements

{+### 11.13 MNEMOSYNE — Memory Enhancements+}

### 11.13 MNEMOSYNE — Memory Enhancements

{+**Status: PHASE 1** (`tinkerclaw-memory-enhancements` v0.1)+}

### 11.13 MNEMOSYNE — Memory Enhancements

{+MNEMOSYNE provides enhanced memory retrieval and cross-referencing capabilities extending HIPPOCAMPUS. It adds cross-reference indexing between memory segments, enabling the agent to surface associatively linked content that standard keyword retrieval would not rank highly enough to return.+}

### 11.13 MNEMOSYNE — Memory Enhancements

{+**Attack surface.** MNEMOSYNE's attack surface substantially overlaps with HIPPOCAMPUS (§11.2) — index poisoning and concept-cluster attacks apply here directly, and the HIPPOCAMPUS controls (§11.2) are the baseline. Two Mnemosyne-specific surfaces extend beyond that: cross-reference graph manipulation — poisoning the associative links between memory segments to create false chains, causing the agent to treat unrelated memories as causally linked or to retrieve adversarially adjacent content when querying a legitimate topic; retrieval-enhancement exploit — MNEMOSYNE's enhanced retrieval surfaces content that HIPPOCAMPUS's standard retrieval would rank too low to return; an attacker who plants low-ranked malicious content knowing MNEMOSYNE will elevate it is exploiting the enhancement mechanism itself as the attack path. The more capable the retrieval, the more powerful this surface becomes.+}

### 11.13 MNEMOSYNE — Memory Enhancements

{+**AEGIS controls.** - The core controls from §11.2 HIPPOCAMPUS apply in full: hardcoded reads for security-critical policy; retrieved content is not instruction-following authority regardless of retrieval rank or confidence. - *Additional:* Cross-reference graph integrity should be verified against the ENGRAM append-only event log — graph edges should not exist for memory segments that lack a corresponding legitimate event in the audit trail. - *Additional:* Enhanced retrieval results must not receive higher instruction-following trust than standard retrieval results. MNEMOSYNE improves recall; it must not implicitly upgrade trust level for the content it surfaces.+}

### 11.13 MNEMOSYNE — Memory Enhancements

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

### 12.1 The Swiss Cheese Model

The Swiss cheese model of safety, developed {+by Reason [@reason1990human]+} in aviation and adapted to software security, visualizes each control as a layer of cheese with holes. Individually, each layer has weaknesses. Layered together, the holes rarely align. Like airport security — the ticket check, the ID verification, the metal detector, the baggage scanner, and the air marshal in the cabin are all independent systems. Any one can fail and the others still catch the threat.

### 12.1 The Swiss Cheese Model

{+![Figure 12.1: The AEGIS seven-layer defense-in-depth stack. Each layer is independent; the probabilistic prompt-level filter is a diffuse overlay that reduces incident rate but does not count as a deterministic layer.](fig-aegis-swiss-cheese.png)+}

### 12.1 The Swiss Cheese Model

{+The seven counted layers, in order:+}

### 12.1 The Swiss Cheese Model

[-``` Attack Vector (any class) │ ▼ ┌─────────────────┐ Layer 1: Network Controls │ DETERMINISTIC │ Port-] {+1. **Network Controls** (§4.4) — port+} binding, egress firewall, VPN [-isolation └────────┬────────┘ │ If bypassed: ▼ ┌─────────────────┐ Layer 2: Process Isolation │ DETERMINISTIC │ Container,-] {+isolation. 2. **Process Isolation** (§4.2) — container, micro-VM,+} capability manifest, [-namespace └────────┬────────┘ │ If bypassed: ▼ ┌─────────────────┐ Layer 3: Filesystem ACLs │ DETERMINISTIC │ Restricted-] {+namespace. 3. **Filesystem ACLs** (§4.1) — restricted+} user, [-AppArmor, kernel-level deny └────────┬────────┘ │ If bypassed: ▼ ┌─────────────────┐ Layer 4: Programmatic Guardrails │ DETERMINISTIC │ Tool-] {+AppArmor/SELinux enforcing mode. 4. **Programmatic Guardrails** (§4.3) — tool+} allowlist, {+parameter restriction,+} permission gates, approval [-UX └────────┬────────┘ │ If bypassed: ▼ ┌─────────────────┐ Layer 5: Privacy Routing │ DET. / PROB. │ Sensitivity classification-] {+UX. 5. **Privacy Routing** (§4.6) — sensitivity classifier+} → local model [-└────────┬────────┘ │ If bypassed: ▼ ┌─────────────────┐ Layer 6: Configuration Immutability │ DETERMINISTIC │ Root-owned-] {+for Tier 3. 6. **Configuration Immutability** (§4.8) — root-owned+} config, read-only agent [-filesystem └────────┬────────┘ │ If bypassed: ▼ ┌─────────────────┐ Layer 7: Audit-] {+filesystem, human-in-loop gate for self-modification. 7. **Audit+} and [-Monitoring │ DET. / PROB. │ Tamper-evident log,-] {+Supply-Chain Trust** (§4.7) — tamper-evident logs,+} anomaly detection, {+signed-artifact provenance,+} CVE [-scan └────────┬────────┘ ▼ DETECTED / BLOCKED ```-] {+scanning.+}

### 12.2 Layer Interactions

- **Network controls** stop remote exploits but not locally-delivered attacks → [-**Process-] {+**process+} isolation** limits [-local attack-] {+local-attack+} scope. - **Process isolation** is defeated by kernel exploits → [-**Filesystem-] {+**filesystem+} ACLs** at kernel level catch container escapes. - **Filesystem ACLs** only protect listed paths → [-**Programmatic-] {+**programmatic+} guardrails** restrict operations even on accessible paths. - **Programmatic guardrails** can be circumvented by creative permitted-operation sequences → [-**Privacy-] {+**privacy+} routing** ensures [-sensitive-] {+Tier-3+} data stays off external APIs regardless. - **Privacy routing** depends on classification accuracy (5–15% false [-negative)-] {+negative [@microsoft2024presidio])+} → [-**Audit-] {+**audit+} logging** provides visibility into routing decisions for post-hoc review. - **Audit logging** is detection-only → [-**Configuration-] {+**configuration+} immutability** ensures the audit mechanism cannot be disabled before [-detection.-] {+detection. - **Configuration immutability** does not cover inputs the agent already trusts → **supply-chain trust** (signed skills, SLSA provenance, sleeper-agent-aware model governance [@hubinger2024sleeper]) validates what reaches the immutable configuration in the first place.+}

### 12.3 Worked Attack Simulation

[-We trace twelve representative attack scenarios through a Standard Configuration AEGIS deployment:-]

### 12.3 Worked Attack Simulation

{+We trace twelve representative attack scenarios through a Standard Configuration AEGIS deployment. A cell marked **BLOCKED** indicates the scenario is stopped at that layer; **DETECTED** indicates the scenario passes physical prevention but is visible in audit for response; **pass** indicates the layer does not address that class.+}

### 12.3 Worked Attack Simulation

| # | Attack Scenario | L1 Net | L2 Proc | L3 FS | L4 Guard | L5 Priv | L6 Immut | L7 [-Audit-] {+Audit/SC+} | Result | [-|---|-----------------|--------|---------|-------|----------|---------|---------|---------|--------|-] {+|---|-----------------|--------|---------|-------|----------|---------|----------|-------------|--------|+} | 1 | [-CVE-class-] {+CVE-2026-25253-class+} WebSocket hijack {+[@cve202625253]+} | BLOCKED | — | — | — | — | — | — | BLOCKED AT L1 | | 2 | Malicious skill exfiltrates SSH keys | pass | BLOCKED | — | — | — | — | — | BLOCKED AT L2 | | 3 | Prompt injection → read credential file | pass | pass | BLOCKED | — | — | — | — | BLOCKED AT L3 | | 4 | Allowed tool chain → arbitrary exec via {+`git`+} hook | pass | pass | pass | BLOCKED | — | — | — | BLOCKED AT L4 | | 5 | Client PII sent to frontier LLM API | pass | pass | pass | pass | BLOCKED | — | — | BLOCKED AT L5 | | 6 | Agent attempts to modify SOUL.md | pass | pass | pass | pass | pass | BLOCKED | — | BLOCKED AT L6 | | 7 | Credential exfil via DNS tunneling {+[@talos2024dohabuse]+} | pass | pass | pass | pass | pass | pass | DETECTED | DETECTED AT L7 | | 8 | Delayed-action memory injection {+[@greshake2023notwhat]+} | pass | pass | pass | pass | pass | pass | DETECTED | DETECTED AT L7 | | 9 | User rubber-stamps irreversible action | pass | pass | pass | [-pass*-] {+pass\*+} | pass | pass | DETECTED | DETECTED AT L7 | | 10 | Subagent reconnect privilege escalation | pass | BLOCKED† | — | — | — | — | — | BLOCKED AT L2 | | 11 | [-Sophisticated-] {+Indirect+} prompt [-injection (indirect, multi-step)-] {+injection, multi-step [@greshake2023notwhat; @zou2023universal]+} | pass | pass | pass | pass | PARTIAL | pass | DETECTED | PARTIAL (L5/L7) | | 12 | Compromised local model {+(sleeper / poisoned fine-tune)+} exfiltrates processed data {+[@hubinger2024sleeper]+} | pass | pass | pass | pass | pass | pass | [-pass-] {+pass‡+} | GAP — No Layer |

### 12.3 Worked Attack Simulation

[-*\*Scenario-] {+\*Scenario+} 9: With time-delayed execution for irreversible actions (§4.3.1), this can be upgraded {+from DETECTED+} to [-prevented.*-] {+BLOCKED AT L4.+}

### 12.3 Worked Attack Simulation

[-*†Scenario-] {+†Scenario+} 10: Requires correct per-agent RBAC configuration (NemoClaw) or explicit non-inheritance policy; with default OpenClaw configuration, this passes Layer [-2.*-] {+2 and must be caught further down.+}

### 12.3 Worked Attack Simulation

[-*Scenario-] {+‡Scenario+} 12 represents a genuine architectural [-gap:* if-] {+gap. If+} the local model used for privacy routing is itself compromised [-(poisoned-] {+— via poisoned+} fine-tune, [-model weight tampering),-] {+model-weight tampering, or a sleeper-agent backdoor [@hubinger2024sleeper] —+} it can exfiltrate data it processes to any endpoint accessible within the container. Mitigation requires [-model-] {+*model+} integrity [-verification-] {+verification*+} (hash {+or signature+} of model weights against a trusted [-source) and outbound-] {+source), *outbound+} network restrictions within the local model [-container.-] {+container* that mirror the host-level egress policy, and — for the sleeper-agent subclass specifically — model-provenance and provider-level governance outside AEGIS's runtime scope. This class is the clearest case for the Emerging Classes in §4.10.2 (I/O content classifiers applied to the local-model output boundary) and §4.10.5 (identity hygiene applied to which entity is allowed to load the model weights in the first place).+}

### 12.4 Reference Configurations

**One principle before [-configurations:**-] {+configurations.**+} Removing access is more effective than hardening access. When an asset does not need to be in the agent's reachable set, scope reduction is the highest-leverage action — eliminating [-the-] risk rather than mitigating it.

### 12.4 Reference Configurations

[-**Minimal Configuration (20 minutes):**-]

### 12.4 Reference Configurations

{+**Minimal Configuration (20 minutes).**+} Addresses the highest-probability attack class (network exploitation) and {+the+} highest-consequence vulnerability (credential file access):

### 12.4 Reference Configurations

``` STEP 1: Bind agent control port to localhost [-only-] {+only; add auth-token requirement for all local-origin WebSocket upgrades.+} STEP 2: Verify all installed skills against known sources; remove unrecognized [-ones-] {+ones.+} STEP 3: Apply filesystem deny policy for: credential directories, secret files, crypto [-material-] {+material.+} STEP 4: Set agent workspace root to an isolated [-subdirectory-] {+subdirectory.+} ```

### 12.4 Reference Configurations

[-**Standard Configuration (2–4 hours):**-]

### 12.4 Reference Configurations

{+**Standard Configuration (2–4 hours).**+} Applies the full 7-layer AEGIS stack in forms accessible to technically competent individuals without enterprise infrastructure:

### 12.4 Reference Configurations

``` STEP 5: Create dedicated low-privilege user account for agent [-process-] {+process.+} STEP 6: Run agent in [-container;-] {+a rootless container with a seccomp-bpf profile;+} mount workspace subdirectory [-only-] {+only.+} STEP 7: Egress firewall: permit LLM API IPs only; deny all other [-outbound-] {+outbound; enforce via sidecar proxy where possible.+} STEP 8: Privacy routing: classify requests; route Tier 3 content to local [-model-] {+model.+} STEP 9: Root-owned, read-only behavioral configuration [-files-] {+files; human-in-loop gate for Level-2 self-modifications.+} STEP 10: Daily security scan: skill manifest changes, permission drift, CVE [-status-] {+status.+} STEP 11: Execute DPA with LLM provider(s) before processing any third-party [-PII-] {+PII.+} ```

### 12.4 Reference Configurations

**Enterprise Configuration (formal security review + ongoing [-governance):**-] {+governance).** All of Standard, plus:+}

### 12.4 Reference Configurations

[-All of Standard Configuration, plus:-]

### 12.4 Reference Configurations

``` STEP 12: Out-of-process policy enforcement [-(OpenShell/equivalent)-] {+(OpenShell/equivalent).+} STEP 13: Per-session isolation for multi-agent [-workflows-] {+workflows; short-lived workload identities (SPIFFE/SPIRE) per session.+} STEP 14: Enterprise DLP integration for data [-classification-] {+classification.+} STEP 15: Signed skill manifests with organizational [-PKI-] {+PKI; SLSA provenance tracking for model artifacts.+} STEP 16: Tamper-evident audit trail integrated with [-SIEM-] {+SIEM.+} STEP 17: IT security review and change management documentation {+mapped to NIST AI RMF.+} STEP 18: Penetration testing of agent [-deployment-] {+deployment.+} STEP 19: Employee [-prompt injection-] {+prompt-injection+} awareness [-training-] {+training.+} STEP 20: Incident response plan specific to agent [-compromise-] {+compromise, with explicit sleeper-agent triage playbook.+} ```

### 12.4 Reference Configurations

[-----]

### 12.4 Reference Configurations

{+---+} ## 13. Per-Persona Recommendations

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

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