T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:27- Finding
Excessive Agent Tool Permissions Violate Least Privilege
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 27–30 and 312–314
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeThe document also advertises these capabilities at lines 312–314:
markdown - **File processing**: Supports reading, parsing, and writing multiple file formats - **API integration**: Integrates external services through standardized interfaces and processes responses - **Command execution**: Executes system commands in a secure sandbox and collects resultsTechnical Analysis
The declared workflow validates body-scan inputs, obtains user consent, submits a video through
anthrovision_bridge_submit_scan, polls it throughanthrovision_bridge_check_scan, and formats the resulting measurements. General-purpose filesystem read/write access and system command execution are not required for those operations.Requesting
read,write, and especiallyexectherefore violates least privilege and unnecessarily enlarges the Skill's security boundary. Textual guidance stating that commands should run in a sandbox does not itself enforce isolation, command allowlisting, filesystem boundaries, or argument validation.No command that directly exploits these permissions is included in the reviewed file. The risk arises from granting unrelated ambient capabilities that could be invoked if the agent is influenced by malicious user input, compromised external content, unsafe bridge output, or a subsequent modification of the Skill instructions.
Attack Path
- An agent platform loads the Skill and grants the declared
read,write, andexectools. - The agent receives attacker-controlled conversation content or processes untrusted content associated with a scan request.
- That content induces the agent to invoke one of the broadly authorized tools outside the legitimate body-scan workflow.
- The
read...[truncated 1217 chars]
- An agent platform loads the Skill and grants the declared
- Remediation
View remediation
Remediation Suggestions
-
Remove the generic tool declaration:
yaml tools: - read - exec - write -
Grant only the workflow-specific bridge operations:
anthrovision_bridge_submit_scananthrovision_bridge_check_scan
-
If remote video retrieval is required, expose a narrowly scoped fetch operation rather than shell execution. Enforce:
- HTTPS only.
- Public destination addresses only.
- DNS resolution and redirect revalidation.
- Blocking of loopback, link-local, private, metadata-service, and reserved address ranges.
- File-size, media-type, redirect-count, and timeout limits.
-
Enforce restrictions at the agent-platform or sandbox layer rather than relying on natural-language instructions.
-
If any command execution is genuinely required in a future version, use a fixed command allowlist, structured arguments without shell interpolation, a dedicated low-privilege identity, a read-only filesystem, an empty or minimized environment, disabled outbound networking, and strict CPU, memory, and execution-time limits.
-
Remove generic claims of file processing and command execution from lines 312–314 unless those capabilities are necessary and backed by enforceable controls.
-
Add automated policy tests that fail packaging or deployment when undeclared or unnecessary tools are requested.
-
