You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Protect envd and in-guest verification results from a root agent inside the sandbox
#437
In RL rollouts and agent evaluation, the agent has root (or sudo) inside the sandbox, while the harness pulls rewards and verification results out of the guest through envd. envd runs inside the guest, in the same trust domain as the agent. The agent is therefore able to interfere with envd itself or with its communication with the host, and to tamper with the environment where tests run, so that the harness receives a forged "pass".
We'd like to know whether the community has any plans for the scenario where the in-guest workload is untrusted.
Use case
One sandbox per rollout. The agent runs arbitrary shell commands (including sudo); afterwards the harness computes the reward from results in the sandbox.
Verification comes in two flavors:
diff-based: extract the agent's code changes and run tests in another environment;
state-based: inspect the final state of the sandbox.
High concurrency, with heavy use of pause/resume and snapshot/fork.
Current behavior and workarounds
envd is a root process inside the guest, so guest root can affect it and its output.
pause/snapshot preserves guest state, so in-guest changes carry forward through resume and fork.
There is currently no supported way to inspect the agent's final state from an environment the agent cannot influence.
Workaround today: for diff-based verification, the harness can rebuild a clean environment outside the agent's sandbox and run tests there. For state-based verification there is no good workaround yet.
Desired behavior
Given the agent has root inside the sandbox,
When the harness computes the reward,
Then the grading inputs come from an execution path the agent cannot influence, for both diff-based and state-based verification.
We'd prefer the default behavior to stay unchanged.
Alternatives considered
Hardening envd inside the guest only: guest root can still get around it, and it does not cover tampering with the test execution environment.
An extra container isolation layer inside the guest (Kata-like model): high compatibility cost for user images, and it still does not cover tampering with the test execution environment.
Non-goals
Preventing the agent from having root inside its own sandbox.
Does the community currently have any plans in this area, and which direction would you lean toward? We're happy to share more details about our use case and to help test and review.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
In RL rollouts and agent evaluation, the agent has root (or sudo) inside the sandbox, while the harness pulls rewards and verification results out of the guest through envd. envd runs inside the guest, in the same trust domain as the agent. The agent is therefore able to interfere with envd itself or with its communication with the host, and to tamper with the environment where tests run, so that the harness receives a forged "pass".
We'd like to know whether the community has any plans for the scenario where the in-guest workload is untrusted.
Use case
Current behavior and workarounds
Desired behavior
We'd prefer the default behavior to stay unchanged.
Alternatives considered
Non-goals
Related
Question
Does the community currently have any plans in this area, and which direction would you lean toward? We're happy to share more details about our use case and to help test and review.
All reactions