The usual #1 advice is to update regularly. Check out Jetbrains' guide on Hardening Your TeamCity Server for more.