definition of foiled attack