Green’s Dictionary of Slang

dirty shirt n.2

(US Und.) an incompetent lawyer who is given clients by court or jail officials; he has no substantial legal knowledge, charges minimal fees, and usu. loses.

[US]Sutton & Linn Where The Money Was (2004) 392: The ‘dirty shirts’ – the ambulance chasers of the courtroom [...] They wouldn’t know how to actually try a case if their life depended on it.