Coping with random bending attack by means of exhaustive search detection