Skip to content

LS-AI-021: LangSmith API Key

Severity HIGH
Blast radius LLM trace and prompt data exposure
Rotate at https://smith.langchain.com/settings

If this leaks

Allows reading traces, which often contain full prompts, completions and user data.

What to do

  1. Rotate or revoke the credential at https://smith.langchain.com/settings.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

\blsv2_(?:pt|sk)_[a-f0-9]{32}_[a-f0-9]{10}\b

Suppress

On one line: # leakscan:ignore LS-AI-021. For the whole project:

disable_rules: [LS-AI-021]