feat: add audit-cleanroom command to detect leaked files#32
Open
yurekami wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
programbench audit-cleanroom— a CLI command that checks cleanroom Docker images for unexpected files in/tmpand/var/tmpthat agents could exploit to bypass the reverse-engineering challenge.Why
Closes #14. The
bellard_1776_quickjs.d7ae12a:task_cleanroomimage ships with/tmp/_inject_exe, a readable copy of the compiled QuickJS binary. An agent cancp /tmp/_inject_exe ./executableto cheat.The root cause is in the external image build pipeline (not in this repo), but this command gives maintainers a way to audit all 200 instances and catch this class of bug before it reaches agents.
Design context
The eval framework only operates on
:taskimages, so the fix cannot live in the eval pipeline. A standalone audit command is the natural fit — it runsfind /tmp /var/tmp -type fin each cleanroom container and reports any unexpected files. Exits non-zero when leaks are found, so it can gate CI.Alternatives considered:
_remove_hashed_filesto scan/tmp— doesn't help because it runs in eval, not cleanroomfindcheck catches unknown leaksUsage