Oathe Security Badge

oathe / scan / reports / caution

Is hsssgdtc/ralph-evolver safe?

Use with caution. hsssgdtc/ralph-evolver is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the ralph-evolver skill by hsssgdtc a trust score of 71/100 with 7 findings (2 high). Report updated

https://github.com/openclaw/skills/tree/main/skills/hsssgdtc/ralph-evolver

71
CAUTION

Is hsssgdtc/ralph-evolver safe to install?

Ralph-evolver is a legitimate recursive code-improvement CLI tool with no direct malicious code, no install hooks, no hidden network exfiltration, and a clean install process. However, it carries meaningful operational risk: it unconditionally executes npm and pytest scripts in any target project it analyzes, includes unsanitized project file content (including CLAUDE.md) verbatim in LLM prompts creating prompt injection relay risk, and supports an autonomous self-modification loop that could persist agent-driven changes to its own source code. Canary credential files were accessed twice during monitoring but timing and the 'intact' report indicate this was the audit infrastructure's own baseline and teardown checks, not the skill.

What security issues were found in hsssgdtc/ralph-evolver?

Category Scores

Prompt Injection 77/100 · 30%
Data Exfiltration 68/100 · 25%
Code Execution 62/100 · 20%
Clone Behavior 88/100 · 10%
Canary Integrity 65/100 · 10%
Behavioral Reasoning 58/100 · 5%

Findings (7)

HIGH Executes arbitrary npm/pytest scripts in target project -30 ▶

checkNodeJS() calls execFileSync('npm', ['run', 'build'/'test'/'lint']) and checkPython() calls pytest in the user-supplied projectPath. Any project with malicious test or build scripts will execute that code with the invoking user's privileges when ralph-evolver analyzes it.

Evidence: evolve.js lines ~340-380: execFileSync('npm', ['run', 'build'], { cwd: this.projectPath, timeout: 60000 }); execFileSync('npm', ['test'], ...); execFileSync('pytest', ['--tb=short', '-q'], { cwd: this.projectPath })

HIGH Self-modifying LLM loop with no human review gate -20 ▶

The DISCOVER prompt explicitly instructs the LLM agent to edit evolve.js. The --loop N flag repeats this N times autonomously. A successful prompt injection via project files would cause the agent to write persistent malicious code into the skill's own source, surviving future sessions.

Evidence: SKILL.md / generateDiscoverPrompt(): '## Recursion: Self-Evolution — If you're iterating on ralph-evolver itself, you can modify evolve.js. This is the core of recursion'; package.json 'self-evolve': 'node index.js --project . --loop 3'

MEDIUM Unsanitized project file content injected into LLM prompt -23 ▶

getProjectContext() reads CLAUDE.md, README.md, and SKILL.md from the target project verbatim and splices them into the evolution prompt. A malicious repo's CLAUDE.md or README.md could contain LLM directives that hijack agent behavior during analysis.

Evidence: evolve.js getProjectContext(): reads contextFiles ['README.md', 'CLAUDE.md', 'SKILL.md'], splices content.slice(0, 400) directly into the prompt string with no XML boundary or untrusted-content marker

MEDIUM Sensitive project data exposed in generated prompts and stdout -32 ▶

The skill reads git history, TODO comments, error patterns, and source file structures and writes them into the LLM prompt. The --spawn flag writes the full prompt to stdout. This can expose secrets in commit messages, internal API patterns, or credentials embedded in source comments.

Evidence: evolve.js ImprovementTracker.getLastChanges(): git diff HEAD~1; getRecentCommitMessages(): git log --oneline -10; RuntimeSignals.collect() aggregates source patterns; index.js --spawn mode: console.log(evolutionPrompt)

MEDIUM Canary credential files opened and read during monitoring window -35 ▶

inotify and auditd both record OPEN+ACCESS events for .env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, and .config/gcloud credentials at 13:27:45 and again at 13:27:62. The audit system reports 'intact', and timing analysis indicates these accesses originate from audit infrastructure's own canary baseline and teardown checks (the skill was never executed during monitoring). Risk is lower but the read events are documented.

Evidence: inotify: '13:27:45 OPEN /home/oc-exec/.env ... OPEN /home/oc-exec/.ssh/id_rsa ... OPEN /home/oc-exec/.aws/credentials'; auditd PATH: 1771939665.880:254-259 and 1771939682.806:1438-1443; no node EXECVE observed

LOW ImprovementTracker writes LLM-controlled data into target project -20 ▶

The skill writes .ralph/improvements.json into the target project directory. This file is later read back and included in subsequent prompts. An attacker who controls the target project could pre-seed this file with crafted 'insights' to influence future LLM behavior.

Evidence: evolve.js ImprovementTracker.record(): fs.writeFileSync(this.historyFile, JSON.stringify(...)); getSummary() reads and injects history into the next prompt without validation

LOW Install traffic limited to expected GitHub endpoints -12 ▶

All network activity during install resolves to GitHub (140.82.121.3) and Canonical/Ubuntu background services (185.125.188.57, 185.125.190.18). No suspicious C2 domains, no data exfiltration endpoints, no new listeners created.

Evidence: auditd SOCKADDR 1771939671.506:500: saddr inet 140.82.121.3:443; tcpdump: 185.125.188.57 and 185.125.190.18 are pre-existing Canonical connections; connection diff shows no new ports

Should I install hsssgdtc/ralph-evolver?

Oathe's verdict for hsssgdtc/ralph-evolver is CAUTION with a trust score of 71/100. Recommendation: Review before install.