The Abwehr was the military counterintelligence unit of Nazi Germany. It was headed by Admiral Wilhelm Canaris, who was executed, along with a deputy, Hans Oster, just before the end of the war.