Didn't Reed Richards have a hand in that too?
basically the skrulls at one point kidnapped reed richards and figured out how to disguise themselves completely undetectable as people on earth. When the illuminati rescued reed, they were talking immesaurable shyt, and the skrull queen was like "no, they pay for THIS"
they subsequently infiltrated stark enterprises and took over all of stark's technology. All of this is happening DURING civil war. electra got killed, and it was shown she was really a skrull clone [her body turned into a skrull]. When they discovered her , BLACK BOLT SPOKE showing that he's really a skrull too, and that BOLT had been kidnapped in order to make a voice activated cannon.
Basically, Stark's hubris during civil war made him blind to the fact that his entire empire had been taken over by skrulls and he made it easier for them to invade. This is also why OSCORP took over in terms of technological control in marvel in the aftermath of SI, and how the dark reign came up. Basically osborn took over everything stark had, and sent him back to GO =>