Skip to content

False-positive cyber_policy interrupts benign long-running local repository orchestration #37473

Open

Description

@flavio-bongiovanni

Summary

Codex CLI 0.146.0 produced a false-positive cyber_policy completion while performing benign local-repository orchestration and review. The work involved source inspection, test/result verification, tmux harness coordination, and read-only status polling; it was not a cybersecurity task.

Observed

A task-complete event contained the sanitized message:

This content was flagged for possible cybersecurity risk.

The affected event reported duration_ms=887630 (about 14m47.6s). The same session family also emitted repeated task-complete cyber_policy events, including one anomalous telemetry-reported duration_ms=62954551. I am reporting these as telemetry values, not claiming they equal verified wall-clock duration.

No complete rollout, prompts, repository content, credentials, or provider keys are attached.

Environment

  • Codex CLI: 0.146.0
  • WSL2 / Linux
  • Headed interactive Codex session with tmux-managed companion harnesses
  • Long-running local repository implementation and verification workflow

Expected

Benign repository engineering/orchestration should complete normally, or the client should expose a sufficiently specific, recoverable diagnostic without discarding the final response.

Polling correlation (hypothesis only)

The event occurred in a long-running orchestration session that used periodic status checks. This is a correlation and a possible reproduction dimension, not a demonstrated cause.

Related reports

I can provide a smaller redacted event envelope privately if maintainers need it, but will not publish the full rollout.

Activity

  1. added
    bug
    CLI
    safety-check
    on Aug 7, 2026
  2. moritakaya commented on Aug 10, 2026

    @moritakaya

    Additional reproduction: Codex Desktop + remote SSH task becomes terminal systemError

    I encountered the same failure mode on 2026-08-10 during benign local-repository engineering.

    Environment

    • Originator: Codex Desktop
    • Bundled/runtime CLI: codex-cli 0.146.0
    • Model: gpt-5.6-sol, reasoning effort xhigh
    • Execution host: Linux aarch64 in an OrbStack remote-SSH project
    • Sandbox reported by the affected rollout: danger-full-access
    • Approval policy: never
    • Affected task/thread ID: 019fe41d-3c06-7951-b5df-055a8c6e246f

    Benign workload

    The task was implementing and independently reviewing a local multi-repository development-lifecycle/resource-cleanup component. It used project-local source edits, formal proofs, unit/conformance checks, Git state inspection, and read-only inventory/review agents.

    It was not a cybersecurity task. There was no penetration testing, network scanning, credential retrieval, data exfiltration, third-party target, exploit development, or provider/resource effect. The code did include defensive local-filesystem safety checks (path containment, symlink/realpath handling, object identity, fail-closed deletion permits), which may be a classifier correlation but should not make the entire task unrecoverable.

    Repeated failures

    The task failed four times with the exact message:

    This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. To get authorized for security work, join the Trusted Access for Cyber program: https://chatgpt.com/cyber

    The user prompts that triggered the failed turns were only continuation requests:

    Turn ID Prompt Reported duration
    c1a23881-2f00-420f-862a-d1d1dda4d5c1 再開して (“resume”) 3,551,159 ms
    019fe952-a0cf-7c11-8dad-6279fbb6f244 続けてください (“please continue”) 3,213,654 ms
    019fe984-90aa-7d11-882c-2398dfd2ed20 続けて (“continue”) 375,868 ms
    019fe98c-24f8-7ff3-be39-d3c759abd386 続けて (“continue”) 22,517 ms

    The reported durations sum to about 1h59m23s. After the repetitions, the task itself was exposed by the app as status.type = systemError. Normal resume was not reliable; recovery required a fresh same-directory fork containing only completed history, followed by reconstruction of the unfinished active-turn state.

    Expected behavior

    • Benign repository engineering should not be classified as high-risk cyber activity.
    • If a request-level safety check fires, it should be recoverable by rerouting or an actionable false-positive flow; it should not terminally poison the entire task.
    • The app should preserve the unfinished task state, clearly identify whether the backend stopped, and provide a stable incident/feedback ID.
    • Plain continuation prompts should not repeatedly re-trigger a terminal safety failure after substantial execution time.
    • Resume/fork recovery should not require manually reconstructing the active turn and subagent/review state.

    No raw transcript, source code, credentials, local paths, or provider data are attached publicly. A redacted event envelope can be provided privately if maintainers need it.

  3. wpsliujie23 commented on Aug 11, 2026

    @wpsliujie23

    I encountered the same false-positive pattern in Codex Desktop while doing benign, authorized local C++ application-stability debugging.

    Environment:

    • Codex Windows App: 26.727.6591.0
    • OS: Windows 10 / PowerShell 7
    • Model: gpt-5.6-sol, ultra reasoning
    • Thread: 019fef77-e078-7912-ae6e-f533bc5380b9
    • Affected turn: 019fef9a-8deb-7a70-aa30-e8157a4c5111
    • Failure time: 2026-08-11 07:34:18 UTC
    • Error: codex_error_info: "cyber_policy"

    The task was diagnosing a local spreadsheet application's UI hang using local crash logs, thread snapshots, Git history, and C++ source inspection. It did not request or perform security testing, scanning, exploitation, credential access, persistence, or access to any external target.

    Measured details:

    • The turn ran for about 39 minutes.
    • 322 tool calls were made, all local/read-only source and log inspection such as rg, Get-Content, and git log/show.
    • A scan of tool-call inputs found no curl, wget, ssh, scp, nmap, hdc, adb, URL, socket, payload, credential, token, or password command.
    • The active compacted context reached approximately 198,947 tokens.
    • The final successful action merely read lines 155-210 of a local C++ rendering source file. The next sampling request was rejected with cyber_policy, and no final answer was preserved.

    This strongly suggests cumulative-context classification drift: dense kernel/thread logs, process identifiers, native stacks, memory-allocation failures, and low-level C++ rendering code appear to have made an ordinary debugging thread look security-related.

    Impact:

    • Roughly 39 minutes of analysis ended without a final response.
    • The warning suggests Trusted Access even though the work was not cybersecurity work.
    • The Desktop app provided no incident ID or one-click false-positive reporting path.

    Requested improvements:

    1. Classify long-running local crash/stability debugging by intent, not low-level vocabulary density.
    2. Run safety review earlier, before a long turn consumes substantial time.
    3. Preserve completed analysis or a recoverable draft when a later sampling request is blocked.
    4. Show a stable incident/request ID and add a one-click “Report false positive” action.
    5. Avoid directing non-security debugging users to Trusted Access.

    No proprietary source, raw logs, credentials, or local paths are attached publicly. I can provide a narrowly redacted event envelope privately if maintainers need it.

  4. przadka commented on Sep 1, 2026

    @przadka

    Another Linux CLI reproduction, this time on 0.149.0 during an exact-head review of benign local hook input validation.

    The seat had run focused local tests and a non-interactive repository gate. At 2026-09-01T07:23:12.688Z, the turn ended with:

    codex_error_info: cyber_policy
    duration_ms: 2557843
    

    The TUI changed the durable goal to stalled. No repository state was lost, and a later manual message could start another turn, but automatic goal continuation stopped until an explicit resume.

    The workload was local defensive input validation. It did not involve scanning, credential access, exploitation, persistence or an external target. I am not attaching the rollout because it contains unrelated repository context.

    Expected: benign local code review should not terminate as cyber_policy; if a turn is filtered, the client should preserve a recoverable goal continuation path instead of changing the goal to stalled.

  5. blacklights7 commented on Oct 10, 2026

    @blacklights7

    Additional occurrence during authorized local development, with a thread reference for investigation.

    • Thread ID: 01a0f325-a291-7ac1-8be6-2ca354d402b6
    • Current installed CLI: codex-cli 0.162.1 (checked after the interruptions; the version of the already-running process at each failure was not independently established).
    • Configured primary model: gpt-6.1-sol, reasoning effort high.
    • Environment: Ubuntu 24.04.3 LTS on Windows/WSL2, kernel 6.18.33.2-microsoft-standard-WSL2, accessed from an Android phone using ConnectBot/SSH; local tmux-managed qualification and review processes.

    The work implements coordination and automatic resumption for my own coding conversations on my laptop. It includes resource reservations, owner approvals, task-completion accounting, and local regression tests. Some qualification checks exercise accounting and approval failure paths within this local application.

    Two recorded task_complete events ended with codex_error_info: "cyber_policy" and last_agent_message: null:

    • 2026-10-10T02:19:08.590Z (October 9, 10:19 p.m. EDT)
    • 2026-10-10T03:22:08.563Z (October 9, 11:22 p.m. EDT)

    The recorded error message was:

    This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. If you’re doing authorized security work that requires more cyber permissive safeguards, apply for Daybreak access via https://platform.openai.com/settings/organization/status-and-access before retrying.
    

    These interruptions stop an ongoing local implementation without identifying the content that triggered the restriction. I suspect a false positive, but the exact trigger and classification correctness are unverified.

    The /feedback notice directed me to the issue tracker and to reference this thread. A local feedback diagnostic at 2026-10-10T04:09:29.450202Z also reported feedback attachment skipped: decoded size limit exceeded, with bytes_read=209715201 and max_bytes=209715200 (200 MiB). Please do not assume the feedback upload included the full thread attachment. This report provides the thread ID and selected error metadata for correlation.

    Please investigate the two interrupted requests and clarify whether this authorized local workflow requires approved Daybreak access or whether the classification was applied incorrectly. Actionable guidance on the supported way to continue would help.

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

    CLIbugsafety-check

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions