/security

security_implementation

Local-first architecture for sensitive credentials, with native macOS protection layers and strict API abuse controls.

synced_to_your_icloud

With Pro and iCloud enabled, session profiles and full Note text sync through your private CloudKit database:

  • +Session profiles, including labels and group membership names
  • +Hostnames, ports, and usernames
  • +Session colors, icons, and tags
  • +Note sessions and their full text
  • +Credential links (ID only, not content)

excluded_from_session_sync

These items are not part of CloudKit session sync. Note text is included, so review it for sensitive content:

  • xCredential vault contents, passwords, and private keys are excluded from session sync
  • xGroup metadata (icons, colors, and ordering) and empty groups
  • xLocal Note history and Note-to-session links

architecture_rationale

Separate Credential Storage

Session sync carries credential references, not vault contents. Text you put in Notes is still synced, so do not use Notes to store secrets.

Session and Note Sync

CloudKit sync includes session profiles and full Note text. Review Notes and captured terminal output for secrets before syncing; local history and Note links do not sync.

Physical Presence

On new Macs, sync session profiles first and add the required credentials to local vault storage.

1. Industry-Standard Encryption

Everything in your vault is encrypted using AES-GCM (Advanced Encryption Standard in Galois/Counter Mode) via Apple's CryptoKit. AES-GCM provides both confidentiality (hiding the data) and authenticity (ensuring the data hasn't been tampered with).

2. Master Password & Key Derivation

Sensitive data is only as strong as the key used to encrypt it. We use PBKDF2 (Password-Based Key Derivation Function 2) to transform your Master Password into a cryptographic key:

  • -Iterations: 100,000 rounds of hashing (HMAC-SHA256) to make "brute-force" attacks computationally expensive.
  • -Salt: A unique, random 32-byte salt is generated the first time you set up your vault, ensuring that identical passwords on different machines produce completely different keys.

3. Secure Storage (macOS Keychain)

While the data is encrypted, the resulting "ciphertext" needs to be stored somewhere. macXterm uses the macOS Keychain (Security.framework) with the following protections:

  • -Access Class: We use kSecAttrAccessibleWhenUnlocked, which means encrypted blobs are only available while your Mac is unlocked.
  • -Scope Note: App Sandbox is currently disabled in entitlements, so this is not relying on sandbox isolation guarantees.

4. Key Lifecycle on Lock/Unlock

Locking clears the master-derived encryption key from active memory. Unlock flow restores runtime credential caches for app operation, so this is not a strict zero-persistence model for all secret-adjacent data.

5. Private Key Handling

Vault storage keeps imported private key material encrypted at rest. During connection setup, key material may be written to a temporary local file for SSH interoperability, then removed during cleanup.

6. Rate Limiting & Abuse Prevention

To prevent brute-force attacks against our API endpoints, macXterm implements strict rate-limiting mechanisms via Upstash Redis. Access is explicitly limited per IP address to ensure fair usage and maintain maximum security.

7. AI Context and Command Review

AI Companion keeps a separate in-memory conversation per terminal. Each Send shares the conversation and explicitly approved, editable context with your chosen provider. Retention, training policies, and charges depend on that provider account. Remove sensitive details before sending.

  • -Review and edit each proposed command, then confirm the original terminal is at an empty prompt. AI commands never use Multi-Exec.
  • -Connection changes, known busy terminals, multiline input, and terminal controls block sending. These guards are not a guarantee that a command is safe.

8. File-Transfer Transport

SFTP transfers are encrypted over SSH. FTP is supported for legacy servers but is unencrypted, including login credentials and file contents; use SFTP when you need encrypted transport.

summary_matrix

FeatureImplementationBenefit
EncryptionAES-256 GCMMilitary-grade encryption & anti-tampering
Key StrengthPBKDF2 (100k iterations)Protects against password cracking
StoragemacOS Keychain (WhenUnlocked)Native at-rest protection while device is unlocked
Runtime ModelMaster key cleared on lock + runtime caches on unlockBalances operational UX with key lifecycle controls
Abuse PreventionUpstash Redis Rate LimitingPrevents brute-force attacks on our APIs