If someone was trying to hack into my OS whereby they could put malicious code there, which Linux OS would best withstand this kind of attack?
I know the router, firewall, switch, etc will play a prominent role for defense, but that's irrelevant for my question. My question is simply is there a stronger OS that would be more resistant to being hacked 'based 100% on the strength of the code (or infrastructure) of the OS'? For example, Kali Linux, or CentOS, would be harder to put malicious code on versus Debian.
It also doesn't matter how difficult the OS would be to use.