You know why desktop Linux doesn't have much malware? Because ~no one uses it. That's it. Once you get users, you get malware.
The rest of your comment is just as ignorant.
There is plenty of malware for Linux. The difference is that the OS won't install it for you.
Linux doesn't install malware, because it is free software, which guarantees the four user freedoms. Whenever someone adds malware, anybody else can remove it for everyone or create an equally useful fork without it. Try this with Windows.
In other words, Stallman was right, and proprietary software developers have too much power over users. And they inevitably, sooner or later, leverage this power for (more) profit, even if you paid for the product.
There was malware for systems with 1/1000 the userbase of Linux. Even Amiga and Atari had plenty of it, macOS when it had 2% share, and others.