judge advocate

Noun

 * 1)  A commissioned officer acting as a lawyer to advise a court martial on points of law or to act as prosecutor.