Filing bankruptcy under Chapter 7 affects lawsuits and attachments by preventing any further action against the debtor. There is an automatic stay related to the filing of bankruptcy, so state lawsuits are put on hold and the court in the state can’t take any additional action against the debtor without permission from the court.
Liens that are in existence prior to the bankruptcy filing can pass through and still be in existence after the filing. The reality of what happens to a lien upon the filing of a Chapter 7 bankruptcy can get somewhat complicated, though. You would need to speak with your bankruptcy attorney to determine whether or not that lien is still in existence after the filing.