Preventing and Surviving an Active Attack