Indirect prompt injection.
A computer-use agent reads the web to do its job. Hidden instructions on a page or in a document can hijack it, the same way a phishing email targets a person. The agent follows the attacker, not you.
Computer-use agents act on what they read. That makes prompt injection a real risk. Route browser work through an isolated session. Then minimize permissions and verify the boundary.
Host scope
profile. files. credentials. network.
Task scope
browser. selected sites. required credentials.
[ THE RISK ]
A computer-use agent acts on what it reads. When the page is hostile, the agent can be too. The question is what it can reach when that happens.
A computer-use agent reads the web to do its job. Hidden instructions on a page or in a document can hijack it, the same way a phishing email targets a person. The agent follows the attacker, not you.
Run an agent locally and it may inherit the permissions you grant. Browser profiles, files, credentials, and network access can expand the blast radius.
Cookies and tokens left on disk can outlive the task. Retained state gives a later run more context and more authority than it may need.
The mechanism: read how indirect prompt injection hijacks an agent through content it reads, or the broader prompt injection explainer.
[ CONTAINMENT ]
Isolation does not stop an agent from being tricked. It separates browser work from your local browser profile. Permissions still decide what the agent can reach.
Route the browser task through an isolated session off your device. Verify mounts, network access, and every external tool the agent can call.
Keep your local browser profile outside the task. Verify cookie, credential, storage, and log retention in the exact environment you use.
End the session when the task is done. Check what remains in storage, logs, credentials, and connected systems.
[ HOW TO USE IT ]
Add the ready skill. Route browser work through the isolated session. Close it and verify what remains.
Use Legba's ready skill for routing and isolated browser sessions. Check its requested permissions.
Run the browser step in the isolated session. Grant only the sites, credentials, and tools the task needs.
End the session after the task. Check retention, logs, storage, and credential cleanup before production use.
Go deeper: see the full OpenClaw browser-isolation guide or the run OpenClaw safely guide.
[ OUTSIDE THE TASK ]
Keep local keychains, environment secrets, and saved logins outside the task unless access is explicitly required.
Use a separate browser session. Do not import a local profile unless the task and risk review require it.
Do not mount local files or expose internal network access unless the task requires them. Test every exception.
[ FAQ ]
Legba is a Chrome extension with two modes. Ghost gives you a private browser route. Shield opens a page in an isolated browser off your device.
Free for 30 days. No card required.
Ghost. A private route for your browser. Shield. An isolated browser, off your device. Choose the mode. Close when finished.