Typically, your lawyer is on your side. Which is why it was a little unusual that on the first day of the trial of ex-CIA sysadmin Joshua Schulte – accused of leaking classified information to WikiLeaks – that his attorney, Sabrina Shroff, went out of her way to explain what an asshole he is.
https://go.theregister.co.uk/feed/www.theregister.co.uk/2020/02/06/schulte_trial_opening/
https://go.theregister.co.uk/feed/www.theregister.co.uk/2020/02/06/schulte_trial_opening/