There could be so many solutions that could be used to cure the root cause of attacks against US, but most of them are completely unacceptable to the people running the military in US, and the MIC. Their solution is always war and destroying those that oppose them (even if that "solution" creates even more problems in the long term for the security of US).
It's the same problem with the NSA, which is run by an army general, who just happens to be not-amusingly nicknamed "Emperor Alexander". Instead of thinking that in order to make the Internet infrastructure in US secure by default (including banks, and whatever institution they tend to use in their arguments), they think that they need to have access to everything themselves, through loopholes, and they say that's what will keep the US infrastructure safe - when in fact they're just making it less secure. But that's okay, because it just means they get to ask for "bigger budgets to fix it", just like the military gets to ask for bigger budgets, after they create more terrorists with drone assassinations, double taps, and signature strikes.
There is wisdom in this laconic phrase: Si vis pacem, para bellum
US is today the main aggressor in the world, what China an Russia are doing by economic treaties, the US is using force alone. Afganistan, Iraq, Libia, Siria.
US is trying to force people in the world to keep using the petrodollar, but they had abused so much their power(printing it like crazy and exporting inflation and poverty to other countries), that the rest of the world is looking for alternatives, and they will find them.
All empires try to sustain past glories by force, from the Spanish empire in Nederlands to British Empire in India, Germany(France) and Japan(in China) before WWII. But empires come and go.