AI becomes both sword and shield in cybersecurity, expert warns