Skip to content

Avoid false URL-launch detections in literal PowerShell commands - #54076

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2878aa86bc36b44c60230cc1de3430922b28b81a
Oct 14, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2878aa86bc36b44c60230cc1de3430922b28b81a

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Avoid false URL-launch detections in literal PowerShell commands

Why

PowerShell safety checks can mistake a literal start argument for a URL-launch command, or combine a process launch with a URL from a separate command.

What changed

Classify independently parsed literal PowerShell commands separately so commands such as Write-Output start 'https://example.com' do not trigger URL-launch checks. Retain conservative checks for pipelines, script state, executable strings, and shell or terminal wrappers, while continuing to detect actual URL launches and destructive commands.

Testing

Add policy regression coverage for literal arguments, separate commands, URL launches, wrappers, and destructive commands, plus a Windows integration test covering execution and policy rejection.

)

## Why

PowerShell safety checks can mistake a literal `start` argument for a URL-launch command, or combine a process launch with a URL from a separate command.

## What changed

Classify independently parsed literal PowerShell commands separately so commands such as `Write-Output start 'https://example.com'` do not trigger URL-launch checks. Retain conservative checks for pipelines, script state, executable strings, and shell or terminal wrappers, while continuing to detect actual URL launches and destructive commands.

## Testing

Add policy regression coverage for literal arguments, separate commands, URL launches, wrappers, and destructive commands, plus a Windows integration test covering execution and policy rejection.

GitOrigin-RevId: 2878aa86bc36b44c60230cc1de3430922b28b81a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2878aa86bc36b44c60230cc1de3430922b28b81a branch from 1bb8f56 to 80b88a7 Compare October 14, 2026 19:48
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-14T19:48:04.502585Z 1bb8f56 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 80b88a7 into main Oct 14, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2878aa86bc36b44c60230cc1de3430922b28b81a branch October 14, 2026 19:48
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 14, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 80b88a70 Deployed Oct 14, 2026 by JAY198503 via Translate non-English issue #20150
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants