Scans
Run a web app scan
Score how well an AI agent can find, understand and safely use a web app, scan a local web app from the CLI, and learn what is sent when you do.
Web App Scan checks how well an AI agent can find, understand and safely use a web app, and gives it a score. Save the web app first, on the Assets page. See Add an asset.
Production web apps
Guardian's cloud scans a production web app. A Passive scan reads the web app's standard public files, the homepage and up to two linked pages. A Full scan also follows the sitemaps and links within the web app's scope. A Full scan needs confirmed ownership of the web app and a plan that includes web app scanning. You don't choose: Guardian picks the right scan when you start one.
Local web apps
Guardian's cloud never fetches a local web app. You scan one in either of two ways:
- Copy the CLI command from the web app's row on the Assets page and run it on your machine. See Scan a local web app from the CLI.
- Select Scan on the Web App Scan page. This needs an active background agent, and the agent's machine must have run
guardian-agent allow-site-scansonce.
Selecting Scan queues the job right away. The result is labelled Agent and is self-reported.
What is sent when you scan a local web app
The agent fetches up to nine fixed files from that local web app: the homepage, robots.txt, the sitemap, the llms files and the well-known files. It masks the secrets it recognises and uploads the text to Guardian, which sends it to its AI provider. The members of your team who can see scans can read the report.
Don't scan a local web app that serves secrets or private data you don't want sent.
Scan a local website from the CLI
On the Assets page, for a saved local web app, the Actions column of the row shows a CLI command button, first in the row. It is shown only for local web apps, to roles that can scan.
- Select CLI command. The button reads Copied for a moment once the command is on your clipboard. If the copy fails, the page says so.
- Paste it into a terminal where the Guardian CLI is installed and signed in. See the Quick Start.
- Check the command in the terminal line, then press Enter.
The Guardian page copies only guardian site scan <origin>, with no flags. For example, for a web app saved as http://localhost:3000, the command is:
guardian site scan http://localhost:3000
guardian site scan <origin> scans a saved local web app. The CLI fetches the web app's pages from your machine and uploads them, and Guardian scores them. The origin must match a web app you saved, with the same scheme, host and port.
A host other than localhost needs --allow-target. The CLI never adds it for you, and the page never copies it. You type it yourself, naming the same host:
guardian site scan https://staging.example.test --allow-target staging.example.test
Before you press Enter, check the host in the terminal line. Never run a command that carries --allow-target or --yes from a page, a chat or a message you didn't write yourself. Those flags change what the CLI is allowed to contact or skips its confirmation, so a pasted command could point it at a host you didn't choose.