AI Agents as Supply Chain Actors: Patch Pilot's Security Model

Moritz Johner of Form3 discusses the limitations of automated dependency patching tools and the security considerations of using AI agents with production code access, introducing their 'Patch Pilot' system.

Moritz Johner speaking at AI Engineer World's Fair stage.
AI Engineer
Visual TL;DR
Dependency Patching HardDriver
traditional tools miss vulnerabilities in OS packages or binaries within base images
AI Agents ProposedCore
leveraging AI agents to automate complex dependency updates and security patching
From the article 9+ mentionsJohner proposed a solution using micro-VMs, specifically Firecracker, to create a more robust isolation boundary.
Security Risk: AI AccessDriver
granting AI agents production code access poses critical security implications
From the article 3 mentionsGranting a Docker socket to an agent effectively gives it root access to the host, posing a critical security risk.
Patch Pilot SystemCore
a two-tiered approach to manage AI agents interacting with production code
From the article 3 mentionsTo address these issues, Form3 developed Patch Pilot, a system with a dual architecture.
Deterministic vs. AgenticContext
separating predictable, rule-based tasks from flexible, AI-driven actions
From the article 5 mentionsThis led to a crucial architectural decision: separating capabilities and credentials between the deterministic and agentic layers.
Mitigate Prompt InjectionEffect
strategies to prevent malicious inputs from compromising agent behavior
From the article 3 mentionsThis separation limits the 'blast radius' in case of prompt injection or other agent misbehavior.
Agent SandboxingEffect
isolating AI agents to limit their potential impact on the system
From the article 9+ mentionsA significant challenge lies in securely sandboxing agents, especially when they need to interact with tools like Docker.
Secure Automated PatchingOutcome
enabling efficient, secure, and comprehensive software dependency management
Contents(7)

The task of keeping software dependencies up-to-date, especially with security vulnerabilities, is a constant and often unglamorous challenge for development teams. While tools like Dependabot and Renovate automate much of this process, their limitations become apparent in complex, containerized environments. Moritz Johner from Form3 presented a case study at AI Engineer World's Fair on 'Patch Pilot,' a system designed to tackle these challenges by leveraging AI agents, while also addressing the critical security implications of granting such agents production code access.

AI Agents as Supply Chain Actors: Patch Pilot's Security Model - AI Engineer
AI Agents as Supply Chain Actors: Patch Pilot's Security Model, from AI Engineer

The Limitations of Existing Tools

Johner highlighted that traditional tools primarily focus on manifest files, which is insufficient when vulnerabilities reside in OS packages within base images or in binaries pulled during the build process. These tools simply cannot 'see' or act upon these hidden vulnerabilities. Furthermore, dependency updates are rarely isolated events; updating one component can necessitate updates in others, leading to a cascade of changes and potential code invalidation. Johner emphasized that this isn't just a patching problem, but a reasoning problem, requiring a tool that understands the full context of a vulnerability.

Patch Pilot: A Two-Tiered Approach

To address these issues, Form3 developed Patch Pilot, a system with a dual architecture. The first layer is a deterministic Go application responsible for orchestration, discovering vulnerable artifacts (OCI images), scanning them, and linking images to their respective repositories. This part is intentionally kept simple and predictable. The second layer involves spawning AI agents, which are tasked with the complex reasoning required for remediation. When a CI failure occurs, an agent is invoked to diagnose the issue and determine the necessary actions, whether it's a simple retry or a more complex fix.

The Supply Chain Incident Question

A key concern raised by Form3's Infosec team was the potential for such automation to become a 'supply chain incident waiting to happen.' Johner's thesis posits that any useful coding agent, by virtue of its ability to modify production code, is a supply chain actor. Therefore, the same rigorous guardrails applied to human engineers must also be applied to these agents. This led to a crucial architectural decision: separating capabilities and credentials between the deterministic and agentic layers.

Separating Deterministic and Agentic Roles

Patch Pilot's Go application handles the deterministic tasks, such as cloning repositories, creating context for the agent, and importantly, committing, pushing, and creating pull requests. It also monitors CI status. The AI agent, on the other hand, is confined to modifying files on the filesystem, performing the reasoning and remediation steps. Crucially, the agent is not given direct production credentials for actions like pushing to GitHub or triggering CI builds. This separation limits the 'blast radius' in case of prompt injection or other agent misbehavior.

Mitigating Prompt Injection Risks

Acknowledging that prompt injection is an unsolved problem, Form3 implemented mitigation strategies. These include 'prompt steering,' where the agent is instructed to ignore or distrust certain directories or files containing untrusted information. Additionally, they developed end-to-end tests to specifically probe for and prevent prompt injection vulnerabilities. While these measures reduce risk, Johner admitted that some level of uncertainty remains, emphasizing the need for a layered security approach.

The Challenge of Agent Sandboxing

A significant challenge lies in securely sandboxing agents, especially when they need to interact with tools like Docker. Granting a Docker socket to an agent effectively gives it root access to the host, posing a critical security risk. Johner proposed a solution using micro-VMs, specifically Firecracker, to create a more robust isolation boundary. The agent and its Docker socket run within this micro-VM, with its own kernel, preventing escape to the host system. Network policies can also be applied granularly to both the deterministic and agentic components.

The Evolving Landscape of Agent Sandboxing

Johner noted that while existing agents often come with their own sandboxes, these are frequently insufficient, particularly when Docker access is involved. For agents without built-in sandboxing, like many open-source solutions, custom environments must be created. He highlighted the emergence of projects like 'micro-sandbox' as promising, offering comprehensive features, but acknowledged that many solutions are still in beta and require further development for enterprise-grade adoption. The key takeaway is that the architecture itself is the primary determinant of an agent's blast radius, and careful separation of deterministic and agentic functions is paramount.

Johner concluded by inviting the community to share their own experiences and strategies for running agents in production, emphasizing the collaborative effort needed to navigate this evolving field.

© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

More from Daniel Singer