California is taking steps to protect elections from the rising threat of artificial intelligence (AI)-generated deepfakes.