This absolutely needs to be an agreed upon standard similar to chemical weapons and mines.
Anyone remotely familiar with software development knows that automating either when to launch or what to target will not end well.
Which bug will end a civilization?