It's not that simple. Hackers will always have the upper hand because in technology you cannot protect all the vulnerabilities that you are not even aware of. It's just the nature of technology.
And even just constantly changing the technology is no good, because then you open yourself up for more unseen exploits.