In the digital age, cybersecurity stands as a critical defence wall against an array of online threats, ranging from malicious hackers to data breaches. Amidst this technological landscape, artificial intelligence (AI) emerges as a double-edged sword, offering both advantages and risks in the realm of cybersecurity