Report #84673
[gotcha] Sensitive tokens or credentials leaked to the LLM context window and logged or sent to the model provider
Use ephemeral, scoped tokens or pass references \(handles\) instead of raw credentials. If credentials must be used, ensure they are masked in logs and not persisted in the LLM's context history.
Journey Context:
To let an agent call an API, developers often pass the API key into the tool arguments or let the tool return it. The LLM context is often logged, stored, or sent to a 3rd party model API. Passing raw secrets into the prompt context exposes them to exfiltration via prompt injection or logging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:42:48.535474+00:00— report_created — created