# Secrets in context, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** Secrets in context are credentials or private data that have been loaded into an agent's context window. OWASP's LLM02:2025 entry on leaks of sensitive information lists security credentials among the sensitive data that can affect both the model and its application context.

## Definition

Secrets in context are credentials or private data that have been loaded into an agent's context window. Anything in context can be sent to a model provider, echoed in output or passed to a tool call. Keep secrets out of files and prompts an agent reads.

## Example from a real source

**Example.** OWASP's LLM02:2025 entry on leaks of sensitive information lists security credentials among the sensitive data that can affect both the model and its application context.

## Related terms

- [EDR](/glossary/edr/): Endpoint detection and response is a security tool that continuously monitors devices, records system-level behavior, detects suspicious activity and helps respond.
- [Audit trail](/glossary/audit-trail/): An audit trail is a chronological record that lets you reconstruct the sequence of activities around an event.
- [Credential exposure](/glossary/credential-exposure/): Credential exposure is when tokens, keys or passwords become readable to an agent, a tool or an attacker.

## Where to read more

- [The Agent Surface Map](/agent-surface-map/)
- [The Action Control Matrix](/action-control-matrix/)
- [All glossary terms](/glossary/)

## Sources

- genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/: https://genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/ (read 12 Nov 2026)

Last reviewed 12 Nov 2026. Canonical: https://aiendpointsecurityranked.com/glossary/secrets-in-context/
