T09 · Insecure Skill Coding Practices
- Location
scripts/llm_analyzer.py:27- Finding
Configurable LLM Endpoint Can Receive Sensitive Scan Data and Bearer Credentials
- Content
View full analysis
str: """调用 LLM API""" if not self.api_key: return self._fallback_analysis(prompt) try: import requests headers = { 'Authorization': f'Bearer {self.api_key}', 'Content-Type': 'application/json' } payload = { 'model': self.model, 'messages': [ {'role': 'system', 'content': '你是一个专业的 Python 安全专家和隐私保护顾问。'}, {'role': 'user', 'content': prompt} ], 'temperature': 0.3, 'max_tokens': 2000 } response = ...[truncated 2891 chars]- Remediation
View remediation
