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.

9 min read
Moritz Johner speaking at AI Engineer World's Fair stage.
AI Engineer

Visual TL;DR. Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System involves Deterministic vs. Agentic. Patch Pilot System includes Mitigate Prompt Injection. Patch Pilot System requires Agent Sandboxing. Patch Pilot System achieves Secure Automated Patching.

  1. Dependency Patching Hard: traditional tools miss vulnerabilities in OS packages or binaries within base images
  2. AI Agents Proposed: leveraging AI agents to automate complex dependency updates and security patching
  3. Security Risk: AI Access: granting AI agents production code access poses critical security implications
  4. Patch Pilot System: a two-tiered approach to manage AI agents interacting with production code
  5. Deterministic vs. Agentic: separating predictable, rule-based tasks from flexible, AI-driven actions
  6. Mitigate Prompt Injection: strategies to prevent malicious inputs from compromising agent behavior
  7. Agent Sandboxing: isolating AI agents to limit their potential impact on the system
  8. Secure Automated Patching: enabling efficient, secure, and comprehensive software dependency management
Visual TL;DR
Visual TL;DR, startuphub.ai Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System achieves Secure Automated Patching leads to creates addressed by achieves Dependency Patching Hard AI Agents Proposed Security Risk: AI Access Patch Pilot System Secure Automated Patching From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System achieves Secure Automated Patching leads to creates addressed by achieves DependencyPatching Hard AI AgentsProposed Security Risk: AIAccess Patch PilotSystem Secure AutomatedPatching From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System achieves Secure Automated Patching leads to creates addressed by achieves Dependency Patching Hard traditional tools miss vulnerabilities inOS packages or binaries within base images AI Agents Proposed leveraging AI agents to automate complexdependency updates and security patching Security Risk: AI Access granting AI agents production code accessposes critical security implications Patch Pilot System a two-tiered approach to manage AI agentsinteracting with production code Secure Automated Patching enabling efficient, secure, andcomprehensive software dependencymanagement From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System achieves Secure Automated Patching leads to creates addressed by achieves DependencyPatching Hard traditional toolsmissvulnerabilities in… AI AgentsProposed leveraging AIagents to automatecomplex dependency… Security Risk: AIAccess granting AI agentsproduction codeaccess poses… Patch PilotSystem a two-tieredapproach to manageAI agents… Secure AutomatedPatching enabling efficient,secure, andcomprehensive… From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System involves Deterministic vs. Agentic. Patch Pilot System includes Mitigate Prompt Injection. Patch Pilot System requires Agent Sandboxing. Patch Pilot System achieves Secure Automated Patching leads to creates addressed by involves includes requires achieves Dependency Patching Hard traditional tools miss vulnerabilities inOS packages or binaries within base images AI Agents Proposed leveraging AI agents to automate complexdependency updates and security patching Security Risk: AI Access granting AI agents production code accessposes critical security implications Patch Pilot System a two-tiered approach to manage AI agentsinteracting with production code Deterministic vs. Agentic separating predictable, rule-based tasksfrom flexible, AI-driven actions Mitigate Prompt Injection strategies to prevent malicious inputsfrom compromising agent behavior Agent Sandboxing isolating AI agents to limit theirpotential impact on the system Secure Automated Patching enabling efficient, secure, andcomprehensive software dependencymanagement From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai Dependency Patching Hard leads to AI Agents Proposed. AI Agents Proposed creates Security Risk: AI Access. Security Risk: AI Access addressed by Patch Pilot System. Patch Pilot System involves Deterministic vs. Agentic. Patch Pilot System includes Mitigate Prompt Injection. Patch Pilot System requires Agent Sandboxing. Patch Pilot System achieves Secure Automated Patching leads to creates addressed by involves includes requires achieves DependencyPatching Hard traditional toolsmissvulnerabilities in… AI AgentsProposed leveraging AIagents to automatecomplex dependency… Security Risk: AIAccess granting AI agentsproduction codeaccess poses… Patch PilotSystem a two-tieredapproach to manageAI agents… Deterministic vs.Agentic separatingpredictable,rule-based tasks… Mitigate PromptInjection strategies toprevent maliciousinputs from… Agent Sandboxing isolating AI agentsto limit theirpotential impact on… Secure AutomatedPatching enabling efficient,secure, andcomprehensive… From startuphub.ai · The publishers behind this format

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. Do not enter, scrape, copy, reproduce, or republish this article in whole or in part. Use as input to AI training, fine-tuning, retrieval-augmented generation, or any machine-learning system is prohibited without written license. Substantially-similar derivative works will be pursued to the fullest extent of applicable copyright, database, and computer-misuse laws. See our terms.