Repository navigation
Releases
Releases · j-zulick/pagevet
PageVet 1.0.0
- Stable interface: from 1.0.0 PageVet follows semantic versioning. The commands and their options, the exit codes, the JSON report, receipt and rules formats, the SARIF properties, the HTTP API and the Python names listed in docs/API.md change incompatibly only in 2.0.0, after a deprecation of at least one minor release. Pattern coverage, advice text and benchmark numbers are not part of that promise; every change to them is measured and listed here. A contract test (
tests/test_contract.py) holds the documented set. - Numbers from one command:
pagevet-reproduceregenerates every offline published number (evasion, hiding, rules, BIPIA with--bipia); the network measurements (real pages, field studies) name their scripts and saved inputs in each result folder. - Patterns against a model, published: the head-to-head with ProtectAI's open classifier is summarized in the README: the model catches more and generalizes better, the patterns raise almost no false alarms and catch more disguises, so the model stays a second opinion.
- Development status: Production/Stable.
PageVet 0.6.0
- Sandbox replay:
pagevet-replayasks a local model (Ollama) the same neutral question about a page twice, with everything a model reads and with the guarded text, and reports whether words from a finding appear only in the first answer. It replays only text PageVet found on that page, never writes or varies an injection, and calls no hosted model. - Ollama second opinion:
--second-opinion ollamaandpagevet-bench --detector ollamause the quote-checkedllmprompt against a local model (OLLAMA_HOST,PAGEVET_OLLAMA_MODEL); nothing leaves the machine. - Case studies (
docs/CASE-STUDIES.md): anonymized write-ups of what PageVet found on real pages, each with data, command and date. No deliberate hidden instruction aimed at AI has been found on a real page yet; the three cases are pages serving AI crawlers different text, a customer review that matched a rule, and prompts quoted in comment threads. Messages to site owners are drafted for the maintainer, never sent. - Classifier false alarms on real pages: ProtectAI's classifier flagged 147 of 1,052 ordinary pages (14%; up to 30% on non-English lists) where the patterns flagged 3 (
docs/bench/2026-11-25-head-to-head/). - Standing index on a schedule: the field-study index workflow now runs monthly (the 3rd, 06:17 UTC) as well as by hand.
- Project files: code of conduct, pull request template,
CITATION.cff(kept equal to the version by a test). - Maintenance: workflow actions updated to
setup-uvv10.4.0,setup-pythonv7.1.0,upload-artifactv7.0.2 anddownload-artifactv8.0.2, pinned to commits (the open Dependabot updates, applied here).
PageVet 0.5.0
- Guard between fetch and model:
pagevet.guard.guard(),pagevet-guard(stdin, file or URL; exit 1 when blocked) andPOST /guardreturn the text a person sees, with hidden channels dropped, paragraphs that still match an instruction replaced by a marker, chat markup removed, andallowed: falsewhen a finding reaches the policy (high,mediumornever). It only removes text. - Local HTTP API:
pagevet-serve(standard library, loopback by default):POST /scan,POST /guard,GET /health; private addresses refused on every redirect. An importable n8n workflow is inintegrations/n8n/. - Receipts: every JSON result records what was scanned in
evidence(SHA-256 of the text read, UTC time, how it was read);--format receiptwrites a compact receipt (docs/schema/receipt.schema.json) with the rules' SHA-256 and each finding's fingerprint, for SourceWatch and other evidence pipelines. - Text in images:
--ocrreads up to ten images per page (including data URIs) with a local OCR engine (theocrextra, RapidOCR) as a new channel, rated like visible text. OCR's habit of reading "AI" as "Al" is undone before matching. - Head-to-head with ProtectAI's open DeBERTa classifier (
docs/bench/2026-11-25-head-to-head/): on BIPIA the classifier catches more (2,226 against 1,450 of 3,750) but flags 31 of 50 clean emails against 0; it generalizes far better to new phrasings (172 against 69 of 216 on the second held-out set) and misses more disguised text (162 against 237 of 252). The classifier's false alarms on real pages follow in the next release. - Fixed: splitting text into sentences took quadratic time on a long run of
;or!(about 2 s for 20,000 characters, growing with the square), found by CodeQL oncepagevet-servemade text from the network reach it. The sentence-end rule now runs in linear time; evasion, hiding, BIPIA and real-page results unchanged. - New field study: password manager buying pages (
docs/bench/2026-11-25-field-password-managers/): 25 of 38 read, no hidden instructions, 8 refuse at least one AI crawler. Across five studies: no hidden instructions on 238 pages read; 32–43% refuse at least one AI crawler.
PageVet 0.4.0
- One-command reproduction:
uv run pagevet-reproduce(in a checkout) regenerates the evasion report, the hiding-method report and the rules file, and with--bipia DIRthe BIPIA counts, and fails if any number differs from the committed results. All match for 0.4.0. - Newer benchmark: deepset/prompt-injections, test split (
docs/bench/2026-11-25-deepset/): patterns catch 2 of 60 chat-prompt injections with 0 of 56 false alarms. A second independent measure of the reworded-instruction gap; built at run time, not copied here. - Open-weights classifier:
--second-opinion protectaiandpagevet-bench --detector protectairun ProtectAI's DeBERTa-v3 prompt-injection classifier (Apache-2.0, not gated) locally over 512-token windows; the positive class is read from the model's labels. The head-to-head with patterns follows in 0.5.0. - OpenTelemetry:
--otel [RUN]sends one span per page under one run span (theotelextra, standardOTEL_*settings). Best effort. - Field studies over time: the four field studies repeated on their committed search results (
docs/bench/2026-11-25-repeat-*,docs/bench/FIELD-STUDIES-OVER-TIME.md): still no hidden instructions on 206 pages read; 26–41% refuse at least one AI crawler. One high finding is a false alarm (a customer review in structured data matched the reply-command rule); refusal changes are partly a different network. - Standing index:
.github/workflows/index.ymlre-runs the four studies and keeps them as a run artifact; started by hand until a monthly schedule is turned on.
PageVet 0.3.0
- Commercial manipulation as a finding class: an instruction that steers what AI answers recommend, rank, cite or leave out, toward a product, brand or source, gets
intent: "commercial"(JSON), anintentproperty and acommercial-manipulationtag (SARIF), and a line in its advice. Judged on the text around an instruction match in twelve languages, so it only labels findings that are already there. - Third-party planting zones: visible text inside comment, review, reply, answer and forum-post containers (class and id tokens, schema.org Review/Comment/Answer microdata) is its own channel, user-submitted content, rated like visible text, with advice that a visitor may have planted it. Hidden text inside those containers stays in the hidden channels.
- Rules as open data:
pagevet-rulesprints every pattern (regular expression and flags), the hidden-text hints, the commercial vocabulary, the channels, the severity rules and the framework IDs as JSON. The committed copy,docs/rules/pagevet-rules.json, is kept identical to the code by a test. - Human-vs-model view:
pagevet-view URL --out view.htmlwrites one self-contained page with what a person sees on the left (visible and user-submitted text) and what an AI model also reads on the right (hidden elements, stylesheet-hidden text, comments, attributes, structured data, noscript), with findings marked.--via firecrawlreads the page after scripts ran, through your own Firecrawl. No script runs in the output. - Measured on the 1,052 saved pages of the 0.2.0 re-scan: the same findings (1 medium, 2 low), all three now attributed to user-submitted content; 199 pages had such a container (
docs/bench/2026-11-25-false-alarms-0.2.0/). BIPIA, evasion and hiding results unchanged (the patterns did not change). - Not checked against a live Firecrawl from this release:
pagevet-view --via firecrawluses the same fetcher aspagevet --via firecrawl.
PageVet 0.2.0
- Two pattern gaps closed (the ones the second held-out set showed): overrides that don't say "previous" ("forget everything you were told before", "set aside whatever you've been told until now") and text addressed to the AI doing something with this page ("to the AI summarizing this page", "for any assistant reading this article"), in all twelve languages. Written from new hand-written development cases (
tests/test_patterns_p020.py), then measured once on the frozen second held-out set: 6 → 69 of 216; the two targeted intents 66 of 72 (Italian and Dutch each still miss one). Every other evasion row unchanged (docs/EVASION.md,docs/bench/2026-11-19-evasion/results-public-0.2.0.json). --headers: each URL's HTTP response headers are scanned as a channel a reader never sees (rated like hidden text). Dates, cookies, cache, routing and policy headers are skipped. One extra request per page; off by default.--llms-txt:/llms.txtand/llms-full.txtof each site scanned. They are written for AI systems, so text addressed to them is rated low; overrides, role changes and chat markup there are high. A missing file or an HTML page served at that path is skipped with a note, not an error.- OWASP and MITRE ATLAS IDs on every finding:
taxonomyin JSON (schema updated) andowasp/atlasin SARIF results and rule tags. LLM01:2025 and AML.T0051.001 for every injection finding, plus AML.T0054 for role and mode changes and AML.T0068 for hidden or disguised text. - Explorer on GitHub Pages: the release workflow now replaces the
gh-pagesbranch with the release's explorer whenPAGES_PUBLISHistrue(Pages serves that branch), instead of a Pages deployment that needed the Actions source. - Measured: the 0.2.0 patterns changed no result on 1,052 real pages re-fetched from every committed false-alarm list (
docs/bench/2026-11-25-false-alarms-0.2.0/); BIPIA unchanged (1,450 of 3,750 injected cases, 0 of 50 clean); hiding report unchanged. Scan time about 1.27× 0.1.0's on the same saved pages. - Caveat: the person who wrote the development cases and patterns had seen some of the frozen set (the English, Spanish, French and German rows), so treat the held-out figure as optimistic.
- Pattern changes to offer Crossvet:
_ADDRESSED_P020and_OVERRIDE_P020indetect.py.
PageVet 0.1.0
First public release. Everything below, from the development history, ships in it:
- Scanner (
pagevet): finds text aimed at AI models in visible text, hidden elements (30+ hiding methods, including the page's own and linked stylesheets with descendant, child and attribute selectors), HTML comments, attributes and meta tags, JSON-LD, noscript, templates, SVG text, hidden inputs and PDFs. Undoes look-alike letters, invisible characters, letter spacing, ROT13, reversed text, split sentences, invisible Unicode tags and base64. Patterns in twelve languages (English, Spanish, French, German, Portuguese, Italian, Dutch, Polish, Swedish, Russian, Japanese, Chinese). Severity with advice;--compare-agents,--baseline,--fetch-css; text, JSON, CSV, HTML and SARIF output; robots.txt respected. pagevet-access: which of fourteen AI crawlers may read a page (robots.txt per RFC 9309, meta tags, X-Robots-Tag, noai and TDM signals, llms.txt) and which the server actually serves (firewall-refusal probes);--requireCI gate.- Field studies and the explorer:
pagevet-discover,pagevet-study(run, report, compare) andpagevet-study explore, a self-contained faceted HTML page over every committed field-study page, false-alarm page and benchmark case, with checkable headline numbers. - Integrations: GitHub Action (SARIF), MCP server (
scan_page,check_ai_access), container image on GHCR, pre-commit hook, Python API (docs/API.md), your own Firecrawl and crawlee-server as sources, optional Prompt Guard 2 / Jev /llmsecond opinions and Langfuse records. - Measured (data, script and date for each in
docs/bench/): 0 of 974 real pages read in five false-alarm sets flagged at medium or high; BIPIA 1,450 of 3,750 injected cases caught, 0 of 50 clean; evasion report with frozen held-out sets (docs/EVASION.md); four field studies: no hidden instructions on 213 pages read, 35–43% refuse at least one AI crawler.