google-gemini / google-gemini/gemini-cli

Security: Default Hook Sandboxing

Open
#15,272 3 comments 0 reactions 0 assignees View on GitHub
🔒 maintainer only area/security kind/question priority/p2 status/bot-triaged workstream-rollup
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

# Security: Default Hook Sandboxing

## Description
To mitigate the risks of local code execution, we should evaluate and potentially implement a strategy where hooks run in a restricted sandbox by default.

## Proposed Changes
- Research lightweight sandboxing options for shell/script execution.
- Add a configuration option to enable/disable sandboxing for specific hooks.
- Default to sandboxed execution for hooks from external sources (extensions/untrusted projects).

## Acceptance Criteria
- [ ] Research document on sandboxing feasibility completed.
- [ ] Prototype of a sandboxed hook execution.
- [ ] Clear documentation on sandboxing limitations and configuration.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.