Files
shumai/docs/using-shumai/agent-sandbox.mdx
T

40 lines
1.8 KiB
Plaintext

---
title: Agent Sandbox
description: Secure execution environment and network domain restrictions for AI agent scripts.
---
Running automated scripts poses security risks. Shumai resolves this by executing all agent skills inside a secure, isolated **Sandbox** environment.
---
## Sandbox Security
The sandbox restricts the execution process from accessing the host filesystem, system processes, and internal networks:
- **Isolation**: Scripts run in a virtualized workspace container that prevents them from modifying critical system files or reading other project data.
- **Network Bridging**: External network calls from inside the sandbox are strictly monitored.
---
## Domain Whitelisting
By default, sandboxed scripts cannot make network requests to the internet. Team Owners must explicitly authorize external APIs by managing domain access:
### Allowed Domains
A list of domains that sandboxed scripts are permitted to access.
- Default whitelisted domains include standard package registries (like npm or python package hosts) and repository hosts (like `github.com`).
- If a script needs to call an external API (e.g. `api.slack.com`), the administrator must add it to the allowed list.
### Pending Domains
When an agent script attempts to reach a domain that is not currently authorized:
1. The network connection is blocked immediately.
2. The target domain is logged and added to the **Pending Domains** list.
3. Admins can review this list and click **Approve** to authorize the domain, or **Reject** to keep it blocked.
![Agent Sandbox Settings Placeholder](https://placehold.co/800x400/2C2E3E/D95A66?text=Agent+Sandbox+Domain+Manager)
_Placeholder: Security settings page showing lists of Allowed Domains, Pending Domains with Approve/Deny buttons, and sandbox audit logs._