Why a model that drives a browser must never see a password
A model acting in a browser that is open on your accounts should neither read nor type a password: what this settles, how Diwall MCP does it, the measurements and the limits.
An organisation that lets a model act in a browser open on its payroll, its bank or its administrative accounts asks one question first: where does the password go? If the model types it, the model has read it, and what a model has read does not stay with the model.
The problem: what the model reads, it can repeat
Everything a model receives enters its context: the history of the conversation, what the model’s provider receives at each exchange, what the model can repeat when a booby-trapped page asks for it. A password that enters this context stays there for the length of the session, sometimes well beyond. Closing the tab removes it from nowhere.
The risk is not that the model “turns malicious”. It is that the password sits somewhere nobody controls, because it was put there for the convenience of one gesture.
What Diwall MCP does instead
Diwall MCP is an MCP server, the tool through which a model observes a browser and acts in it. It keeps three rules, written on its page about credentials:
- The model fills a field with a reference, never with the value. It asks for “the password of the file
account”; the server reads that file in its own process at the moment it types, and answers<secret:password>. - A sensitive field refuses plain text. A password, a card number or a code cannot be entered from the model’s keyboard: the attempt is refused (
sensitive_value_refused), so the value cannot slip into its context by mistake. - A credential is entered only on the exact origin it names. The credential file lists the addresses where it applies; on
http://instead ofhttps://, on another port or on a subdomain, it is refused.
The files live in an encrypted directory that the operator opens; the server does not know the volume’s password and refuses to write while it is closed.
The demonstration
The film below lasts under 30 seconds. On a local test page it shows the three gestures that matter.
The film deliberately leaves the real confirmation window unanswered: pressing its button with a script would get around what the film shows.
The measurements
Each figure links to the page where the reader can find it.
- Three outcomes for the confirmation window. A refusal, an acceptance and 91 seconds without an answer were played on the operator’s workstation; on the refusal and on the silence, the page received nothing (use cases).
- A mask drawn on the pixels. At 100, 125, 150 and 200 % zoom, every pixel of the password field is under its mask; before the fix, at 125 % and above, none was (marks and masks).
- A page that swaps the button under the pointer. On a page that replaces the button every 2 ms, 300 clicks never reached the other button, against 29 before the check (limits).
- A lock on irreversible actions. On 100 common button labels, it missed none and locked 2 wrongly (“Clear the form”, “Remove the filter”); same page.
- A suite of 2,276 tests that needs no browser, for the version described (installation).
- Two independent audits of the first release, each from a blank session: seven findings each, of which four and three were confirmed at triage, then fixed (credits of the repository).
The limits
This safeguard does not cover everything, and the limits page says so at the top.
- The encrypted directory protects as much as its password. A weak or reused password protects little.
- A model to which the client also gives a shell under your account lifts the guard. It can edit the server’s profile and, while the directory is open, read the credential files. What bounds this case is the configuration of the client: an agent whose shell asks you first, and a separate account for the model (choose your level).
- A field the server does not recognise as sensitive is shown, value included.
- The safeguards are dated. A model more recent than the ones tried can find a way around one that no test has seen.
- No payment, no declaration and no renewal has been played on a real site. The confirmation window was played on a local page.
- No outside line-by-line review of the code has taken place, and one person is behind the project.
And on your side
If you want to know what a model can read and do on your workstations, an audit examines the access, the logs and the rights given to the model, and returns a written report of the findings with the fix for each. Details are settled in a conversation, at the address on the contact page.