You can sue the landlord for the secure deposit in Civil Court, usually Small Claims, depends on the amount. The landlord can deduct any rent owed and the cost of any damages to the apartment.