Security by Design
No Root Required
Installs and runs entirely in user space without privileged access
No Daemons
Single binary with no background processes or system services
Transparent Installer
Inspectable installation script hosted on public repositories
Plain Text Config
All configurations in readable TOML/YAML/JSON formats
Installation Security
Inspectable Installer
The dx installer is completely transparent:No Privilege Escalation
- Falls back to
~/.local/bin
when sudo unavailable - Never requires root access to function
- Respects user permissions and environment
Integrity Verification
- SHA256 checksum verification for all downloads
- Signed releases with verification instructions
- Deterministic builds for reproducibility
Runtime Security
Process Isolation
Explicit Confirmations
dx requires explicit user confirmation for potentially destructive actions:- Process Termination - Ctrl+C shows kill confirmation
- File Operations - Clear prompts for file modifications
- External Commands - Visual distinction for shell escapes
- Configuration Changes - Confirmation for sensitive settings
Input Sanitization
- Command injection protection
- Path traversal prevention
- Environment variable validation
- User input escaping
Configuration Security
Plain Text Transparency
All dx configurations are stored in readable text formats:Local vs Global Separation
- Clear separation of scope and permissions
- Project configs cannot modify global settings
- Override controls with
allow_project_override
Process Control
Safe Command Execution
dx provides multiple layers of process safety:All commands are displayed before execution with full command line visible
Process termination requires explicit confirmation to prevent accidental kills
External shell commands clearly indicated with pause prompts and return confirmations
Environment Protection
- Commands inherit limited environment variables
- No automatic PATH manipulation
- Explicit working directory control
- Process group isolation
Network Security
Optional Telemetry
Telemetry is completely optional and transparent:- Disabled by default
- Only sends failed command logs when enabled
- Clear endpoint visibility
- Easy to disable at any time
Recording Privacy
Asciinema integration respects privacy:- Local recordings by default
- Streaming requires explicit configuration
- No automatic uploads
- Clear recording status indicators
File System Safety
Read-Only by Default
dx operates in read-only mode for most operations:- Menu files are read-only
- MOTD files are display-only
- Configuration changes require explicit user action
Limited File Access
- Only accesses files in current directory and subdirectories
- No automatic system file access
- Respects file permissions and ownership
Best Practices
Secure Configuration
Menu Security
Environment Variables
Regular security updates are distributed through the same transparent installation mechanism.
dx maintains detailed security documentation and welcomes security research. See our security policy for responsible disclosure guidelines.
While dx itself is secure, always review the commands and scripts you configure in your menus.