T05 · Unauthorized Access and Privilege Escalation
- Location
core.mjs:634- Finding
Remote Messages Execute Claude Code with Permission Checks Disabled
- Content
View full analysis
["--add-dir", d]), ]; const proc = spawn(this.claudePath, args, { cwd: this.claudeCwd, env: { ...process.env }, stdio: ["pipe", "pipe", "pipe"], }); ``` ### Technical Analysis Messages originating from internet-facing chat platforms are passed directly to Claude Code while the `--dangerously-skip-permissions` option is enabled. This option suppresses Claude Code's normal approval boundary for filesystem, shell, and other sensitive tool operations. The child process also inherits the complete service environment and runs from a configurable working directory. Consequently, the process may have access to platform credentials, license keys, source code, SSH material, cloud credentials, and every file or command available to the operating-system account running the bridge. This exceeds minimum privilege even though remote file and command operations are advertised features. Such functionality should be restricted to an authorized workspace and a controlled tool policy rather than granting every remote prompt unrestricted access to the service account. ### Attack Path 1. An attacker obtains the ability to send a message to a confi ...[truncated 1215 chars]- Remediation
View remediation
