T09 · Insecure Skill Coding Practices
- Location
scripts/llm_client.py:446- Finding
Provider credentials and RAG content can be transmitted to an arbitrary or insecure endpoint
- Content
View full analysis
= self._circuit_cooldown_seconds: logger.info("熔断器进入 half-open 状态,尝试恢复") self._circuit_state = "half_open" else: logger.warning(f"熔断器 open,跳过调用(冷却剩余 {self._circuit_cooldown_seconds - (time.time() - self._circuit_last_failure_time):.0f}s)") return "LLM 调用失败:熔断器 open" response = self._requests.post( self.api_url, headers=headers, json=data, timeout=30 ) ``` The embedding client has the same destination-validation weakness: ```python self.api_key = api_key or os.geten ...[truncated 3468 chars]- Remediation
View remediation
