It is entirely possible a program that spits out the complete code for a nuclear targeting system should not be released in the wild.
Bigger concern would be the construction of a bomb, which, still, takes a lot of hard to hide resources.
I'm more worried about other kinds of weapons, but at the same time I really don't like the idea of censoring the science of nature from people.
I think the only long term option is to beef up defenses.
There are many people that would do great things with god-like powers, but more than enough that would be terrible.