WebAgent for security engineers
Review headers, cookies and TLS without attacking anything.
security-passive reads one page the way a browser does and reports what is misconfigured: response headers, cookie flags, mixed content, TLS, exposed source maps, directory listings and insecure forms. It is read-only, and every request stays on the page's own origin.
security-passivesite-auditurl-sandboxWhat you get
- Findings by severity
- Evidence for each finding
- SARIF for GitHub code scanning
- An HTML report
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
Review one page
Start with the login page or the app shell. The run checks security headers, cookie flags, mixed content and TLS, then probes for exposed source maps and directory listings next to the loaded assets.
shwebagent skills run security-passive --url https://staging.example.com/login --report security.html - 3
Read the report
The run finishes with a summary line and findings grouped by severity, each with its evidence. Open the HTML report to share one page instead of a pile of screenshots.
- 4
Sweep the whole site
site-auditruns the same passive checks on every page it can reach, so a missing header on one forgotten route still shows up.shwebagent skills run site-audit --url https://staging.example.com --report site.html - 5
Run it on every pull request
webagent cireadswebagent.yml, runs each entry against your preview URL and exits 1 when a finding reachesfailOn. It writes JUnit, HTML and SARIF, and the GitHub Action posts one PR comment.yaml# webagent.yml baseUrl: ${{ env.PREVIEW_URL }} failOn: high runs: - skill: security-passive inputs: { url: /login } report: [junit, html, sarif] - 6
Put it on a schedule
A schedule runs the skill on a cron, for example a nightly security sweep. Each run is an ordinary skill run with its own report.
shwebagent schedules create security-passive --cron "0 2 * * *" --url https://staging.example.com
Inputs
For security-passive. Pass them as flags, JSON or in plain words to your agent.
| url | Page to review (required). |
|---|---|
| probe | Also look for exposed source maps and directory listings next to loaded assets: a handful of same-origin GETs (default on). |
Related
Run your first check today.
Free plan: 20 credits, given once, no card.