In the mission Judgement Day, JSOC is able to trace the source of the hacking of drones. Section leads JSOC forces to apprehend or kill Menendez. In order to get the best ending, you just have to capture Menendez, NOT kill him.
The canon ending is confirmed to be Maxis' side of the quest in the official Zombies Timeline.