Security Evolution From Legacy to Advanced, to ML and AI