WebAgent for pen testers
Open untrusted links in a sealed browser and see where they go.
url-sandbox opens a link in an isolated session that never accepts dialogs, waits for late scripts to fire, and records the redirect chain, every request by host, downloads and the final page, then sums it up as a risk level.
url-sandboxsecurity-passiveWhat you get
- The full redirect chain
- Requests grouped by host
- Downloads with hash and MIME type
- A risk summary
Step by step
From an API key to a report, then onto every pull request.
- 1
Connect WebAgent
Create an API key in the dashboard, then export it for the
webagentCLI, or add the MCP server to Claude Code so your agent can callrun_skillitself.shexport WEBAGENT_API_URL=https://api.example.com WEBAGENT_API_KEY=… # or hand the browser to Claude Code claude mcp add webagent -e WEBAGENT_API_URL=$WEBAGENT_API_URL -e WEBAGENT_API_KEY=$WEBAGENT_API_KEY -- npx -y @webagent/mcp - 2
Open the link in a sandbox
Paste the suspicious link. Private, internal and cloud-metadata addresses are blocked by the SSRF guard on every request, redirects included.
shwebagent skills run url-sandbox --url "https://suspicious.example/login?ref=…" --report sandbox.html - 3
Give slow pages more time
Some kits redirect or start a download only after a delay. Raise
settleMsso late scripts, redirects and downloads still land in the report.json{ "url": "https://suspicious.example/…", "settleMs": 5000 } - 4
Read the verdict
The summary gives the risk level, the number of redirect hops, the final host, how many hosts were contacted and how many files were downloaded. Use the requests-by-host table to spot credential posts to another domain.
- 5
Run it from your own code
Every skill is also one HTTP call. The response has the status, a summary, findings by severity and a link to the HTML report.
shcurl -s -X POST $WEBAGENT_API_URL/v1/skills/url-sandbox/run \ -H "authorization: Bearer $WEBAGENT_API_KEY" -H 'content-type: application/json' \ -d '{"inputs":{"url":"https://suspicious.example/…"}}' # { "status": "failed", "summary": "…", "findings": [...], "reportUrl": "/v1/skill-runs/run_…/report" }
Inputs
For url-sandbox. Pass them as flags, JSON or in plain words to your agent.
| url | The link to open (required). |
|---|---|
| settleMs | Extra time for late scripts, redirects and downloads to fire (default 1500 ms). |
Related
Run your first check today.
Free plan: 20 credits, given once, no card.