...
Maybe you should try to learn more about the security model and differences of a software wallet compared to a hardware wallet.
A software wallet that holds private keys on an online computer which is exposed to the internet can't really protect the private keys when the computer gets infected by malware that gains sufficiently high access rights to fully compromise the device.
On the other hand a good hardware wallet never exposes and allows access to private keys from a computer which "talks" to the hardware wallet. The private keys remain safe even when the computer is infected with malware as long as good usage practices are applied by the user (meaning the user verifies
every detail of a to be signed transaction on the independent display of the hardware wallet
before he approves to sign and broadcast the transaction).
TL;DR
A hot software wallet can't protect the private keys when operated on a compromised computer. A compromised computer can't get to the private keys on a good hardware wallet because this isn't possible at all (there should be no firmware code pathways to ever achieve this on a well designed and implemented hardware wallet (I'm not speaking of Ledger crap here)).