oathe / scan / reports / dangerous
Is EthanSK/agent-bridge safe?
No. EthanSK/agent-bridge is dangerous to install. Oathe's behavioral security audit gave the agent-bridge skill by EthanSK a trust score of 34/100 with 19 findings (3 critical, 7 high).
https://github.com/EthanSK/agent-bridge
Is EthanSK/agent-bridge safe to install?
EthanSK/agent-bridge is not malware, but installing it opens an unrestricted backdoor: pairing appends an unrestricted key to authorized_keys (full shell as the user) behind a token that is never verified, unpair does not revoke that access, and inbound messages from any peer are injected into the running agent unauthenticated while being labeled 'authenticated'. Remote command execution is ungated and the tool auto-updates daily from upstream main without verification. Use only between machines owned by the same person, ideally with a restricted account and forced-command key.
What security issues were found in EthanSK/agent-bridge?
Category Scores
Findings (19)
CRITICAL Unauthenticated inbound messages injected as live agent turns and falsely labeled authenticated -30 ▶
The receiver never verifies the sender. parseMessageFile/parseMessageFileForTarget check only id, timestamp and target; from/fromTarget are arbitrary JSON fields. Every message is nevertheless pushed into the running Claude Code session with meta authenticated: 'ssh-key', and the MCP server instructions tell the agent 'All communication is authenticated via SSH keys'. Any process able to write to ~/.agent-bridge/inbox (every paired peer, or anything that compromises one) can impersonate any machine, including the user's own, and the agent is told to trust it.
Evidence: mcp-server/src/inbox.ts:588-620, 634-657; mcp-server/src/index.ts:797, 1120-1147 (authenticated: 'ssh-key' at :1141); watcher.ts:1467-1500
HIGH OpenClaw channel: unescaped content can forge context blocks; turns delivered under the owner's identity -20 ▶
Message content and from_machine are interpolated raw into <channel ...>${content}</channel> and [BRIDGE-CONTEXT] text, so a message can close the tag and forge routing/context lines. Inbound turns are built with From/SenderId set to the owner's Telegram user id (auto-discovered from meta.user_id / allowFrom), so bridge content arrives looking like the owner.
Evidence: openclaw-channel/src/index.js:1572-1578, 769-779, 1266-1294
HIGH Fleet learnings store is a persistent cross-machine injection channel -20 ▶
Peers push entries over SSH into the local store via learnings ingest. Validation only checks that id/title/body exist and dedupes by id: no size limit, no provenance (machine/harness fields are peer-supplied), no sanitization. Server instructions tell every agent it 'should' search the store before debugging and 'MUST' record to it, so one poisoned entry reaches every agent on every paired machine.
Evidence: agent-bridge:2409-2436, 2696-2739; mcp-server/src/index.ts:810-811
MEDIUM Skill instructs agent to fetch an external update notice into context -10 ▶
SKILL.md directs the agent to periodically check a public source pinned in skill-update.json and follow references/public-updates.md. Content from that author-controlled source enters agent context.
Evidence: SKILL.md public-updates section; skill-update.json
MEDIUM Mandatory relay rule forwards bridge content to user-facing channels without per-message consent -10 ▶
SKILL.md marks relaying the completed scaffold through the harness's user-facing reply tool (e.g. Telegram) as MANDATORY.
Evidence: SKILL.md relay rules
CRITICAL Pairing grants an unrestricted interactive shell as the local user -30 ▶
pair appends the peer's public key to ~/.ssh/authorized_keys with no options (no command=, restrict, from=, no-pty, expiry-time). The key string is not validated (no ssh-keygen -lf / type check; embedded newlines add extra lines) and sort -u rewrites the whole file. The peer can read everything the account can (source, .env, cloud/CLI credentials, SSH keys, browser profile files), use the user's credentials, and install persistence. The README acknowledges the full-shell trust boundary.
Evidence: agent-bridge:1510-1523; README.md:1714-1721, 1975-2002
HIGH Pairing token is decorative: never verified -20 ▶
setup writes ~/.agent-bridge/.pending-token, which nothing reads. pair only requires a non-empty token and prints 'Token accepted' with 'no remote connection needed'. The token is also only 24 bits. Combined with the photograph-the-screen flow, an agent can be induced to authorize an arbitrary key.
Evidence: agent-bridge:1059-1063, 1309-1310, 1474, 1527-1530, 1343
HIGH Host-key verification disabled on CLI and MCP SSH paths -20 ▶
All bash CLI and mcp-server ssh/sftp calls use StrictHostKeyChecking=no and UserKnownHostsFile=/dev/null, so the sender never authenticates the receiving machine; messages and command output can be intercepted by an impersonating host off-tailnet. (OpenClaw/Codex outbound SFTP uses accept-new TOFU.)
Evidence: agent-bridge:923, 1078, 1621, 1709, 1854, 2310, 2516; mcp-server/src/ssh.ts:84-85, 594-595; openclaw-channel/src/outbound.js:391
MEDIUM Single passphrase-less key per machine enables fleet-wide lateral movement -10 ▶
setup/pair generate ed25519 keys with -N "" and reuse one key for every peer. Anyone with a shell as the user can copy ~/.agent-bridge/keys/* and SSH into every machine that authorized it.
Evidence: agent-bridge:1258, 1497
MEDIUM Learnings are broadcast to every paired machine -10 ▶
learnings add replicates entries to all peers; content an agent records (possibly including sensitive context) leaves the machine automatically.
Evidence: agent-bridge:2541-2620; mcp-server/src/learnings.ts
CRITICAL Arbitrary remote command execution with no gate -30 ▶
bridge_run_command and agent-bridge run pass any command to ssh. Guards are only 'not the local machine' and 'machine exists in config'. 'Diagnostics only' exists only as prose in the tool description and instruction files.
Evidence: mcp-server/src/tools.ts:1228-1285; agent-bridge:1647-1735
HIGH Daily auto-update executes unverified upstream code -20 ▶
install.sh installs a launchd LaunchAgent (default ON; opt-out AGENT_BRIDGE_NO_PERIODIC_UPDATE=1) that runs daily: git fetch, git pull --ff-only origin main, npm install, npm run build. No signature, tag pinning or commit verification. Only installed when a git clone exists; skips dirty trees.
Evidence: install.sh:339-381; scripts/install-periodic-update.sh:178-179; scripts/agent-bridge-periodic-update.sh:275-323
HIGH Unpair does not revoke access -20 ▶
agent-bridge unpair deletes the local key and config entry but never removes the peer's line from ~/.ssh/authorized_keys, so the peer keeps shell access. Because the deleted key is the single shared identity, unpairing one machine also breaks every other pairing.
Evidence: agent-bridge:1993-2024
LOW prebuild script runs on every build -5 ▶
mcp-server package.json prebuild runs node ../scripts/sync-codex-vendor.mjs.
Evidence: mcp-server/package.json
INFO Clone behavior clean (clone-only; setup/install not executed) 0 ▶
Only GitHub was contacted during clone. The dynamic phase cloned with hooks disabled and did not run install.sh or setup/pair, so runtime behavior (authorized_keys writes, LaunchAgent install) was not exercised dynamically; those findings come from source review.
Evidence: monitoring: unique destinations = GitHub only
INFO Canary files intact 0 ▶
No honeypot access during clone. Not evidence of runtime safety, since setup/install did not run.
Evidence: monitoring: canary diff empty
HIGH Any paired peer, malicious or compromised, can act as the user with blame defaulting to the user -20 ▶
A peer can (a) run commands as the user via SSH, (b) make the user's agent act via spoofed inbox messages the agent is told are authenticated, and (c) persist by editing agent configuration (CLAUDE.md, ~/.claude/settings.json hooks, MCP servers) or LaunchAgents. SSH sessions are traceable via sshd key fingerprints; message-driven agent actions are not attributable beyond a spoofable from field in user-writable transcripts.
Evidence: Composite of the findings above
MEDIUM Pair-from-photo flow has agents authorize keys without verification -10 ▶
Setup instructs the user to photograph the pairing screen and send it to the agent on the other machine; the quickstart tells agents to proceed without asking. With no token check or key validation, a convincing pairing image or string can get an attacker's key authorized.
Evidence: agent-bridge:1343; README.md quick start
LOW Setup/pair modify global agent instruction files -5 ▶
update_harness_instructions inserts a fixed marker-delimited block into existing ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, ~/.openclaw/AGENTS.md, ~/.gemini/GEMINI.md.
Evidence: agent-bridge:1159-1193
Should I install EthanSK/agent-bridge?
Oathe's verdict for EthanSK/agent-bridge is DANGEROUS with a trust score of 34/100. Recommendation: Do not install.