SMG Group · Research June 23, 2026

AI Security

Browser Use and OpenClaw: What the LLM Payload Contains

Query

What exactly do Browser Use and OpenClaw send to a cloud LLM on each step, and do they redact passwords, card numbers, or SSNs before sending it?

Research and testing

  • Read Browser Use's source: agent/prompts.py, dom/serializer/service.py, agent/message_manager/service.py, and utils.py.
  • Read OpenClaw's source and documentation and the Browser Use integration docs.
  • Reviewed GitHub issues #713, #695, and #1062, web-ui issue #168, Giskard's security analysis of OpenClaw, and arXiv papers 2512.07725 and 2508.04412.
  • Built a simulated payload for a login page and an account page from the serializer logic, to show what the API receives.

Methodology

Behavior was confirmed in source code wherever possible, across more than 20 sources. Six key claims were checked separately; two were corrected (the "accessibility tree" label is imprecise, and CVE-2025-32711 is unrelated to browser agents; see the fact-check).

Results

Simulated text portion of one step's API request (values are made up):

URL: https://portal.example.com/login | Tab 1 of 1
  [1]<input type=text name=username value=jsmith />
  [2]<input type=password name=password value=Tr0ub4dor&3 />
  [3]<button type=submit>Sign In</button>

  ...later, on the account profile page:
  Name: Jane Smith  Date of birth: 04/12/1980
  SSN: 123-45-6789  Card on file: 4111 1111 1111 1111

With sensitive_data set, lines 1 and 2 show placeholders instead, but an attached screenshot still shows what is on screen, and the account page is sent as is.

  1. Format. Not raw HTML. On each step Browser Use makes three Chrome DevTools Protocol requests (the DOM, the accessibility tree across frames, and a DOM snapshot), merges them, and gives each interactive element a number. The text is capped at 40,000 characters. OpenClaw sends a similar role-annotated text view based on Playwright's aria-ref system.
  2. Form values, including passwords, are included. The serializer's default attribute list includes value, and the method that picks an element's text reads value first, with no exception for type="password". Issue #713 showed the same values leaking into logs; PR #724 fixed the logs, not the payload.
  3. Screenshots skip text masking. When vision is on, a screenshot of the viewport is attached after the element list. Whatever text-layer masking does, the image shows what the screen shows. The docs advise use_vision=False on sensitive pages; there is no per-domain vision setting.
  4. No automatic detection in either tool. There is no Luhn check for card numbers, no SSN or IBAN pattern, and no handling of password fields. Card numbers and SSNs on a page go to the API verbatim.
  5. sensitive_data is an allowlist. It replaces exact, pre-registered strings with placeholders using a simple string-replacement loop (redact_sensitive_string()). It misses anything not registered and anything in screenshots, and the library only warns if allowed_domains is missing. Issue #1062 (open) shows it typing the placeholder instead of the real value with some OpenAI models, with no error raised.
  6. Other data sent every step: the agent's action history (condensed for long tasks), the URL and title of every open tab, and shadow DOM content where accessible. Extracted page text is sent only on an extract action.
  7. Other issues found. arXiv 2512.07725 found that Browser Use disables Chromium's password encryption on Linux, leaving saved passwords unencrypted on disk. Giskard found that OpenClaw exposed secrets from one session to other sessions on a shared gateway, exposed environment variables and API keys through group chats, and had a remote-code-execution path through WebSocket hijacking. In web-ui, an unvalidated Base URL field could send the LLM API key to an attacker's server (issue #168).

Mitigations

  • Turn vision off on every sensitive page. This is the only way to keep on-screen credentials and personal data out of the image.
  • Register every credential the agent types in sensitive_data, and always set allowed_domains.
  • Use a fresh browser profile with no saved passwords.
  • Design flows so the agent never reaches pages that show full SSNs or card numbers, or stops before they load.
  • For OpenClaw, run a single-user instance, keep the gateway out of untrusted group chats, and restrict the WebSocket interface to localhost.
  • Before production, run a test step with full API logging and confirm the placeholder, not the real value or the literal key, appears in the request.

Sources

  1. github.com/browser-use/browser-use: source repository
  2. browser-use #713: sensitive data does not work on controller log (fixed in PR #724)
  3. browser-use #1062: sensitive_data fails with some OpenAI models
  4. arXiv 2512.07725: Privacy practices of browser agents
  5. github.com/openclaw/openclaw: source and documentation
  6. browser-use docs: OpenClaw integration
  7. Giskard: security analysis of OpenClaw (2026)
  8. arXiv 2508.04412: Beyond pixels, DOM downsampling for LLM-based web agents
  9. browser-use/web-ui #168: SSRF through the LLM Base URL field