---
title: "Comment by Mateo Ruiz on \"Running untrusted pull request code from agents and contributors\" | Hashnode"
description: "One boundary worth emphasizing is what happens after the sandbox finishes. Even if the PR code cannot escape the microVM, its output is still attacker-controlle"
url: "https://hashnode.com/posts/running-untrusted-pull-request-code-from-agents-and-contributors/6b0089797339bc73d40df4c1/comment/6b0131e0a4e592295c32693f"
---

[Discussion](https://hashnode.com/posts/running-untrusted-pull-request-code-from-agents-and-contributors/6b0089797339bc73d40df4c1)

Comment [Running untrusted pull request code from agents and contributors](https://hashnode.com/posts/running-untrusted-pull-request-code-from-agents-and-contributors/6b0089797339bc73d40df4c1)

[Mateo Ruiz](https://hashnode.com/@mateoruiz)

[4d ago](https://hashnode.com/posts/running-untrusted-pull-request-code-from-agents-and-contributors/6b0089797339bc73d40df4c1/comment/6b0131e0a4e592295c32693f)

One boundary worth emphasizing is what happens after the sandbox finishes. Even if the PR code cannot escape the microVM, its output is still attacker-controlled. Test reports, coverage files, generated artifacts, and even log output can contain content that becomes dangerous when a privileged CI job parses, publishes, or processes it.

I’d keep the post-sandbox stage isolated too: validate artifact types and paths, avoid executing anything retrieved from the sandbox, and make sure publishing jobs don't inherit its environment or credentials. A disposable execution environment is a strong first layer, but the trust boundary shouldn't disappear just because the test process exited successfully.
