The defendant may, at any time before judgment, after reasonable notice to the plaintiff, move the court for additional security on the part of the plaintiff; and if, on such motion, the court is satisfied that the surety in the plaintiff's undertaking has removed from this state, or is not sufficient for the amount thereof, it may vacate the order of attachment and direct restitution of any property taken under it, unless, in a reasonable time, to be fixed by the court, sufficient security be given by the plaintiff.
Okla. Stat. tit. 12, § 1240