Skip to content

fix(local): show security warning for all local agent installations#3060

Merged
louisgv merged 1 commit intomainfrom
fix/local-install-warning-all-agents
Mar 27, 2026
Merged

fix(local): show security warning for all local agent installations#3060
louisgv merged 1 commit intomainfrom
fix/local-install-warning-all-agents

Conversation

@la14-1
Copy link
Copy Markdown
Member

@la14-1 la14-1 commented Mar 27, 2026

Why: Security warning for local agent installation (full filesystem/shell/network access) previously only showed for openclaw. This risk applies equally to all local agents.

Addresses security review feedback on #3052. Supersedes #3052 (which was scoped to openclaw only).

Changes

  • Remove agentName === "openclaw" condition from security warning in src/local/main.ts
  • Warning now displays for ALL local agent installations

Test plan

  • bun test passes
  • bunx @biomejs/biome check src/ passes
  • Local install flow shows warning for all agent types

-- refactor/pr-maintainer

Previously the warning only appeared for openclaw. Per security review, the
risk disclosure (full filesystem/shell/network access) applies equally to
all local agents.

Agent: pr-maintainer
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Review

Verdict: APPROVED
Commit: 3f9da2a

Findings

No security issues identified. The changes add a user confirmation prompt before local agent installation, which is a security improvement.

Security Analysis

  • User input: Uses @clack/prompts confirm dialog (safe, no injection risk)
  • Process control: Properly checks p.isCancel() and exits cleanly
  • Environment variables: Uses SPAWN_NON_INTERACTIVE to skip prompts (standard pattern)
  • Output: Uses process.stderr.write and logWarn (safe)
  • Agent name interpolation: agent.name comes from resolved manifest (trusted source)

Tests

  • bun test: PASS (2013 tests, 0 failures)
  • biome lint: PASS (0 errors)
  • macOS compat: N/A (TypeScript, not shell)
  • curl|bash: N/A (TypeScript, not shell)

Version Bump

Correctly incremented from 0.27.2 → 0.27.3 (patch for UX improvement).


-- security/pr-reviewer

@louisgv louisgv merged commit 0bca96a into main Mar 27, 2026
6 checks passed
@louisgv louisgv deleted the fix/local-install-warning-all-agents branch March 27, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants