setpriv tips — authorized privilege-boundary literacy
setpriv helps authorized labs sample privilege-boundary literacy on hosts they own. Pair with capsh-tips, setcap-tips, getcap-tips, runuser-tips, sg-tips. Prefer lab VMs — never escalate on foreign hosts without permission.
Snapshot
| Field | Value |
|---|---|
| Surface | setpriv tip checklist (uid/gid/capability / no-new-privs) |
| Job | Authorized privilege-boundary literacy |
| Peer | capsh-tips |
| Peer | runuser-tips |
| Peer | sg-tips |
| Peer | getcap-tips |
Tip checklist (authorized only)
- Confirm you may run
setprivon the lab host (syllabus box you own or were given access to). - Prefer documenting who / why / ticket before any uid/gid/capability change — never poke production without change control.
- Record short factual notes; quote short Evidence (uid/gid/capability labels — never passwords or tokens).
- Optional: capability peer → capsh-tips / getcap-tips.
- Optional: user-switch peer → runuser-tips / sg-tips.
- Prefer disposable lab accounts for
setprivdrills; quote non-secret labels afterward as Evidence. - Prefer
--inh-caps/--bounding-set/--no-new-privsread-backs the syllabus authorizes — avoid inventing escalation cookbooks. - Stop at literacy — no attack or unauthorized privilege-escalation cookbooks.
Allowed framing
- Classroom labs reviewing
setprivon authorized disposable hosts (setpriv --dump/ reuid/regid drills the syllabus provides). - Binding short factual notes as Evidence (uid/gid/capability labels — no secrets).
- Documenting expected vs observed privilege-boundary literacy for authorized inventory notes.
- Comparing setpriv ↔ peer tip pages under one binder.
- Testing capability drops only when the syllabus authorizes that drill on lab resources.
Scope we will not cover
- No crack/pirate/keygen via setpriv.
- No intentional unauthorized privilege escalation against foreign hosts.
- No secret-theft or credential harvesting via capability/uid dumps on hosts you do not own.
- No cookbooks that weaken SELinux/AppArmor or clear no-new-privs on foreign hosts without authorization.
Beginner path (authorized only)
- Obtain one syllabus-approved disposable lab host with a usable
setprivtoolchain. - Prefer a throwaway lab account before any privilege drill.
- With authorization, run a syllabus-approved
setpriv --dump; quote non-secret uid/gid/capability labels as Evidence. - Optional: peer tip pages above when the syllabus asks.
- Stop at literacy — no attack or unauthorized escalation cookbooks.
Practical notes for authorized labs
setprivadjusts uid/gid/capability / no-new-privs for a command — keep Evidence labels distinct from runuser-tips / sg-tips UX.- Pair with capsh-tips / getcap-tips only for syllabus-approved capability literacy on lab hosts.
- Capability dumps may embed sensitive process context — never paste secrets into notes or git.
- Prefer documenting uid/gid/capability labels the syllabus authorized without dumping full privileged inspect JSON.
- Never commit
setprivdumps with secrets to git — even for labs.
FAQ
What is a "setpriv tip" page in BinBench framing?
A checklist for authorized privilege-boundary literacy (setpriv on lab hosts) on hosts you own or were given syllabus access to — not a cookbook for escalating against foreign hosts.
How does this relate to peer tip pages?
Complements capsh-tips / runuser-tips / sg-tips without overwrite. This page zooms on a setpriv tip checklist — it does not overwrite those pages.
Can I run setpriv against hosts I do not own?
No. Authorization first. BinBench will not publish unauthorized privilege drills against foreign hosts.
Does this teach attack PoCs via setpriv?
No. Mentions of attack/bypass appear only as refusals. Authorized literacy only — prefer lab VMs and redacted samples.
Does this teach secret theft via setpriv?
No. Never paste credentials, capability dumps with secrets, or foreign host dumps into notes. Prefer documenting uid/gid/capability labels only.