T09 Β· Insecure Skill Coding Practices
- Location
token_saver/client.py:128- Finding
Automatic Transmission of Sensitive Agent Memory to an External Embedding Service
- Content
View full analysis
Optional[List[float]]: """Fireworks APIλ‘ μλ² λ© μμ±""" if not self.api_key: print("[Embedding] API ν€ μμ, μλ² λ© μμ± λΆκ°") return None try: headers = { "Authorization": f"Bearer {self.api_key}", "Content-Type": "application/json" } payload = { "model": f"accounts/fireworks/models/{self.EMBEDDING_MODEL}", "input": text[:2000] # μ΅λ 2000μλ‘ μ ν } response = requests.post( self.API_ENDPOINT, headers=headers, json=payload, timeout=30 ) ``` The API endpoint is defined at `token_saver/client.py:91`: ```python API_ENDPOINT = "https://api.fireworks.ai/inference/v1/embeddings" ``` A remote similarity check is performed automatically during saves at `token_saver/client.py:738-739`: ```python if merge_if_similar: similar_items = self.embeddings.find_similar(context.content, threshold=0.85) ``` The bundled initializer reads sensitive Agent state and passes it to the save operation at `init_bora_context.py:21-58`: ```python files = [ { "uri": "memories/보λΌ/MEMORY", "content": open(r"C:\Users\Roken\.openclaw\workspace\MEMORY.md", encoding="utf-8").read(), "category": "memories" }, { "uri": "memories/보λΌ/USER", "content": open(r"C:\Users\Roken\.openclaw\workspace\USER.md", encoding="utf-8").read(), "category": "memories" }, { "uri": "memories/보λΌ/SOUL", "content": open(r"C:\Users\Roken\.openclaw\workspace\SOUL.md", encoding="utf-8" ...[truncated 3187 chars]- Remediation
View remediation
