Close the Risk Window and Reduce the Attack Surface for Hackers