Repository navigation
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
TK-A075 to TK-A078 (from #752, landed in #799) hold logins, account-file writes, setuid bits and startup-file network shells. Their limits row in docs/limits.md lists what they don't read yet. Each item below is a self-contained change, one PR per item is fine, and several people can take different items.
Not held yet (each is flagged by TK-F011 or allowed today)
- macOS's own account tools (
TK-A075):sysadminctl -addUser … -admin,dseditgroup -o edit -a <user> -t user admin, anddsclwrites other than user records (e.g. appending to/Groups/admin'sGroupMembership). - A here-document written to a startup file (
TK-A078):cat >> ~/.bashrc <<'EOF'whose body starts a network shell. The rule reads a command's words, and a here-document's body is its input, so this needs the body read the way the rule reads a line (see how other rules reach here-document text). - The 128-character window and the four-word
nclimit (TK-A078): a network shell further than 128 characters from the write, orncwith more than four words before its exec option. Widen these only with linear patterns (the speed test intests/test_policy2.pymust pass at 64 KiB on the fallback engine). - More setuid spellings (
TK-A077):install -m 4755 …(any setuid/setgid mode throughinstall -m/--mode), andsetcapgrantingcap_setuid,cap_setgidorcap_sys_admin. - Other startup files (
TK-A078,TK-A011): shell writes to/etc/profile,/etc/profile.d/*.sh,/etc/zsh/zshrc,~/.bash_logout,~/.kshrc; macOS cron tabs (/usr/lib/cron/tabs/<user>,/var/at/tabs/<user>).
Held though harmless
- A project's own
etc/passwdoretc/group(TK-A076):echo x > ./etc/passwdorcp fixtures/passwd tests/etc/passwdis held because the rule reads the path's end. Anchor it to the real/etc(keeping//etc,/etc/./,/etc/../etcheld).
Done when (for any item)
- The new calls are added to
tests/data/policy/deny/shell.jsonl(orfs.jsonl) and a benign twin tobenign/, and the test intests/test_signer_policy.pycovers them on every pack and both engines. - Nothing gets looser: decide
tests/data/policyand the E21 corpora before and after. - The pack version 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 limits row updated to match.
Commits need a DCO sign-off (git commit -s).
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Activity
60507 commentedon Nov 14, 2026
I'd like to claim item 4 (\TK-A077: \install -m/--mode\ setuid/setgid modes and \setcap\ \cap_setuid/\cap_setgid/\cap_sys_admin). I have a fix, tests, docs, and updated evals ready to open as a PR.
LoopGlitch26 commentedon Nov 14, 2026
Item 4 is yours, thanks, and #834 is the PR for it. Policy PRs merge right after the coming release, because it changes the same packs, so pack versions and eval results get settled at merge. I'll review #834 before then.
Policy: TK-A077 holds install setuid/setgid modes and setcap capabili…