This is how whistleblower David McBride was recently convicted in Australia for revealing crimes by military officers in Afghanistan.
It is standard whistleblower persecution where they shoot the messenger and ignore the crime being revealed (eg Assange’s Collateral Murder video leak).
Both of the above examples are military abuse of judicial process just like in Pakistan.