T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:15- Finding
Excessive Default Use of Full-Access Sessions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:15-20,SKILL.md:35-41, andreferences/ppt-playbook.md:7-11
Vulnerability Type: Least-privilege violation through unnecessarily broad session permissions
Risk Level: MediumComplete Code Snippets:
SKILL.md:15-20:bash acpx codex sessions new --name task acpx codex set-mode -s task full-access acpx codex -s task -f prompt.txtSKILL.md:35-41:bash acpx codex set-mode -s task full-accesstext Interpretation: - `read-only`: inspect only - `auto`: moderate default behavior - `full-access`: broader session capability, including easier file edits and broader path/network freedomreferences/ppt-playbook.md:7-11:bash acpx codex sessions new --name ppt acpx codex set-mode -s ppt full-access acpx codex -s ppt -f prompt.txtTechnical Analysis
The Skill recommends enabling
full-accessas the default workflow for non-trivial tasks and presentation generation. Its own documentation states that this mode provides broader path and network freedom. Routine document and presentation generation generally only requires access to a dedicated workspace or temporary output directory.This guidance violates the principle of least privilege because capability is expanded before the task demonstrates a need for it. Although the documentation correctly states that
full-accessdoes not imply root orsudo, it can still substantially increase the filesystem and network scope available to task-controlled commands, generated scripts, and imported dependencies.The issue becomes more significant when the session processes untrusted task content or installs third-party packages. Such content could use the expanded permissions for operations unrelated to the requested deliverable.
Attack Path
- A user or external task supplies instructions that appear to request a normal report, presentation, or generat ...[truncated 1237 chars]
- Remediation
View remediation
Remediation Suggestions
- Make
read-onlyorautothe default session mode. - Use a workspace-scoped write mode for file-generation tasks and restrict output to a dedicated directory.
- Enable
full-accessonly after a specific required operation fails under the constrained mode. - Require explicit user approval before expanding filesystem or network permissions.
- Disable network access when dependencies are already available or when the task does not require external resources.
- Run dependency installation and artifact generation with separate, narrowly scoped permissions.
- Document the exact resources that each workflow requires rather than recommending blanket access.
- Reset or terminate persistent sessions after task completion to reduce residual exposure.
- Make
