I used Samara as my Shield and sent Legion through the tunnels, then took Legion and Miranda to the fight at the heart of the base. If I play this mission again I'll leave Miranda in the bunker and take someone else. Maybe she'll survive then.