T09 · Insecure Skill Coding Practices
- Location
starmemo.py:319- Finding
Automatic Collection and External Transmission of Conversation Data
- Content
View full analysis
str: if not self.enable_ai: return "" headers = { "Content-Type": "application/json", "Authorization": f"Bearer {self.api_key}" } data = { "model": self.model, "messages": [{"role": "user", "content": prompt}], "temperature": self.temperature, "max_tokens": max_tokens } try: res = requests.post( self.api_endpoint, headers=headers, json=data, timeout=15 ) res.raise_for_status() return res.json()["choices"][0]["message"]["content"].strip() except Exception as e: print(f"⚠️ LLM call failed: {e}") return "" ``` ```python structured = self.ai.extract_structured(text) self.storage.save_daily( cause=structured.get("cause", text[:100]), change=structured.get("change", text[:200]), todo=structured.get("todo", ""), topic=structured.get("topic", "") ) knowledge_list = self.ai.extract_knowledge(text) ``` ### Technical Analysis The legacy input hook defaults to saving every user input when the `save` configuration field is absent. In the legacy message handler, almost every non-configuration message is passed to `LLMClient.optimize()` before be ...[truncated 2551 chars]- Remediation
View remediation
