Corpse desecration is already legal and normalized by worldwide media - plenty of proof during the war in Ukraine. Of course only for the chosen rightful side.
Killer AI is gonna end bad when created by bourgeoisie state because it will inevitably be used against working class people, and be no different than the armies and weapons that we have now. Not even control issue will be qualitatively different (although it will be quantitatively) since fascist warmachines never lacked people to pull the trigger anyways.
Note that most sci-fi is (consciously or not) bourgeoisie propaganda. There is no reason whatsoever that AI must necessarily end as murderous "kill all meatbags" skynet, especially if developed by socialist states. There are even examples in the sci fi itself. Soviet and generally socialist sci fi had plenty. In western, from the more famous examples we have "Culture" cycle by Banks, and Star Trek where in WW3 humanity is literally saved by the soviet developed AI controlling presumably russian nuclear arsenal. Good example is also droid IG-11 from Star Wars show "The Mandalorian".