Security Design White Paper
CloudCMD Security Design
How secrets, credentials, and sessions are protected. This is the design we shipped: who holds the keys, what is encrypted, what we can and cannot see, and the limits of that design.
Chapter 1
Principles
CloudCMD is a desktop app for operating AWS, Google Cloud, Azure, Tailscale, and Kubernetes. It stores SSH keys, cloud credentials, and workspace configuration in an encrypted vault, then uses those secrets to open terminals and call cloud APIs as you. Security is not a feature bolted onto that job. It is the constraint the rest of the product is built under.
Five rules govern the design:
- Only you have the keys. Your secrets are encrypted on your device before they are synced. CloudCMD stores only the encrypted form. We cannot read it, recover it, or hand it to anyone in readable form, including ourselves under compulsion.
- Your master password and encryption keys never leave your device. They are not sent to CloudCMD, not written to our sync database, not included in the crash reports we receive, and not included in AI prompts.
- Only the credentials you chose. A connection uses the key or password you selected in CloudCMD. It never silently falls back to the SSH keys or SSH settings already on your computer.
- Secrets are used, not exposed. Your encryption keys and SSH private keys are never shown in the app or written to a plain file. Cloud credentials are used on your computer, straight to your provider, never through our servers.
- Say what we cannot do. Chapter 9 lists the limits. A security paper that only recites strengths is advertising.
What you must protect. Our design depends on a few things only you control:
- Your master password. We never see it and cannot reset it. Use one you do not use anywhere else.
- Your Emergency Kit and Secret Key. You need them to set up a new device. Keep the Emergency Kit somewhere safe and offline. If you lose both it and your master password, we cannot recover your data.
- Your computer while CloudCMD is unlocked. Lock your screen when you step away. Anyone at an unlocked computer can use what the app can use.
- Your email account. Whoever controls your mailbox can sign in to your CloudCMD account (chapter 8). They still cannot read your encrypted data, but they can delete it. Turn on two-factor authentication with your email provider.
Plain-language Trust pages live at cloudcmd.com/security. The legal Privacy Policy is at /privacy. This paper is the detailed account.
Chapter 2
Threat model
This chapter lists the situations CloudCMD is built to protect you in, and the few it cannot.
In scope
- Stolen sync database. An attacker who copies our sync database (or gets it through a breach of our backend) should see encrypted data, salts, and a short list of labels that identify nothing of yours (our own ids, types, regions, timestamps). Not SSH private keys, cloud refresh tokens, or notes, and not the names, hosts, addresses, or account ids of your infrastructure.
- Stolen vault file. The vault file on your disk is encrypted. Opening it requires your master password and your Secret Key.
- Stolen sign-in records. The password our sign-in service knows is a key derived from your master password and Secret Key, not your master password. Stealing what the sign-in service stores does not yield your encryption key.
- Malicious content inside the app while you are working. A malicious link, a compromised software library, or crafted text from a server should not be able to obtain your encryption keys, take the app window to an attacker's site, or open web pages on its own. CloudCMD shows only its own built-in screens, never outside web pages, and asks you before opening any link outside a short trusted list in your browser.
- Using the wrong key or server. Names and usernames that come from your cloud accounts or that you type cannot slip extra options into an SSH command, and SSH never offers a key CloudCMD did not select.
- Cross-account reads. Guessing another user's record id must fail. Our servers tie every record to the signed-in account and a verified email.
Out of scope (deliberate)
- A malicious program with the privilege to read CloudCMD's memory on an unlocked machine. That is the operating system's job (screen lock, disk and app permissions). Idle auto-lock shrinks the window; it does not replace the OS.
- Someone who has both your master password and your Secret Key. Together they are the whole of your identity in CloudCMD, and we cannot tell that person from you. Keep them apart, and change your master password if you think either one was exposed.
- What your cloud credentials are allowed to do. CloudCMD acts with the permissions you gave it in AWS, Google Cloud, Azure and Tailscale, no more and no less. If a credential can delete a database, a command run through CloudCMD can too. Give CloudCMD read-only or least-privilege credentials where you can.
Chapter 3
Your master password and Secret Key
Unlocking CloudCMD requires two secrets you hold and we never store: a master password you choose, and a Secret Key the app generates when you sign up. Either one alone is not enough. This is the same two-secret idea 1Password uses, applied to both your vault and your sign-in.
Master password
You choose it. We do not store it, do not keep a copy for signing in, and cannot reset it. The app normalizes it first, so the same password typed on different devices or keyboards always produces the same keys.
Secret Key
Generated on your device when you create your account: 30 random characters, using only letters and the digits 2 to 7 so that 0 and O, or 1 and I, cannot be confused. It is stored in the encrypted vault on your device and never sent to us. You also get an Emergency Kit PDF that contains it, so you can set up a new device without copying files. The interface cannot read the Secret Key out of the vault.
Two secrets in, two keys out
On your device, CloudCMD runs your master password through a deliberately slow, memory-hungry function, so each guess an attacker makes is expensive. It then mixes in your Secret Key. Without the Secret Key, guessing passwords against stolen data does not produce a working key. The result becomes two independent keys:
- Your encryption key encrypts your vault and everything synced as Secure Data.
- Your sign-in key is the password our sign-in service sees. That service stores a hash of this derived key, never of your master password.
Why the sign-in key exists. The usual “store a hash of the password” lets anyone who steals that hash try guesses against the password you chose. Mixing in the Secret Key makes the stored hash useless without a second secret that is not on our servers. Signing in still looks like email and password to you.
Key versions
Every encrypted value records which key version produced it. That lets us make the key stretching stronger later, or rotate keys, without losing access to data you already have. The exact algorithms and parameters are in Appendix A.
Chapter 4
How your data is stored
On your device
Your encrypted items live in a vault file in your user profile. The encryption key is in memory only while CloudCMD is unlocked; when the app locks, the key is dropped. If you turn on Touch ID, a copy of the key is also kept in your Mac's Keychain, released only by your fingerprint (chapter 5).
When it syncs
Each kind of record has a short, fixed list of fields that stay readable. Every other value is encrypted on your device before it is written, including the names of cloud tags. Opening it again happens on your device too. Our servers never decrypt anything.
No customer data in cleartext. The readable list holds only values that identify nothing of yours: our own random ids, node and provider types, cloud regions, status values and timestamps, on/off settings, your account email (our servers need it to run the account, and it is also your sign-in name), billing state, and key-derivation salts. Everything that names your infrastructure is encrypted: account, subscription and project ids, instance, cluster, database and service names and ids, hostnames, IP addresses, ports, endpoints, network ids, cloud tags, SSH public keys and fingerprints, device names, and your name. Adding a field to the readable list is a recorded security decision, not a code tweak.
Bound to its place. Each encrypted value is locked to the record and field it was written for. Copied into another field or record, it fails to decrypt. The app is strict about this: a value that fails its check, or readable text found where encrypted data belongs, is withheld and flagged rather than shown, and the app will not save over it.
Record ids
Servers, clusters, databases and serverless services that CloudCMD discovers need stable record ids, and those used to be built from the resource's own name or id. They are now a keyed fingerprint of that name: the same resource always maps to the same id, but the id reveals nothing. The key is random, one per account, created on your device, and stored in our database only in encrypted form. So computing or checking an id needs your master password and Secret Key, the same as reading any other encrypted field. Items you create by hand get random ids.
The November 2026 reset
Data written by earlier versions kept more of this information readable. We did not convert it: in November 2026 we deleted every workspace (resources, keys, notes, device records) in every environment, after our servers began refusing the old format, and users re-added their clouds. Accounts, billing, security settings and vault keys were kept. Our database backups from before that date still hold the old data until they expire (point-in-time recovery after 7 days, daily backups after 98 days), and are then deleted.
What is encrypted and what is not
| Item | At rest | Why |
|---|---|---|
| SSH private keys + passphrases | Encrypted, stored apart from the key list | Opened only when you connect; never shown in the app's screens |
| Cloud credentials, OAuth refresh tokens, notes | Encrypted | Secure Data — even we cannot read them |
| SSH username on a server | Encrypted | Sensitive identifier |
| Server, cluster, database and service names and ids; hosts, IPs, ports, endpoints; cloud tags; account, project and subscription ids | Encrypted | A map of your infrastructure; record ids are keyed fingerprints |
| Key fingerprint, public key | Encrypted | Would identify your key across hosts |
| Our ids, node and provider types, regions, status, timestamps, on/off settings, key type | Plaintext | Identify nothing of yours; needed for the tree, sync and cleanup before decrypting |
| Key-derivation salts and key versions | Plaintext | Not secret; a new device needs them to rebuild your keys before it has them |
| Account email | Plaintext | Service Data — our servers use it to run the account; it is also your sign-in name |
| Your name | Encrypted | Not needed by our servers |
| Device name, OS, LAN address | Encrypted (online-devices list) or not stored | Device identity; only platform, app version and heartbeat times stay plaintext |
Two kinds of data
Secure Data is encrypted data we cannot decrypt. Service Data is what we need to operate the product: email, billing via Stripe (card numbers never enter our vault; Stripe is PCI), support mail, and crash reports after secret scrubbing. Compulsory process can obtain Service Data and encrypted data. It cannot obtain your master password, Secret Key, or encryption key from us — we do not have them.
Chapter 5
Signing in, unlocking, and devices
Sign-up
The app creates your Secret Key, derives your two keys, creates the encrypted vault, publishes the key-derivation salts, and registers your sign-in key as your password with our sign-in service. You must verify your email before you get full access to your data.
Signing in on a device you already use
Email and master password. The app reads your Secret Key from this device's vault, rebuilds your keys, and signs in with the sign-in key. If we are part-way through upgrading your key version, it may try more than one sign-in key, because the two halves of that upgrade cannot happen in a single step.
Touch ID (macOS)
On a signed Mac build you can turn on Touch ID after unlocking with your master password. CloudCMD then stores a copy of your encryption key in a protected macOS Keychain item that requires the fingerprints currently enrolled, can be read only while the Mac is unlocked, and never syncs to iCloud. The fingerprint check is what releases that item; a program that skips the prompt gets nothing. Adding or removing a fingerprint invalidates the item. Touch ID does not replace the master password and Secret Key: a new device still needs both, and you can require the master password on every app start. Windows Hello is not supported yet.
New device
There is no vault yet. You confirm a sign-in link sent to your email, then paste the Secret Key and enter the master password. The app rebuilds your keys from the published salts, signs in, and proves it has the right encryption key by decrypting some of your data. It then loads the account's record-id key, which it can open only with that encryption key. A wrong Secret Key or password stops the setup: no half-finished vault is left behind.
If the salts are missing entirely (an account reset), a new encryption key is created, and data encrypted under the old one stays unreadable. That is intentional.
Lock is not log out
After a period in which you don’t use CloudCMD (default 15 minutes; configurable from 1 to 240 minutes, or Never after a confirmation), CloudCMD drops your encryption key and shows Unlock. Typing, clicking or scrolling in a CloudCMD window and terminal activity postpone the timer; background work such as discovery or sync from your other devices does not. On lock, decrypted workspace data is cleared from the window and read again after Unlock. By default CloudCMD also locks when you lock your computer (macOS and Windows; Linux does not report a screen lock). You stay signed in, and open terminals keep running so an idle lock does not cut off a session in progress. Log out is the full stop: it signs you out and closes your sessions and the keys they hold in memory.
Auto-lock is not your laptop’s screen lock. Its job is to limit how long your encryption key sits in memory. Lock the OS when you step away.
Chapter 6
Cloud credentials and terminals
Cloud credentials stay on your computer
Your AWS, Google Cloud and Azure credentials are stored encrypted and used only on your computer. Cloud API calls go straight from your computer to the provider; they never pass through CloudCMD's servers. Kubernetes credentials are created in memory and handed to kubectl when it asks; they are never written to a file.
Discovery, metrics, single sign-on, and kubectl run because you started them in the app. Traffic goes to the provider you already have an account with. CloudCMD is not on the path of your SSH traffic.
gcloud and kubectl: a key for each tab, not your credential
IAP SSH, Cloud Run and Cloud Functions log tabs, the serial console, and IAP SQL
tunnels run Google's own gcloud tools, which read a credential file. The
file CloudCMD gives them holds no Google credential, only a random key for that tab.
The tools exchange it with a token service inside the app for a short-lived access
token made from your connection; your refresh token or service-account key is never
handed to them. Closing the tab or quitting the app revokes the key, so it can get no
new tokens; a token already issued stays valid until it expires. CloudCMD sets up
gcloud so access tokens stay in memory, not in its cache on disk or its
logs. kubectl, helm and k9s get cluster tokens
the same way, when they need one, so your kubeconfig files hold no token.
One exception: gcloud compute ssh keeps its usual SSH key in your home
folder. On VMs that use OS Login, CloudCMD registers that key to expire 24 hours after
your last connection.
SSH keys are served from memory
When you connect, the app decrypts the private key in memory and offers it to SSH through a private, in-memory key agent that belongs to that one session. The key is never written to a temporary file. The agent is closed when the session ends, fails to start, when you log out, and when you quit. Locking the vault does not close it, so a running session can finish.
SSH uses only what you chose
Every SSH connection CloudCMD opens is isolated from your computer's own SSH setup:
- It ignores your personal SSH settings file.
- It offers only the key you selected in CloudCMD, never the default key files in your home folder or another key agent.
- In password mode it offers no key at all.
- It keeps its own list of trusted servers, never your personal one. Host-key checking is strict: the first time you connect, you approve the exact fingerprint shown, and a server whose key later changes is refused.
Server names and usernames that come from your cloud accounts are checked so they cannot be read as SSH options, and commands are never assembled as a shell string. Google Cloud IAP connections go through the same checks.
AI stays out of the vault
Optional command generation sends your prompt and limited terminal and cloud context through our server to the model provider, Anthropic. The provider's API key stays on our server; your cloud credentials do not go there. Vault secrets, your master password, Secret Key, and OAuth tokens are not in that request. Generated commands appear as an approval card, and destructive ones require you to type a confirmation. Read-only lookups the assistant asks for run on your computer, using connections you already set up in the app.
Google Cloud OAuth (Limited Use)
When you connect Google Cloud, you authorize CloudCMD to call Google APIs on your behalf. Use of that data follows the Google API Services User Data Policy, including Limited Use. Refresh tokens are Secure Data, encrypted on your device before sync. Access tokens are created on your device when a feature needs one; they are not synced and are not stored unencrypted. We do not use Google user data for advertising, sale to brokers, credit decisions, unrelated databases, or training AI/ML models. Revoke in the app and at Google Account permissions.
Chapter 7
App and update integrity
Releases are code-signed on Windows, and signed and notarized by Apple on macOS. Updates come from our own public release server. Every download is checked against the release's published hash, and on Windows and macOS an update not signed by us is refused. The installed app refuses modified copies and debug modes: developer tools are off, and it loads only its own integrity-checked files.
Links to a short list of trusted sites (such as CloudCMD, the cloud consoles and sign-in pages, Stripe, Tailscale) open in your browser. Any other link shows the real site name and asks first; content inside the app cannot answer for you. Camera, microphone, location, USB and notification access are denied by default. Crash reports are scrubbed of passwords, keys and tokens before they are sent, and every release is scanned for leaked secrets before it ships.
Chapter 8
What our servers can and cannot do
Encryption happens on your device, but our servers still enforce who may read what. Encryption without access control would let any signed-in user ask for someone else's encrypted data.
Access rules
Every record you own can be reached only by your signed-in account, with a verified email. Full read and write access to workspace data also requires a session signed in with your password. A session from an email sign-in link gets narrower access, enough to set up a new device. That split limits what each session can do, but it is not a security boundary: anyone who can read your email can sign in by link and set a new password. Whoever controls your email controls access to your synced records. The vault is what keeps Secure Data confidential: without your master password and Secret Key, the encrypted data stays unreadable. A password change on an account whose vault is already set up emails you and alerts us. Billing fields on your account can be changed only by our servers, from Stripe's payment notices; the app can read them but cannot alter them.
What we store
- Encrypted Secure Data, including everything that names your infrastructure.
- Key-derivation salts and key versions, so a new device can rebuild your keys.
- Service Data: account email, subscription and license state, and a device list (sign-in expiry only).
- Labels that identify nothing of yours: our ids, types, regions, status and timestamps, so the app can build the tree and sync before decrypting.
- AI usage totals (token counts), not prompts or vault contents.
Our servers enforce the format, not just ownership: fields that must be encrypted accept only encrypted data, discovered resources accept only keyed ids, and the readable id fields accept only id-shaped values. An app that tries to write readable text where encrypted data belongs is refused. The rules cannot check every item in a list, so we also scan stored data for readable customer values.
We do not store master passwords, Secret Keys, or your encryption keys. We do not store or sync cloud access tokens unencrypted: Google access tokens are never synced, and AWS single sign-on and Azure sign-in tokens are synced only as encrypted Secure Data, like refresh tokens. We cannot decrypt Secure Data to “help” with a forgotten password.
Connections
Traffic between the app and our servers is encrypted with TLS. Your encryption keys are not in those requests. Cloud API calls that need your credentials go from your computer straight to the provider.
Chapter 9
Caveats
This chapter is the honest part. The design above is real and implemented. These are the edges.
While unlocked, the app works with decrypted data
To show your workspace and connect to your clouds, CloudCMD decrypts data in memory while you're signed in and unlocked. If malicious code got into the running app during that time, it could reach credentials the app is using then. This is true of any password manager, and it is why CloudCMD locks itself when idle and drops the key.
Crash reports on your device
If CloudCMD crashes, your operating system's crash handler saves a copy of the app's memory on your device. It can contain short-lived tokens and, if CloudCMD was unlocked, your encryption key. That copy is never sent to us; the crash report we receive is scrubbed of secrets first. The app deletes the copy a few minutes after its next launch.
Idle lock is not an OS lock
Auto-lock fires after you stop using CloudCMD. Using the app postpones it. It does not pause a live SSH session, and it does not replace locking your laptop. Step away: lock the OS. If you choose Never, only Lock CloudCMD, the computer-lock option, and quitting drop the key.
Plaintext that is supposed to be plaintext
Key-derivation salts, your account email, billing state, and labels that identify nothing of yours (our ids, types, regions, status, timestamps, on/off settings) are stored unencrypted by design. So is the shape of your data: how many resources you have, how large each encrypted field is, and when it changed. A breach of our sync database reveals that you have an account and roughly how much you store, not what it is.
Your mailbox can delete, not read
Anyone who controls your email can get full access to your synced records (chapter 8). They still cannot read Secure Data, and the app refuses an encrypted value that was tampered with or moved. They can delete or overwrite records, or put back an older value of a field that was valid for that same place. They cannot plant a key for a new device to use: a new device trusts the keys it downloads only after they open data already in your account. Deleted data can be restored from our point-in-time recovery (7 days) or daily backups.
We cannot recover your data. Not in any situation.
There is no back door, no password reset, no support tool, and no employee who can decrypt your vault. We do not have the keys. If you forget your master password and lose the Emergency Kit, that Secure Data is gone — we cannot reconstruct it, restore it, or “look it up.” You can start a new vault with new keys; anything already synced stays encrypted forever.
Malware on your machine
Same limit every local vault has, including apps such as 1Password: malware that can inspect process memory while CloudCMD is unlocked can extract secrets from that process. Malware that can replace the CloudCMD app and have you run it can do the same. After malware has that kind of power, no app on the device can protect you.
Outside that window, CloudCMD is stricter than the usual setup. SSH normally keeps private keys on disk as ordinary files, readable by any program running as you, whether or not a terminal is open. CloudCMD never writes the private key to a file. While the app is closed, the encryption key is not in memory and your keys exist only in encrypted form.
Report a vulnerability
Email security@cloudcmd.com or help@cloudcmd.com. Give us a reasonable window to fix before public disclosure.
Appendix A
Algorithms
The exact constructions behind the plain-language chapters.
| Role | Construction |
|---|---|
| Master password input | Trimmed and Unicode NFKD-normalized before derivation |
| Password key derivation | Argon2id, m=19456 KiB (19 MiB), t=3, p=1, 32-byte output; at or above the OWASP minimum for this memory cost |
| Salts | One random 32-byte salt per derived key, stored unencrypted |
| Secret Key | 30 × 5-bit symbols (RFC 4648 base32 alphabet A–Z2–7), 150 bits of entropy |
| Secret Key mix | HKDF-SHA256 over the Secret Key and account id → 32 bytes; XOR with the Argon2id output |
| Derived keys | Content encryption key (CEK) and sign-in key, each from its own salt; the key version is recorded with every ciphertext |
| Field encryption | AES-256-GCM (JWE compact, direct key); the authenticated header binds the key version and the record and field the value was written for |
| Record ids (discovered resources) | HMAC-SHA256 under a random 256-bit per-account key, stored sealed under the CEK; truncated to 130 bits (122 for cloud ids, laid out as a UUID) |
| Sign-in password | The derived sign-in key, not the master password; the sign-in service stores only its hash |
| gcloud and kubectl tokens | Short-lived; minted on request in exchange for a random per-tab key that is revoked when the tab closes; kept out of gcloud's disk cache and logs; kubeconfig files hold no token |
| SSH host keys | OpenSSH with an app-managed trusted-hosts list; strict host-key checking; trust pinned to the approved fingerprint |
| Transport | TLS to our servers; provider APIs called directly from your device |
Appendix B
Glossary
| Term | Meaning here |
|---|---|
| CEK | Content encryption key: the key that encrypts your vault and Secure Data |
| Secret Key | Account-level second secret; on your device and in your Emergency Kit, never on our servers |
| Emergency Kit | PDF with your Secret Key, used to set up a new device |
| Secure Data | Data encrypted on your device that CloudCMD cannot read |
| Service Data | Account, billing and support data needed to run the product |
| Key version | Record of how a key was derived, kept with your data so it stays decryptable after key upgrades |
Appendix C
Revision history
| Release | Date | Reviewed against | Changes |
|---|---|---|---|
| 0.4.0 | 2026-11-06 | CloudCMD v0.9.74 | Rewritten from the user's point of view: how your data is protected, with internal implementation detail removed. The process-architecture chapter is folded into the principles, release hardening is now a short app and update integrity chapter, exact algorithms live only in Appendix A, and a new box lists what you must protect. Also current through 0.9.74: gcloud and kubectl get a per-tab key instead of your credential, cloud access tokens are never stored or synced unencrypted, auto-lock counts only your own activity, a new device trusts downloaded keys only after they open your data, and local crash dumps are a stated caveat. |
| 0.3.0 | 2026-11-04 | CloudCMD v0.9.72 | No cleartext customer data in the sync database: infrastructure names, hosts and ids encrypted, keyed document ids, location-bound ciphertext, the November 2026 reset, what stays plaintext and why; gcloud and kubectl keep no token on disk. |
| 0.2.0 | 2026-11-03 | CloudCMD v0.9.70 | Content refresh against the shipped app. |
| 0.1.0 | 2026-08-13 | CloudCMD v0.9.29 | Initial publication. |
CloudCMD Security Design, release 0.4.0 (2026-11-06). This document describes the shipped desktop app. It is not a guarantee of fitness for a particular regulatory regime. Questions: security@cloudcmd.com.