Passive security review
Headers, cookies, TLS and exposed source maps.
security-passive is a read-only review of one page. It never submits a form or sends a payload. Optional probes make a handful of extra same-origin GETs to look for exposed source maps and directory listings.
security-passiveWhat you get
- Header and cookie findings
- Mixed content and TLS
- Exposed source maps and listings
- Insecure forms
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 a page
Run it on the pages that matter most: login, checkout, the app shell.
shwebagent skills run security-passive --url https://staging.example.com/login --report security.html - 3
Turn the probes off if you need to
Set
probeto false to stay strictly on the requests the page itself makes.json{ "url": "https://staging.example.com/login", "probe": false } - 4
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.
- 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]
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.