Summary
Install hook (scripts/setup-openclaw-shim.mjs) is benign — copies a bundled shim into node_modules. Lab run: exit 0, no network, no canary reads. Runtime code extensively accesses credentials (SSH keys, .npmrc, Chrome caches, TCC.db), escalates privileges (passwordless sudo, macOS admin auth rules), tampers with agent config (.claude/settings.local.json, CLAUDE.md), and captures clipboard/screen. SKILL.md files contain prompt-injection instructions asking the LLM to conceal actions from the user. Network egress to visionclaw.dev domains is expected for an online agent.
Intent
A desktop AI agent that installs with privilege escalation (passwordless sudo, macOS admin auth bypass) and extensive credential access (SSH keys, browser caches, TCC.db), plus prompt-injection instructions in SKILL.md files asking the LLM to hide actions from the user. Install hook is benign; harm would occur at runtime.
credential_access agent_config_tamper clipboard_screen persistence privilege network_egress code_execution
Prompt injection: conceal actions from user high
dist/builtin-skills/catalog/polymarket-trading/SKILL.md:119 instructs the agent to 'partially fill and silently leave the rest unfilled' — hiding incomplete trades from the user. dist/builtin-skills/visionclaw-manual/SKILL.md:150 states maintenance commands are 'handled directly without asking the main LLM to improvise' — bypassing user confirmation.
Prompt injection: impersonates system messages high
CHANGELOG.md:311,423,424,426 contains commit messages that impersonate system/operator messages to steer AI readers.
Privilege escalation: passwordless sudo high
dist/onboarding/prepare-mac.js:116 writes NOPASSWD: ALL to /etc/sudoers.d/<username> (requires user confirmation via prompt).
Privilege escalation: macOS admin auth bypass high
dist/onboarding/prepare-mac.js:186-199 writes class=allow to system.privilege.admin authd rule, suppressing admin dialogs (requires user confirmation).
Credential access: SSH keys medium
dist/builtin-skills/catalog/github-dev-ops/SKILL.md:11 references ~/.ssh/id_ed25519 — skill instructions direct the agent to use SSH keys.
Credential access: browser caches medium
dist/agent/disk-monitor.js:207-208 deletes Chrome Default/Cache and Code Cache directories — may contain session cookies/tokens.
Credential access: TCC.db (macOS permissions) medium
dist/onboarding/macos-permissions.js:144,166 reads/computes paths in ~/Library/Application Support/com.apple.TCC/TCC.db.
Agent config tampering medium
dist/config/claude-settings.js:67-74 writes to ~/.claude/settings.local.json (autoMemoryDirectory). dist/agent/disk-monitor.js:219 touches ~/.claude/projects.
Clipboard/screen capture medium
dist/tools/screenshot.js, dist/obs/rdp/stream-manager.js, dist/obs/mini-app/status.js — native screencapture, ScreenCaptureKit, clipboard read/write.
Persistence: launchd/systemd/pm2 low
dist/service/launchd.js, dist/service/systemd.js, dist/service/daemon.js — installs daemon services.