Back to skill

Security audit

Rabbit R1 Triage

Security checks for vulnerabilities and agentic risk

Overview

The verdict is benign with medium confidence: scanners report a triage skill whose flagged behaviors appear related to its purpose, while one referenced log path is missing from the package and the analysis is therefore incomplete.

The verdict is benign, not risk-free. Consider whether you are comfortable installing a skill whose triage script discusses agent supervision and a command using sudo. The scan covered the listed package components but could not resolve a referenced log path, so evidence is incomplete.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (9)

Self-Modification

High
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · triage.sh (reported line 66)May include surrounding context.

sh
warn "rabbit-agent unit is '${UNIT_STATE:-unknown}'" ;;
  esac
elif crontab -l 2>/dev/null | grep -q "rabbit-agent"; then
  info "rabbit-agent restarted by crontab @reboot (works, but a systemd unit with Restart=always survives self-updates too)"
else
  warn "rabbit-agent is NOT supervised (no systemd unit, no @reboot crontab): it will not come back after a reboot."
  echo "       Fix: install the user unit https://github.com/GrewingM/r1-triage/blob/main/contrib/rabbit-agent.service"

Self-Modification

High
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · triage.sh (reported line 100)May include surrounding context.

sh
echo "       last error in agent.log: $(echo "$LASTERR" | head -c 160)"
    case "$LASTERR" in
      *"No connection info"*)
        fail "agent has LOST ITS PAIRING - a self-update can wipe it"
        echo "       Fix: take a token from rabbithole > settings > nodes, then:"
        echo "            $RABBIT_DIR/bin/rabbit-agent register --token=XXXX"
        echo "            systemctl --user restart rabbit-agent"

Self-Modification

High
Category
Rogue Agent
Confidence
90% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · triage.sh (reported line 84)May include surrounding context.

sh
# 1d. When the agent is down, the reason is usually in its own log - but a
#     crash-looping agent never writes a status file, so check 1c sees nothing.
#     The commonest cause after a self-update is a lost pairing: the agent
#     starts, finds no connection info, exits 0, and systemd restarts it
#     forever. A process that fails by succeeding looks fine from the outside.
if [ "$AGENT_OK" = 0 ] && [ -r "$RABBIT_DIR/logs/agent.log" ]; then

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · triage.sh (reported line 43)May include surrounding context.

sh
VER=$(pgrep -af "rabbit-agent run" | grep -oE 'versions/[^/ ]+' | head -1)
  [ -z "$VER" ] && VER=$(python3 -c "import json;print('v'+json.load(open('$RABBIT_DIR/current.json'))['version'])" 2>/dev/null)
  ok "rabbit-agent running ${VER:-}"
  [ "$N" -gt 1 ] && warn "$N rabbit-agent processes — a nohup copy and a systemd copy fighting? (pkill -f 'rabbit-agent run'; systemctl --user restart rabbit-agent)"
  AGENT_OK=1
else
  fail "rabbit-agent NOT running"

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · triage.sh (reported line 50)May include surrounding context.

sh
AGENT_OK=0
fi

# 1b. Is it supervised? The installer starts it with nohup and relies on an @reboot crontab
#     line that is not always written — an unsupervised agent dies at the next reboot.
if systemctl --user is-enabled rabbit-agent.service >/dev/null 2>&1; then
  UNIT_STATE=$(systemctl --user is-active rabbit-agent.service 2>/dev/null)

Session Persistence

Medium
Category
Rogue Agent
Confidence
80% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · triage.sh (reported line 52)May include surrounding context.

sh
# 1b. Is it supervised? The installer starts it with nohup and relies on an @reboot crontab
#     line that is not always written — an unsupervised agent dies at the next reboot.
if systemctl --user is-enabled rabbit-agent.service >/dev/null 2>&1; then
  UNIT_STATE=$(systemctl --user is-active rabbit-agent.service 2>/dev/null)
  case "$UNIT_STATE" in
    active)

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · triage.sh (reported line 65)May include surrounding context.

sh
*)
      warn "rabbit-agent unit is '${UNIT_STATE:-unknown}'" ;;
  esac
elif crontab -l 2>/dev/null | grep -q "rabbit-agent"; then
  info "rabbit-agent restarted by crontab @reboot (works, but a systemd unit with Restart=always survives self-updates too)"
else
  warn "rabbit-agent is NOT supervised (no systemd unit, no @reboot crontab): it will not come back after a reboot."

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · triage.sh (reported line 117)May include surrounding context.

sh
CLI_OK=1
else
  fail "openclaw CLI not resolvable at $OPENCLAW_BIN"
  echo "       Fix: put it on the default PATH, e.g. sudo ln -s \"\$(command -v openclaw)\" /usr/local/bin/openclaw"
  CLI_OK=0
fi

Unbounded Resource Access

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Content

Scanner excerpt · triage.sh (reported line 167)May include surrounding context.

sh
def wait(i, secs):
    end=time.time()+secs
    while time.time()<end:
        try: l=q.get(timeout=0.5)
        except queue.Empty: continue
        if l is None: return None
        try: m=json.loads(l)