That’s not a judge’s job. Law enforcement agencies make referrals of criminal activity to prosecutors. Prosecuting attorneys then convene grand juries who issue indictments.
Criminal acts that become apparent in any case in any trial coming to the attention of any Judge must be referred for prosecution or the Judge himself is complicit in the crime.
That IS a judges duty.