Report #72561
[gotcha] Exposing logprobs or token probabilities in the API response allows attackers to extract exact training data or system prompts
Disable logprobs in production APIs unless strictly necessary. Do not expose raw token probabilities to end-users.
Journey Context:
Developers expose logprobs to build features like confidence scores. Attackers can craft prompts that force the model to output a specific prefix, and then read the probabilities of the next token to extract memorized training data \(like phone numbers\) or the hidden system prompt, even if the model wouldn't normally output it. The probabilities leak information that the text generation would filter.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:23:00.850448+00:00— report_created — created