Security Hardening¶
A checklist-driven guide to securing Echo Agent deployments.
Security Profiles¶
Echo Agent provides three built-in security profiles:
| Profile | Use Case | Default Tool Access |
|---|---|---|
personal_cli |
Local development | Most tools allowed |
daemon |
Background service | Blocks exec, process, skill_install |
public_gateway |
Public-facing | Blocks all high-risk tools |
Hardening Checklist¶
Network¶
- [ ] Gateway binds to
127.0.0.1(default) - [ ] Use reverse proxy with TLS for external access
- [ ] Set
gateway.auth.allowedOriginsto your domain - [ ] Set
gateway.auth.allowedHostsfor DNS rebinding protection - [ ] Review
gateway.mediaAllowPrivateAddresses: false
Authentication¶
- [ ] Set
gateway.auth.mode: token - [ ] Configure strong
api_tokensandadmin_tokens - [ ] Use separate admin tokens for Dashboard management
- [ ] Review
gateway.auth.allowedUsersfor user restriction
Tool Permissions¶
- [ ] Set appropriate
tools.profile - [ ] Review
permissions.approval.mode(auto/ask/deny) - [ ] Restrict file system paths
- [ ] Disable unnecessary execution backends
Credentials¶
- [ ] API keys via environment variables, not config files
- [ ] Enable credential encryption if supported
- [ ] Review config file permissions (600)
Monitoring¶
- [ ] Enable audit logging
- [ ] Monitor failed auth attempts (lockout after 5 failures)
- [ ] Set up cost budget alerts
- [ ] Regular review of Gateway logs
Common Mistakes¶
Danger
- Running Gateway on
0.0.0.0without authentication - Using
personal_cliprofile for public-facing deployments - Storing API keys in version-controlled config files
- Enabling
shelltool in public gateway mode