<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ronan Davalan</title>
    <description>The latest articles on DEV Community by Ronan Davalan (@ronandavalan).</description>
    <link>https://dev.to/ronandavalan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4235581%2Fade17de5-63e9-48ce-8ccf-0f68dc8a1354.webp</url>
      <title>DEV Community: Ronan Davalan</title>
      <link>https://dev.to/ronandavalan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ronandavalan"/>
    <language>en</language>
    <item>
      <title>Why a model that drives a browser must never see a password</title>
      <dc:creator>Ronan Davalan</dc:creator>
      <pubDate>Tue, 01 Dec 2026 10:21:07 +0000</pubDate>
      <link>https://dev.to/ronandavalan/why-a-model-that-drives-a-browser-must-never-see-a-password-33dl</link>
      <guid>https://dev.to/ronandavalan/why-a-model-that-drives-a-browser-must-never-see-a-password-33dl</guid>
      <description>&lt;p&gt;&lt;em&gt;This article first appeared on &lt;a href="https://www.davalan.fr/en/articles/why-a-model-driving-a-browser-must-never-see-a-password/" rel="noopener noreferrer"&gt;davalan.fr&lt;/a&gt;, which is the original.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: what the model reads, it can repeat
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Diwall MCP does instead
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://mcp-diwall.davalan.fr/" rel="noopener noreferrer"&gt;Diwall MCP&lt;/a&gt; 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 &lt;a href="https://mcp-diwall.davalan.fr/guides/credentials/" rel="noopener noreferrer"&gt;credentials&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The model fills a field with a reference, never with the value.&lt;/strong&gt; It asks for "the password of the file &lt;code&gt;account&lt;/code&gt;"; the server reads that file in its own process at the moment it types, and answers &lt;code&gt;&amp;lt;secret:password&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A sensitive field refuses plain text.&lt;/strong&gt; A password, a card number or a code cannot be entered from the model's keyboard: the attempt is refused (&lt;code&gt;sensitive_value_refused&lt;/code&gt;), so the value cannot slip into its context by mistake.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A credential is entered only on the exact origin it names.&lt;/strong&gt; The credential file lists the addresses where it applies; on &lt;code&gt;http://&lt;/code&gt; instead of &lt;code&gt;https://&lt;/code&gt;, on another port or on a subdomain, it is refused.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The demonstration
&lt;/h2&gt;

&lt;p&gt;A &lt;a href="https://www.davalan.fr/en/articles/why-a-model-driving-a-browser-must-never-see-a-password/" rel="noopener noreferrer"&gt;film of under 30 seconds&lt;/a&gt;, on the original article, shows on a local test page the three gestures that matter: sensitive fields are masked in the image the model receives, a password cannot be typed in clear text, and with no answer to the confirmation window before a payment, the click is not carried out. The film deliberately leaves the real confirmation window unanswered: pressing its button with a script would get around what the film shows.&lt;/p&gt;

&lt;h2&gt;
  
  
  The measurements
&lt;/h2&gt;

&lt;p&gt;Each figure links to the page where the reader can find it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Three outcomes for the confirmation window.&lt;/strong&gt; A refusal, an acceptance and a deadline that ran out with no answer were played on the operator's workstation; on the refusal and on the silence, the page received nothing (&lt;a href="https://mcp-diwall.davalan.fr/use-cases/" rel="noopener noreferrer"&gt;use cases&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A mask drawn on the pixels.&lt;/strong&gt; 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 (&lt;a href="https://mcp-diwall.davalan.fr/perception/marks-and-masks/" rel="noopener noreferrer"&gt;marks and masks&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A page that swaps the button under the pointer.&lt;/strong&gt; On a page that replaces the button every 2 ms, 300 clicks never reached the other button, against 29 before the check (&lt;a href="https://mcp-diwall.davalan.fr/architecture/limits/" rel="noopener noreferrer"&gt;limits&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A lock on irreversible actions.&lt;/strong&gt; On 100 common button labels, it missed none and locked 2 wrongly ("Clear the form", "Remove the filter"); same page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4,692 tests passed&lt;/strong&gt; without a browser, on the code of the version described (&lt;a href="https://mcp-diwall.davalan.fr/guides/install/" rel="noopener noreferrer"&gt;installation&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two independent audits&lt;/strong&gt; of the first release, each from a blank session: seven findings each, of which four and three were confirmed at triage, then fixed (&lt;a href="https://github.com/RonanDavalan/mcp-server-diwall-browser/blob/main/CONTRIBUTORS.md" rel="noopener noreferrer"&gt;credits of the repository&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The limits
&lt;/h2&gt;

&lt;p&gt;This safeguard does not cover everything, and the limits page says so at the top.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The encrypted directory protects as much as its password.&lt;/strong&gt; A weak or reused password protects little.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A model to which the client also gives a shell under your account lifts the guard.&lt;/strong&gt; 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 (&lt;a href="https://mcp-diwall.davalan.fr/guides/choose-your-level/" rel="noopener noreferrer"&gt;choose your level&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A field the server does not recognise as sensitive is shown, value included.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The safeguards are dated.&lt;/strong&gt; A model more recent than the ones tried can find a way around one that no test has seen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No payment, no declaration and no renewal has been played on a real site.&lt;/strong&gt; The confirmation window was played on a local page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No outside line-by-line review of the code has taken place&lt;/strong&gt;, and one person is behind the project.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  And on your side
&lt;/h2&gt;

&lt;p&gt;The code is on &lt;a href="https://github.com/RonanDavalan/mcp-server-diwall-browser" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, under the MIT licence, if you want to try it.&lt;/p&gt;

&lt;p&gt;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 &lt;a href="https://www.davalan.fr/en/pages/contact/" rel="noopener noreferrer"&gt;contact&lt;/a&gt; page.&lt;/p&gt;

</description>
      <category>security</category>
      <category>mcp</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
