Repository navigation
Description
Windows command-safety treats a PowerShell parameter value as a URL launcher
This report contains no session transcripts, runtime logs, screenshots, attachments, business URLs, account identifiers, credentials or local user paths.
Runtime and observed failure
Installed runtime: Codex CLI 0.162.0-alpha.17.2, Windows, approval policy never, approvals reviewer user, sandbox danger-full-access.
A metadata-only PowerShell helper was rejected before process creation with blocked by policy. Its -Stage parameter had the literal value Start, and a separate -TargetUrl parameter held an HTTPS URL. Browser navigation would have been a separate native tool operation after admission; the helper itself does not launch the URL.
The following is descriptive token data, not an instruction to execute a command:
["pwsh", "-File", "<metadata-only-helper.ps1>", "-Stage", "Start", "-TargetUrl", "https://example.invalid/catalog"]Matching-version static finding
Static inspection of published tag rust-v0.162.0-alpha.17.2 shows that the Windows URL-launch predicate combines any HTTP(S) word with any launch-marker word. The argument value Start therefore matches this predicate.
- Classifier: https://github.com/openai/codex/blob/rust-v0.162.0-alpha.17.2/codex-rs/shell-command/src/command_safety/windows_dangerous_commands.rs#L34
- Policy decision: https://github.com/openai/codex/blob/rust-v0.162.0-alpha.17.2/codex-rs/core/src/exec_policy.rs#L759
This matches the observed refusal, but is not an internal trace of the running binary's matched rule. The exact compilation commit of the installed binary has not been separately established.
Requested supported resolution
Please review this suspected false positive and distinguish a PowerShell command invocation from an argument value without weakening detection of actual URL-launch commands. Keep real Start-Process, start, saps, Invoke-Item and ii URL launches under the intended policy. Paired regression cases should cover metadata-only argument values and actual URL-launch commands, including the never decision path.
Please provide a supported product fix or a documented review path for this specific built-in refusal. This is not a request to change the account's policy, add an allow rule, bypass safeguards or approve an unrelated action.
An exact-version experimental schema contains thread/approveGuardianDeniedAction, requiring a serialized GuardianAssessmentEvent. No genuine such event was provided for this never/user pre-exec refusal; that method was not invoked and no event was fabricated.
No rejected command or equivalent was retried. No rules, runtime policy, Desktop lifecycle, browser sessions or credentials were changed. No logs or sessions are attached to this report.
Activity
github-actions commentedon Oct 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
CreateProcess: blocked by policy#53977Powered by Codex Action
clva01 commentedon Nov 5, 2026
Confirmed remaining Windows PowerShell parameter-value false positive after #54076
Related merged partial fix: #54076
Observed environment
Minimal observed reproduction
This function only writes a parameter to stdout. The URL is printed as text:
there is no network call, process launch, service action, or filesystem mutation.
Actual result: PowerShell executes successfully, exit code 0, prints the URL and Ready.
Change only Ready to Start in the final line:
Actual result: rejected before PowerShell process creation:
CreateProcess ... rejected: blocked by policy
Do not execute a URL launch or a lifecycle action to test this report.
The paired observations above were obtained using stdout-only commands.
Version-specific source evidence
The contents of windows_dangerous_commands.rs were retrieved for:
All three retrieved files are byte-for-byte equal as text (24,811 characters).
Thus the latest stable source does not contain a further fix for this case.
This comparison is not a claim that an updated Desktop binary was installed or tested.
Relevant source:
https://github.com/openai/codex/blob/rust-v0.166.0-alpha.6/codex-rs/shell-command/src/command_safety/windows_dangerous_commands.rs
https://github.com/openai/codex/blob/rust-v0.166.0-alpha.6/codex-rs/core/src/exec_policy.rs
The literal-command fast path added by #54076 deliberately excludes pipelines
and leaves unsupported script forms opaque. The opaque URL-launch predicate
combines a URL with a Start-like word anywhere in the flattened words.
The exec-policy fallback turns the resulting dangerous-command match into
Forbidden under approval mode never.
The controlled pair and matching-version source establish a reproducible
false positive. The internal matched-rule trace was not exposed by the binary.
Requested product correction
Please correct the shared PowerShell command/argument analysis, rather than
adding a project-specific allow rule, a localhost exception, or disabling the
URL-launch/forced-delete safeguards.
Keep actual command identity, literal argument identity, and executable-string/
wrapper context in one structured parsed representation. A literal Start
parameter or ordinary output text must not become evidence of a URL launch.
Dynamic execution and genuine URL-launch or destructive actions must retain
their appropriate policy decisions. Unsupported dynamic cases need an explicit,
actionable diagnostic, not an unexplained aggregate blocked-by-policy result.
Acceptance for a fix
operation with literal -Operation Start is not classified as a GUI URL launch.
remain covered by security regressions.
the same regression inputs; classifier-only tests are insufficient.
exemption, custom runtime binary, or local security downgrade is required.
No operational logs, application data, account identifiers, credentials,
screenshots, or private worktree paths are included in this report.
nyxmoon-oss commentedon Nov 12, 2026
I can confirm a single-command case on Windows Desktop with PowerShell 7.6.9. Bundled Codex versions
0.167.0-alpha.3.2and0.167.0-alpha.4.1both rejected the same local application invocation before process creation underneveranddanger-full-access. It called a fixed, quoted path to Python. The application received a subcommand namedstartand an HTTPS source link inside a text argument.PowerShell parsed the original input as one command with zero syntax errors. An offline check with the PowerShell grammar pinned by the second release (0.26.4) produced two named nodes that its literal-command reader does not accept,
command_name_exprandcommand_invokation_operator. This accounts for why the existing literal-command fix can miss this case. The live refusal exposed no internal rule identifier. The parser, URL-launch classifier and core execution-policy source files have identical Git blob IDs in0.167.0-alpha.4.1and the published0.167.2.Could a maintainer confirm a supported correction or a native review path for this case? The expected regression test would allow a fixed local application to receive the link as data and would retain the existing protection for a command that actually opens a link.