As long as you download Krita directly from the Krita.org website or Steam, you are safe from downloading viruses. Beware of other websites claiming to have a Krita download, a download that could be bundled with the legitimate software plus Malware.