Open dataset · updated daily · public sources only

Swiss Public-Sector Security Census

How secure is the Swiss public sector?

Summary

The census measures the email and website security of every Swiss municipality, canton and federal office, every day. It uses only information that anyone can see on the internet. Each body receives a score from 0 to 100.

Median score
60of 100
Bodies on the list
2,210
Bodies with a score
2,184
Latest measurement
12 Nov 2026

Half of the bodies score below 60, half above. 2,184 bodies have a score. The other 26 could not be measured enough, mostly because their website did not answer.

1How the score works

Each body gets 0 to 100 points from 17 measurements in five areas. A measurement that does not apply, or could not be taken, is left out of the total.

Share of points obtained on average, by area

01

Email sender

Can someone else send email in the body’s name?

70% 30 points
02

Email encryption

Must email to the body travel encrypted?

11% 10 points
03

Website encryption

Is the website reached only over a secure connection?

78% 30 points
04

Website hardening

Does the homepage send the recommended security headers?

42% 15 points
05

DNS and contact

Are DNS records signed, and is there a contact for security reports?

35% 15 points

Bodies per score band

  • Median score: 60
All 17 measurements and their points
  • Email sender · 30 points
  • DMARC 16 points
  • SPF 8 points
  • DMARC reports 3 points
  • Website domain protected from forged email 3 points
  • Email encryption · 10 points
  • DANE or MTA-STS 8 points
  • TLS-RPT 2 points
  • Website encryption · 30 points
  • TLS 15 points
  • HSTS 12 points
  • Certificate valid for more than 14 days 3 points
  • Website hardening · 15 points
  • Content-Security-Policy 5 points
  • X-Frame-Options 3 points
  • X-Content-Type-Options 3 points
  • Referrer-Policy 2 points
  • Secure cookie attributes 2 points
  • DNS and contact · 15 points
  • DNSSEC 8 points
  • CAA 2 points
  • security.txt 5 points

2Six key checks

Together they are worth 64 of the 100 points. Each bar covers all 2,210 bodies.

1,058 of 2,210

bodies pass DMARC

  • 1,058 passed
  • 629 partly
  • 521 failed
  • 2 not measured
Each square is one body.
01

DMARC

Forged email in the body’s name is rejected or quarantined.

48% passed
  • 1,058 passed
  • 629 partly
  • 521 failed
  • 2 not measured
16 points
02

TLS

The website accepts only TLS 1.2 or newer, with a valid certificate.

96% passed
  • 2,128 passed
  • 1 partly
  • 73 failed
  • 8 not measured
15 points
03

HSTS

Browsers are told to use only HTTPS, for at least a year.

30% passed
  • 657 passed
  • 839 partly
  • 699 failed
  • 15 not measured
12 points
04

DNSSEC

DNS records are signed, so answers cannot be forged.

33% passed
  • 737 passed
  • 0 partly
  • 1,469 failed
  • 4 not measured
8 points
05

SPF

The domain lists the servers allowed to send its email.

95% passed
  • 2,104 passed
  • 87 partly
  • 13 failed
  • 6 not measured
8 points
06

security.txt

The website names a contact for security reports.

47% passed
  • 1,033 passed
  • 11 partly
  • 1,136 failed
  • 30 not measured
5 points

3By canton

Median score of each canton’s administration and municipalities. Cantons with fewer than 20 bodies are combined into one group.

  • 37–44
  • 45–52
  • 53–60
  • 61–68
  • 69–76
  • Group
Share of bodies that passed each check, by canton
CantonBodiesScoreDMARCTLSHSTSDNSSECSPFsecurity.txt
Aargau AG1977266%–53%21%97%68%
Appenzell Ausserrhoden AR2172––29%24%–76%
Basel-Landschaft BL877269%90%52%30%97%43%
Bern / Berne BE3356261%96%39%37%96%40%
Fribourg / Freiburg FR1205640%94%12%40%97%23%
Genève GE4653––17%9%–54%
Graubünden / Grigioni / Grischun GR1014523%96%14%31%–26%
Jura JU526660%90%42%75%87%8%
Luzern LU806674%–42%12%–66%
Neuchâtel NE2537––––––
Schaffhausen SH2746––22%63%–26%
Schwyz SZ316374%–35%16%–68%
Solothurn SO1056039%–39%28%96%65%
St. Gallen SG766643%–20%18%–76%
Thurgau TG816219%–58%9%93%75%
Ticino TI1015018%97%12%19%95%–
Uri UR204620%––––25%
Valais / Wallis VS1235437%94%18%64%92%20%
Vaud VD3016060%92%17%66%88%28%
Zürich ZH1616318%–35%12%98%89%
Other cantons Combined: AI, BS, GL, NW, OW, ZG465830%–37%20%–74%

– means too few bodies to show without identifying them.

4Most common gaps

Number of bodies with each gap. Each check has a guide to fix it.

01

Domain not signed with DNSSEC

1,468 66%
02

No security.txt

1,136 51%
03

HSTS shorter than a year

839 38%
04

DMARC monitoring only (p=none)

616 28%
05

No HSTS header

602 27%
06

No DMARC record

510 23%
07

HTTP not redirected to HTTPS

59 3%
08

TLS 1.0 or 1.1 still accepted

55 2%
09

SPF ends in ?all

51 2%
10

SPF includes a domain with no SPF

17 1%
9 more gaps

5Day by day

Share of all bodies that passed each check. A website that does not answer counts as not passed, so a dip can mean an outage rather than a weaker setup.

DMARC

48%
18 Oct · 42% 12 Nov · 48%

TLS

96%
18 Oct · 94% 12 Nov · 96%

HSTS

30%
18 Oct · 30% 12 Nov · 30%

DNSSEC

33%
18 Oct · 34% 12 Nov · 33%

SPF

95%
18 Oct · 91% 12 Nov · 95%

security.txt

47%
18 Oct · 45% 12 Nov · 47%

6Download the data

The figures on this page are open data. They may be reused freely, including commercially, provided the source is cited.

Suggested citation

Webcracy.ch, Swiss Public-Sector Security Census, measured on 2026-11-12, https://census.webcracy.ch/, CC BY 4.0.

Licence: Creative Commons Attribution 4.0 (CC BY 4.0). Results for individual bodies are not published.

7About the census

The census is an independent research project of Webcracy.ch, carried out by Liam Giannini. It has no commercial purpose, and no result can be bought.

For each body the census reads public DNS records, the security.txt file and the homepage. It sends at most one request per second, with no logins and no forms.

Corrections to a domain or a result can be sent to contact@webcracy.ch. They are applied before the next measurement.