We had a new installation of Teamcity broken because Trend Micro reported malware in Java.exe when a Build agent was run. We believe this was a false positive as the server was recently setup and hardly used but because of the way anti-virus is administered, it is impossible to disable/remove the a/v or even whitelist java.exe. We downloaded a new Java.exe from Amazon (Corretto 11 - same version as the one installed with Teamcity). and it has worked since then without issue.
The replacement java.exe was bigger (50 KB vs 38KB) and it contained digital signatures which the version installed with Teamcity didn't. we have a suspicion that Trend Micro might not check software with digital signatures quite so rigorously.