phase transition security