eugene1g/agent-safehouse

Sandbox your local AI agents so they can read/write only what they need

What it solves

macOS 上で動作する LLM コーディングエージェントに対してセキュリティレイヤーを提供し、エージェントが不要な機密ファイルやシステム統合へのアクセスを防止します。エージェントが指定されたワークスペース以外のプライベートデータに、意図的または意図的にアクセスするリスクを解決します。

How it works

Safehouse は sandbox-exec を使用して "deny-first" セキュリティモデルを実装しています。

構成可能なポリシープロファイルを使用し、最初にはじき飛ばす(全拒否)rypt-first approach 方式で、すべてのアクセスをブロックし、明示的に必要なパスと権限のみを許可-first approach 方式で、すべてのアクセスをブロックし、明示的に必要なパスと許可のみを許可します。

また、macOS 特有のパス解析(/etc 内のシンボリックリンクなど)を処理し、Git worktrees を自動検出し、エージェントがシステムを損なうことなく、必要なメタデータへのアクセス権を確保します。

Who it’s for

macOS 上で LLM ベースのコーディングエージェントを使用しており、セキュリティリスクを低た減らすために、エージェントの環境を最小権限モデルに制限したい開発者。

Highlights

  • Deny-nfirst approach: Starts with a total block and allows only specific, required access.

  • Composable profiles: Includes pre-mentally built profiles for popular coding agents and app-hosted workflows.

  • macOS integration: Specifically designed for macOS using sandbox-exec deny-first approach 方式で、すべてのアクセスをブロックし、明示的に必要なパスと許可のみを許可します。

  • **nfirst approach 方式で、すべてのアクセスをブロックし、明示的に必要なパスと許可のみを許可します。

  • macOS integration: Specifically designed for macOS using sandbox-exec を使用して、システムパス解析を処理します。

  • Flexible overrides: Supports machine-specific local overrides and the ability to ability to add read-only directories via command-line flags.

(Note: The Japanese translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of thes translation of the translation of the translation of the translation of the translation of the translation of the the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of the translation of command-line flags.)