For developers and technical teams
Run it yourself
scanprivacy runs from the command line, in continuous integration or as an HTTP service.
pipx install scanprivacy
scanprivacy install-browser
scanprivacy scan https://example.org --pdf report.pdf --json evidence.json
In continuous integration
- uses: fabriziosalmi/scanprivacy@v1
with:
url: https://www.example.org
fail-on: critical
As a service
docker build -t scanprivacy .
docker run --rm \
-e SCANPRIVACY_API_KEY="$(python -c 'import secrets;print(secrets.token_urlsafe(32))')" \
-e SCANPRIVACY_CONTACT=you@example.org \
-p 127.0.0.1:8099:8099 -v scanprivacy-data:/data scanprivacy
It refuses to listen beyond loopback without an API key, because every request it makes reaches third parties in your name. Read Deployment before exposing it.
How it observes
- 01 Input Any public URL. Nothing is installed on the site.
- 02 Observe One clean browser visit: requests, cookies, storage, headers, TLS and legal notices.
- 03 Check Evaluates GDPR, ePrivacy and AI Act rules, comparing the facts with what the notice declares.
- 04 Report Fail-closed grade A to F, with verifiable evidence, reproduction steps and fixes.
- One visit, no choice
- The page is loaded once, as a visitor who has neither accepted nor refused anything. What loads before that choice is what gets reported. The opt-in refusal pass is the only mode that touches a consent banner, and it writes a separate document.
- Evidence first
- Each finding lists the requests, cookies or headers that produced it, with steps to check it yourself using a browser and curl. A read that failed is a stated limit in the report, never an absence.
- Polite by construction
- It honours robots.txt, makes at most one page load per second to a host, never requests URLs that change state, and names its operator and a contact address in the User-Agent.
- Reproducible
- The JSON result carries digests of the observation and of the rules applied.
scanprivacy verifyrecomputes them, and two results can be compared finding by finding withscanprivacy diff.
What you get
| Output | Command | Use |
|---|---|---|
| Report, PDF and Markdown | scan --pdf --md | English and Italian, with remediation steps for each finding. |
| Evidence, JSON | scan --json, verify, diff | The observation and the digests that make it checkable. |
| SARIF | sarif, the GitHub Action | Findings in code scanning. |
| Badge, SVG | badge | The current grade for a README. |
| Signed attestation | attest, verify-attestation | Show that a report is the one that was published (cosign). |
| HTTP API | serve | Scans as a service, behind an API key. |
Evidence you can check
A report is a claim about a site at one moment. The JSON result next to it holds what was observed, and the digests in it let anyone confirm that the report describes that evidence and that the same rules were applied.
-
Observation
evidence.json - SHA-256 digests evidence, rules, knowledge
- in-toto statement binds PDF, SARIF, JSON
- Cosign + Rekor public transparency log
$ scanprivacy verify evidence.json
evidence intact : yes
findings intact : yes
declared : 923abf4d7fb19067…
recomputed : 923abf4d7fb19067…
ruleset unchanged : yes
knowledge unchanged: yes
Known limits
- It observes once by default, from one place. A single visit is a photograph: two loads of the same page can differ, so
--repeat Nmeasures stability across loads anddiffshows variance instead of hiding it. - The default pass expresses no consent, so what a site does after acceptance is not verified. The refusal pass covers refusal only, for the consent platforms it knows.
- What a page does only when the visitor acts is not observed: microphone, camera, location, clipboard and requests made after a click.
- A scan covers one deployment. Sibling hosts the entry page links to are listed in the page plan and not followed.
- Text-based checks, such as the Art. 13 elements of a privacy notice, can miss an unusual wording, which is why those findings carry lower confidence.
- It is not legal advice and not a certification.