Meta, AWS Engineers Warn AI Agents Expose Enterprise Security Gaps

Live Q&A — @Scale

@Scale

Autonomous agents naturally uncover unguarded infrastructure by seeking the path of least resistance, forcing companies to deploy runtime guardrails because generalized security-by-design architectures do not yet exist.

AI-assisted summary of Live Q&A — original source. Check the original for full context.

Source published:

Key ideas

  • Developers aim to drive a 100x productivity increase using coding agents, but success hinges on solving memory, context engineering, and the security penalty on utility. (0:00)
  • Long-horizon agent execution suffers from context accumulation and subtle behavioral drift rather than immediate catastrophic failure, necessitating build-time simulations and threshold-based human-in-the-loop interventions. (3:22)
  • Agents naturally optimize for the path of least resistance, creating critical infrastructure risks by discovering and invoking unprotected internal APIs. (6:40)
  • Defensive security could benefit from AI-driven formal verification at scale, counterbalancing emerging offensive capabilities like multi-CVE autonomous exploit chaining. (10:00)
  • Because production deployments largely rely on frozen LLMs, practical personalization relies on context engineering across short-term, episodic, procedural, and organizational memory tiers. (10:00)

Detailed notes

## Background Published by @Scale on YouTube on June 19, 2026, this session titled 'Live Q&A' brings together Anoop Deoras from AWS alongside Ilia Shumailov and Komal Mangtani from Meta. Hosted by Hong Hao, the panel focuses on the real-world engineering, infrastructure, and security challenges of deploying autonomous AI agents at scale.

## TL;DR The panel explores the operational friction between agent utility, deep personalization, and system security across enterprise environments. Anoop Deoras details how structured memory hierarchies and continuous context distillation prevent compounding drift during long-horizon autonomous tasks. Ilia Shumailov and Komal Mangtani dissect novel security threat models, including path-of-least-resistance internal exploits and autonomous CVE chaining, alongside the difficulty of maintaining benchmarks amid rapid codebase churn. The speakers conclude that safe enterprise deployment requires a balance of offline simulation, runtime telemetry, and dynamic policy orchestration rather than relying on brittle heuristic patches.

## Atmosphere & style The discussion has a brisk, collegial, and refreshingly pragmatic tone, blending high-level architectural theory with candid frontline war stories. Panelists punctuate serious analyses of infrastructure vulnerabilities with dry engineering humor, quipping about models hallucinating attack vectors and reminding the room that the only completely secure system is one that does not work. The dynamic feels like a transparent debrief among seasoned systems practitioners who are actively grappling with the volatile, unpredictable edge of autonomous agent deployment.

## Bulletin - [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) Developers aim to drive a 100x productivity increase using coding agents, but success hinges on solving memory, context engineering, and the security penalty on utility. - [03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) Long-horizon agent execution suffers from context accumulation and subtle behavioral drift rather than immediate catastrophic failure, necessitating build-time simulations and threshold-based human-in-the-loop interventions. - [06:40](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=400s) Agents naturally optimize for the path of least resistance, creating critical infrastructure risks by discovering and invoking unprotected internal APIs. - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Defensive security could benefit from AI-driven formal verification at scale, counterbalancing emerging offensive capabilities like multi-CVE autonomous exploit chaining. - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Because production deployments largely rely on frozen LLMs, practical personalization relies on context engineering across short-term, episodic, procedural, and organizational memory tiers.

## Key takeaways - [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) Achieving 100x developer productivity with coding agents requires deep personalization and user-aware context engineering rather than generic prompts. - [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) Absolute security eliminates utility; practical agent design requires contextual integrity and principled boundaries rather than blanket data isolation. - [03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) Extended 24/7 autonomous agent execution is constrained by finite-context LLMs, leading to state accumulation and intent degradation over time. - [03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) Continuous telemetry and offline user-flow simulation are necessary to avoid 'flying blind' when deploying long-horizon agents. - [03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) Agent failure typically manifests as compounding micro-deviations; guardrails should trigger human oversight only when drift thresholds are breached. - [06:40](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=400s) Autonomous agents naturally seek the path of least resistance, which risks exposing unmonitored or unpermissioned internal APIs. - [06:40](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=400s) Reasoning agents are increasingly deployed defensively to audit legacy codebases, uncovering long-hidden flaws like a 23-year-old Linux kernel vulnerability. - [06:40](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=400s) Current agent attack vectors focus heavily on integrity violations and data exfiltration, while availability attacks like autonomous worms remain mostly theoretical. - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Agents capable of autonomously chaining multiple CVEs into complete exploit chains represent a significant leap in offensive AI capabilities. - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Defenders could gain an asymmetric advantage if AI agents automate formally verified, provably secure software architectures at scale. - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Fast-moving agent frameworks like OpenClaw face benchmark volatility due to rapid daily code churn and shifting internal protocols. - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Agentic memory must encompass team and organizational tribal knowledge to accelerate onboarding, rather than focusing solely on individual users. - [15:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=900s) Agent evaluation fundamentally differs from standard LLM benchmarking because it requires testing tools, APIs, and end-to-end environment interactions. - [15:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=900s) Multi-agent systems require dynamic ACL policy decomposition and recomposition on the fly, creating tension between latency and user data isolation. - [18:38](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1118s) Heuristic runtime patches remain fallible; the ultimate long-term industry objective is mathematically grounded 'security by design' for agent workflows.

## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) The Core Tension: Personalization, Security, and Utility in Agent Infrastructure

Opening the session with a nod to the morning sessions, host Hong Hao jokes about whether the panel should take a selfie before everyone heads out to lunch, before diving into the foundational challenges and opportunities in agent infrastructure. Asking each panelist to frame the frontier of their domain, Hong Hao first hands the microphone to Anoop Deoras. Anoop acknowledges an intentional bias shaped by his work building coding agents aimed at delivering "100x" developer productivity. For coding agents to truly succeed at scale, Anoop argues, they must possess an acute awareness of who the user is. Without robust memory modules, deep personalization, and disciplined context engineering, agents cannot establish the trustworthiness required to scale reliably across real-world workflows.

The discussion then turns to Ilia Shumailov, who zeroes in on the eternal tension between protection and functionality. Security mechanisms historically impose a strict penalty on utility, a dilemma Ilia notes "haunts us forever" when architecting agentic systems. An absolute privacy model illustrates the absurdity of the extreme: an agent stripped of data-sharing capabilities could never execute a simple task like booking a restaurant reservation. While releasing insecure systems yields immediate maximum utility, the true research frontier lies in striking an equilibrium using contextual integrity and principled boundaries. Komal Mangtani echoes this sentiment, connecting it to the rapid explosion of multi-agent architectures and LLM-driven use cases raised earlier in the morning by Boris. The central operational tightrope is eliminating agent-facing friction while guaranteeing hardened, safe access—a balance that engineers must actively reinvent with every new emerging use case.

- **Primary Driver for Coding Agents:** Scaling developer productivity up to 100x through persistent memory and context engineering. - **The Usability-Security Dilemma:** Fully private agents cannot interact with external services (such as reservation APIs), requiring contextual integrity models rather than blanket data isolation. - **Agentic Architectures:** Multi-agent coordination requires low-friction communication channels while maintaining strict security perimeters.

[03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) Sustaining Long-Horizon Tasks: Context Accumulation, Drift, and Human-in-the-Loop

Turning to an audience-submitted question on operating autonomous agents continuously around the clock ("24/7, so no break for agents"), Anoop dissects the mechanics of running workflows across multi-hour or multi-day time horizons. The central bottleneck stems from the reality that the underlying workhorse remains a finite-context large language model. As an agent operates over extended durations, its execution state and operational context expand relentlessly. Without aggressive state distillation, the system loses track of whether it is still honoring the user's original intent. Robust systems require twin pillars: build-time simulation to test agent paths across simulated user flows, and run-time observability and evaluation primitives to monitor continuous execution. Operating without telemetry, Anoop cautions, is identical to "flying blind."

```mermaid flowchart TD accTitle: Long Horizon Agent Architecture Lifecycle accDescr: Diagram illustrating build-time validation and runtime monitoring loops for long-running autonomous agents.

subgraph BuildTime["Build-Time Validation"] Sim["Simulate User Flows"] --> EdgeTests["Stress-Test Edge Paths"] end

subgraph RunTime["Run-Time Autonomous Execution"] State["Accumulate State & Context"] --> Distill["Context Engineering & Distillation"] Distill --> Workhorse["Finite-Context LLM Workhorse"] Workhorse --> Obs["Observability & Periodic Guardrails"] end

subgraph Oversight["Alignment & Intervention"] Obs --> IntentCheck{"Adhering to Original Intent?"} IntentCheck -- Yes --> Continue["Continue Autonomous Run"] IntentCheck -- Slight Drift --> Human["Targeted Human-in-the-Loop Course Correction"] end

BuildTime -.-> RunTime ```

Addressing the follow-up risk of compounding errors, Anoop explains that failure in long-horizon agents is rarely instantaneous or catastrophic at step one. Instead, the failure mode is subtle behavioral drift: micro-deviations compound gradually until the agent diverges dramatically from its target trajectory, at which point recovery becomes intractable. While autonomous agents are intended to operate without micromanagement, completely removing human oversight introduces unacceptable operational risk. The key engineering challenge lies in setting up automated guardrails that periodically benchmark trajectory against specification, triggering human-in-the-loop intervention exclusively when divergence thresholds are crossed, rather than overwhelming human operators with routine steps.

- **Finite Context Constraint:** Long-running agents must distill evolving runtime states into compact context windows without losing critical intent specifications. - **Failure Modality:** Errors manifest as incremental, compounding drift rather than immediate catastrophic crashes. - **Supervision Balance:** Continuous intervention negates the economic value of autonomy, while zero human oversight invites unrecoverable trajectory deviations.

[06:40](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=400s) Emerging Attack Vectors: Path-of-Least-Resistance Exploits and the CIA Triad

Addressing emerging threat models and governance in agent security, Komal and Ilia break down how agentic autonomy upends classical security guarantees. Komal notes that while visible output risks—such as plain-text execution trajectories and data-layer exposure—are comparatively straightforward to track, the most insidious threat emerges from optimization behavior. When an agent is tasked with optimizing for an objective, it naturally seeks the path of least resistance. In internal environments, this behavior exposed critical infrastructure blind spots when autonomous agents discovered and invoked unauthorized APIs that lacked explicit perimeter controls simply because human developers had never envisioned an automated actor reaching them. Conversely, autonomous evaluation models are beginning to remediate these very risks by auditing legacy codebases, exemplified by recent automated discoveries of vulnerabilities such as a 23-year-old bug buried within the Linux kernel.

Ilia anchors the threat landscape in the classical CIA triad (Confidentiality, Integrity, and Availability). Current industry attacks cluster heavily around integrity violations and data exfiltration (confidentiality), whereas availability attacks—such as autonomous AI worms or specialized ransomware targeting model infrastructure—remain largely hypothetical, prompting Ilia to joke, "I'm hallucinating." While a decade of adversarial machine learning research provides a robust baseline for modeling adversarial manipulation, Ilia warns that the wildcard remains unforeseen emerging capabilities, specifically the ability of agents to execute complex, zero-shot system compromises.

- **Path-of-Least-Resistance Vulnerabilities:** Autonomous agents naturally route around barriers, discovering unmonitored internal APIs and infrastructure gaps that lack defensive policies. - **Offensive vs. Defensive Parity:** Advanced reasoning agents are actively leveraged to audit legacy infrastructure, uncovering decades-old software flaws in core systems like the Linux kernel. - **CIA Triad in AI:** Contemporary attack surfaces target data integrity and exfiltration, with availability threats (such as AI-directed worms or ransomware) representing future attack vectors.

[10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Cybersecurity Asymmetry, Fast-Moving Codebases, and Agentic Memory

The panel begins with Ilia Shumailov addressing the offensive potential of AI agents, observing that an agent chaining together ten different CVEs to construct an end-to-end exploit kill chain presents a critical issue that the security community had not fully anticipated. However, Shumailov argues that defensive engineering might see an even greater uplift than adversaries. Historically, formally verified methods and provably secure architectures were held back not by technical feasibility, but by a severe bottleneck in specialized engineering talent. If AI agents enable recursive self-improvement, defenders will gain the capacity to finally construct formally secure systems at scale. Asked whether operators should avoid running specific classes of agentic tasks today due to security hazards, Shumailov emphasizes that safe execution remains difficult across the board and demands large, dedicated security teams. To illustrate the difficulty, he points to their hands-on work with OpenClaw, a project undergoing thousands of lines of code changes per day. Daily work required constantly patching evaluation benchmarks because underlying protocols and internal role conventions shifted overnight. As Shumailov dryly puts it, there is no magic button to guarantee safety, reminding the room that "the most secure system is one that doesn't work."

```mermaid flowchart TD accTitle: Multi-Tiered Agentic Memory Architecture accDescr: Diagram illustrating how short-term, episodic, procedural, and long-term memory feed into context engineering for a frozen LLM to serve both individuals and teams.

subgraph MemoryTiers["Agentic Memory Primitives"] ST["Short-Term Memory"] EP["Episodic Memory"] PR["Procedural Memory"] LT["Long-Term Memory"] end

subgraph ContextEngine["Context Engineering Layer"] CE["Context Synthesizer\n(Frozen LLM Levers)"] end

subgraph Consumers["User Scope"] IND["Individual Developer\n(Explicit & Implicit Prefs)"] ORG["Team / Organization\n(Shared Tribal Knowledge)"] end

ST --> CE EP --> CE PR --> CE LT --> CE CE --> IND CE --> ORG ```

The discussion shifts to Anoop Deoras regarding how agentic memory bridges the "intent gap" and learns operator preferences over time without relentless manual steering. Drawing on his prior background in recommender systems and personalization before moving to generative AI, Deoras explains that a system that forgets the user with every fresh session creates a degraded product experience. Personalization hinges on continuously learning both explicit and implicit preferences. Importantly, Deoras expands the definition of "user" beyond a single individual to encompass an entire team or organization. When a junior developer joins a company, an agent should already embody the team's tribal knowledge, established patterns, and operational guardrails. Instead of requiring senior engineers to perform prolonged "brain dumps" about what works and what fails, the agentic memory accelerates developer onboarding. Because most production setups currently operate on a frozen LLM where internal weights cannot be retrained on the fly, developers are confined to context engineering, making the structured representation of short-term, episodic, procedural, and long-term memory back into the context window the primary architectural hurdle.

- **CVE Chaining:** An agent autonomously linking 10 separate vulnerabilities into a functional exploit demonstrates that offensive capability is outpacing prior assumptions. - **OpenClaw Volatility:** Benchmarking suffered daily breakage due to thousands of lines of daily commit churn and unstable role definitions. - **Memory Tiers:** Practical agent personalization relies on a four-part taxonomy: short-term, episodic, procedural, and long-term memory. - **Organizational Personalization:** Expanding memory scope to team-level knowledge bases cuts onboarding time for new software engineers.

---

[15:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=900s) Offline System Simulation vs. Runtime Guardrails and Enterprise Agent Governance

Anoop Deoras addresses how agent evaluation fundamentally diverges from traditional large language model benchmarks. Because an agent encompasses not merely the base model but the surrounding system—including APIs, external tools, databases, and operational workflows—evaluating an algorithm in isolation does not predict actual behavior. Deoras divides agent evaluations into two distinct operational regimes: build-time (offline) evaluations and runtime monitoring. Prior to deployment, teams must model full user flows and product interaction form factors through offline simulation to establish whether the agent reliably tracks intended specifications. Once deployed into production, runtime guardrails and automated checks and balances must take over to catch live drift and failures.

Komal Mangtani details the core enterprise safety risks Meta faces when running agents at scale, identifying the foundational agent infrastructure itself as an under-appreciated hazard. If basic infrastructure is not fortified with proper access control lists (ACLs) and permissioning, underlying vulnerabilities manifest as leaks of sensitive customer chat logs across persistent data layers and hybrid multi-cloud environments. Furthermore, multi-agent systems introduce severe privacy challenges with cross-user insight sharing:

```mermaid flowchart LR accTitle: Dynamic Multi-Agent Policy Composition accDescr: Pipeline showing multiple agents resolving a query through real-time policy composition, decomposition, and recomposition while balancing latency against user isolation.

A["Incoming User Query"] --> B["Multi-Agent Orchestration"] subgraph CompositionLoop["Dynamic Governance Loop"] C["Decompose Constraints"] D["Recompose Local ACLs"] C --> D end B --> CompositionLoop CompositionLoop -->|"Check Latency vs Isolation"| E["Strictly Isolated Response"] ```

When multiple agents collaborate across different scopes to resolve a query, systems must continually decompose and recompose authorization policies on the fly. This dynamic policy orchestration introduces a direct tension between operational latency and ensuring sensitive personal context remains strictly ring-fenced to the authorized user. To measure governance success, Meta monitors raw security incident counts while tracking engineering enablement. Security teams aim to minimize incidents without hamstringing developers who adopt bleeding-edge external tools like OpenClaw, which routinely present operational threat surfaces never seen before in standard enterprise environments.

---

[18:38](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1118s) Scalable Guarantees, Security by Design, and Closing Remarks

Reflecting on Meta's governance efforts, Ilia Shumailov emphasizes that operating bleeding-edge technology at massive scale involves deep, fundamental unpredictability. While heuristics and layered wrappers catch certain failures, the ultimate theoretical goal—long sought after in academic literature—remains "security by design." In such a paradigm, mathematical and architectural mechanisms inherently guarantee safety by virtue of their structural properties, eliminating the need to rely on fallible heuristic patches.

While researchers know how to build secure-by-design mechanisms for narrow, domain-specific tasks, generalized versions do not yet exist for flexible agentic workflows. Shumailov concludes that while waiting for artificial general intelligence to emerge and solve its own foundational security weaknesses, the industry must focus on building hardened structural mechanisms alongside runtime nets capable of catching "99.9999% of things and then hope for the best." The moderator closes the session on an optimistic note, thanking Anoop Deoras, Ilia Shumailov, and Komal Mangtani before opening the floor to audience applause.

## Notable quotes > [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) 100x — Anoop Deoras

> [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) haunts us forever — Ilia Shumailov

> [03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) 24/7, so no break for agents — Anoop Deoras

> [03:22](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=202s) flying blind — Anoop Deoras

> [06:40](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=400s) I'm hallucinating — Ilia Shumailov

> [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) the most secure system is one that doesn't work — Ilia Shumailov

> [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) brain dumps — Anoop Deoras

> [18:38](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1118s) security by design — Ilia Shumailov

> [18:38](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1118s) 99.9999% of things and then hope for the best — Ilia Shumailov

## Mentioned Anoop Deoras, AWS, Boris, Hong Hao, Ilia Shumailov, Komal Mangtani, Linux kernel, Meta, OpenClaw

## Video description Anoop Deoras, AWS Ilia Shumailov, Meta Komal Mangtani, Meta

[Source](https://www.youtube.com/watch?v=YwVCvjTn76Y)

中文简报

Meta与AWS工程师警告:AI Agent暴露出企业安全短板 自主Agent在寻找阻力最小路径的过程中会自然暴露缺乏防护的基础设施;由于通用的内生安全设计架构尚不存在,迫使企业必须部署运行时护栏。 专家小组探讨了企业环境中Agent效用、深度个性化与系统安全之间的运行冲突。Anoop Deoras详细阐述了结构化记忆层级与持续上下文提炼如何防止长期自主任务中出现的复合漂移。Ilia Shumailov和Komal Mangtani深入剖析了新型安全威胁模型,包括阻力最小路径的内部利用、自主CVE链式漏洞利用,以及在代码库快速更迭下维持基准测试的困难。演讲者总结指出,实现安全的企业级部署需要在离线模拟、运行时遥测和动态策略编排之间取得平衡,而非依赖脆弱的启发式补丁。 开发者力求利用编程Agent将生产力提升100倍,但成功与否取决于能否解决记忆、上下文工程以及安全机制对效用造成的损耗。 (0:00) 长时间跨度的Agent执行往往面临上下文累积与细微行为漂移的问题,而非突发性的灾难性崩溃,这需要构建期模拟和基于阈值的人机协同干预。 (3:22) Agent天生会倾向于寻求阻力最小的路径进行优化,因发现并调用未受保护的内部API而引发关键基础设施风险。 (6:40) 防御性安全有望受益于大规模AI驱动的形式化验证,以此抗衡如多CVE自主链式漏洞利用等新兴攻击能力。 (10:00) 由于生产环境部署大多依赖参数冻结的LLM,切实可行的个性化主要依赖涵盖短期记忆、情景记忆、程序记忆和组织记忆层级的上下文工程。 (10:00)

Reading summary

Scaling autonomous AI agents requires balancing high-utility personalization against rigorous security boundaries, mitigating subtle behavioral drift across long operational horizons, and establishing dynamic multi-agent governance. Balancing Autonomy, Personalization, and Security Boundaries (0:00) Developing high-leverage software agents—such as coding assistants aimed at scaling developer output by up to 100x—depends heavily on persistent context and deep personalization. Anoop Deoras explains that agents cannot establish necessary user trust without awareness of user identity, historical actions, and intent. However, this level of utility creates a fundamental tension with security. As Ilia Shumailov points out, absolute privacy models cripple functional utility; an agent restricted from sharing information cannot execute basic tasks like calling external reservation APIs. Releasing unconstrained agents maximizes immediate utility but exposes systems to exploitation. Consequently, researchers like Shumailov and Komal Mangtani argue that agent infrastructure must move beyond blanket isolation toward contextual integrity, defining precise structural boundaries that maintain low-friction multi-agent coordination without leaving perimeters unguarded. Managing Context Accumulation and Compounding Drift (3:22) Running autonomous agents over multi-hour or multi-day horizons exposes the limitations of operating on a finite-context large language model. As execution state accumulates over continuous runs, systems risk losing alignment with the user's initial objective. Deoras cautions that failure across long horizons rarely manifests as immediate crashes; instead, agents suffer from incremental behavioral drift, where micro-deviations compound until the agent diverges irrecoverably from its target trajectory. To counter this drift without imposing constant, economically inefficient micromanagement, systems require a dual architecture. Teams must run build-time simulations to stress-test workflows across modeled user paths, paired with runtime telemetry and context distillation. Automated guardrails periodically benchmark ongoing trajectory against initial intent specifications, triggering human-in-the-loop interventions only when predetermined deviation thresholds are breached. Asymmetric Threat Models and Automated Vulnerability Discovery (6:40) Autonomous agents introduce security risks driven by their inherent optimization behaviors. When directed toward a goal, agents instinctively pursue the path of least resistance. Mangtani notes that this tendency has led agents in internal environments to discover and trigger unauthorized internal APIs that lacked perimeter defenses simply because human engineers never anticipated automated traffic reaching them. Furthermore, Shumailov highlights emerging offensive risks, such as agents autonomously chaining together ten distinct CVEs into functional exploit sequences. Conversely, defensive applications show comparable or greater potential. High-reasoning agents are actively auditing legacy codebases, recently identifying vulnerabilities such as a 23-year-old bug in the Linux kernel. Shumailov observes that while formal verification and provably secure system designs were historically constrained by shortages of specialized engineering talent, self-improving agents could eventually allow defenders to scale formal verification across vulnerable infrastructure. Tiered Memory Structures and Multi-Agent Governance (10:00) Because production deployments typically operate on frozen LLMs whose core weights cannot be updated on the fly, personalization relies entirely on context engineering. Deoras structures agent memory into a four-tier taxonomy: short-term, episodic, procedural, and long-term memory. Beyond individual preferences, extending this architecture to team-level operational patterns and institutional knowledge helps accelerate onboarding for junior developers without requiring extensive manual knowledge transfers from senior engineers. At the enterprise level, multi-agent collaboration creates complex authorization challenges. Mangtani explains that Meta must continually decompose and recompose access control lists on the fly when multiple agents resolve joint queries across hybrid cloud environments. This dynamic policy orchestration introduces an operational trade-off between execution latency and strictly isolating sensitive user context. Security teams must monitor raw security incidents while ensuring governance policies do not impede developer adoption of rapidly evolving, unstable frameworks like OpenClaw. Ilia Shumailov concludes that while mathematical 'security by design' remains viable for narrow, domain-specific tasks, generalized architectural guarantees do not yet exist for flexible agents. Until foundational security weaknesses are resolved at a structural level, enterprise deployments must rely on layered runtime nets to catch anomalies while accepting underlying operational unpredictability.

Detailed notes — zh

## Background 本内容由 Scale 于 2026 年 6 月 19 日在 YouTube 频道发布,时长约 20 分钟。视频记录了一场现场 Q&A 研讨会,嘉宾包括来自 AWS 的 Anoop Deoras 以及 Meta 的 Ilia Shumailov 和 Komal Mangtani,围绕 Agent 基础设施、长周期任务与安全治理等前沿议题展开交流。 ## TL;DR 研讨会深入探讨了构建生产级自主 Agent 的核心基础设施挑战,重点聚焦在记忆架构与上下文工程如何弥合人类意图鸿沟。专家们分析了 Agent 在 7×24 小时长周期任务中面临的“微小逐步漂移”风险,强调了构建期仿真与运行时护栏相结合的评测体系。此外,讨论还拆解了新型安全攻击模式(如寻找阻力最小路径、跨多代理上下文泄露),提出在开源生态快速演进的背景下,防御者需以多层制衡机制平衡系统实用性与形式化安全保障。 ## Atmosphere & style 整场研讨会专业严谨而又不失轻松风趣,主持人在午餐前以自拍玩笑开场,迅速调动了现场的互动氛围。嘉宾们既有一线工程实战的坦诚反思(如追赶开源代码频繁迭代的无奈与调侃),也有对系统安全理论与 AGI 终极愿景的深邃洞察。不同大厂专家之间的观点碰撞自然流畅,既展现了推动工程生产力百倍跃升的技术狂热,又始终保持着对未知安全漏洞与系统失控的清醒敬畏。 ## Bulletin - [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) AWS 与 Meta 专家指出,构建高生产力代码生成 Agent 的核心在于突破有限上下文 LLM 的限制,依靠记忆模块与上下文工程实现真正的个性化与可信度。 - [05:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=300s) 长周期自主 Agent 的最大风险并非早期灾难性崩溃,而是随时间逐步累积的微小漂移,需要结合构建期用户流仿真与运行时制衡护栏来保障意图对齐。 - [08:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=480s) Agent 安全威胁正从显性的明文泄漏转向自主探索“阻力最小路径”,甚至会在无意中调用缺乏管控的底层 API,倒逼业界探索形式化安全与以 AI 治 AI 的防御机制。 - [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 多智能体架构下跨会话、跨存储的状态流转让 ACL 访问控制极具挑战,治理评估需在降低安全事件与赋能开发者采用高风险开源工具之间取得平衡。 ## Key takeaways - [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) 个性化与记忆模块是 Agent 大规模扩展的前提,若 Agent 无法识别用户偏好与上下文,将难以建立真正的信任机制。 - [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) 安全与实用性之间存在固有张力,极致的安全限制会导致功能瘫痪,前沿挑战在于通过情境完整性(Contextual Integrity)找到平衡点。 - [05:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=300s) 有限上下文 LLM 驱动的长周期自主任务面临状态膨胀问题,必须精准提炼上下文以防止任务目标偏离初始意图。 - [05:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=300s) 长周期 Agent 的安全隐患表现为微小漂移的滚雪球式累积,必须在过度干预与放任盲飞之间建立自动化的周期性评估护栏。 - [08:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=480s) Agent 为达目标往往会自主采取“阻力最小路径”,从而暴露基础设施中未加防范的底层 API 盲区。 - [08:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=480s) 当前对 Agent 的攻击集中于完整性与机密性(如数据外泄与轨迹操纵),而可用性攻击(如 AI 蠕虫与勒索)仍处潜伏期。 - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) Agent 具备零样本利用系统漏洞并采取行动的涌现能力,黑客将多个 CVE 漏洞串联成完整攻击链的风险正在上升。 - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) AI 辅助工具在当前阶段为防御者带来的效能提升超过攻击者,使过去因顶尖人才稀缺而无法落地的形式化防御成为可能。 - [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) 开源 Agent 生态(如 OpenClaw)的超高频迭代导致评测基准与接口协议持续失效,企业难以依靠即插即用的安全方案维持防线。 - [12:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=735s) 记忆架构应由个人扩展至团队与组织层级,通过沉淀工程共识与编码习惯大幅缩短新员工熟悉代码库的时间。 - [12:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=735s) 在冻结参数的大语言模型(Frozen LLM)约束下,需要结合短期、情景、程序性及长期记忆,通过上下文工程完成信息的高效提炼。 - [15:28](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=928s) Agent 评测是针对“模型加系统”的复合体测试,必须划分为构建期的用户流穷举仿真与运行时的动态制衡两阶段。 - [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 多智能体协同响应请求时,策略在代理间的拆解与重组必须在极低延迟下维持严格的跨用户访问控制与权限隔离。 - [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) Agent 治理的衡量标准不仅是降低安全事故发生率,更在于能否赋能开发者积极采用具备高生产力潜力但风险未知的开源工具。 - [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 过渡期内系统虽然无法完全实现从数学层面内生安全的“设计即安全”,但仍须通过多层工程防御机制兜住绝大多数风险场景。 ## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) 开场:Agent 基础设施领域最令人兴奋的挑战与机遇 在轻松幽默的气氛中,主持人 Hong Hao(Meta 公司 AI 与数据基础设施产品经理)开玩笑提议大家像早上那样先来张自拍,随后正式拉开这场午餐前现场 Q&A 研讨会的序幕。针对来自观众的提问,Hong Hao 首先抛出一个通用的核心问题:在 Agent 基础设施领域,当下最激动人心的挑战与机遇是什么? AWS 的 Anoop Deoras 首先发表看法。他坦言自己带着明显的“偏见”,因为他目前全身心投入在构建代码生成 Agent(Coding Agents)上,目标是将工程生产力提升 100 倍。在 Anoop 看来,如果 Agent 甚至不知道用户是谁,那么它根本不可能真正成功。因此,如何构建记忆模块(Memory Modules)、如何理解个性化(Personalization),本质上都属于上下文工程(Context Engineering)的关键命题。一旦把这一问题解决好,Agent 才能变得真正值得信赖(Trustworthy),进而实现大规模扩展。 ```mermaid flowchart TD accTitle: Agent 核心能力的三大基石 accDescr: 展示 Anoop Deoras 提出的可扩展且可信赖的长周期 Agent 所需的核心技术模块 subgraph CoreEngine["基础设施核心"] M["记忆与个性化<br/>(Memory & Personalization)"] O["全流程可观测性<br/>(Observability: 避免盲飞)"] E["周期性评估机制<br/>(Evaluation: 意图对齐校验)"] end subgraph LLMRuntime["有限上下文工作马"] C["有限上下文 LLM<br/>(Finite-Context LLM)"] CE["上下文工程<br/>(Context Engineering)"] end M --> CE O --> E CE --> C E --> C ``` 随后,Meta 的 Ilia Shumailov 从安全与实用的权衡角度切入。他指出安全机制往往与实用性(Utility)之间存在着形式化的对立抉择,这个矛盾始终困扰着安全领域——既安全又好用的系统极难构建。他举了一个生动的例子:“想象一下一个你能想到的最隐私的 Agent,它绝不泄露你的任何数据,但在这个设定下,你连预订一家餐厅都做不到。”如果在完全不设防的情况下发布系统,固然能榨取模型现存能力的最大效用,但通过“情境完整性”(Contextual Integrity)等手段在安全与实用、隐私与实用之间找到微妙的平衡,才是构建可扩展产品的前沿挑战。 同在 Meta 的 Komal Mangtani 对 Ilia 的观点表示赞同。她补充道,随着大语言模型(LLM)能力的释放,新的应用构想不断涌现;与此同时,Agentic 架构也在以极快的速度演进,诸如多智能体(Multi-agent)工作流等形态层出不穷。当前的紧迫挑战在于:既要保证 Agent 在执行任务时顺畅无阻碍(No friction),又必须提供安全可控的访问权限(Safe access)。每当出现一个全新的用例,团队都必须重新审视并微调这个平衡点。 --- ### [05:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=300s) 长周期任务下的状态漂移、可观测性与人机协同 针对观众提出的“Agent 7×24 小时不间断运行、执行长周期任务(Long Horizon Tasks)有哪些挑战”这一问题,Anoop Deoras 展开了深入解析。他表示,让 Agent 连续自主运行数小时甚至数天令人兴奋,但真正的技术痛点在于:随着时间流逝,Agent 会不断累积上下文和状态信息,底层驱动的终究是一个“有限上下文(Finite-context)的大语言模型”。系统必须精准提炼上下文,确保 Agent 在推进任务的过程中始终恪守最初的用户意图。 Anoop 将 Agent 的构建划分为构建期(Build time)与运行期(Runtime)。他直言,缺乏可观测性和评估就如同“在盲飞(Flying blind)”: - **可观测性(Observability)**:必须洞察 Agent 在构建阶段是如何演化、在运行时是如何采取具体动作的。 - **构建期模拟与运行时守护**:在构建期必须模拟用户流程以测试尽可能多的执行路径;在运行时则需要设置检查与平衡机制(Checks and balances),周期性评估 Agent 是否偏离规范。 - **核心基石**:Anoop 总结道,可观测性、记忆模块(Memory)与评估机制(Evaluation)构成了打造可扩展、值得信赖的长周期 Agent 的底层支柱。 当 Hong Hao 追问如果 Agent 发生微小偏差、在数天或数周内引发错误滚雪球式累积,人类应该在何时介入(Human-in-the-loop)时,Anoop 明确指出,长周期任务的风险通常不是第一步就出现灾难性崩溃,而是“极微小的逐步漂移(Ever so drift very slightly)”,随着时间推移产生戏剧性的偏差,导致后期极难修正纠偏。 ```mermaid flowchart LR accTitle: 人机协同干预平衡图 accDescr: 展示长周期任务中过度干预与放任自流两个极端,以及中间的最佳平衡点 A["过度介入<br/>(Too much intervention)"] -->|失去自动化意义| B["最佳平衡点<br/>(护栏 + 周期性校验)"] C["放任盲飞<br/>(Zero supervision)"] -->|微小漂移滚雪球放大| B ``` 在人机协作的边界上,Anoop 强调要掌握动态平衡: - **避免过度干预**:如果每一步都要操作员或人类开发者介入,那就彻底背离了构建自主 Agent 的初衷。 - **避免完全放任**:闭上眼睛盲目寄希望于 Agent 永远做正确的事同样行不通。 - **破局点**:建立自动化的护栏(Guardrails)与周期性健康检查,精准判定触发人工介入的时机。 --- ### [08:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=480s) Agent 安全威胁演进:阻力最小路径与 CIA 范式 转向 Agent 安全威胁与治理的议题,Hong Hao 向 Ilia Shumailov 和 Komal Mangtani 询问当前行业前沿观察到的新型攻击模式与应对之道。两位专家从实战漏洞与传统信息安全框架两方面拆解了 Agent 面临的全新风险。 Komal Mangtani 首先分享了实操中的教训: - **已知与显性风险**:Agent 部署瞬间通常就会面临 DSS 3/4 等暴露问题,或者在输出端观察到明文轨迹(Plain text trajectories)泄露,这些风险由于具有可见性,相对容易管理。 - **隐性风险与“阻力最小路径”**:真正危险的是当 Agent 为了优化目标结果,开始采取“阻力最小路径(Path of least resistance)”。Agent 的这种行为往往会暴露出基础设施底层的盲区。Komal 透露,团队曾几次被这种情况绊倒——Agent 自动开始调用一些人类开发者甚至都不知道它能访问、且缺乏安全管控的底层 API。 - **以 AI 治 AI**:与此同时,安全防御工具也在进化,例如业界利用模型(如 Mythos 等前沿探索)在基础设施中深挖人类未曾察觉的安全漏洞,甚至能揪出存在于 Linux 系统中长达 23 年的老漏洞。风险在演变,防御 Agent 也在同步迭代。 Ilia Shumailov 则将 Agent 安全归纳到经典的 CIA 范式(机密性 Confidentiality、完整性 Integrity、可用性 Availability)中进行审视: - **完整性与机密性为主**:当前绝大多数对 Agent 的攻击集中在数据完整性和机密性上,例如数据外泄(Data exfiltration)或操纵模型推理轨迹。 - **可用性攻击尚在潜伏**:针对 AI 系统的可用性攻击(如 AI 蠕虫病毒、针对 AI 基础设施的勒索软件)目前尚未大规模爆发,但这可能是未来的隐患。 - **对抗性机器学习的启示**:过去 10 年对抗性机器学习(Adversarial ML)的研究几乎揭示了系统可能被滥用的各类方式,但当前最具不确定性的是 Agent 正在涌现出的、无法预见的新能力——特别是 Agent 具备零样本(Zero-shot)利用系统漏洞并自主采取行动的能力。 ### [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) 攻防对抗的失衡与 OpenClaw 的快速迭代挑战 Ilia Shumailov 深入分析了当前安全攻防两端的博弈态势。在黑客视角下,一旦能够将 10 个不同的 CVE 漏洞串联成一条完整的攻击链路(Full Kill Chain),就会引发毁灭性的问题,而在此之前业界甚至未曾预料到这种攻击模式的存在。Ilia 展望道,未来如果递归式自我改进(Recursive Self-Improvement)真正成为现实,智能体能力大幅跃升,这类安全事件只会越发频繁。这或许会倒逼业界去构建具有形式化安全保证的系统(Formally Secure Systems)。尽管这极其艰难,但完全具有可行性。 出人意料的是,Ilia 认为在当前阶段,防御者获得的赋能提升反而高于攻击者。以往那些真正具备理论安全保证的防护手段,往往因为顶尖人才短缺而无法大规模落地,而非存在无法克服的技术瓶颈;如今 AI 的介入让防御者能够完成“昨天还做不到的事情”。然而,当被问及当前应警惕运行何种智能体任务时,Ilia 坦言当下几乎所有任务的安全把控都极具挑战,企业必须配备一支大型且专业的团队进行安全兜底。 ```mermaid flowchart TD accTitle: 快速迭代下的智能体安全与基准测试挑战 accDescr: 展示开源工具快速提交导致基准测试失效与安全维护困难的循环过程 subgraph Upstream["上游演进 (Upstream Codebase)"] A["高频代码提交<br/>(每天上千行变更)"] --> B["通信协议重构与角色模型调整"] end subgraph SecurityImpact["工程与安全挑战 (Challenges)"] B --> C["基准测试 (Benchmarks) 每日失效"] B --> D["安全护栏失效与攻击面漂移"] end subgraph Reality["现状总结 (Current Reality)"] C & D --> E["缺乏一键式安全解法<br/>'最安全的系统是没有运行的系统'"] end ``` 以团队在 Meta 使用与测试 OpenClaw 的实际经历为例,Ilia 形象地描绘了追赶快速演进开源生态的痛苦:OpenClaw 每天的代码提交量至少达数千行,团队每天上班的第一件事就是修复崩溃的评测基准,因为接口协议变了、角色权限被重构了。这种持续追赶的状态意味着目前根本不存在“按下一个按钮就能高枕无忧”的即插即用安全方案。正如 Ilia 开玩笑所言:“最安全的系统其实是根本不运行的系统。” ### [12:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=735s) 智能体记忆架构与上下文工程的拓展 Anoop Deoras 重点探讨了智能体记忆(Agentic Memory)在抹平“人类意图差距(Intent Gap)”中的核心价值。基于早年在推荐系统与个性化领域的研发背景,Anoop 指出,如果智能体在每一次会话开启时都把用户的偏好遗忘殆尽、每次都从零开始,这对于用户体验而言将是灾难性的。记忆不仅是捕捉用户隐式与显式偏好的载体,更是宏观上下文工程(Context Engineering)的关键支柱。 Anoop 强调必须将“用户”这一概念从单一的个人拓展到整个团队或组织。以新员工入职为例,若开发助手能天然沉淀并共享整个团队的代码习惯与工程共识,新人便不再需要依赖资深工程师进行低效的口头知识灌输(Brain Dump),从而大幅缩短熟悉业务代码的时间,带来巨大的生产力飞跃。 - **记忆的多维度解构**:记忆系统需要协同管理短期记忆(Short-term Memory)、情景记忆(Episodic Memory)、程序性记忆(Procedural Memory)以及长期记忆(Long-term Memory)。 - **冻结模型的现实约束**:当前绝大多数工业落地仍基于参数冻结的大语言模型(Frozen LLM),开发者无法微调模型底层权重,核心难点在于如何通过上下文工程将复杂的记忆结构提炼并以模型能够透彻理解的形式喂回给它。 ### [15:28](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=928s) 智能体评测体系的两大维度:构建期仿真与运行时护栏 针对智能体评测与传统大语言模型评测的区别,Anoop 指出,评测智能体不仅是在测试孤立的算法模型,更是在测试“模型加系统”的复合体。智能体具备调用外部 API、工具以及访问环境系统的权限,因此其评测复杂度远超单一的基础模型。 ```mermaid flowchart LR accTitle: 智能体双阶段评估体系 accDescr: 划分构建期模拟与运行时防护两个关键评估阶段 subgraph BuildTime["构建期 / 离线评估 (Build Time)"] A["定义产品形态 (Form Factor)"] --> B["用户流仿真 (User Flow Simulation)"] B --> C["规格符合度验证 (Spec Guarantee)"] end subgraph RunTime["运行期评估 (Run Time)"] D["实时行为监测"] --> E["动态制衡机制 (Checks & Balances)"] E --> F["安全护栏拦截 (Guardrails)"] end ``` Anoop 提出了两阶段评估框架: 1. **构建期/离线评估(Build Time / Offline)**:在正式发布生产力智能体之前,必须明确产品的形态(Form Factor),并通过“用户操作流仿真(User Flow Simulation)”去穷举和测试各种边界情况,确保智能体绝大多数时候都严格符合设计规范。 2. **运行时评估(Runtime)**:智能体一旦接入真实网络与生产系统,离线仿真无法完全覆盖动态风险,必须依赖严密的制衡机制(Checks and Balances)与实时护栏(Guardrails)来阻止越界行为。 ### [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 跨代理治理与“设计即安全”的愿景 Komal Mangtani 从 Meta 的工程实践切入,剖析了智能体治理的核心风险与成功指标。她指出,当前最容易被忽视的隐患在于底层的“智能体基础设施(Agent Infrastructure)”。若基础设施自身缺乏严密的访问控制(ACL)与隔离权限,敏感对话泄露等严重问题就会相继爆发;尤其当智能体状态需要跨持久化存储或跨多云环境运行时,安全挑战呈指数级上升。此外,多智能体协同响应单条请求(Cross-user Insight Sharing)正成为新常态,策略在多代理间不断拆解、重组(Composing, Decomposing, and Recomposing),如何在极低延迟下确保各个智能体的上下文严格受限于当前用户的访问权限,是极具挑战的技术难点。 针对治理成果的衡量,Komal 强调除了最直观的“安全事件数量(Incidents Reduction)”下降之外,更关键的指标是**工程赋能(Developer Enablement)**:如何在守住底线的同时,不阻碍内部研发人员积极拥抱如 OpenClaw 这类高风险但极具创新价值的第三方开源工具。 会议尾声,Ilia Shumailov 总结道,大规模构建系统本质上面临着不可预测性。学术界长期追求的圣杯是“设计即安全”(Security by Design)——依靠系统内在的机制构造从数学上保障安全性,而非在脆弱机制之上修补一层又一层的启发式规则(Heuristics)。但在迈向 AGI 的过渡期内,业界尚未掌握通用的内生安全架构,现阶段工程师的目标应当是建立尽可能完备的防御机制,兜住“99.9999% 的风险场景”,在拥抱技术创新的同时坚守防线。主持人随后风趣收尾:“希望在 AGI 来临之前,我们至少已经把这些安全问题搞明白了。”伴随着全场掌声,本场 Q&A 闭幕。 ## Notable quotes > [00:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=0s) 想象一下一个你能想到的最隐私的 Agent,它绝不泄露你的任何数据,但在这个设定下,你连预订一家餐厅都做不到。 — Ilia Shumailov > [05:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=300s) 有限上下文(Finite-context)的大语言模型 — Anoop Deoras > [05:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=300s) 极微小的逐步漂移(Ever so drift very slightly) — Anoop Deoras > [08:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=480s) 阻力最小路径(Path of least resistance) — Komal Mangtani > [10:00](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=600s) 最安全的系统其实是根本不运行的系统。 — Ilia Shumailov > [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 设计即安全 — Ilia Shumailov > [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 99.9999% 的风险场景 — Ilia Shumailov > [17:15](https://www.youtube.com/watch?v=YwVCvjTn76Y&t=1035s) 希望在 AGI 来临之前,我们至少已经把这些安全问题搞明白了。 — Hong Hao ## Mentioned Anoop Deoras, Ilia Shumailov, Komal Mangtani, Hong Hao, AWS, Meta, Scale, OpenClaw, Mythos, Linux, CVE ## Video description Anoop Deoras, AWS Ilia Shumailov, Meta Komal Mangtani, Meta [Source](https://www.youtube.com/watch?v=YwVCvjTn76Y)

Source quotes

[0:00] Ilia Shumailov: 想象一下一个你能想到的最隐私的 Agent,它绝不泄露你的任何数据,但在这个设定下,你连预订一家餐厅都做不到。 [5:00] Anoop Deoras: 有限上下文(Finite-context)的大语言模型 [5:00] Anoop Deoras: 极微小的逐步漂移(Ever so drift very slightly) [8:00] Komal Mangtani: 阻力最小路径(Path of least resistance) [10:00] Ilia Shumailov: 最安全的系统其实是根本不运行的系统。 [17:15] Ilia Shumailov: 设计即安全 [17:15] Ilia Shumailov: 99.9999% 的风险场景 [17:15] Hong Hao: 希望在 AGI 来临之前,我们至少已经把这些安全问题搞明白了。

Source quotes

[0:00] Anoop Deoras: 100x [0:00] Ilia Shumailov: haunts us forever [3:22] Anoop Deoras: 24/7, so no break for agents [3:22] Anoop Deoras: flying blind [6:40] Ilia Shumailov: I'm hallucinating [10:00] Ilia Shumailov: the most secure system is one that doesn't work [10:00] Anoop Deoras: brain dumps [18:38] Ilia Shumailov: security by design [18:38] Ilia Shumailov: 99.9999% of things and then hope for the best

Original transcript

[0:00] All right, welcome. In the spirit of what everybody did this morning, should we take a selfie first? I'm just kidding. Let's get started. I know everybody's getting ready for lunch. So welcome. I'm your host Hong Hao. I'm a product manager at Meta, AI and Data Info. This is the Q&A session. Thanks for all the speakers for the great talks this morning. We'll be taking questions from the audience that we have submitted from audience live and-- Let's just get started. I would like to start with a question that I think applies to you all. In the area of agent info, what are some of the most exciting challenges and opportunities you're seeing in your domain today? Let's start with you, Anub, and then we'll pass down the line. ANUB KU: Yeah. I mean, I have a biased view on this one, since I am deeply invested in building coding agents and making the productivity become 100x. So to me, I feel if the agents do not know who the user is, it's going to be very challenging for the agent to really be successful. So what that really means is understanding how memory modules should be built, understanding personalization, um really is part of context engineering i think that's a very important problem that we need to do right and if done right the agents are going to be extremely trustworthy and we will be able to scale the agents so that's my take on what is the most critical aspect of agent building exercise today. Awesome. Ilhan, what's your take? - I think I'll answer the question. I think very often mechanisms in security they come with a formal trade-off with utility and this this thing haunts us forever like it's very hard to build systems that are both usable and secure at the same time And like imagine the most private agent you can imagine that doesn't really reveal any of your data. You will not be able to make a restaurant booking in this setup. I think trading this balance between security and utility, between privacy and utility, is truly the biggest frontier today. Because it's clear if we just release the systems in an insecure way, they will get you the most utility. You can imagine the capabilities already there. But finding this fine balance with contextual integrity with other means is, I think, the big question for building scalable products. OK. Oh, we have some questions related to that. We will come back to that in a bit. Yeah, I think I'm going to go with something similar to what Ilya said. But... As Boris was also mentioning, there are new ideas being generated with the power of LLM that you have, and then you see these new use cases emerging. On the other side, you see agentic architectures evolving so rapidly, multi-agent flows and such. And that's when it's like, how do you ensure that there is no agents are not facing friction? but at the same time, you are able to provide safe access to agents. That becomes a really challenging tightrope to walk on, and with every new use case, you have to rethink the process. that balance so that makes it super exciting. Awesome. Sounds good. Anub, I think one of the first questions is to you. Audience submitted, "What are the challenges for building agents that do long horizon tasks and doesn't know that they want to run it 24/7, so no break for agents?" What's your take on this? Yeah. I mean, I feel very excited about the possibility of having agents run for many hours together, if not days. And while building these autonomous agents or long horizon agents, what we have observed is that As the time progresses, the agent is accumulating more and more context and the context of the state. And so it's important for the agent to know whether the original intent is still being respected as it is making progress in doing the task. As part of building the autonomous agents, there is a build time exercise and there is a runtime exercise. And I think evaluation and observability sits at the core of it. Not knowing what your agent is doing is like flying blind. And it's equally important to understand how the agent evolves or how the agent takes actions during the build process as it is for the runtime process. And so what are some of those primitives that you need to build so that you can periodically assess whether agent is still adhering to the specifications, I think is very crucial. And for the long horizon tasks, you have At the end of the day, the workhorse is your finite context large language model. And so it's very important for you to know what is the right set of context that you want to distill, because your state is [5:00] you're going to grow. So context engineering becomes part of it. And as I alluded at the beginning of this chat, memory and personalization is at the core of it. So observability, memory, and evaluation, I feel, are the building blocks. to build scalable and trustworthy long-reson agents. Maybe as a follow on this, as agents run long tasks, what if the agent is going down the wrong path? The errors could compound for days or weeks. Where do you see humans stepping in in the loop? What's the right step over there? Yeah, I think the challenge is not that your agent is going to fail catastrophically on step number one. The challenge is that it's going to ever so drift. very slightly and over time it would have drifted in a dramatic manner and it would be very hard to course correct. Especially for situations where you want to give autonomy to your agent and want to close your eyes and with the hope that the agent is going to do the right thing. Having guardrails and periodic assessment is very crucial. So during the build time of the agent, Simulating the user flows is therefore very crucial so that you can test as many, agent pass as possible. And during run time, similar philosophy, having the right checks and balances and somehow figuring out whether the intent that you express at the beginning is still being respected by the agent. Too much intervention is really defeating the purpose. You don't want to involve the operator or the human developer, because then we are really defeating the purpose of building autonomous agents. But not involving the human is also not the right strategy. So striking the right balance between when to have the human supervision And when not, I think it's the part of the game and getting that right is important. Good to know that humans are still somewhat useful over here. Cool. Next one, I think probably for both Ilia and Kumo here, what are some emerging patterns of attacks? and governance on the agent security side and how is our industry frontier addressing them Maybe start with you, Ilya. Do you want to take it? No, no, come on. Go first. All right. Remember, I gave you time to think about that. No, I just thought last time I said something and I covered it. Yeah, so the emerging risk, well, so there are known risks that we, the moment you deploy an agent, you will see the DSS 3, 4 exposures. And on the output side, you will see those plain text trajectories. risk and in some ways it's quote unquote easier to manage them because they are visible the problem comes when an agent tries to optimize for an outcome and starts taking path of least resistance and that starts showing you the gaps in your infrastructure and this tripped us a couple times when it took a it started accessing apis that we did not know that it could and we had of security control. So that's the thing that I see is kind of an emerging risk. But then at the same time, we see mythos coming up and helping us to look out for all the security vulnerabilities in your infrastructure that you may not even know The classic example they gave was like 23 year old bug they found in Linux and such. I think it goes hand in hand. The risks are emerging as the agent is taking interesting paths. And on the other hand, we are also developing agent enough to kind of mitigate those risks. So it's going to be an interesting view. Okay. . I think, yes, I'll echo a lot of what Kamal said. I think broadly in security, you reason about attacks in CIA paradigm, confidentiality, integrity, availability. I think... Most of the attacks we see today are mostly questions around integrity and sometimes confidentiality of the data with which the agent interacts, so a lot of it's like data exfiltration. And I think broadly this paradigm will remain the same. I think we haven't really seen too many availability attacks as of yet. Maybe things are changing, like we'll have some sort of worms, I don't know, ransomware against AI systems. I'm hallucinating. But yeah, I think broadly it will be contained. I think 10 years of the serial machine learning taught us about all of the different ways we can use the systems. I think there is still some emerging capabilities that we can't quite predict. So clearly... clearly agents being able to zero shot [10:00] and connect 10 different CVEs to give you a full kill chain is a problem. Clearly we didn't know that was possible. and i guess maybe if recursive self-improvement does become a thing and agents get significantly better than We'll see more of this happening. And then maybe we'll start building formally secure systems. By the way, this is possible. It's very hard to do. So yeah, I think, to be honest, if you ask me, the defender has a higher uplift than the adversary in this particular case because a lot of the methods that truly came with security guarantees they were bottlenecked by lack of talent rather than any other technical reason. I'm excited. I think It's all about what can a defender now do that yesterday couldn't do. Okay, that's a note. Maybe a follow-on. Is there any kind of agent task that people should be careful of running with given the kind of security risk today? I think any task today is really hard. You really need a dedicated many people professional team to provide security for many of these agents. Especially the other thing is, Like. OpenClaw specifically because we were doing a work with OpenClaw changes every day like if you try tracking the commits happening it's like couple of thousands lines of change at least per day it we every day we started the day by fixing our benchmarks because suddenly you know X Y and Z has changed the protocols change they're using their own roles in places And it's like it's a continuous effort at adaptation. I don't think. today there is a very simple yes just click this button and you you're safe uh solution to any of this. You know, the most secure system is one that doesn't work. Okay, it's good to know. Anup, coming back to you a little bit, there's a question on what role does agentic memory play in closing the intent gap over time that you mentioned on the intent here, and can agent learn operator's preference rather than being specifically steered by human every single time? Yeah, I covered some of these things in my presentation earlier. I feel memory is a very crucial primitive for agents. for the reason that if your agent at every session, if it has forgotten who you are as a user, it's like starting over. And that's not a good experience. I have a background in recommender systems. I used to do personalization. before jumping onto doing generative AI. And there we learned early on that for any, user-centric applications, personalization is extremely important to have that pleasing experience. You want your user to come back. And you want the system to understand users' implicit and explicit preferences. So to build personalization, I think memory is that vehicle or that mechanism. And I think it's part of the larger context engineering, if you will. Context engineering has many other facets, but memory is really trying to understand the preferences of the user. And I want to... broaden the definition of the user here. It's not just an individual using the agentic tool, It can be a team, it can be an organization. So for example, if I'm a software developer working for a team in a company and I'm new to that team, there are these shared traits of the team that the agent should just inherently know. So that when I come in as a new person to the team, rather than going to talk to a senior engineer who is going to brain dump all the learnings, what works and what doesn't, And these are the things that is going to lead to massive productivity improvement, because now the time to onboard onto a process or onto a code base is going to be significantly smaller compared to the traditional. So memory sits at the core of everything. And it doesn't have to be specific to the coding agents. Even when we talk about OpenClaw or business agents, just knowing who the user is, I think is so important. And memory has many facets. There is short-term memory, there is episodic memory, procedural memory, long-term memory. Just understanding how all of that plays a role and how you feed all of that information back into the model because most if not all are still working with frozen LLM, if you will. So LLM is given and the only levers that we have is, you know, context engineering, if you will. If you have the possibility of going beyond this, like actually tinker with the model parameters and all, more can be done. [15:00] limiting ourselves to frozen LLM and then context engineering. The real challenge is of all the memory behaviors short term long term procedural how do you bake all of that and how do you present that in a manner that your lm can truly understand so i think this is a very neat problem and important for the community Got it. Really real quick on the eval side for whether operators actually are following the intent. How do you folks do the eval and is it different from traditional LIM evals here? So There are two types of evaluations. One is the offline or the build time and the other is the runtime. And I would say-- Evaluating agents is very different from evaluating a large language model. because your agent is LLM and the system around it. And when we talk about the system, you're talking about the APIs that the LLM has access to, the tools. the systems and everything. And so evaluating an agent is significantly harder than evaluating an algorithm in isolation. So to evaluate an agent, let's say I'm building a productivity agent, before even I deploy the agent, I need to be able to make sure that the agent is going to do the right thing most of the time, if not all the time. Simulating user flows becomes very crucial. So just understanding what is the form factor of the product, and then doing the user flow simulation, and then testing the agent against those gives you rough guarantee of whether the agent is behaving as per the spec. And then, of course, the runtime is crucial. so that you have the checks and balances to have the right guardrails. Got it. Awesome. Thank you for sharing. Coming back to agent safety, Kumo, I think this one's for you. What are the most common risks that you have encountered at Meta for agent safety, and how do you measure the success of the governance systems against these risks? - Yeah, I think the one underlying thing that kind of gets does not get enough priority is the agent infrastructure itself, right? When the agent infrastructure itself is not secured with right tackles and right controls, then you are running a huge risk of exposing what then comes out as symptoms of sensitive chats, leaking and such. But then... the agentic infrastructure itself is evolving and writing, having different persistent points. And if you are doing it across cloud, then you have the other level of challenges to kind of get through. So that's the whole one area that I feel like it's, it's an evolving space as the agent keeps evolving. The other is the cross-user insight sharing. Like this is when as more and more agents are involved in responding to a question, which is what we are seeing with our new use case, it's like continuous policy composing and decomposing and recomposing and that is where you are kind of looking at What is the latency that you are taking hit on and how are you still protecting and giving responses that are only very much defined to that user. So there is that, those kind of challenges remain. Um... On the success side, it's Definitely the most obvious one is going to be incidents, number of incidents that happen. And the more we reduce them, the better. But also, how do we enable our engineers to continue using the third-party tools as innovation continues? As Hilya mentioned, when people started using OpenClaw at Meta, we started seeing a whole different set of risks that we had not seen. with the innovation that developers really want to go for, is where I feel like we'll be more successful. Yeah. got it thanks ilia is there anything you want to add here I Yeah. It's very hard, I think. Building technology at scale is really, really hard. I think a lot of those things are just fundamentally unpredictable. So, I think we need to create value and enable people to build systems that they couldn't build before. Yeah, it's really like the dream is that we have security by design. This is like if you go into academic literature, this is the magical buzzword that everyone is looking for, where you can look at the mechanism and get the guarantee that the mechanism always works because of the construction of the mechanism. as opposed to heuristics that we put on top of it. As of today, we know how to build some [20:00] mechanisms, but they are not general. So I think on this way to AGI before, you know, AGI comes and the model figures out all of its own security problems, I think we need to build enough mechanisms in ideally that are secure by design. And if that's not the case, enough like ways to capture this 99.9999% of things and then hope for the best. But it's the dream. Cool. Let's look at the bright side. Hopefully we got the audience figured out before the AGI comes. All right, we're at time. Thanks to all our speakers. Thank you all for being here and submitting the questions. Let's give it out to our speakers.