Is this faction against faction or are they all fighting against secular govt?
Ansar Dine and AQIM are provisionally allied.
MUJWA and AQIM fight each other sometimes and have a truce sometimes.
MUJWA and Ansar Dine have connections to one another and seem to work together sometimes.
What seems to happen is that when one of these groups conquer a town, they will fight anyone else who tries to take it, but they will sometimes ally themselves with another group that is fighting the government over a disputed territory.
They are all enemies of the government.