Skip to content

exec_command denied before process creation with "blocked by policy" #60191

Open

Description

@mkmnet

On 2026-11-04 at 20:14:42 UTC, exec_command rejected a validation request during CreateProcess with:

rejected: blocked by policy

No process, test or PostgreSQL connection was started. No specific policy identifier or reason was provided.

Platform: Windows x64.
Original executor version: not captured.
Currently installed CLI: 0.164.0 (collected later).

Uploaded thread: 01a16b5e-1996-7bc3-a079-3872b61cf495

Please identify which layer or rule denied the request, explain the reason, and indicate the supported procedure for requesting review.

Activity

  1. added
    bug
    CLI
    windows-os
    sandbox
    tool-calls
    on Nov 8, 2026
  2. secheverrianogal-beep commented on Nov 8, 2026

    @secheverrianogal-beep

    Proposed remediation (design proposal; not implemented)

    Return a structured, privacy-safe denial result with the policy layer/category, a stable decision identifier, the rejected operation class, and a supported next step. Distinguish policy denial from missing approval, sandbox provisioning failure, OS access denial, and executable-not-found. The process must remain unstarted when policy denies the request.

    Offer a review/approval route only where the applicable policy supports one; do not convert this into a generic bypass or weaken the policy. Regression coverage should assert that a denied command creates no process and that diagnostics remain actionable without exposing sensitive command arguments or local paths.

    I found several overlapping reports in the repository search (#58234, #59781, #58377, among others). This proposal is intended to be transferred to the canonical report if maintainers consider these duplicates.

    Consolidated proposal index: #60227 (section 5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions