Skip to content

LS-AI-008: Pinecone API Key

Severity HIGH
Blast radius Vector database data exposure
Rotate at https://app.pinecone.io/
--verify GET https://api.pinecone.io/indexes

If this leaks

Grants access to the Pinecone account's vector indexes, allowing reading, writing, or deleting embedded data, which may include sensitive document content.

What to do

  1. Rotate or revoke the credential at https://app.pinecone.io/.
  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

(?i)pinecone(?:.{0,20})?['\"]([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})['\"]

Suppress

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

disable_rules: [LS-AI-008]