jailhouse lawyer

noun
  1. a prisoner who has taught himself or herself law while serving time, is knowledgeable about technical legal matters, and gives legal advice, especially to fellow prisoners.

Origin of jailhouse lawyer

1965–70; Americanism
Dictionary.com Unabridged Based on the Random House Unabridged Dictionary, © Random House, Inc. 2018