T05 · Unauthorized Access and Privilege Escalation
- Location
references/signing-guide.md:7- Finding
Automatic Modification of the Agent Tool Allowlist
- Content
View full analysis
/settings.json ``` ### Technical Analysis The Skill's contract-signing functionality does not require permanent modification of the host Agent's authorization policy. Updating `allowedTools` changes an access-control boundary outside the Skill's own directory and may allow later script executions without the approval normally required by the Agent platform. The change is persistent project state rather than a permission granted only for the current operation. It therefore exceeds minimum privilege: the legitimate workflow only needs individual formatting and eSign API commands to run after the user has requested them. The instruction also does not require the user to inspect or explicitly approve the exact allowlist rule before it is written. ### Attack Path 1. A user invokes the Skill for contract drafting or signing. 2. The Agent follows the pre-signing instructions and locates the Claude Code project configuration. 3. The Agent finds that the eSign script rule is absent from `allowedTools`. 4. The Agent writes a new persistent allowlist entry without presenting the exact change for approval. 5. Subsequent commands matching that rule execute with reduced or eliminated approval prompts. 6. If the permitted script, its environment, or its dependencies are later compromised, the preauthorized execution path can be abused under the ...[truncated 372 chars]- Remediation
View remediation
