Oathe Security Badge

oathe / scan / reports / caution

Is reflect-learn safe?

Use with caution. reflect-learn is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave reflect-learn a trust score of 62/100 with 9 findings (2 high). Report updated

https://clawhub.ai/stevengonsalvez/reflect-learn

62
CAUTION

Is reflect-learn safe to install?

The reflect-learn skill is a meta-cognitive tool that permanently modifies agent system files (CLAUDE.md, agent definitions) based on conversation analysis. While it includes human-in-the-loop approval and presents itself as a learning tool, its core mechanism — writing to system instruction files and creating new skills — is functionally equivalent to persistent prompt injection. The unnecessary Bash tool permission and cross-skill poisoning vectors elevate the risk. No malicious intent detected, but the attack surface is significant.

What security issues were found in reflect-learn?

Category Scores

Prompt Injection 45/100 · 30%
Data Exfiltration 80/100 · 25%
Code Execution 70/100 · 20%
Clone Behavior 90/100 · 10%
Canary Integrity 100/100 · 10%
Behavioral Reasoning 35/100 · 5%

Findings (9)

HIGH Persistent agent behavior modification via system file writes -35 ▶

The skill's core function is to modify CLAUDE.md and agent definition files under ~/.claude/agents/. These files serve as system-level instructions that govern agent behavior across all future sessions. While the skill frames this as 'learning from corrections', the mechanism is identical to persistent prompt injection — permanently altering how the agent interprets instructions. The agent_mappings.md file provides a detailed roadmap of exactly which files to target and which sections to modify.

Evidence: agent_mappings.md: 'Global Instructions: ~/.claude/CLAUDE.md', 'Global Agents: ~/.claude/agents/universal/backend-developer.md', etc. SKILL.md: 'permanently encoding them into agent definitions'

HIGH Excessive tool permissions — Bash access unjustified -20 ▶

The skill requests access to the Bash tool in its allowed-tools list. A reflection/learning skill that analyzes conversations and edits text files has no legitimate need for shell command execution. Bash access enables arbitrary command execution, file manipulation beyond Edit/Write scope, and potential data exfiltration. This permission should be removed.

Evidence: SKILL.md frontmatter: 'allowed-tools: - Read - Write - Edit - Grep - Glob - Bash'

MEDIUM Self-replicating skill creation capability -15 ▶

The skill can create new skill files at .claude/skills/{name}/SKILL.md. This means the reflection skill can spawn additional skills that will be loaded into the agent's system prompt in future sessions. A malicious actor could craft conversation signals that cause the reflect skill to generate a harmful skill that persists independently.

Evidence: SKILL.md Step 3: 'Some learnings should become new skills rather than agent updates' — Output: '.claude/skills/{name}/SKILL.md - New skills'

MEDIUM Cross-skill poisoning vector -30 ▶

If another skill outputs text containing correction signal patterns (e.g., 'always', 'never', 'the rule is'), the reflect skill could interpret these as user corrections and propose encoding them as permanent rules. This creates a cross-skill attack vector where a malicious skill can inject persistent instructions through the reflect skill's signal detection.

Evidence: signal_patterns.md: Regex patterns match common words like 'always', 'never', 'must', 'correct' — these could appear in any skill's output

MEDIUM Auto-reflect mode reduces human oversight -15 ▶

The 'reflect on' command enables automatic reflection at session boundaries and before context compaction. These are moments when user attention is lowest, weakening the human-in-the-loop safety guardrail that is the skill's primary defense against misuse.

Evidence: SKILL.md: 'reflect on — Enable auto-reflection', 'At session boundaries or before context compaction'

MEDIUM Conversation content persisted to disk without sanitization -20 ▶

The skill stores 'Source Quote' excerpts from conversations in reflection files and learnings.yaml. Over time, this accumulates conversation fragments on disk that may contain sensitive information (API keys mentioned in chat, passwords, personal data). No sanitization or redaction mechanism is described.

Evidence: SKILL.md Step 4 table: '| # | Signal | Confidence | Source Quote | Category |' — Output: '~/.reflect/learnings.yaml - Learning log'

LOW Sensitive file access during installation -10 ▶

During clone/install, the monitoring detected reads of .env, .aws/credentials, and .openclaw/openclaw.json. While likely attributable to the ClawHub installation framework rather than the skill itself, these accesses expose sensitive credentials to the installation process.

Evidence: FS events: 'OPEN /home/oc-exec/.env', 'OPEN /home/oc-exec/.aws/credentials', 'OPEN /home/oc-exec/.openclaw/agents/main/agent/auth-profiles.json'

LOW Referenced script does not exist in repository -10 ▶

The signal_patterns.md file references 'signal_detector.py' with instructions to run it, but no such file exists in the repository. This is either incomplete documentation or could indicate that the skill expects users to create executable code based on its instructions.

Evidence: signal_patterns.md: 'The signal_detector.py script implements these patterns. To update patterns: 1. Add pattern to appropriate *_PATTERNS list 2. Run python signal_detector.py --test'

INFO Skill operates as pure markdown instructions with no code guardrails -5 ▶

The entire skill is implemented as markdown instructions that rely entirely on the LLM's compliance. There are no programmatic guardrails, validation, or sandboxing. The 'safety guardrails' described are behavioral suggestions to the LLM, not enforced constraints. The LLM could deviate from these guardrails if prompted creatively.

Evidence: SKILL.md Safety Guardrails section: 'NEVER apply changes without explicit user approval' — this is an instruction to the LLM, not a code-enforced constraint

Should I install reflect-learn?

Oathe's verdict for reflect-learn is CAUTION with a trust score of 62/100. Recommendation: Review before install.