It is mostly a myth (and scare tactic invented by copyright trolls and encouraged by overzealous virus scanners) that pirated games are always riddled with viruses. They certainly can be, if you download them from untrustworthy sources, but if you're familiar with the actual piracy scene, you have to understand that trust is and always will be a huge part of it, ways to build trust are built into the community, that's why trust and reputation are valued higher than even the software itself. Those names embedded into the torrent names, the people and the release groups they come from, the sources where they're distributed, have meaning to the community, and this is why. Nobody's going to blow 20 years of reputation to try to sneak a virus into their keygen. All the virus scans that say "Virus detected! ALARM! ALARM!" on every keygen you download? If you look at the actual detection information about what it actually detected, and you dig deep enough through their obfuscated scary-severity-risks-wall-of-text, you'll find that in almost all cases, it's actually just a generic, non-specific detection of "tools associated with piracy or hacking" or something along those lines. They all have their own ways of spinning it, but in every case it's literally detecting the fact that it's a keygen, and saying "that's scary! you won't want pirated illegal software on your computer right?! Don't worry, I, your noble antivirus program will helpfully delete it for you!"
It's not as scary as you think, they just want you to think it is, because it helps drive people back to paying for their software. It's classic FUD tactics and they're all part of it. Antivirus companies are part of the same racket, they want you paying for their software too.
I mean, they did it with phones too. Android is just Linux. That was one of the main attractions, for me at least.
At first, many people and groups supplied their own phone OSes. There was a whole thriving community ecosystem. Then they started to make it really hard, locking bootloaders and including critical pieces of hardware that didn't or couldn't have open source drivers (look up WinModems for a very early example of this technique, it remains really effective) or otherwise required extremely convoluted methods to access and the phone might function marginally without some of these fully functional, but at least you could still install a custom ROM on it if you were stubborn enough.
But even that wouldn't last. Nowadays they've made it literally impossible to defeat the security on most phones, in the name of keeping hackers and criminals out, but really a big part of their motivation is blocking these pirate OSes that let you actually control the hardware and software in your phone, doing criminally nefarious things like stopping them from downloading ads (the horror!) and preventing them from funneling all your data and activities back to Big Brother (how rude!) and worst of all updating it with modern functionality after they've declared it "obsolete". The goal going forward is to sell you things that you don't and can't control, so they can shut them down or make them gradually more and more useless and make you buy new ones forever. They want you to have a subscription for everything including physical objects without realizing that you've been forced to subscribe to their regularly-scheduled-disposable-device-replacement-plan for no actual reason.
They're coming for computers too, or at least they'll try. They want control of everything we interact with. For profit, mostly, but I wouldn't rule out other motives. It's a powerful thing when you have control of everything people see and do.