AI and Cybersecurity: Friend or Foe? Chapter Contents hide AI and Cybersecurity: Friend or Foe? AI as a Friend AI as a Foe