If only…
Which apparently why after >2000yrs of effort from both sides we now, finally!, have locks that no lockpicker can compromise.
Vulnerabilities will always exist. Systems will always be hackable. You solve the problem by patching what you can, and cleaning up after what gets exploited, if and when it gets exploited.
You must not mean what you have said here. If so, you are double-dipping.