When the action is brought upon the information or application of a private party, the attorney general may require that party to enter into an undertaking with sureties to be approved by the attorney general, conditioned on that party's paying a judgment for costs or damages recovered against the plaintiff and costs and expenses incurred in the prosecution of the action.