Marvel Comics' Secret Invasion storyline is currently being adapted in the Marvel Cinematic Universe, and for many fans, it's a long time coming. The crossover event was one of the most popular Marvel stories of the 2000s, not to mention a central part of Brian Michael Bendis' run on Avengers. While the basic premise of the story serves as the basis for the Disney+ TV show, the actual source material is much different.
Source:https://www.cbr.com/secret-invasion-comics-explained/