Attack plot foiled