Alex realized that he had almost fallen victim to a malicious attack. He quickly removed the software from his computer and reported the incident to the authorities.