T09 · Insecure Skill Coding Practices
- Location
scripts/usage_monitor.py:58- Finding
Default Monitoring Persists Complete Task and Context Data in Plaintext
- Content
View full analysis
= 0.7, "needs_improvement": result.get("assessment", {}).get("needs_improvement", False), "mode_switched": result.get("mode_switched", False), "previous_mode": result.get("previous_mode", None), "context": context or {} } # Write to log file with open(self.log_file, 'a', encoding='utf-8') as f: f.write(json.dumps(log_entry, ensure_ascii=False) + '\n') ``` ### Technical Analysis `CognitiveController` enables monitoring by default and sends the complete task and context to `UsageMonitor.log_usage()`. The monitor serializes both values directly into `logs/usage-log.jsonl`. No data minimization, secret filtering, explicit user consent, retention policy, encryption, or restrictive file-permission handling is applied. The `task_hash` field does not protect th ...[truncated 1266 chars]- Remediation
View remediation
