Improved Cybersecurity Measures: The Critical Role of Generative AI