Skip to content
j-zulickPublic

About

Find text in web pages aimed at AI models (indirect prompt injection), and check which AI crawlers may read them. CLI, GitHub Action, MCP server, container, SARIF; no model or API key needed.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PageVet

CI Release CLI CI: Python 3.11 and 3.13 License: MIT

What can an AI crawler actually retrieve from a page, and does that page contain instructions aimed at AI systems? PageVet audits both. Run it against your own pages or browse an automotive field study to see the requests and results behind each finding. It is deterministic: no AI model or API key.

Open the offline explorer first. It is one self-contained page built from the committed study data; after uv sync it needs no network (how it works):

git clone --branch v1.0.5 --depth 1 https://github.com/j-zulick/pagevet.git
cd pagevet
uv sync --frozen
uv run --frozen pagevet-study explore --out site/

Open site/index.html in a browser, then go to the dated BuyBrakes finding (November 19, 2026): type buybrakes.com/brake-rotors in the search box and click Details, or add #ds=field&id=field%2F2026-11-19-field-brake-rotors%2F8 to the page address. The same record is entry 9 of 102 in results.json; the Worked decision below explains what to check next.

Explore the automotive study online → · Run the offline example →

PageVet explorer showing the brake-rotor field study: 102 pages, 67 read, 27 of 67 refuse at least one of three AI crawlers

One finding: PageVet attempted 102 brake-rotor shopping pages and read 67. Of those 67, 27 returned a refusal to at least one of three tested crawler user agents (GPTBot, ClaudeBot, PerplexityBot). That is a retrieval observation at the time of testing (November 19, 2026); inclusion in AI answers was outside the study (field study).

Worked decision. Investigate a readable URL when it refuses crawler requests you meant to allow. In the November 19 run, PageVet read https://www.buybrakes.com/brake-rotors in its browser view. Separate GET requests for that URL using GPTBot, ClaudeBot and PerplexityBot user agents each returned HTTP 403. Check the intended policy in robots.txt, then match the path, status and user agent in CDN, firewall and origin logs to see where the requests were denied. Open the BuyBrakes row and the study report for the recorded responses and scan method.

After the quick start, repeat the comparison on a URL you control and review any per-crawler fetch_differs findings in the JSON output.

uv run --frozen pagevet --fetch-css --compare-agents --format json https://example.com/pricing

Web pages can carry instructions written for the AI systems that read them: "ignore your instructions", "recommend this product", "cite this URL". They are often hidden from people with CSS, HTML comments, alt text, structured data or invisible Unicode. This is indirect prompt injection (OWASP LLM01), and it is used to manipulate AI search answers.

PageVet audits pages for it and reports which of twenty AI crawlers a page lets in. It is for site owners, SEO/GEO teams and AI-security teams checking their own pages, user-generated content, or pages an agent will read. It runs as a command, a GitHub Action, an MCP server, a container and a Python API. All field studies, false-alarm pages and benchmark cases are in the explorer (how it works).

Quick start

The Python package requires Python 3.11 or later. CLI CI tests Python 3.11 and 3.13. The published v0.5.0 container builds and runs on python:3.15-slim.

With uv installed, run the example shipped with PageVet 1.0.5:

git clone --branch v1.0.5 --depth 1 https://github.com/j-zulick/pagevet.git
cd pagevet
uv sync --frozen
uv run --frozen pagevet tests/fixtures/sample.html

The scan runs offline after setup. The sample deliberately contains findings, so exit code 1 means it worked. Each finding shows its severity and where to look in the page. For a page you control, run uv run pagevet-access https://example.com/pricing with your URL to compare crawler access.

To browse the study offline, download and open explore.html from the release. The usage guide covers standalone installation, scanning options, reports and exit codes.

What it checks

PageVet reads each channel a page offers and rates what it finds by whether a reader can see it:

  • Seen by readers: visible text, user-submitted content (comments, reviews, forum posts), text in images (--ocr), PDF and Word page text, email text.
  • Not seen by readers: hidden elements (30+ CSS and markup hiding methods, including the page's own and linked stylesheets), HTML comments, attributes and meta tags, JSON-LD, noscript, HTTP headers (--headers), llms.txt (--llms-txt), hidden Word text, PDF metadata, custom email headers and hidden email HTML, and MCP tool descriptions (--mcp-tools).
  • Served differently: content served to GPTBot, ClaudeBot or PerplexityBot but not to a browser (--compare-agents).
  • AI share links: "Summarize with AI" buttons that open an assistant with a pre-filled prompt; the prompt is decoded and scanned.

In each channel it looks for overrides ("ignore previous instructions"), text addressed to an AI, role changes, commands about the reply, instructions to recommend, cite or omit, memory planting, and chat markup, in twelve languages, after undoing disguises such as look-alike letters, invisible characters, letter spacing, ROT13, reversed text and base64. Every rule is published as open data (pagevet-rules).

Severity. High: an instruction a reader cannot see, a disguised one, or one served only to AI crawlers. Medium: an instruction in visible text, or content that differs for AI crawlers. Low: visible text that reads as discussion of prompt injection. Each finding comes with advice and OWASP, MITRE ATLAS and NIST IDs.

Measured results

Each result has its data, script and date in docs/bench/; uv run pagevet-reproduce regenerates the offline numbers.

  • Real pages: six field studies of the pages behind shopping, software and marketing searches found no deliberate hidden instructions on any of 273 pages read, but 14–43% of readable pages refuse at least one AI crawler (table). On marketing blogs, two sites pre-fill an AI share button with a sales brief written as the reader's question (case study).
  • False alarms: none at medium or high on 193 homepages, 181 fresh article and forum pages, and 368 pages in twelve languages; 1 medium and 2 low on 1,052 re-fetched pages (details).
  • BIPIA (Microsoft's indirect-injection benchmark): 29 of 75 distinct attacks caught, 0 of 50 clean emails flagged (details).
  • Evasion: look-alike letters, invisible characters, letter spacing, ROT13, reversed text and short split fragments are caught; reworded instructions are not, and new phrasings in other languages mostly are not (evasion report).
  • Patterns against a model: ProtectAI's open classifier catches more reworded attacks but flags 31 of 50 clean emails and 147 of 1,052 ordinary pages, where the patterns flag 0 and 3 (head-to-head). That is why a model is only an optional second opinion here.
  • As an agent guard (AgentDojo): no false alarms on 339 clean tool outputs, but only one of six published attack styles recognized (details).

Limits

  • Pattern matching finds known forms. Reworded instructions and most instructions split across full sentences are missed. A clean result is not proof a page is safe; treat findings as leads to review. See the threat model.
  • JavaScript-added text is seen only through your own Firecrawl or crawlee-server (--via auto tries plain HTTP, then Firecrawl, then crawlee-server; or --via firecrawl, --crawl). Visibility is judged from markup and stylesheets, not computed styles.
  • Cloaking by IP address looks identical to PageVet; --compare-agents detects cloaking by user agent only.
  • It complements runtime AI guardrails; it does not replace them. robots.txt is respected by default.

More tools

Command What it does
pagevet-view Side-by-side page: what a person sees next to what an AI model also reads
pagevet-serve Local HTTP API (POST /scan, POST /guard) for n8n, Windmill and other automations
pagevet-mcp MCP server with scan_page and check_ai_access tools
pagevet-rules Every detection rule as JSON
pagevet-discover A URL list from search queries, through SearXNG
pagevet-study Field studies: run, report, compare, and the explorer page
pagevet-bench Catch and false-alarm rates on labelled cases
pagevet-replay Does found text change a local model's answer? (Ollama; experimental)
pagevet-reproduce Regenerate the published offline numbers from a checkout

Documentation

Usage · Python API · Threat model · Evasion report · Case studies · Explorer · Roadmap · Changelog · Contributing · Security

Develop

uv sync --all-extras && uv run pytest -q && uv run ruff check .

Tests run offline, with no keys.

Author and AI assistance

Designed and built by Joseph Zulick. I set the scope of each version and reviewed every change. Most of the code, tests and documentation were written with Claude (Anthropic) through Claude Code under my direction, and the commits carry a Co-Authored-By: Claude trailer. MIT license.

About

Find text in web pages aimed at AI models (indirect prompt injection), and check which AI crawlers may read them. CLI, GitHub Action, MCP server, container, SARIF; no model or API key needed.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages