Llama API Key

ID

llama_key

Severity

high

Vendor

Meta

Family

API Token

Description

Llama provides APIs for accessing various AI models for tasks such as text generation, language translation, and more.

Security

Any hardcoded Llama Key is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise your Llama account.

Examples

llama_api_key=LL-onAV48KEnM7ULVw4aAqp4jKoLB5hToLLJJZS7i3W9FXCY0X8QTiTtMO5ANlYhPW7

Mitigation / Fix

  1. Remove the API Key from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). Go to your settings page in the Gemini dashboard to revoke the key.

  3. If under a git repository, you may remove unwanted files from the repository history using tools like git filter-repo or BFG Repo-Cleaner. You may follow the procedure listed here for GitHub.

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.