Since you specified a fixed list of organizations, its pretty easy to look up when they were founded and what was going on at the time. As a reminder correlation does not imply causation. The fact that an activity was going on at the time does not inherently mean it was the cause of the rise of an organization (nor does it mean that it wasn't).
Al-Qaeda, founded in 1988 in Afghanistan
This is one case where we can pretty clearly say that they rose out of an invasion. The Soviet Union invaded Afghanistan in 1980 and many resistance fighter groups quickly organized. Osama Bin Laden (possibly with CIA help) was the leader of one such group that would eventually be called Al-Qaeda.
Taliban, founded in 1994 in Afghanistan
The origins of the Taliban are not directly related to any invasion or occupational forces. According to wiki the first origins of the Taliban was a response to some local violence that eventually grew into a large militia force.
Al-Shabaab, founded in 2006 in Somalia
Al-Shabaab came out of civil unrest (pretty much a civil war) in Somalia. There was originally a group called the Islamic Courts Union. They were defeated and Al-Shabaab came out of the ICU dissolution.
The group was originally formed to overthrow the king of Jordan. Since then it has gone through many transformations. ISIS gained its current status in ~2014 when it exploded in power and took huge swaths of Syrian and Iraqi land. ISIS was able to do this by exploiting the weakness of the Syrian government during its civil war (caused by the Arab spring).
While the only group clearly related to an invasion is Al-Qaeda, all of these groups had many circumstances that built their environments. It is up to the reader to determine how much they believe various factors played into each group's foundation.