Generative AI is learning to spy for the US military