Skip to content

trivy/secrets false positives - #13631

Merged
ishaan-jaff merged 2 commits into
BerriAI:mainfrom
javacruft:trivy/secrets-false-positives
Aug 15, 2025
Merged

ishaan-jaff merged 2 commits into
BerriAI:mainfrom
javacruft:trivy/secrets-false-positives

Conversation

@javacruft

@javacruft javacruft commented Aug 14, 2025 •

Copy link
Copy Markdown
Contributor

Fix misc (potentially false positive) secrets detected by trivy:

20:50 $ trivy filesystem litellm
2025-08-14T20:50:36+01:00	INFO	[vuln] Vulnerability scanning is enabled
2025-08-14T20:50:36+01:00	INFO	[secret] Secret scanning is enabled
2025-08-14T20:50:36+01:00	INFO	[secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-08-14T20:50:36+01:00	INFO	[secret] Please see also https://trivy.dev/v0.65/docs/scanner/secret#recommendation for faster secret detection
2025-08-14T20:50:39+01:00	INFO	Number of language-specific files	num=0

Report Summary

┌───────────────────┬──────┬─────────────────┬─────────┐
│      Target       │ Type │ Vulnerabilities │ Secrets │
├───────────────────┼──────┼─────────────────┼─────────┤
│ proxy/_types.py   │ text │        -        │    1    │
├───────────────────┼──────┼─────────────────┼─────────┤
│ proxy/litellm.log │ text │        -        │    2    │
└───────────────────┴──────┴─────────────────┴─────────┘
Legend:
- '-': Not scanned
- '0': Clean (no security findings detected)


proxy/_types.py (secrets)

Total: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

MEDIUM: Slack (slack-web-hook)
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Slack Webhook
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 proxy/_types.py:1678
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1676       alert_to_webhook_url: Optional[Dict] = Field(
1677           None,
1678 [ bhook_url: {'budget_alerts': '*****************************************************************************'}`",
1679       )
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────



proxy/litellm.log (secrets)

Total: 2 (UNKNOWN: 0, LOW: 0, MEDIUM: 2, HIGH: 0, CRITICAL: 0)

MEDIUM: JWT (jwt-token)
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
JWT token
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 proxy/litellm.log:11
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   9   18:10:28 - LiteLLM Proxy:INFO: ui_sso.py:671 - user_defined_values for creating ui key: {'m
  10   18:10:28 - LiteLLM Proxy:INFO: utils.py:1856 - Data Inserted into Keys Table
  11 [  user_id: krrishd; jwt_token: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
  12   18:10:28 - LiteLLM Proxy:INFO: ui_sso.py:764 - Redirecting to http://localhost:4000/ui/?log
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────


MEDIUM: JWT (jwt-token)
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
JWT token
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 proxy/litellm.log:345
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 343   18:12:27 - LiteLLM Proxy:INFO: ui_sso.py:672 - user_defined_values for creating ui key: {'m
 344   18:12:27 - LiteLLM Proxy:INFO: utils.py:1856 - Data Inserted into Keys Table
 345 [  user_id: krrishd; jwt_token: ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 346   18:12:27 - LiteLLM Proxy:INFO: ui_sso.py:765 - Redirecting to http://localhost:4000/ui/?log
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Trivy detects the example as a potential secret; tweak the hostname
a bit to make it obviously not hooks.slack.com to avoid this.
Drop log file checked into the git tree; this contains strings that
trivy detects as potential secrets.
@vercel

vercel Bot commented Aug 14, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm ✅ Ready Preview Comment Aug 14, 2025 7:51pm

@CLAassistant

CLAassistant commented Aug 14, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ishaan-jaff ishaan-jaff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ishaan-jaff
ishaan-jaff merged commit 46e8e50 into BerriAI:main Aug 15, 2025
shudonglin added a commit to rayward-external/litellm that referenced this pull request Nov 26, 2026
…alse positives (#402)

Resolve alerts #62 and #63 against the same litellm.log debug log upstream
already removed as a trivy false positive (BerriAI#13631): a local SSO login JWT
that embeds that dev proxy's own generated virtual key, not an externally
reachable credential.

Alerts #83 (litellm_results.jsonl) and #84 (litellm/proxy/api_log.json)
contain real-looking third-party provider key formats and are left open,
reported for owner review and rotation rather than resolved here.

Co-authored-by: Claude <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — eb304a31 Deployed Aug 14, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants