Perhaps surprisingly, we already do this in the UK. Public-facing side of the security services are all over it.

I get emails from the German Federal Office for Information Security (BSI) via hetzner letting me know if I have db ports open etc.