Security attack and protection