Risk to secretConfidentiality

Secret repeated in an agent's response

A credential reaches the agent's context — in a tool result, a retrieved document or a message — and the model repeats it in a response, since a model does not reliably hold such values back; the caller, or whoever the response is passed to, can then use it against the system it opens. Secret-shaped values are redacted from every item of external content before the model sees it (CFG-32) and masked in every response, never less strictly (CFG-66). A secret match also raises an alert, so that the exposure is confirmed or dismissed, and a confirmed one is revoked within the hour (CFG-66; PRC-22): the value was in the model's context, and so possibly with its provider, even when the response was masked. Both screens recognise the shapes they hold and no others. The inherent impact rests on one credential reaching several tenants' data.

Before and after controls.

Without controlsHigh

Likelihood
2 · Could happen
Impact
3 · Material harm to several tenants

With controlsLow

Likelihood
1 · Unlikely without a new failure
Impact
2 · Material harm to one tenant

With controls is rated as if every control below works as designed.

How it can happen.

  1. A credential from a tool result or document is repeated

    A key in a tool output or a retrieved file is redacted on the way in; one that slips past is masked on the way out, and the match starts its confirmation and revocation.

    Covered byCFG-32CFG-66PRC-22

  2. A credential in a format no pattern holds

    A new or custom key format passes both screens and reaches the caller, and since nothing recognised it, nothing starts its revocation. Nothing covers this; the patterns are those of collector rule 2a (the Standard).

    Not yet covered by any control

Where it comes from.

This risk to secret arises from:

Also known as.

OWASP LLM Top 10 2025LLM02

See the whole picture.

Every AI risk on one matrix, before and after controls.

Want to know which of these risks apply to you?

A 30 minute call to map the risks that matter for your AI use, and the controls that bring them down.