Once in the mine, assuming you don't attack Madanach right off the bat, he will eventually want you to go kill someone to prove your loyalty. Thing is, if you talk to that person, they will instantly turn hostile and try to kill you. So you can dispatch them as an act of self-defense and not out-right murder.
But now, it would seem, you have sided with Madanach. Not so fast. After you exit the prison into the city Madanach will confront and kill Thonor. Well that takes care of one schmuck, but what about the Madanach and the Foresworn? Well once you are out of the prison and in the city, you are free to attack and kill all the Foresworn who escaped with you. You will receive no bounty. It does not count as murder. And you can even go to Druadach Redoubt and they will treat you as if you and Madanach were best buddies.
I love it how Madanach shouts "I'm on your side" as I slice off pieces of his body.
