Kodi is only useful when you some
popular Kodi Builds and be safe. I always suggest scanning the Kodi Build repository with the Virustotal. Because Virustotal is a great database of the many security companies that have launched their antivirus in the market.
Similarly use of some security software and antivirus is always recommended before installing and using Kodi on your device.