No doubt some organizations are researching how to perform and defend against things like that. The future of asymmetric warfare in particular could get really crazy.
In this context I would sacrifice multiple aircraft to ‘taint my the enemies training data with solutions which are a disadvantage in a future fight scenario.
That's why this probably won't actually be in use for many decades. You need something a bit closer to AGI than what exists now. Until then, you'll probably have limited use cases, maybe where movement and obstacle avoidance are autonomous but everything else is programmed or remotely controlled.
You could imagine small, agile flying assassination drones which can navigate cities and houses to kill targets with short-range projectiles. Very Black Mirror-esque, but far more ethical than the current approach of Call of Duty 4-style blowing up a big patch of land from the clouds with a Hellfire missile, including all the civilians in proximity.
Human pilots do mot suffer this problem. A human can arbitrarily change things up for better or worse. Going the AI route is basically going the T-34 route. Suddenly quantity (via reproducibility) takes on a quality all it's own. My issue with that philosophically is does going down that road actually solve any pressing problem?
Which to me it rings a bit hollow and empty unless there's so.e other task we'd prefer people that would be pilots be doing.
It doesn't stop there. You train one AI, you've trained them all. A minor performance increase instantly upgrades the capability of your entire fleet. An AI that can learn from real world situations will likewise convey that learning to your entire fleet instantly.
They say smart people learn from the mistakes of others, but we often have some trouble applying this. An AI should do better.
Of course, the corollary is that bugs will affect your entire fleet. I wonder if a future cyber-security role will be to look for AI blindspots to exploit en masse without prior warning (like flying with the sun behind you, but more arcane).