"Basically, software remains vulnerable because the benefits created by insecure products far outweigh the downsides. Once that changes, software security will improve—but not a moment before."
https://danielmiessler.com/blog/the-reason-software-remains-insecure/