Two options - become smarter(every miner can be detected as a virus, trojan, exploit and so on) or don't use this miner. First option also includes rule "don't use any mining software on a PC where all your crypto or any other data, use mining software only on special rigs".
I asked the developer. He can honestly answer whether there is a virus or a Trojan in his program or not.
[/quote]
I'm a dev, and I tired to answer people that there is no a virus inside

And since miner exists for few years, and people still use it - it should be clear, that miner is ok and have no any danger inside.