Usually there are two solutions to computer security problems: stop doing stupid things in the first place, or throw more stupid things at the problem to make practical attacks harder.
The latter typically happens not because it's unavoidable, but because somebody (maybe at marketing, design, etc) doesn't want to hear about the former...
This is also the reason why smart appliances (those on four wheels included) will never become secure, no matter the effort. They only get more stupid.