I think this is a rather strange way of thinking. Fortran has been extensively used for nuclear weapons development. Let's stay away from Fortran! C was and is widely used in weapons control systems. Let's stop using C! Computers themselves were initially designed for artillery fire control, with an explicit intention of killing people. Let's not touch the technology with such a foul pedigree. This can be continued a…
IBM helped with Holocaust. It also invented PC.
Werner von Braun has lead the US space program to launching humans to LEO, and then to the Moon.
Again, technology is morally oblivious. A sword that only serves a noble aim is strictly the stuff of fairy tales, and is not implementable in the real world (no, not even with an AGI, since humans are a reasonably good approximation of an AGI).