Any person bringing an action or proceeding against a military officer of the state for any act done in the course of his or her official duty or against any person acting under the order or authority of such officer shall give security for the costs, disbursements, and reasonable attorney fees incurred by the state or defendant in defending the same in the same manner and subject to the same regulations, so far as applicable, as in the case of a nonresident plaintiff, and, if the plaintiff fails to recover, such attorney fees may be taxed with the costs and disbursements and judgment therefor entered against him or her and his or her sureties on the bond.
C.R.S. § 28-3-503