I believe this is because some malware integrates that code and mines when users don't want it to, so it is marked malware. I've been running miners for a couple of years and had no problem, just make sure to download from a trusted place, github.com is a good one, try not to download from just any site, try to always check around first and find out the best place to download from.