Security model
Last updated
MyXterm stores secrets only in the OS keychain, never accepts a changed host key silently, binds listeners to loopback by default and marks production hosts in words. It is pre-alpha and has had no human or third-party security audit.
MyXterm is pre-alpha and has not had a security audit yet (planned for milestone M13). This page separates the rules every feature must follow from what is in the app today. Production safety is specified as a release-gating test suite; that suite is planned (SAFE-001), so today's protections are partial.
Priorities
When goals conflict, security and data integrity come first: never corrupt files, leak secrets, or act on the wrong host. Speed, correctness, UX and feature breadth follow, in that order.
Engineering rules
- Secrets only in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service). No plaintext fallback, ever.
- Never silently accept a changed host key or an invalid certificate.
- Remote data is untrusted. IPC is typed and validated; external programs get structured arguments only, never shell-interpolated strings.
- Listeners bind to loopback by default.
- The file browser is bound to an explicit host and identity, never inferred from prompt text.
- One auth broker per connection: prompts appear once, in the pane, never steal focus.
- Isolation: one session's crash never affects another; an SFTP failure never blocks its SSH terminal; no orphan processes or sockets.
- Never reinvent crypto.
- No telemetry, no accounts, no mandatory cloud. A future update check uses signed metadata, no tracking, and is off in offline mode.
Production safety (specification)
From UI_SPEC §5. Always on for a PROD pane: a PROD text tag in the strip, tab, tree, status bar, search results and every confirmation, plus a solid band; environments differ without relying on colour. Defaults, each configurable and lockable:
- multi-line paste always confirmed; right-click paste off
- excluded from broadcast unless ticked; no auto-reconnect; no auto-connect on restore
- close confirms with the host name; save, delete, overwrite and chmod confirm host and path
- snippets go through a preview; monitoring and AI off unless opted in per folder
- first use of a host key has no default button
- optional input lock / observe mode
There is deliberately no pattern-matching dangerous command
interceptor by default, because it gives false confidence. Until a policy file exists, safety defaults are per-user.
In the app today
From the changelog; most of these are partial against their full spec.
- Host-key card with the fingerprint; a changed, revoked or unreadable host key is a hard stop with Disconnect only, and nothing is sent.
- Sign-in questions (password, passphrase, keyboard-interactive) appear as cards inside the pane; a card in a background tab waits and never takes focus.
- Secret fields use a fixed, zeroizing buffer with no copy and no input-method access; stored passwords are sent at most once per connection, only to the target host's own prompt.
- Paste guard for multi-line and hidden characters, always on for PROD.
- Closing tabs with live sessions asks first; on PROD, Enter never confirms. Remote copy, move, delete, overwrite and chmod confirmations name host and path and need a second press on PROD.
- Selecting a production host shows
Connect to PROD
in red; a single click only selects a host, and connecting takes a double-click or Enter. - Multi-input excludes PROD panes by default.
- Transfers write to a private temporary file, verify, then rename; an existing file is never overwritten silently.
- Tunnels listen on loopback by default; a LAN bind needs explicit consent.
- RDP and VNC launches never put a password on the command line.
- Session logs are private (0600), never written through a link, and only received output is logged.
How it is checked
Every change passes scripts/gate.sh: fmt, clippy with warnings as errors, tests, cargo deny (licences, advisories, sources) and gitleaks (secrets). A second AI model, Fable, reviews security-relevant work at fixed gates (SSH, SFTP/transfers, vault, threat model, release readiness, any critical finding); its reviews are kept word for word in docs/reviews. No human or third-party security audit has been done yet.
Reporting a vulnerability
- Preferred: GitHub private vulnerability reporting (
Report a vulnerability
on the Security tab of the repository). - Alternative: email [email protected] with the subject
SECURITY: <short summary>. - Please don't open a public issue for security problems. Never send real credentials, private keys or customer data; use synthetic values.
Acknowledgement within 3 business days, an initial assessment within 10 business days, coordinated disclosure (normally ≤ 90 days) with a GitHub Security Advisory, and a permanent regression test for each fix. SECURITY.md: Pre-alpha: nothing is released yet.
Once releases exist, the latest stable release and the previous minor release receive security fixes.