Any person required to execute a bond, undertaking or other obligation may agree with his surety to deposit any or all assets for which he and his surety may be held responsible. The deposit shall be with a bank, savings bank, safe deposit company, or trust company authorized by law to do business as such, or with any other depository approved by the court or a judge of the court, if the deposit is otherwise proper. Assets shall be deposited for safekeeping and held in a manner that prevents the withdrawal of the whole or any part of the deposit without the written consent of the surety, or without an order of a court or a judge, made on any notice to the surety which the court or judge directs. The agreement shall not in any manner release or change the liability of the principal or sureties as established by the terms of the bond.
Va. Code § 38.2-2409