2026-11-26 15:37 UTC

Codex issue reports Memories sending local-provider chat content to OpenAI

state: seedheat: highuncertainty: mediumrelevance: highcodex-security chat-data-exfiltration agent-memory-privacyOpenAIjagoff2

What is this?

OpenAI Codex GitHub issue #41711, opened by user jagoff2 on Aug. 30, 2026, reports a cross-provider data-flow problem in Codex Memories. The author says a controlled test using Codex Windows binary 0.150.0-alpha.12.2 sent retained conversation and tool content from a synthetic rollout labeled as belonging to a non-OpenAI provider to an OpenAI endpoint during a later OpenAI-backed memory session. The author reports that the returned memory reproduced unique synthetic canaries. The issue also points to source code where memory candidate selection is not provider-bound and requests are sent through the triggering session’s provider. A commenter says their separate source inspection found the same structural crossover and notes that derived memory records do not preserve source and processing provider provenance. These are issue-reporter and commenter findings, not an OpenAI incident statement; the issue is open, and the supplied sources show no official response. The reporter’s separate allegation that this data informed account enforcement is not established by the supplied evidence.

Why it matters

If confirmed in affected use, this would mean a user’s choice to route a Codex conversation through a local or third-party provider may not keep its content within that provider’s boundary: a later OpenAI-backed memory job could transmit retained messages, tool calls, and outputs to OpenAI. That matters for privacy, user expectations, and control over where agent histories are processed. It also highlights a broader design issue for AI agents: persistent memory can move data across sessions and provider boundaries, so provider provenance and destination-specific consent matter. The controlled test used synthetic data; the scope of real-world exposure, server-side handling, and any moderation use remain unknown.

Current assessment

New evidence in the supplied sources is a detailed GitHub issue report, echoed by a search result and a separate commenter’s source inspection. The author reports capturing a Codex 0.150.0-alpha.12.2 request to chatgpt.com/backend-api/codex/responses: five retained items from a synthetic non-OpenAI rollout appeared in a memory request made with an OpenAI-backed session, and the response reproduced unique synthetic canaries. The report says analytics were disabled and OpenTelemetry exporters set to none, distinguishing this model-inference request from those telemetry channels. It also says the request included store=false and prompt_cache_retention=24h; these are client request fields and do not, by themselves, establish server retention or deletion practices. The author’s cited source path selects eligible rollouts without a provider filter, serializes retained conversation/tool material, and dispatches through the active session’s provider. The commenter independently says current source still permits that crossover and flags a repair complication: stage-one derived memory rows lack source-provider and processing-provider provenance. This supports tracking both future routing fixes and treatment of already-derived memories. The issue remains open in the supplied record, with no maintainer assignment or official response shown. The test supports that the described path can transmit and process synthetic content in the tested setup; it does not establish affected-user counts, the scope across released versions, whether ordinary users’ real content crossed providers, server retention or secondary use, or the reporter’s claim that account enforcement relied on such content. Those allegations require separate evidence. Key follow-up evidence would include an OpenAI response, affected-version scope, a provider-isolation fix and tests, disclosure and consent changes, and an account of handling and provenance for existing derived memories.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 2137h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

08-29 14:00⭐ origin echo-reconstructedThe issue author reports a controlled capture in Codex 0.150.0-alpha.12.2 where Memories sent retained content from a non-OpenAI-provider ro
jagoff2 on github (echo) · attributed from hn.story.50449631
—
11-11 04:04first on hacker news · published · +1766.1hPrivate Chat Thread Exfiltration
gmays
—
11-11 04:04amplified on hacker news 👑hn.story.50449631
gmays
peak 2 · 0 comments · 103% of case engagement
08-30 19:33our radar first saw it · +29.6hdiscovery anchor: hn.story.50449631—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnPrivate Chat Thread Exfiltration
Retrieved article excerpt

Open article · Retrieved 2026-11-11T04:21:14.953460+00:00

## Repository navigation



# PRIVATE CHAT THREAD EXFILTRATION: Memories exfiltrates local-provider chat content to OpenAI without notice #41711

[New issue](https://github.com/login?return_to=https://github.com/openai/codex/issues/41711)

Copy link

[New issue](https://github.com/login?return_to=https://github.com/openai/codex/issues/41711)

Copy link

Open

Open

[PRIVATE CHAT THREAD EXFILTRATION: Memories exfiltrates local-provider chat content to OpenAI without notice](https://github.com/openai/codex/issues/41711#top)#41711

Copy link

Labels

[appIssues related to the Codex desktop app](https://github.com/openai/codex/issues?q=state%3Aopen%20label%3A%22app%22)Issues related to the Codex desktop app[bugSomething isn't working](https://github.com/openai/codex/issues?q=state%3Aopen%20label%3A%22bug%22)Something isn't working[custom-modelIssues related to custom model providers (including local models)](https://github.com/openai/codex/issues?q=state%3Aopen%20label%3A%22custom-model%22)Issues related to custom model providers (including local models)[memory](https://github.com/openai/codex/issues?q=state%3Aopen%20label%3A%22memory%22)

## Description

[@jagoff2](https://github.com/jagoff2)

[jagoff2](https://github.com/jagoff2)

opened [on Aug 30, 2026](https://github.com/openai/codex/issues/41711#issue-5293606823)

Issue body actions

Summary:

Codex's memory writer can select an eligible prior rollout without restricting the candidate to the provider that created it. It then serializes a filtered, model-visible transcript of that rollout and sends it using the model provider active in the session that triggered memory generation.

I confirmed the resulting provider crossover in a controlled capture using the stock Windows Codex binary `0.150.0-alpha.12.2`. An eligible synthetic source rollout labeled with a non-OpenAI provider was later processed by an OpenAI-backed memory session. Codex sent five retained source items to `chatgpt.com/backend-api/codex/responses`, and OpenAI returned a generated memory that reproduced multiple unique source canaries.

This request occurred with analytics disabled and every OpenTelemetry exporter set to `none`. This is model-inference traffic, not analytics or OpenTelemetry traffic.

This investigation began after I received an OpenAI account warning for “cyber abuse.” **No OpenAI-directed chat contained conduct that could account for that warning. The relevant activity existed only in chats deliberately routed through my private local provider.**

## Based on that fact and the captured Memories channel, it is my strong evidence-backed belief that OpenAI performed account-based policing using chat content it had no right to receive.

I characterize this as data exfiltration in the ordinary meaning of that term: **private data was transferred out of the provider boundary I selected and delivered to a remote party without my informed authorization.** Whether the transfer resulted from an intentional design or a bug does not change what crossed the boundary.

## Tested environment

- Windows Codex desktop binary: `0.150.0-alpha.12.2`
- Binary SHA-256: `34E9CFE7D5BBCEC306FE6AB3FD502A713A7A1F0FB644C11AD2990FC80599FD4F`
- Matching public source tag: [`rust-v0.150.0-alpha.12.2`](https://github.com/openai/codex/tree/rust-v0.150.0-alpha.12.2)
- Matching source commit: `a9802304f60ab14c0b07e3ee0db9a9c105ab0cb3`
- Isolated test configuration: memories enabled, `[analytics] enabled = false`, all OpenTelemetry exporters `none`
- Source fixture provider label: `synthetic_source`
- Destination provider: OpenAI account-backed Codex Responses endpoint

## What the controlled capture directly proves

Codex emitted a 38,095-byte WebSocket `response.create` frame to:

`chatgpt.com/backend-api/codex/responses`

The captured request had:

- `request_kind = "memory"`
- `store = false`
- `prompt_cache_retention = "24h"`
- three top-level input items: an additional-tools developer item, a memory-instructions developer message, and a user message containing the serialized source conversation
- 31,000 characters of memory instructions
- a 3,817-byte user wrapper containing 3,092 bytes of rendered source conversation

**The source rollout contained six model-visible response items. Five were retained and appeared as exact structural matches inside the memory request:**

1. **The complete environment-context user message, including working-directory, workspace, shell, date, timezone, and filesystem-policy fields.**
2. **The complete ordinary user message.**
3. **The complete tool-call name and arguments.**
4. **The complete tool output/error, including runtime paths and policy-rejection text.**
5. **The complete synthetic assistant reply.**

The source developer message was excluded. Session, turn, event, and world-state records were also excluded. The source rollout path and working directory were sent outside the serialized redaction boundary.

OpenAI acknowledged the same WebSocket flow and returned `response.created` followed by `response.completed`. The completion reported model `gpt-5.6-luna` and usage of 7,337 input tokens, 983 output tokens, and 8,320 total tokens. The generated 3,405-character memory reproduced the unique user, assistant, tool, private-text, and synthetic-email canaries multiple times. That content-dependent response proves remote processing of the supplied source material, not merely an attempted connection.

The `store = false` and `prompt_cache_retention = "24h"` fields are values present in the client request.

## Why the provider crossover exists in current source

The current tagged source has three relevant stages:

1. **Candidate selection is not provider-bound.** The memory job calls the rollout selector with `model_providers: None`, while applying other eligibility rules such as memory mode, age, idle state, source type, and claim state. See [`state/src/runtime/memories.rs` lines 218-234](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/state/src/runtime/memories.rs#L218-L234).
2. **The worker uses the triggering session's active provider.** The memory runtime creates its provider from `config.model_provider`, including the `ModelClient` that performs the request. See [`memories/write/src/runtime.rs` lines 112-133](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/memories/write/src/runtime.rs#L112-L133) and [lines 241-267](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/memories/write/src/runtime.rs#L241-L267).
3. **The selected rollout is serialized into a new model request.** Phase 1 loads the stored rollout, filters and serializes retained items, places them in a new user message, and sends that message through the memory client. See [`memories/write/src/phase1.rs` lines 282-322](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/memories/write/src/phase1.rs#L282-L322).

**The direct consequence is that a genuine eligible local-provider rollout can be selected by a later OpenAI-backed memory session and routed to OpenAI unless another eligibility condition prevents that particular rollout from being claimed.**

## How much of a prior thread can be sent

The retained classes include ordinary user and assistant messages, agent messages, local shell calls, function calls and outputs, tool-search calls and outputs, custom-tool calls and outputs, web-search calls, and converted inter-agent communications. The filter excludes source developer messages, reasoning records, compaction records, some generated-media/tool declarations, and bookkeeping records. See [`phase1.rs` lines 404-476](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/memories/write/src/phase1.rs#L404-L476) and [`rollout/src/policy.rs` lines 64-85](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/rollout/src/policy.rs#L64-L85).

Long inputs are middle-truncated at 70% of the effective model context window, with a 150,000-token fallback. The beginning and end are preserved. See [`prompts.rs` lines 98-126](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/memories/write/src/prompts.rs#L98-L126) and [`lib.rs` lines 90-99](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/memories/write/src/lib.rs#L90-L99).

**For an ordinary short thread below that limit, this can amount to essentially the entire user/assistant conversation and its tool activity, including tool arguments, tool results, errors, environment context, and local paths.**

## The pre-send redaction is not a privacy scrubber

The serializer calls `redact_secrets`, but the implemented expressions cover a narrow set of recognizable credential patterns: conventional `sk-` keys, AWS `AKIA` identifiers, sufficiently long bearer tokens, and values assigned to names such as `api_key`, `token`, `secret`, or `password`. See [`secrets/src/sanitizer.rs` lines 4-21](https://github.com/openai/codex/blob/rust-v0.150.0-alpha.12.2/codex-rs/secrets/src/sanitizer.rs#L4-L21).

In a separate loopback test, that filter removed a conventional fake OpenAI-key shape, a bearer-token shape, and a named `api_key` assignment. It preserved an atypical underscore-containing key, a cookie-like value, an email address, a phone number, a private-key header, proprietary/private prose, a Windows path, and the ordinary user/assistant/tool canaries.

That is a useful narrow secret-pattern filter. It is not a general confidentiality, personal-data, privileged-material, or filesystem-identity scrubber.

## Analytics and OpenTelemetry controls do not stop this path

The controlled request still occurred with analytics disabled and all OpenTelemetry exporters set to `none`. Those settings govern different subsystems. The current decisive global control for this path is the memory feature gate, `[features] memories = false`.

**There is no separate control that preserves Memories while prohibiting cross-provider transmission. A user must fully deactivate Memories to kill this channel.**

**Users should not be expected to infer that disabling analytics and telemetry leaves a separate background model request capable of transmitting prior provider-originated conversation content.**

## Minimal controlled reproduction

1. Use an isolated Codex home with memories enabled, analytics disabled, and all OpenTelemetry exporters disabled.
2. Add an eligible prior rollout whose stored provider label is non-OpenAI and whose retained messages contain unique synthetic canaries.
3. Allow the rollout to satisfy the documented memory eligibility and idle conditions.
4. Trigger memory processing from an OpenAI-backed Codex session.
5. Capture the operator's own Codex traffic through a trusted local TLS inspection proxy.
6. Inspect the outgoing WebSocket `response.create` frame with `request_kind = "memory"` and compare the embedded items against the source rollout.
7. Confirm that the server completion derives content from the unique canaries.

No real private prompt is required to reproduce this safely.

## Expected behavior

- A rollout created under a local or third-party provider must not be sent to a different provider without explicit, destination-specific user consent.
- Memory generation should use the source rollout's provider, or skip the rollout when that provider is unavailable.
- Cross-provider memory processing, if retained as an option, should be opt-in and state the destination and content classes before transmission.
- The UI should expose an auditable receipt showing which source task was processed, which destination provider received it, and when.
- Documentation should state plainly that prior provider-originated conversation and tool content may be sent to a different provider, if that behavior is intended.
- Automated tests should assert provider isolation at candidate selection and send time.
- Memory-derived content obtained across a provider boundary must not be used for ac
gmays20
🟧 echo.github ⭐The issue author reports a controlled capture in Codex 0.150.0-alpha.12.2 where Memories sent retained content from a non-OpenAI-provider rojagoff2——

Interpretation history

Decision trace