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
Policy: Docker and Podman socket spellings TK-A071 and TK-A072 don't read yet (nohup, nice, CONTAINER_HOST, macOS socket names) #808
TK-A071 and TK-A072 (from #731, landed in #799) hold a raw request through the Docker or Podman socket, and a program pointed at the socket through DOCKER_HOST. Three spellings of the same move are only flagged or allowed today. Each item is a self-contained change; one PR per item is fine, and different people can take different items. (#731's author was offered these first; if they comment here, they take them.)
Not held yet (checked at current main on the coding and strict packs)
nohup or nice before env DOCKER_HOST=unix://… (TK-A072, tracekit/policy2/packs/coding.yaml L586-596). The rule reads a command start after env, command, time, !, options and assignments, but not nohup or nice. Today nohup env DOCKER_HOST=unix:///var/run/docker.sock python x.py is only flagged (TK-F007), and nice -n 5 env DOCKER_HOST=unix:///var/run/docker.sock python x.py is allowed. Add both words (and nice's number) to the words the rule skips, keeping the pattern linear.
Podman's own variable, CONTAINER_HOST (TK-A072). CONTAINER_HOST=unix:///run/podman/podman.sock python x.py is allowed. Read it where DOCKER_HOST is read, with the same exceptions (the podman and podman-compose commands themselves, export CONTAINER_HOST=…, a grep for it).
The default macOS socket names (TK-A071, L575-585). The rule reads a path ending docker.sock or podman.sock, so Docker Desktop's ~/Library/Containers/com.docker.docker/Data/docker.raw.sock and podman machine's …/podman/machine/podman-machine-default-api.sock are only flagged on the coding pack (curl --unix-socket … http://d/containers/json: TK-F001, TK-F012, TK-F013; strict asks through its general TK-F013). Name both endings without making ls or text that names the file held.
Done when (for any item)
The new calls are in tests/data/policy/deny/shell.jsonl with a benign twin in benign/, and test_container_escape_moves_ask in tests/test_signer_policy.py (L340) covers them on every pack and both engines.
Nothing gets looser: decide tests/data/policy and the E21 corpora before and after.
The pattern stays linear: test_adversarial_calls_decide_before_the_fallback_deadline in tests/test_policy2.py passes, with a 64 KiB filler of the new prefix if you add one.
The coding pack's version (coding.yaml L14) is bumped, the evals re-recorded (python eval/e17_policy_corpus.py, python eval/e21_policy_robustness.py, python eval/e21_robustness.py), and the TK-A071 to TK-A074 row in docs/limits.md (L239) updated to match.
Hi @LoopGlitch26, I would like to work on this issue! I can cover items 1, 2, and 3 (handling nohup and nice prefixes and CONTAINER_HOST in TK-A072, plus the macOS socket names in TK-A071), add the test cases to test_signer_policy.py and tests/data/policy/, ensure the patterns remain linear, update docs/limits.md, and re-record the eval corpora with the bumped pack version.
Items 1-3 are yours, thanks. Nobody else has claimed them, and the offer to #731's author stands only for anything you leave. Three notes:
Each spelling should be held exactly as the plain form is. Add a test per spelling that fails on main, plus the plain-form control.
Keep the patterns linear: the 64 KiB backtracking guard in tests/test_policy2.py must still pass on both engines.
Pack versions: a release is close and changes the coding and strict packs too, so take the next free version and say in the PR that the final number is settled at merge. Re-record evals only by running their scripts, never by editing eval/results.
@munjikesh asked for these items on #731 just after I answered here. This issue offered them to #731's author first, and I should have waited for that before handing out all three. So, to keep the promise and be fair to both of you:
Sorry for the back-and-forth. The notes above still apply to both PRs: a failing-first test per spelling plus the plain-form control, linear patterns, pack versions settled at merge, evals re-recorded only by their scripts, and signed-off commits.
Thanks @LoopGlitch26! I have scoped #823 strictly to item 3 (macOS container socket spellings docker.raw.sock and podman-machine-default-api.sock in TK-A071), leaving items 1 and 2 for @munjikesh.
Also, I would love to take on #809 as well! I will head over and comment there.
Items 1 and 2 (nohup/nice before env DOCKER_HOST=…, and CONTAINER_HOST in TK-A072) are in #828. It uses v2-84 for now; the final number is yours at merge.
Activity
Parveshkumar2211 commentedon Nov 13, 2026
Hi @LoopGlitch26, I would like to work on this issue! I can cover items 1, 2, and 3 (handling
nohupandniceprefixes andCONTAINER_HOSTin TK-A072, plus the macOS socket names in TK-A071), add the test cases totest_signer_policy.pyandtests/data/policy/, ensure the patterns remain linear, updatedocs/limits.md, and re-record the eval corpora with the bumped pack version.LoopGlitch26 commentedon Nov 13, 2026
Items 1-3 are yours, thanks. Nobody else has claimed them, and the offer to #731's author stands only for anything you leave. Three notes:
tests/test_policy2.pymust still pass on both engines.eval/results.Sign off your commits (
git commit -s).LoopGlitch26 commentedon Nov 13, 2026
@munjikesh asked for these items on #731 just after I answered here. This issue offered them to #731's author first, and I should have waited for that before handing out all three. So, to keep the promise and be fair to both of you:
TK-A072spellings (nohup/nicebeforeenv DOCKER_HOST=…, and Podman'sCONTAINER_HOST). They build directly on your Policy: raw Docker or Podman socket calls and cgroup release_agent writes are held (TK-A063 to TK-A066) #731 code.TK-A071. If you'd like more of the same kind of work, Policy: five CI-upload spellings TK-A061 misses (an option before curl, bash -c, xargs, here-strings, step outputs) #809 (five CI-upload spellingsTK-A061misses) is unclaimed and is yours if you want it. Say so there.Sorry for the back-and-forth. The notes above still apply to both PRs: a failing-first test per spelling plus the plain-form control, linear patterns, pack versions settled at merge, evals re-recorded only by their scripts, and signed-off commits.
Policy: macOS container socket spellings in TK-A071 (Cygnux-Labs#808)
Parveshkumar2211 commentedon Nov 13, 2026
Thanks @LoopGlitch26! I have scoped #823 strictly to item 3 (macOS container socket spellings
docker.raw.sockandpodman-machine-default-api.sockinTK-A071), leaving items 1 and 2 for @munjikesh.Also, I would love to take on #809 as well! I will head over and comment there.
munjikesh commentedon Nov 13, 2026
Items 1 and 2 (
nohup/nicebeforeenv DOCKER_HOST=…, andCONTAINER_HOSTinTK-A072) are in #828. It uses v2-84 for now; the final number is yours at merge.Policy: macOS container socket spellings in TK-A071 (Cygnux-Labs#808)
Policy: macOS container socket spellings in TK-A071 (Cygnux-Labs#808)
fix(policy): podman-remote is a container client in TK-A072 (Cygnux-L…
Policy: TK-A072 reads nohup and nice before env, and Podman's CONTAIN…