The Hyksos "invasion" has to be put in the context of the Second Intermediate Period - i.e., between the Middle and New Kingdoms.
Further, this "invasion" was written about by Manetho in the Ptolemaic era over 1200 years later, a time period equivalent to the difference between us and Alfred the Great. The SIP was marked by weak central governments and competing dynasties - civil war, for the most part. I have seen a great case made that the original Hyksos were brought in as a mercenary force ( they did have some interesting weapons technology that the Egyptians lacked) by one desperate rebel or another but being an ethnically and linguistically separate group they soon overthrew the warlord they were serving and set themselves up as the 15th dynasty. The civil war did not end although it did resolve itself into a fight between Upper and Lower Egypt which was eventually won by Ahmose I who founded the 18th dynasty.
Further, this "invasion" was written about by Manetho in the Ptolemaic era over 1200 years later, a time period equivalent to the difference between us and Alfred the Great. The SIP was marked by weak central governments and competing dynasties - civil war, for the most part. I have seen a great case made that the original Hyksos were brought in as a mercenary force ( they did have some interesting weapons technology that the Egyptians lacked) by one desperate rebel or another but being an ethnically and linguistically separate group they soon overthrew the warlord they were serving and set themselves up as the 15th dynasty. The civil war did not end although it did resolve itself into a fight between Upper and Lower Egypt which was eventually won by Ahmose I who founded the 18th dynasty.